|
@@ -0,0 +1,864 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.gyee.frame.mapper.auto.FailurestatisticsmainMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Failurestatisticsmain">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="ID" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
|
|
|
+ <result column="WPID" jdbcType="VARCHAR" property="wpid" />
|
|
|
+ <result column="WPNAME" jdbcType="VARCHAR" property="wpname" />
|
|
|
+ <result column="WTID" jdbcType="VARCHAR" property="wtid" />
|
|
|
+ <result column="WTNAME" jdbcType="VARCHAR" property="wtname" />
|
|
|
+ <result column="DAY3TOP1" jdbcType="DECIMAL" property="day3top1" />
|
|
|
+ <result column="DAY3TOP2" jdbcType="DECIMAL" property="day3top2" />
|
|
|
+ <result column="DAY3TOP3" jdbcType="DECIMAL" property="day3top3" />
|
|
|
+ <result column="DAY7TOP1" jdbcType="DECIMAL" property="day7top1" />
|
|
|
+ <result column="DAY7TOP2" jdbcType="DECIMAL" property="day7top2" />
|
|
|
+ <result column="DAY7TOP3" jdbcType="DECIMAL" property="day7top3" />
|
|
|
+ <result column="DAY15TOP1" jdbcType="DECIMAL" property="day15top1" />
|
|
|
+ <result column="DAY15TOP2" jdbcType="DECIMAL" property="day15top2" />
|
|
|
+ <result column="DAY15TOP3" jdbcType="DECIMAL" property="day15top3" />
|
|
|
+ <result column="MONTH1TOP1" jdbcType="DECIMAL" property="month1top1" />
|
|
|
+ <result column="MONTH1TOP2" jdbcType="DECIMAL" property="month1top2" />
|
|
|
+ <result column="MONTH1TOP3" jdbcType="DECIMAL" property="month1top3" />
|
|
|
+ <result column="DAY3TOP1NAME" jdbcType="VARCHAR" property="day3top1name" />
|
|
|
+ <result column="DAY3TOP2NAME" jdbcType="VARCHAR" property="day3top2name" />
|
|
|
+ <result column="DAY3TOP3NAME" jdbcType="VARCHAR" property="day3top3name" />
|
|
|
+ <result column="DAY7TOP1NAME" jdbcType="VARCHAR" property="day7top1name" />
|
|
|
+ <result column="DAY7TOP2NAME" jdbcType="VARCHAR" property="day7top2name" />
|
|
|
+ <result column="DAY7TOP3NAME" jdbcType="VARCHAR" property="day7top3name" />
|
|
|
+ <result column="DAY15TOP1NAME" jdbcType="VARCHAR" property="day15top1name" />
|
|
|
+ <result column="DAY15TOP2NAME" jdbcType="VARCHAR" property="day15top2name" />
|
|
|
+ <result column="DAY15TOP3NAME" jdbcType="VARCHAR" property="day15top3name" />
|
|
|
+ <result column="MONTH1TOP1NAME" jdbcType="VARCHAR" property="month1top1name" />
|
|
|
+ <result column="MONTH1TOP2NAME" jdbcType="VARCHAR" property="month1top2name" />
|
|
|
+ <result column="MONTH1TOP3NAME" jdbcType="VARCHAR" property="month1top3name" />
|
|
|
+ <result column="MONTH1TOPNUM" jdbcType="DECIMAL" property="month1topnum" />
|
|
|
+ <result column="DAY7TOPNUM" jdbcType="DECIMAL" property="day7topnum" />
|
|
|
+ <result column="DAY15TOPNUM" jdbcType="DECIMAL" property="day15topnum" />
|
|
|
+ <result column="DAY3TOPNUM" jdbcType="DECIMAL" property="day3topnum" />
|
|
|
+ <result column="SYNTHESISTOPNUM" jdbcType="DECIMAL" property="synthesistopnum" />
|
|
|
+ <result column="DAY1TOP1" jdbcType="DECIMAL" property="day1top1" />
|
|
|
+ <result column="DAY1TOP2" jdbcType="DECIMAL" property="day1top2" />
|
|
|
+ <result column="DAY1TOP3" jdbcType="DECIMAL" property="day1top3" />
|
|
|
+ <result column="DAY1TOP1NAME" jdbcType="VARCHAR" property="day1top1name" />
|
|
|
+ <result column="DAY1TOP2NAME" jdbcType="VARCHAR" property="day1top2name" />
|
|
|
+ <result column="DAY1TOP3NAME" jdbcType="VARCHAR" property="day1top3name" />
|
|
|
+ <result column="DAY1TOPNUM" jdbcType="DECIMAL" property="day1topnum" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ ID, RECODEDATE, WPID, WPNAME, WTID, WTNAME, DAY3TOP1, DAY3TOP2, DAY3TOP3, DAY7TOP1,
|
|
|
+ DAY7TOP2, DAY7TOP3, DAY15TOP1, DAY15TOP2, DAY15TOP3, MONTH1TOP1, MONTH1TOP2, MONTH1TOP3,
|
|
|
+ DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME, DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME,
|
|
|
+ DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME, MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME,
|
|
|
+ MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM, DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1, DAY1TOP2,
|
|
|
+ DAY1TOP3, DAY1TOP1NAME, DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from FAILURESTATISTICSMAIN
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from FAILURESTATISTICSMAIN
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from FAILURESTATISTICSMAIN
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from FAILURESTATISTICSMAIN
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into FAILURESTATISTICSMAIN (ID, RECODEDATE, WPID,
|
|
|
+ WPNAME, WTID, WTNAME,
|
|
|
+ DAY3TOP1, DAY3TOP2, DAY3TOP3,
|
|
|
+ DAY7TOP1, DAY7TOP2, DAY7TOP3,
|
|
|
+ DAY15TOP1, DAY15TOP2, DAY15TOP3,
|
|
|
+ MONTH1TOP1, MONTH1TOP2, MONTH1TOP3,
|
|
|
+ DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME,
|
|
|
+ DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME,
|
|
|
+ DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME,
|
|
|
+ MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME,
|
|
|
+ MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM,
|
|
|
+ DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1,
|
|
|
+ DAY1TOP2, DAY1TOP3, DAY1TOP1NAME,
|
|
|
+ DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=DECIMAL}, #{recodedate,jdbcType=TIMESTAMP}, #{wpid,jdbcType=VARCHAR},
|
|
|
+ #{wpname,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wtname,jdbcType=VARCHAR},
|
|
|
+ #{day3top1,jdbcType=DECIMAL}, #{day3top2,jdbcType=DECIMAL}, #{day3top3,jdbcType=DECIMAL},
|
|
|
+ #{day7top1,jdbcType=DECIMAL}, #{day7top2,jdbcType=DECIMAL}, #{day7top3,jdbcType=DECIMAL},
|
|
|
+ #{day15top1,jdbcType=DECIMAL}, #{day15top2,jdbcType=DECIMAL}, #{day15top3,jdbcType=DECIMAL},
|
|
|
+ #{month1top1,jdbcType=DECIMAL}, #{month1top2,jdbcType=DECIMAL}, #{month1top3,jdbcType=DECIMAL},
|
|
|
+ #{day3top1name,jdbcType=VARCHAR}, #{day3top2name,jdbcType=VARCHAR}, #{day3top3name,jdbcType=VARCHAR},
|
|
|
+ #{day7top1name,jdbcType=VARCHAR}, #{day7top2name,jdbcType=VARCHAR}, #{day7top3name,jdbcType=VARCHAR},
|
|
|
+ #{day15top1name,jdbcType=VARCHAR}, #{day15top2name,jdbcType=VARCHAR}, #{day15top3name,jdbcType=VARCHAR},
|
|
|
+ #{month1top1name,jdbcType=VARCHAR}, #{month1top2name,jdbcType=VARCHAR}, #{month1top3name,jdbcType=VARCHAR},
|
|
|
+ #{month1topnum,jdbcType=DECIMAL}, #{day7topnum,jdbcType=DECIMAL}, #{day15topnum,jdbcType=DECIMAL},
|
|
|
+ #{day3topnum,jdbcType=DECIMAL}, #{synthesistopnum,jdbcType=DECIMAL}, #{day1top1,jdbcType=DECIMAL},
|
|
|
+ #{day1top2,jdbcType=DECIMAL}, #{day1top3,jdbcType=DECIMAL}, #{day1top1name,jdbcType=VARCHAR},
|
|
|
+ #{day1top2name,jdbcType=VARCHAR}, #{day1top3name,jdbcType=VARCHAR}, #{day1topnum,jdbcType=DECIMAL}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into FAILURESTATISTICSMAIN
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ ID,
|
|
|
+ </if>
|
|
|
+ <if test="recodedate != null">
|
|
|
+ RECODEDATE,
|
|
|
+ </if>
|
|
|
+ <if test="wpid != null">
|
|
|
+ WPID,
|
|
|
+ </if>
|
|
|
+ <if test="wpname != null">
|
|
|
+ WPNAME,
|
|
|
+ </if>
|
|
|
+ <if test="wtid != null">
|
|
|
+ WTID,
|
|
|
+ </if>
|
|
|
+ <if test="wtname != null">
|
|
|
+ WTNAME,
|
|
|
+ </if>
|
|
|
+ <if test="day3top1 != null">
|
|
|
+ DAY3TOP1,
|
|
|
+ </if>
|
|
|
+ <if test="day3top2 != null">
|
|
|
+ DAY3TOP2,
|
|
|
+ </if>
|
|
|
+ <if test="day3top3 != null">
|
|
|
+ DAY3TOP3,
|
|
|
+ </if>
|
|
|
+ <if test="day7top1 != null">
|
|
|
+ DAY7TOP1,
|
|
|
+ </if>
|
|
|
+ <if test="day7top2 != null">
|
|
|
+ DAY7TOP2,
|
|
|
+ </if>
|
|
|
+ <if test="day7top3 != null">
|
|
|
+ DAY7TOP3,
|
|
|
+ </if>
|
|
|
+ <if test="day15top1 != null">
|
|
|
+ DAY15TOP1,
|
|
|
+ </if>
|
|
|
+ <if test="day15top2 != null">
|
|
|
+ DAY15TOP2,
|
|
|
+ </if>
|
|
|
+ <if test="day15top3 != null">
|
|
|
+ DAY15TOP3,
|
|
|
+ </if>
|
|
|
+ <if test="month1top1 != null">
|
|
|
+ MONTH1TOP1,
|
|
|
+ </if>
|
|
|
+ <if test="month1top2 != null">
|
|
|
+ MONTH1TOP2,
|
|
|
+ </if>
|
|
|
+ <if test="month1top3 != null">
|
|
|
+ MONTH1TOP3,
|
|
|
+ </if>
|
|
|
+ <if test="day3top1name != null">
|
|
|
+ DAY3TOP1NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day3top2name != null">
|
|
|
+ DAY3TOP2NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day3top3name != null">
|
|
|
+ DAY3TOP3NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day7top1name != null">
|
|
|
+ DAY7TOP1NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day7top2name != null">
|
|
|
+ DAY7TOP2NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day7top3name != null">
|
|
|
+ DAY7TOP3NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day15top1name != null">
|
|
|
+ DAY15TOP1NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day15top2name != null">
|
|
|
+ DAY15TOP2NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day15top3name != null">
|
|
|
+ DAY15TOP3NAME,
|
|
|
+ </if>
|
|
|
+ <if test="month1top1name != null">
|
|
|
+ MONTH1TOP1NAME,
|
|
|
+ </if>
|
|
|
+ <if test="month1top2name != null">
|
|
|
+ MONTH1TOP2NAME,
|
|
|
+ </if>
|
|
|
+ <if test="month1top3name != null">
|
|
|
+ MONTH1TOP3NAME,
|
|
|
+ </if>
|
|
|
+ <if test="month1topnum != null">
|
|
|
+ MONTH1TOPNUM,
|
|
|
+ </if>
|
|
|
+ <if test="day7topnum != null">
|
|
|
+ DAY7TOPNUM,
|
|
|
+ </if>
|
|
|
+ <if test="day15topnum != null">
|
|
|
+ DAY15TOPNUM,
|
|
|
+ </if>
|
|
|
+ <if test="day3topnum != null">
|
|
|
+ DAY3TOPNUM,
|
|
|
+ </if>
|
|
|
+ <if test="synthesistopnum != null">
|
|
|
+ SYNTHESISTOPNUM,
|
|
|
+ </if>
|
|
|
+ <if test="day1top1 != null">
|
|
|
+ DAY1TOP1,
|
|
|
+ </if>
|
|
|
+ <if test="day1top2 != null">
|
|
|
+ DAY1TOP2,
|
|
|
+ </if>
|
|
|
+ <if test="day1top3 != null">
|
|
|
+ DAY1TOP3,
|
|
|
+ </if>
|
|
|
+ <if test="day1top1name != null">
|
|
|
+ DAY1TOP1NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day1top2name != null">
|
|
|
+ DAY1TOP2NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day1top3name != null">
|
|
|
+ DAY1TOP3NAME,
|
|
|
+ </if>
|
|
|
+ <if test="day1topnum != null">
|
|
|
+ DAY1TOPNUM,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="recodedate != null">
|
|
|
+ #{recodedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="wpid != null">
|
|
|
+ #{wpid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wpname != null">
|
|
|
+ #{wpname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wtid != null">
|
|
|
+ #{wtid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wtname != null">
|
|
|
+ #{wtname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top1 != null">
|
|
|
+ #{day3top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top2 != null">
|
|
|
+ #{day3top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top3 != null">
|
|
|
+ #{day3top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top1 != null">
|
|
|
+ #{day7top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top2 != null">
|
|
|
+ #{day7top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top3 != null">
|
|
|
+ #{day7top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top1 != null">
|
|
|
+ #{day15top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top2 != null">
|
|
|
+ #{day15top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top3 != null">
|
|
|
+ #{day15top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top1 != null">
|
|
|
+ #{month1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top2 != null">
|
|
|
+ #{month1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top3 != null">
|
|
|
+ #{month1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top1name != null">
|
|
|
+ #{day3top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top2name != null">
|
|
|
+ #{day3top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top3name != null">
|
|
|
+ #{day3top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top1name != null">
|
|
|
+ #{day7top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top2name != null">
|
|
|
+ #{day7top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top3name != null">
|
|
|
+ #{day7top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top1name != null">
|
|
|
+ #{day15top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top2name != null">
|
|
|
+ #{day15top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top3name != null">
|
|
|
+ #{day15top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top1name != null">
|
|
|
+ #{month1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top2name != null">
|
|
|
+ #{month1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top3name != null">
|
|
|
+ #{month1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1topnum != null">
|
|
|
+ #{month1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7topnum != null">
|
|
|
+ #{day7topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15topnum != null">
|
|
|
+ #{day15topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3topnum != null">
|
|
|
+ #{day3topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="synthesistopnum != null">
|
|
|
+ #{synthesistopnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top1 != null">
|
|
|
+ #{day1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top2 != null">
|
|
|
+ #{day1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top3 != null">
|
|
|
+ #{day1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top1name != null">
|
|
|
+ #{day1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1top2name != null">
|
|
|
+ #{day1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1top3name != null">
|
|
|
+ #{day1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1topnum != null">
|
|
|
+ #{day1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from FAILURESTATISTICSMAIN
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update FAILURESTATISTICSMAIN
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.recodedate != null">
|
|
|
+ RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.wpid != null">
|
|
|
+ WPID = #{record.wpid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.wpname != null">
|
|
|
+ WPNAME = #{record.wpname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.wtid != null">
|
|
|
+ WTID = #{record.wtid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.wtname != null">
|
|
|
+ WTNAME = #{record.wtname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top1 != null">
|
|
|
+ DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top2 != null">
|
|
|
+ DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top3 != null">
|
|
|
+ DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top1 != null">
|
|
|
+ DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top2 != null">
|
|
|
+ DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top3 != null">
|
|
|
+ DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top1 != null">
|
|
|
+ DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top2 != null">
|
|
|
+ DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top3 != null">
|
|
|
+ DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top1 != null">
|
|
|
+ MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top2 != null">
|
|
|
+ MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top3 != null">
|
|
|
+ MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top1name != null">
|
|
|
+ DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top2name != null">
|
|
|
+ DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3top3name != null">
|
|
|
+ DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top1name != null">
|
|
|
+ DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top2name != null">
|
|
|
+ DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7top3name != null">
|
|
|
+ DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top1name != null">
|
|
|
+ DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top2name != null">
|
|
|
+ DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15top3name != null">
|
|
|
+ DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top1name != null">
|
|
|
+ MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top2name != null">
|
|
|
+ MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1top3name != null">
|
|
|
+ MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.month1topnum != null">
|
|
|
+ MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day7topnum != null">
|
|
|
+ DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day15topnum != null">
|
|
|
+ DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day3topnum != null">
|
|
|
+ DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.synthesistopnum != null">
|
|
|
+ SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top1 != null">
|
|
|
+ DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top2 != null">
|
|
|
+ DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top3 != null">
|
|
|
+ DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top1name != null">
|
|
|
+ DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top2name != null">
|
|
|
+ DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1top3name != null">
|
|
|
+ DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.day1topnum != null">
|
|
|
+ DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update FAILURESTATISTICSMAIN
|
|
|
+ set ID = #{record.id,jdbcType=VARCHAR},
|
|
|
+ RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
|
|
|
+ WPID = #{record.wpid,jdbcType=VARCHAR},
|
|
|
+ WPNAME = #{record.wpname,jdbcType=VARCHAR},
|
|
|
+ WTID = #{record.wtid,jdbcType=VARCHAR},
|
|
|
+ WTNAME = #{record.wtname,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
|
|
|
+ DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
|
|
|
+ DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
|
|
|
+ DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
|
|
|
+ SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update FAILURESTATISTICSMAIN
|
|
|
+ <set>
|
|
|
+ <if test="recodedate != null">
|
|
|
+ RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="wpid != null">
|
|
|
+ WPID = #{wpid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wpname != null">
|
|
|
+ WPNAME = #{wpname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wtid != null">
|
|
|
+ WTID = #{wtid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wtname != null">
|
|
|
+ WTNAME = #{wtname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top1 != null">
|
|
|
+ DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top2 != null">
|
|
|
+ DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top3 != null">
|
|
|
+ DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top1 != null">
|
|
|
+ DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top2 != null">
|
|
|
+ DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7top3 != null">
|
|
|
+ DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top1 != null">
|
|
|
+ DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top2 != null">
|
|
|
+ DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15top3 != null">
|
|
|
+ DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top1 != null">
|
|
|
+ MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top2 != null">
|
|
|
+ MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="month1top3 != null">
|
|
|
+ MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3top1name != null">
|
|
|
+ DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top2name != null">
|
|
|
+ DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day3top3name != null">
|
|
|
+ DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top1name != null">
|
|
|
+ DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top2name != null">
|
|
|
+ DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day7top3name != null">
|
|
|
+ DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top1name != null">
|
|
|
+ DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top2name != null">
|
|
|
+ DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day15top3name != null">
|
|
|
+ DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top1name != null">
|
|
|
+ MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top2name != null">
|
|
|
+ MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1top3name != null">
|
|
|
+ MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="month1topnum != null">
|
|
|
+ MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day7topnum != null">
|
|
|
+ DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day15topnum != null">
|
|
|
+ DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day3topnum != null">
|
|
|
+ DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="synthesistopnum != null">
|
|
|
+ SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top1 != null">
|
|
|
+ DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top2 != null">
|
|
|
+ DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top3 != null">
|
|
|
+ DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="day1top1name != null">
|
|
|
+ DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1top2name != null">
|
|
|
+ DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1top3name != null">
|
|
|
+ DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="day1topnum != null">
|
|
|
+ DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update FAILURESTATISTICSMAIN
|
|
|
+ set RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
|
|
|
+ WPID = #{wpid,jdbcType=VARCHAR},
|
|
|
+ WPNAME = #{wpname,jdbcType=VARCHAR},
|
|
|
+ WTID = #{wtid,jdbcType=VARCHAR},
|
|
|
+ WTNAME = #{wtname,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
|
|
|
+ DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
|
|
|
+ DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
|
|
|
+ MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
|
|
|
+ DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
|
|
|
+ DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
|
|
|
+ DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
|
|
|
+ DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
|
|
|
+ MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
|
|
|
+ DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
|
|
|
+ DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
|
|
|
+ DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
|
|
|
+ SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
|
|
|
+ DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
|
|
|
+ DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL}
|
|
|
+ where ID = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="listFailure" resultMap="BaseResultMap">
|
|
|
+
|
|
|
+
|
|
|
+ select * from failurestatisticsmain where wpid=#{wpid} and recodedate = to_date(#{date},'yyyy-MM-dd')
|
|
|
+
|
|
|
+ </select>
|
|
|
+</mapper>
|