万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

653 lines
43 KiB

<?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.ruoyi.produce.mapper.TestLogMapper">
<resultMap type="TestLog" id="TestLogResult">
<result property="id" column="id" />
<result property="sn" column="sn" />
<result property="date" column="date" />
<result property="result" column="result" />
<result property="failItem" column="failItem" />
<result property="deltaT1" column="delta_T_1" />
<result property="deltaT2" column="delta_T_2" />
<result property="deltaT3" column="delta_T_3" />
<result property="deltaT4" column="delta_T_4" />
<result property="deltaT5" column="delta_T_5" />
<result property="deltaT6" column="delta_T_6" />
<result property="deltaT7" column="delta_T_7" />
<result property="deltaT8" column="delta_T_8" />
<result property="deltaT9" column="delta_T_9" />
<result property="deltaT10" column="delta_T_10" />
<result property="deltaT11" column="delta_T_11" />
<result property="deltaT12" column="delta_T_12" />
<result property="deltaT13" column="delta_T_13" />
<result property="deltaT14" column="delta_T_14" />
<result property="deltaT15" column="delta_T_15" />
<result property="deltaT16" column="delta_T_16" />
<result property="deltaT17" column="delta_T_17" />
<result property="deltaT18" column="delta_T_18" />
<result property="deltaT19" column="delta_T_19" />
<result property="deltaT20" column="delta_T_20" />
<result property="deltaT21" column="delta_T_21" />
<result property="deltaT22" column="delta_T_22" />
<result property="deltaT23" column="delta_T_23" />
<result property="deltaT24" column="delta_T_24" />
<result property="deltaT25" column="delta_T_25" />
<result property="deltaT26" column="delta_T_26" />
<result property="deltaT27" column="delta_T_27" />
<result property="deltaT28" column="delta_T_28" />
<result property="deltaT29" column="delta_T_29" />
<result property="deltaT30" column="delta_T_30" />
<result property="deltaT31" column="delta_T_31" />
<result property="deltaT32" column="delta_T_32" />
<result property="deltaT33" column="delta_T_33" />
<result property="deltaT34" column="delta_T_34" />
<result property="deltaT35" column="delta_T_35" />
<result property="deltaT36" column="delta_T_36" />
<result property="deltaT37" column="delta_T_37" />
<result property="deltaT38" column="delta_T_38" />
<result property="deltaT39" column="delta_T_39" />
<result property="deltaT40" column="delta_T_40" />
<result property="deltaT41" column="delta_T_41" />
<result property="deltaT42" column="delta_T_42" />
<result property="deltaT43" column="delta_T_43" />
<result property="deltaT44" column="delta_T_44" />
<result property="deltaT45" column="delta_T_45" />
<result property="deltaT46" column="delta_T_46" />
<result property="deltaT47" column="delta_T_47" />
<result property="deltaT48" column="delta_T_48" />
<result property="deltaT49" column="delta_T_49" />
<result property="deltaT50" column="delta_T_50" />
<result property="deltaR1" column="delta_R_1" />
<result property="deltaR2" column="delta_R_2" />
<result property="deltaR3" column="delta_R_3" />
<result property="deltaR4" column="delta_R_4" />
<result property="deltaR5" column="delta_R_5" />
<result property="deltaR6" column="delta_R_6" />
<result property="deltaR7" column="delta_R_7" />
<result property="deltaR8" column="delta_R_8" />
<result property="deltaR9" column="delta_R_9" />
<result property="deltaR10" column="delta_R_10" />
<result property="deltaR11" column="delta_R_11" />
<result property="deltaR12" column="delta_R_12" />
<result property="deltaR13" column="delta_R_13" />
<result property="deltaR14" column="delta_R_14" />
<result property="deltaR15" column="delta_R_15" />
<result property="deltaR16" column="delta_R_16" />
<result property="deltaR17" column="delta_R_17" />
<result property="deltaR18" column="delta_R_18" />
<result property="deltaR19" column="delta_R_19" />
<result property="deltaR20" column="delta_R_20" />
<result property="deltaR21" column="delta_R_21" />
<result property="deltaR22" column="delta_R_22" />
<result property="deltaR23" column="delta_R_23" />
<result property="deltaR24" column="delta_R_24" />
<result property="deltaR25" column="delta_R_25" />
<result property="deltaR26" column="delta_R_26" />
<result property="deltaR27" column="delta_R_27" />
<result property="deltaR28" column="delta_R_28" />
<result property="deltaR29" column="delta_R_29" />
<result property="deltaR30" column="delta_R_30" />
<result property="deltaR31" column="delta_R_31" />
<result property="deltaR32" column="delta_R_32" />
<result property="deltaR33" column="delta_R_33" />
<result property="deltaR34" column="delta_R_34" />
<result property="deltaR35" column="delta_R_35" />
<result property="deltaR36" column="delta_R_36" />
<result property="deltaR37" column="delta_R_37" />
<result property="deltaR38" column="delta_R_38" />
<result property="deltaR39" column="delta_R_39" />
<result property="deltaR40" column="delta_R_40" />
<result property="deltaR41" column="delta_R_41" />
<result property="deltaR42" column="delta_R_42" />
<result property="deltaR43" column="delta_R_43" />
<result property="deltaR44" column="delta_R_44" />
<result property="deltaR45" column="delta_R_45" />
<result property="deltaR46" column="delta_R_46" />
<result property="deltaR47" column="delta_R_47" />
<result property="deltaR48" column="delta_R_48" />
<result property="deltaR49" column="delta_R_49" />
<result property="deltaR50" column="delta_R_50" />
<result property="current1" column="current_1" />
<result property="current2" column="current_2" />
<result property="current3" column="current_3" />
<result property="current4" column="current_4" />
<result property="current5" column="current_5" />
<result property="current6" column="current_6" />
<result property="current7" column="current_7" />
<result property="current8" column="current_8" />
<result property="current9" column="current_9" />
<result property="current10" column="current_10" />
<result property="current11" column="current_11" />
<result property="current12" column="current_12" />
<result property="current13" column="current_13" />
<result property="current14" column="current_14" />
<result property="current15" column="current_15" />
</resultMap>
<sql id="selectTestLogVo">
select id, sn, date, result, failItem, delta_T_1, delta_T_2, delta_T_3, delta_T_4, delta_T_5, delta_T_6, delta_T_7, delta_T_8, delta_T_9, delta_T_10, delta_T_11, delta_T_12, delta_T_13, delta_T_14, delta_T_15, delta_T_16, delta_T_17, delta_T_18, delta_T_19, delta_T_20, delta_T_21, delta_T_22, delta_T_23, delta_T_24, delta_T_25, delta_T_26, delta_T_27, delta_T_28, delta_T_29, delta_T_30, delta_T_31, delta_T_32, delta_T_33, delta_T_34, delta_T_35, delta_T_36, delta_T_37, delta_T_38, delta_T_39, delta_T_40, delta_T_41, delta_T_42, delta_T_43, delta_T_44, delta_T_45, delta_T_46, delta_T_47, delta_T_48, delta_T_49, delta_T_50, delta_R_1, delta_R_2, delta_R_3, delta_R_4, delta_R_5, delta_R_6, delta_R_7, delta_R_8, delta_R_9, delta_R_10, delta_R_11, delta_R_12, delta_R_13, delta_R_14, delta_R_15, delta_R_16, delta_R_17, delta_R_18, delta_R_19, delta_R_20, delta_R_21, delta_R_22, delta_R_23, delta_R_24, delta_R_25, delta_R_26, delta_R_27, delta_R_28, delta_R_29, delta_R_30, delta_R_31, delta_R_32, delta_R_33, delta_R_34, delta_R_35, delta_R_36, delta_R_37, delta_R_38, delta_R_39, delta_R_40, delta_R_41, delta_R_42, delta_R_43, delta_R_44, delta_R_45, delta_R_46, delta_R_47, delta_R_48, delta_R_49, delta_R_50, current_1, current_2, current_3, current_4, current_5, current_6, current_7, current_8, current_9, current_10, current_11, current_12, current_13, current_14, current_15 from test_log
</sql>
<select id="selectTestLogList" parameterType="TestLog" resultMap="TestLogResult">
<include refid="selectTestLogVo"/>
<where>
<if test="sn != null and sn != ''"> and sn like concat('%', #{sn}, '%')</if>
<if test="date != null and date != ''"> and date = #{date}</if>
<if test="result != null and result != ''"> and result = #{result}</if>
<if test="failItem != null and failItem != ''"> and failItem = #{failItem}</if>
<if test="deltaT1 != null and deltaT1 != ''"> and delta_T_1 = #{deltaT1}</if>
<if test="deltaT2 != null and deltaT2 != ''"> and delta_T_2 = #{deltaT2}</if>
<if test="deltaT3 != null and deltaT3 != ''"> and delta_T_3 = #{deltaT3}</if>
<if test="deltaT4 != null and deltaT4 != ''"> and delta_T_4 = #{deltaT4}</if>
<if test="deltaT5 != null and deltaT5 != ''"> and delta_T_5 = #{deltaT5}</if>
<if test="deltaT6 != null and deltaT6 != ''"> and delta_T_6 = #{deltaT6}</if>
<if test="deltaT7 != null and deltaT7 != ''"> and delta_T_7 = #{deltaT7}</if>
<if test="deltaT8 != null and deltaT8 != ''"> and delta_T_8 = #{deltaT8}</if>
<if test="deltaT9 != null and deltaT9 != ''"> and delta_T_9 = #{deltaT9}</if>
<if test="deltaT10 != null and deltaT10 != ''"> and delta_T_10 = #{deltaT10}</if>
<if test="deltaT11 != null and deltaT11 != ''"> and delta_T_11 = #{deltaT11}</if>
<if test="deltaT12 != null and deltaT12 != ''"> and delta_T_12 = #{deltaT12}</if>
<if test="deltaT13 != null and deltaT13 != ''"> and delta_T_13 = #{deltaT13}</if>
<if test="deltaT14 != null and deltaT14 != ''"> and delta_T_14 = #{deltaT14}</if>
<if test="deltaT15 != null and deltaT15 != ''"> and delta_T_15 = #{deltaT15}</if>
<if test="deltaT16 != null and deltaT16 != ''"> and delta_T_16 = #{deltaT16}</if>
<if test="deltaT17 != null and deltaT17 != ''"> and delta_T_17 = #{deltaT17}</if>
<if test="deltaT18 != null and deltaT18 != ''"> and delta_T_18 = #{deltaT18}</if>
<if test="deltaT19 != null and deltaT19 != ''"> and delta_T_19 = #{deltaT19}</if>
<if test="deltaT20 != null and deltaT20 != ''"> and delta_T_20 = #{deltaT20}</if>
<if test="deltaT21 != null and deltaT21 != ''"> and delta_T_21 = #{deltaT21}</if>
<if test="deltaT22 != null and deltaT22 != ''"> and delta_T_22 = #{deltaT22}</if>
<if test="deltaT23 != null and deltaT23 != ''"> and delta_T_23 = #{deltaT23}</if>
<if test="deltaT24 != null and deltaT24 != ''"> and delta_T_24 = #{deltaT24}</if>
<if test="deltaT25 != null and deltaT25 != ''"> and delta_T_25 = #{deltaT25}</if>
<if test="deltaT26 != null and deltaT26 != ''"> and delta_T_26 = #{deltaT26}</if>
<if test="deltaT27 != null and deltaT27 != ''"> and delta_T_27 = #{deltaT27}</if>
<if test="deltaT28 != null and deltaT28 != ''"> and delta_T_28 = #{deltaT28}</if>
<if test="deltaT29 != null and deltaT29 != ''"> and delta_T_29 = #{deltaT29}</if>
<if test="deltaT30 != null and deltaT30 != ''"> and delta_T_30 = #{deltaT30}</if>
<if test="deltaT31 != null and deltaT31 != ''"> and delta_T_31 = #{deltaT31}</if>
<if test="deltaT32 != null and deltaT32 != ''"> and delta_T_32 = #{deltaT32}</if>
<if test="deltaT33 != null and deltaT33 != ''"> and delta_T_33 = #{deltaT33}</if>
<if test="deltaT34 != null and deltaT34 != ''"> and delta_T_34 = #{deltaT34}</if>
<if test="deltaT35 != null and deltaT35 != ''"> and delta_T_35 = #{deltaT35}</if>
<if test="deltaT36 != null and deltaT36 != ''"> and delta_T_36 = #{deltaT36}</if>
<if test="deltaT37 != null and deltaT37 != ''"> and delta_T_37 = #{deltaT37}</if>
<if test="deltaT38 != null and deltaT38 != ''"> and delta_T_38 = #{deltaT38}</if>
<if test="deltaT39 != null and deltaT39 != ''"> and delta_T_39 = #{deltaT39}</if>
<if test="deltaT40 != null and deltaT40 != ''"> and delta_T_40 = #{deltaT40}</if>
<if test="deltaT41 != null and deltaT41 != ''"> and delta_T_41 = #{deltaT41}</if>
<if test="deltaT42 != null and deltaT42 != ''"> and delta_T_42 = #{deltaT42}</if>
<if test="deltaT43 != null and deltaT43 != ''"> and delta_T_43 = #{deltaT43}</if>
<if test="deltaT44 != null and deltaT44 != ''"> and delta_T_44 = #{deltaT44}</if>
<if test="deltaT45 != null and deltaT45 != ''"> and delta_T_45 = #{deltaT45}</if>
<if test="deltaT46 != null and deltaT46 != ''"> and delta_T_46 = #{deltaT46}</if>
<if test="deltaT47 != null and deltaT47 != ''"> and delta_T_47 = #{deltaT47}</if>
<if test="deltaT48 != null and deltaT48 != ''"> and delta_T_48 = #{deltaT48}</if>
<if test="deltaT49 != null and deltaT49 != ''"> and delta_T_49 = #{deltaT49}</if>
<if test="deltaT50 != null and deltaT50 != ''"> and delta_T_50 = #{deltaT50}</if>
<if test="deltaR1 != null and deltaR1 != ''"> and delta_R_1 = #{deltaR1}</if>
<if test="deltaR2 != null and deltaR2 != ''"> and delta_R_2 = #{deltaR2}</if>
<if test="deltaR3 != null and deltaR3 != ''"> and delta_R_3 = #{deltaR3}</if>
<if test="deltaR4 != null and deltaR4 != ''"> and delta_R_4 = #{deltaR4}</if>
<if test="deltaR5 != null and deltaR5 != ''"> and delta_R_5 = #{deltaR5}</if>
<if test="deltaR6 != null and deltaR6 != ''"> and delta_R_6 = #{deltaR6}</if>
<if test="deltaR7 != null and deltaR7 != ''"> and delta_R_7 = #{deltaR7}</if>
<if test="deltaR8 != null and deltaR8 != ''"> and delta_R_8 = #{deltaR8}</if>
<if test="deltaR9 != null and deltaR9 != ''"> and delta_R_9 = #{deltaR9}</if>
<if test="deltaR10 != null and deltaR10 != ''"> and delta_R_10 = #{deltaR10}</if>
<if test="deltaR11 != null and deltaR11 != ''"> and delta_R_11 = #{deltaR11}</if>
<if test="deltaR12 != null and deltaR12 != ''"> and delta_R_12 = #{deltaR12}</if>
<if test="deltaR13 != null and deltaR13 != ''"> and delta_R_13 = #{deltaR13}</if>
<if test="deltaR14 != null and deltaR14 != ''"> and delta_R_14 = #{deltaR14}</if>
<if test="deltaR15 != null and deltaR15 != ''"> and delta_R_15 = #{deltaR15}</if>
<if test="deltaR16 != null and deltaR16 != ''"> and delta_R_16 = #{deltaR16}</if>
<if test="deltaR17 != null and deltaR17 != ''"> and delta_R_17 = #{deltaR17}</if>
<if test="deltaR18 != null and deltaR18 != ''"> and delta_R_18 = #{deltaR18}</if>
<if test="deltaR19 != null and deltaR19 != ''"> and delta_R_19 = #{deltaR19}</if>
<if test="deltaR20 != null and deltaR20 != ''"> and delta_R_20 = #{deltaR20}</if>
<if test="deltaR21 != null and deltaR21 != ''"> and delta_R_21 = #{deltaR21}</if>
<if test="deltaR22 != null and deltaR22 != ''"> and delta_R_22 = #{deltaR22}</if>
<if test="deltaR23 != null and deltaR23 != ''"> and delta_R_23 = #{deltaR23}</if>
<if test="deltaR24 != null and deltaR24 != ''"> and delta_R_24 = #{deltaR24}</if>
<if test="deltaR25 != null and deltaR25 != ''"> and delta_R_25 = #{deltaR25}</if>
<if test="deltaR26 != null and deltaR26 != ''"> and delta_R_26 = #{deltaR26}</if>
<if test="deltaR27 != null and deltaR27 != ''"> and delta_R_27 = #{deltaR27}</if>
<if test="deltaR28 != null and deltaR28 != ''"> and delta_R_28 = #{deltaR28}</if>
<if test="deltaR29 != null and deltaR29 != ''"> and delta_R_29 = #{deltaR29}</if>
<if test="deltaR30 != null and deltaR30 != ''"> and delta_R_30 = #{deltaR30}</if>
<if test="deltaR31 != null and deltaR31 != ''"> and delta_R_31 = #{deltaR31}</if>
<if test="deltaR32 != null and deltaR32 != ''"> and delta_R_32 = #{deltaR32}</if>
<if test="deltaR33 != null and deltaR33 != ''"> and delta_R_33 = #{deltaR33}</if>
<if test="deltaR34 != null and deltaR34 != ''"> and delta_R_34 = #{deltaR34}</if>
<if test="deltaR35 != null and deltaR35 != ''"> and delta_R_35 = #{deltaR35}</if>
<if test="deltaR36 != null and deltaR36 != ''"> and delta_R_36 = #{deltaR36}</if>
<if test="deltaR37 != null and deltaR37 != ''"> and delta_R_37 = #{deltaR37}</if>
<if test="deltaR38 != null and deltaR38 != ''"> and delta_R_38 = #{deltaR38}</if>
<if test="deltaR39 != null and deltaR39 != ''"> and delta_R_39 = #{deltaR39}</if>
<if test="deltaR40 != null and deltaR40 != ''"> and delta_R_40 = #{deltaR40}</if>
<if test="deltaR41 != null and deltaR41 != ''"> and delta_R_41 = #{deltaR41}</if>
<if test="deltaR42 != null and deltaR42 != ''"> and delta_R_42 = #{deltaR42}</if>
<if test="deltaR43 != null and deltaR43 != ''"> and delta_R_43 = #{deltaR43}</if>
<if test="deltaR44 != null and deltaR44 != ''"> and delta_R_44 = #{deltaR44}</if>
<if test="deltaR45 != null and deltaR45 != ''"> and delta_R_45 = #{deltaR45}</if>
<if test="deltaR46 != null and deltaR46 != ''"> and delta_R_46 = #{deltaR46}</if>
<if test="deltaR47 != null and deltaR47 != ''"> and delta_R_47 = #{deltaR47}</if>
<if test="deltaR48 != null and deltaR48 != ''"> and delta_R_48 = #{deltaR48}</if>
<if test="deltaR49 != null and deltaR49 != ''"> and delta_R_49 = #{deltaR49}</if>
<if test="deltaR50 != null and deltaR50 != ''"> and delta_R_50 = #{deltaR50}</if>
<if test="current1 != null and current1 != ''"> and current_1 = #{current1}</if>
<if test="current2 != null and current2 != ''"> and current_2 = #{current2}</if>
<if test="current3 != null and current3 != ''"> and current_3 = #{current3}</if>
<if test="current4 != null and current4 != ''"> and current_4 = #{current4}</if>
<if test="current5 != null and current5 != ''"> and current_5 = #{current5}</if>
<if test="current6 != null and current6 != ''"> and current_6 = #{current6}</if>
<if test="current7 != null and current7 != ''"> and current_7 = #{current7}</if>
<if test="current8 != null and current8 != ''"> and current_8 = #{current8}</if>
<if test="current9 != null and current9 != ''"> and current_9 = #{current9}</if>
<if test="current10 != null and current10 != ''"> and current_10 = #{current10}</if>
<if test="current11 != null and current11 != ''"> and current_11 = #{current11}</if>
<if test="current12 != null and current12 != ''"> and current_12 = #{current12}</if>
<if test="current13 != null and current13 != ''"> and current_13 = #{current13}</if>
<if test="current14 != null and current14 != ''"> and current_14 = #{current14}</if>
<if test="current15 != null and current15 != ''"> and current_15 = #{current15}</if>
</where>
Order BY id DESC
</select>
<select id="selectTestLogById" parameterType="Integer" resultMap="TestLogResult">
<include refid="selectTestLogVo"/>
where id = #{id}
</select>
<insert id="insertTestLog" parameterType="TestLog" useGeneratedKeys="true" keyProperty="id">
insert into test_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sn != null and sn != ''">sn,</if>
<if test="date != null">date,</if>
<if test="result != null">result,</if>
<if test="failItem != null">failItem,</if>
<if test="deltaT1 != null">delta_T_1,</if>
<if test="deltaT2 != null">delta_T_2,</if>
<if test="deltaT3 != null">delta_T_3,</if>
<if test="deltaT4 != null">delta_T_4,</if>
<if test="deltaT5 != null">delta_T_5,</if>
<if test="deltaT6 != null">delta_T_6,</if>
<if test="deltaT7 != null">delta_T_7,</if>
<if test="deltaT8 != null">delta_T_8,</if>
<if test="deltaT9 != null">delta_T_9,</if>
<if test="deltaT10 != null">delta_T_10,</if>
<if test="deltaT11 != null">delta_T_11,</if>
<if test="deltaT12 != null">delta_T_12,</if>
<if test="deltaT13 != null">delta_T_13,</if>
<if test="deltaT14 != null">delta_T_14,</if>
<if test="deltaT15 != null">delta_T_15,</if>
<if test="deltaT16 != null">delta_T_16,</if>
<if test="deltaT17 != null">delta_T_17,</if>
<if test="deltaT18 != null">delta_T_18,</if>
<if test="deltaT19 != null">delta_T_19,</if>
<if test="deltaT20 != null">delta_T_20,</if>
<if test="deltaT21 != null">delta_T_21,</if>
<if test="deltaT22 != null">delta_T_22,</if>
<if test="deltaT23 != null">delta_T_23,</if>
<if test="deltaT24 != null">delta_T_24,</if>
<if test="deltaT25 != null">delta_T_25,</if>
<if test="deltaT26 != null">delta_T_26,</if>
<if test="deltaT27 != null">delta_T_27,</if>
<if test="deltaT28 != null">delta_T_28,</if>
<if test="deltaT29 != null">delta_T_29,</if>
<if test="deltaT30 != null">delta_T_30,</if>
<if test="deltaT31 != null">delta_T_31,</if>
<if test="deltaT32 != null">delta_T_32,</if>
<if test="deltaT33 != null">delta_T_33,</if>
<if test="deltaT34 != null">delta_T_34,</if>
<if test="deltaT35 != null">delta_T_35,</if>
<if test="deltaT36 != null">delta_T_36,</if>
<if test="deltaT37 != null">delta_T_37,</if>
<if test="deltaT38 != null">delta_T_38,</if>
<if test="deltaT39 != null">delta_T_39,</if>
<if test="deltaT40 != null">delta_T_40,</if>
<if test="deltaT41 != null">delta_T_41,</if>
<if test="deltaT42 != null">delta_T_42,</if>
<if test="deltaT43 != null">delta_T_43,</if>
<if test="deltaT44 != null">delta_T_44,</if>
<if test="deltaT45 != null">delta_T_45,</if>
<if test="deltaT46 != null">delta_T_46,</if>
<if test="deltaT47 != null">delta_T_47,</if>
<if test="deltaT48 != null">delta_T_48,</if>
<if test="deltaT49 != null">delta_T_49,</if>
<if test="deltaT50 != null">delta_T_50,</if>
<if test="deltaR1 != null">delta_R_1,</if>
<if test="deltaR2 != null">delta_R_2,</if>
<if test="deltaR3 != null">delta_R_3,</if>
<if test="deltaR4 != null">delta_R_4,</if>
<if test="deltaR5 != null">delta_R_5,</if>
<if test="deltaR6 != null">delta_R_6,</if>
<if test="deltaR7 != null">delta_R_7,</if>
<if test="deltaR8 != null">delta_R_8,</if>
<if test="deltaR9 != null">delta_R_9,</if>
<if test="deltaR10 != null">delta_R_10,</if>
<if test="deltaR11 != null">delta_R_11,</if>
<if test="deltaR12 != null">delta_R_12,</if>
<if test="deltaR13 != null">delta_R_13,</if>
<if test="deltaR14 != null">delta_R_14,</if>
<if test="deltaR15 != null">delta_R_15,</if>
<if test="deltaR16 != null">delta_R_16,</if>
<if test="deltaR17 != null">delta_R_17,</if>
<if test="deltaR18 != null">delta_R_18,</if>
<if test="deltaR19 != null">delta_R_19,</if>
<if test="deltaR20 != null">delta_R_20,</if>
<if test="deltaR21 != null">delta_R_21,</if>
<if test="deltaR22 != null">delta_R_22,</if>
<if test="deltaR23 != null">delta_R_23,</if>
<if test="deltaR24 != null">delta_R_24,</if>
<if test="deltaR25 != null">delta_R_25,</if>
<if test="deltaR26 != null">delta_R_26,</if>
<if test="deltaR27 != null">delta_R_27,</if>
<if test="deltaR28 != null">delta_R_28,</if>
<if test="deltaR29 != null">delta_R_29,</if>
<if test="deltaR30 != null">delta_R_30,</if>
<if test="deltaR31 != null">delta_R_31,</if>
<if test="deltaR32 != null">delta_R_32,</if>
<if test="deltaR33 != null">delta_R_33,</if>
<if test="deltaR34 != null">delta_R_34,</if>
<if test="deltaR35 != null">delta_R_35,</if>
<if test="deltaR36 != null">delta_R_36,</if>
<if test="deltaR37 != null">delta_R_37,</if>
<if test="deltaR38 != null">delta_R_38,</if>
<if test="deltaR39 != null">delta_R_39,</if>
<if test="deltaR40 != null">delta_R_40,</if>
<if test="deltaR41 != null">delta_R_41,</if>
<if test="deltaR42 != null">delta_R_42,</if>
<if test="deltaR43 != null">delta_R_43,</if>
<if test="deltaR44 != null">delta_R_44,</if>
<if test="deltaR45 != null">delta_R_45,</if>
<if test="deltaR46 != null">delta_R_46,</if>
<if test="deltaR47 != null">delta_R_47,</if>
<if test="deltaR48 != null">delta_R_48,</if>
<if test="deltaR49 != null">delta_R_49,</if>
<if test="deltaR50 != null">delta_R_50,</if>
<if test="current1 != null">current_1,</if>
<if test="current2 != null">current_2,</if>
<if test="current3 != null">current_3,</if>
<if test="current4 != null">current_4,</if>
<if test="current5 != null">current_5,</if>
<if test="current6 != null">current_6,</if>
<if test="current7 != null">current_7,</if>
<if test="current8 != null">current_8,</if>
<if test="current9 != null">current_9,</if>
<if test="current10 != null">current_10,</if>
<if test="current11 != null">current_11,</if>
<if test="current12 != null">current_12,</if>
<if test="current13 != null">current_13,</if>
<if test="current14 != null">current_14,</if>
<if test="current15 != null">current_15,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sn != null and sn != ''">#{sn},</if>
<if test="date != null">#{date},</if>
<if test="result != null">#{result},</if>
<if test="failItem != null">#{failItem},</if>
<if test="deltaT1 != null">#{deltaT1},</if>
<if test="deltaT2 != null">#{deltaT2},</if>
<if test="deltaT3 != null">#{deltaT3},</if>
<if test="deltaT4 != null">#{deltaT4},</if>
<if test="deltaT5 != null">#{deltaT5},</if>
<if test="deltaT6 != null">#{deltaT6},</if>
<if test="deltaT7 != null">#{deltaT7},</if>
<if test="deltaT8 != null">#{deltaT8},</if>
<if test="deltaT9 != null">#{deltaT9},</if>
<if test="deltaT10 != null">#{deltaT10},</if>
<if test="deltaT11 != null">#{deltaT11},</if>
<if test="deltaT12 != null">#{deltaT12},</if>
<if test="deltaT13 != null">#{deltaT13},</if>
<if test="deltaT14 != null">#{deltaT14},</if>
<if test="deltaT15 != null">#{deltaT15},</if>
<if test="deltaT16 != null">#{deltaT16},</if>
<if test="deltaT17 != null">#{deltaT17},</if>
<if test="deltaT18 != null">#{deltaT18},</if>
<if test="deltaT19 != null">#{deltaT19},</if>
<if test="deltaT20 != null">#{deltaT20},</if>
<if test="deltaT21 != null">#{deltaT21},</if>
<if test="deltaT22 != null">#{deltaT22},</if>
<if test="deltaT23 != null">#{deltaT23},</if>
<if test="deltaT24 != null">#{deltaT24},</if>
<if test="deltaT25 != null">#{deltaT25},</if>
<if test="deltaT26 != null">#{deltaT26},</if>
<if test="deltaT27 != null">#{deltaT27},</if>
<if test="deltaT28 != null">#{deltaT28},</if>
<if test="deltaT29 != null">#{deltaT29},</if>
<if test="deltaT30 != null">#{deltaT30},</if>
<if test="deltaT31 != null">#{deltaT31},</if>
<if test="deltaT32 != null">#{deltaT32},</if>
<if test="deltaT33 != null">#{deltaT33},</if>
<if test="deltaT34 != null">#{deltaT34},</if>
<if test="deltaT35 != null">#{deltaT35},</if>
<if test="deltaT36 != null">#{deltaT36},</if>
<if test="deltaT37 != null">#{deltaT37},</if>
<if test="deltaT38 != null">#{deltaT38},</if>
<if test="deltaT39 != null">#{deltaT39},</if>
<if test="deltaT40 != null">#{deltaT40},</if>
<if test="deltaT41 != null">#{deltaT41},</if>
<if test="deltaT42 != null">#{deltaT42},</if>
<if test="deltaT43 != null">#{deltaT43},</if>
<if test="deltaT44 != null">#{deltaT44},</if>
<if test="deltaT45 != null">#{deltaT45},</if>
<if test="deltaT46 != null">#{deltaT46},</if>
<if test="deltaT47 != null">#{deltaT47},</if>
<if test="deltaT48 != null">#{deltaT48},</if>
<if test="deltaT49 != null">#{deltaT49},</if>
<if test="deltaT50 != null">#{deltaT50},</if>
<if test="deltaR1 != null">#{deltaR1},</if>
<if test="deltaR2 != null">#{deltaR2},</if>
<if test="deltaR3 != null">#{deltaR3},</if>
<if test="deltaR4 != null">#{deltaR4},</if>
<if test="deltaR5 != null">#{deltaR5},</if>
<if test="deltaR6 != null">#{deltaR6},</if>
<if test="deltaR7 != null">#{deltaR7},</if>
<if test="deltaR8 != null">#{deltaR8},</if>
<if test="deltaR9 != null">#{deltaR9},</if>
<if test="deltaR10 != null">#{deltaR10},</if>
<if test="deltaR11 != null">#{deltaR11},</if>
<if test="deltaR12 != null">#{deltaR12},</if>
<if test="deltaR13 != null">#{deltaR13},</if>
<if test="deltaR14 != null">#{deltaR14},</if>
<if test="deltaR15 != null">#{deltaR15},</if>
<if test="deltaR16 != null">#{deltaR16},</if>
<if test="deltaR17 != null">#{deltaR17},</if>
<if test="deltaR18 != null">#{deltaR18},</if>
<if test="deltaR19 != null">#{deltaR19},</if>
<if test="deltaR20 != null">#{deltaR20},</if>
<if test="deltaR21 != null">#{deltaR21},</if>
<if test="deltaR22 != null">#{deltaR22},</if>
<if test="deltaR23 != null">#{deltaR23},</if>
<if test="deltaR24 != null">#{deltaR24},</if>
<if test="deltaR25 != null">#{deltaR25},</if>
<if test="deltaR26 != null">#{deltaR26},</if>
<if test="deltaR27 != null">#{deltaR27},</if>
<if test="deltaR28 != null">#{deltaR28},</if>
<if test="deltaR29 != null">#{deltaR29},</if>
<if test="deltaR30 != null">#{deltaR30},</if>
<if test="deltaR31 != null">#{deltaR31},</if>
<if test="deltaR32 != null">#{deltaR32},</if>
<if test="deltaR33 != null">#{deltaR33},</if>
<if test="deltaR34 != null">#{deltaR34},</if>
<if test="deltaR35 != null">#{deltaR35},</if>
<if test="deltaR36 != null">#{deltaR36},</if>
<if test="deltaR37 != null">#{deltaR37},</if>
<if test="deltaR38 != null">#{deltaR38},</if>
<if test="deltaR39 != null">#{deltaR39},</if>
<if test="deltaR40 != null">#{deltaR40},</if>
<if test="deltaR41 != null">#{deltaR41},</if>
<if test="deltaR42 != null">#{deltaR42},</if>
<if test="deltaR43 != null">#{deltaR43},</if>
<if test="deltaR44 != null">#{deltaR44},</if>
<if test="deltaR45 != null">#{deltaR45},</if>
<if test="deltaR46 != null">#{deltaR46},</if>
<if test="deltaR47 != null">#{deltaR47},</if>
<if test="deltaR48 != null">#{deltaR48},</if>
<if test="deltaR49 != null">#{deltaR49},</if>
<if test="deltaR50 != null">#{deltaR50},</if>
<if test="current1 != null">#{current1},</if>
<if test="current2 != null">#{current2},</if>
<if test="current3 != null">#{current3},</if>
<if test="current4 != null">#{current4},</if>
<if test="current5 != null">#{current5},</if>
<if test="current6 != null">#{current6},</if>
<if test="current7 != null">#{current7},</if>
<if test="current8 != null">#{current8},</if>
<if test="current9 != null">#{current9},</if>
<if test="current10 != null">#{current10},</if>
<if test="current11 != null">#{current11},</if>
<if test="current12 != null">#{current12},</if>
<if test="current13 != null">#{current13},</if>
<if test="current14 != null">#{current14},</if>
<if test="current15 != null">#{current15},</if>
</trim>
</insert>
<update id="updateTestLog" parameterType="TestLog">
update test_log
<trim prefix="SET" suffixOverrides=",">
<if test="sn != null and sn != ''">sn = #{sn},</if>
<if test="date != null">date = #{date},</if>
<if test="result != null">result = #{result},</if>
<if test="failItem != null">failItem = #{failItem},</if>
<if test="deltaT1 != null">delta_T_1 = #{deltaT1},</if>
<if test="deltaT2 != null">delta_T_2 = #{deltaT2},</if>
<if test="deltaT3 != null">delta_T_3 = #{deltaT3},</if>
<if test="deltaT4 != null">delta_T_4 = #{deltaT4},</if>
<if test="deltaT5 != null">delta_T_5 = #{deltaT5},</if>
<if test="deltaT6 != null">delta_T_6 = #{deltaT6},</if>
<if test="deltaT7 != null">delta_T_7 = #{deltaT7},</if>
<if test="deltaT8 != null">delta_T_8 = #{deltaT8},</if>
<if test="deltaT9 != null">delta_T_9 = #{deltaT9},</if>
<if test="deltaT10 != null">delta_T_10 = #{deltaT10},</if>
<if test="deltaT11 != null">delta_T_11 = #{deltaT11},</if>
<if test="deltaT12 != null">delta_T_12 = #{deltaT12},</if>
<if test="deltaT13 != null">delta_T_13 = #{deltaT13},</if>
<if test="deltaT14 != null">delta_T_14 = #{deltaT14},</if>
<if test="deltaT15 != null">delta_T_15 = #{deltaT15},</if>
<if test="deltaT16 != null">delta_T_16 = #{deltaT16},</if>
<if test="deltaT17 != null">delta_T_17 = #{deltaT17},</if>
<if test="deltaT18 != null">delta_T_18 = #{deltaT18},</if>
<if test="deltaT19 != null">delta_T_19 = #{deltaT19},</if>
<if test="deltaT20 != null">delta_T_20 = #{deltaT20},</if>
<if test="deltaT21 != null">delta_T_21 = #{deltaT21},</if>
<if test="deltaT22 != null">delta_T_22 = #{deltaT22},</if>
<if test="deltaT23 != null">delta_T_23 = #{deltaT23},</if>
<if test="deltaT24 != null">delta_T_24 = #{deltaT24},</if>
<if test="deltaT25 != null">delta_T_25 = #{deltaT25},</if>
<if test="deltaT26 != null">delta_T_26 = #{deltaT26},</if>
<if test="deltaT27 != null">delta_T_27 = #{deltaT27},</if>
<if test="deltaT28 != null">delta_T_28 = #{deltaT28},</if>
<if test="deltaT29 != null">delta_T_29 = #{deltaT29},</if>
<if test="deltaT30 != null">delta_T_30 = #{deltaT30},</if>
<if test="deltaT31 != null">delta_T_31 = #{deltaT31},</if>
<if test="deltaT32 != null">delta_T_32 = #{deltaT32},</if>
<if test="deltaT33 != null">delta_T_33 = #{deltaT33},</if>
<if test="deltaT34 != null">delta_T_34 = #{deltaT34},</if>
<if test="deltaT35 != null">delta_T_35 = #{deltaT35},</if>
<if test="deltaT36 != null">delta_T_36 = #{deltaT36},</if>
<if test="deltaT37 != null">delta_T_37 = #{deltaT37},</if>
<if test="deltaT38 != null">delta_T_38 = #{deltaT38},</if>
<if test="deltaT39 != null">delta_T_39 = #{deltaT39},</if>
<if test="deltaT40 != null">delta_T_40 = #{deltaT40},</if>
<if test="deltaT41 != null">delta_T_41 = #{deltaT41},</if>
<if test="deltaT42 != null">delta_T_42 = #{deltaT42},</if>
<if test="deltaT43 != null">delta_T_43 = #{deltaT43},</if>
<if test="deltaT44 != null">delta_T_44 = #{deltaT44},</if>
<if test="deltaT45 != null">delta_T_45 = #{deltaT45},</if>
<if test="deltaT46 != null">delta_T_46 = #{deltaT46},</if>
<if test="deltaT47 != null">delta_T_47 = #{deltaT47},</if>
<if test="deltaT48 != null">delta_T_48 = #{deltaT48},</if>
<if test="deltaT49 != null">delta_T_49 = #{deltaT49},</if>
<if test="deltaT50 != null">delta_T_50 = #{deltaT50},</if>
<if test="deltaR1 != null">delta_R_1 = #{deltaR1},</if>
<if test="deltaR2 != null">delta_R_2 = #{deltaR2},</if>
<if test="deltaR3 != null">delta_R_3 = #{deltaR3},</if>
<if test="deltaR4 != null">delta_R_4 = #{deltaR4},</if>
<if test="deltaR5 != null">delta_R_5 = #{deltaR5},</if>
<if test="deltaR6 != null">delta_R_6 = #{deltaR6},</if>
<if test="deltaR7 != null">delta_R_7 = #{deltaR7},</if>
<if test="deltaR8 != null">delta_R_8 = #{deltaR8},</if>
<if test="deltaR9 != null">delta_R_9 = #{deltaR9},</if>
<if test="deltaR10 != null">delta_R_10 = #{deltaR10},</if>
<if test="deltaR11 != null">delta_R_11 = #{deltaR11},</if>
<if test="deltaR12 != null">delta_R_12 = #{deltaR12},</if>
<if test="deltaR13 != null">delta_R_13 = #{deltaR13},</if>
<if test="deltaR14 != null">delta_R_14 = #{deltaR14},</if>
<if test="deltaR15 != null">delta_R_15 = #{deltaR15},</if>
<if test="deltaR16 != null">delta_R_16 = #{deltaR16},</if>
<if test="deltaR17 != null">delta_R_17 = #{deltaR17},</if>
<if test="deltaR18 != null">delta_R_18 = #{deltaR18},</if>
<if test="deltaR19 != null">delta_R_19 = #{deltaR19},</if>
<if test="deltaR20 != null">delta_R_20 = #{deltaR20},</if>
<if test="deltaR21 != null">delta_R_21 = #{deltaR21},</if>
<if test="deltaR22 != null">delta_R_22 = #{deltaR22},</if>
<if test="deltaR23 != null">delta_R_23 = #{deltaR23},</if>
<if test="deltaR24 != null">delta_R_24 = #{deltaR24},</if>
<if test="deltaR25 != null">delta_R_25 = #{deltaR25},</if>
<if test="deltaR26 != null">delta_R_26 = #{deltaR26},</if>
<if test="deltaR27 != null">delta_R_27 = #{deltaR27},</if>
<if test="deltaR28 != null">delta_R_28 = #{deltaR28},</if>
<if test="deltaR29 != null">delta_R_29 = #{deltaR29},</if>
<if test="deltaR30 != null">delta_R_30 = #{deltaR30},</if>
<if test="deltaR31 != null">delta_R_31 = #{deltaR31},</if>
<if test="deltaR32 != null">delta_R_32 = #{deltaR32},</if>
<if test="deltaR33 != null">delta_R_33 = #{deltaR33},</if>
<if test="deltaR34 != null">delta_R_34 = #{deltaR34},</if>
<if test="deltaR35 != null">delta_R_35 = #{deltaR35},</if>
<if test="deltaR36 != null">delta_R_36 = #{deltaR36},</if>
<if test="deltaR37 != null">delta_R_37 = #{deltaR37},</if>
<if test="deltaR38 != null">delta_R_38 = #{deltaR38},</if>
<if test="deltaR39 != null">delta_R_39 = #{deltaR39},</if>
<if test="deltaR40 != null">delta_R_40 = #{deltaR40},</if>
<if test="deltaR41 != null">delta_R_41 = #{deltaR41},</if>
<if test="deltaR42 != null">delta_R_42 = #{deltaR42},</if>
<if test="deltaR43 != null">delta_R_43 = #{deltaR43},</if>
<if test="deltaR44 != null">delta_R_44 = #{deltaR44},</if>
<if test="deltaR45 != null">delta_R_45 = #{deltaR45},</if>
<if test="deltaR46 != null">delta_R_46 = #{deltaR46},</if>
<if test="deltaR47 != null">delta_R_47 = #{deltaR47},</if>
<if test="deltaR48 != null">delta_R_48 = #{deltaR48},</if>
<if test="deltaR49 != null">delta_R_49 = #{deltaR49},</if>
<if test="deltaR50 != null">delta_R_50 = #{deltaR50},</if>
<if test="current1 != null">current_1 = #{current1},</if>
<if test="current2 != null">current_2 = #{current2},</if>
<if test="current3 != null">current_3 = #{current3},</if>
<if test="current4 != null">current_4 = #{current4},</if>
<if test="current5 != null">current_5 = #{current5},</if>
<if test="current6 != null">current_6 = #{current6},</if>
<if test="current7 != null">current_7 = #{current7},</if>
<if test="current8 != null">current_8 = #{current8},</if>
<if test="current9 != null">current_9 = #{current9},</if>
<if test="current10 != null">current_10 = #{current10},</if>
<if test="current11 != null">current_11 = #{current11},</if>
<if test="current12 != null">current_12 = #{current12},</if>
<if test="current13 != null">current_13 = #{current13},</if>
<if test="current14 != null">current_14 = #{current14},</if>
<if test="current15 != null">current_15 = #{current15},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTestLogById" parameterType="Integer">
delete from test_log where id = #{id}
</delete>
<delete id="deleteTestLogByIds" parameterType="String">
delete from test_log where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>