123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <?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.biz.mapper.TwinFormulaInfoMapper">
- <resultMap type="TwinFormulaInfo" id="TwinFormulaInfoResult">
- <result property="specInfoId" column="SPEC_INFO_ID" />
- <result property="deviceId" column="DEVICE_ID" />
- <result property="fd1" column="FD1" />
- <result property="fd2" column="FD2" />
- <result property="fd3" column="FD3" />
- <result property="fd4" column="FD4" />
- <result property="fd5" column="FD5" />
- <result property="fd6" column="FD6" />
- <result property="fd7" column="FD7" />
- <result property="fd8" column="FD8" />
- <result property="fd9" column="FD9" />
- <result property="fd10" column="FD10" />
- <result property="fd11" column="FD11" />
- <result property="fd12" column="FD12" />
- <result property="fd13" column="FD13" />
- <result property="fd14" column="FD14" />
- <result property="fd15" column="FD15" />
- <result property="fd16" column="FD16" />
- <result property="fd17" column="FD17" />
- <result property="fd18" column="FD18" />
- <result property="fd19" column="FD19" />
- <result property="fd20" column="FD20" />
- <result property="fd21" column="FD21" />
- <result property="fd22" column="FD22" />
- <result property="fd23" column="FD23" />
- <result property="fd24" column="FD24" />
- <result property="fd25" column="FD25" />
- <result property="cd10" column="CD10" />
- <result property="cd11" column="CD11" />
- <result property="cd12" column="CD12" />
- <result property="cd13" column="CD13" />
- <result property="cd14" column="CD14" />
- <result property="cd15" column="CD15" />
- <result property="cd16" column="CD16" />
- <result property="cd17" column="CD17" />
- <result property="cd18" column="CD18" />
- <result property="cd19" column="CD19" />
- <result property="remark" column="REMARK" />
- </resultMap>
- <sql id="selectTwinFormulaInfoVo">
- select SPEC_INFO_ID, DEVICE_ID, FD1, FD2, FD3, FD4, FD5, FD6, FD7, FD8, FD9, FD10, FD11, FD12, FD13, FD14, FD15, FD16, FD17, FD18, FD19, FD20, FD21, FD22, FD23, FD24, FD25, CD10, CD11, CD12, CD13, CD14, CD15, CD16, CD17, CD18, CD19, REMARK from twin_formula_info
- </sql>
- <select id="selectTwinFormulaInfoList" parameterType="TwinFormulaInfo" resultMap="TwinFormulaInfoResult">
- <include refid="selectTwinFormulaInfoVo"/>
- <where>
- <if test="deviceId != null "> and DEVICE_ID = #{deviceId}</if>
- <if test="fd1 != null "> and FD1 = #{fd1}</if>
- <if test="fd2 != null "> and FD2 = #{fd2}</if>
- <if test="fd3 != null "> and FD3 = #{fd3}</if>
- <if test="fd4 != null "> and FD4 = #{fd4}</if>
- <if test="fd5 != null "> and FD5 = #{fd5}</if>
- <if test="fd6 != null "> and FD6 = #{fd6}</if>
- <if test="fd7 != null "> and FD7 = #{fd7}</if>
- <if test="fd8 != null "> and FD8 = #{fd8}</if>
- <if test="fd9 != null "> and FD9 = #{fd9}</if>
- <if test="fd10 != null "> and FD10 = #{fd10}</if>
- <if test="fd11 != null "> and FD11 = #{fd11}</if>
- <if test="fd12 != null "> and FD12 = #{fd12}</if>
- <if test="fd13 != null "> and FD13 = #{fd13}</if>
- <if test="fd14 != null "> and FD14 = #{fd14}</if>
- <if test="fd15 != null "> and FD15 = #{fd15}</if>
- <if test="fd16 != null "> and FD16 = #{fd16}</if>
- <if test="fd17 != null "> and FD17 = #{fd17}</if>
- <if test="fd18 != null "> and FD18 = #{fd18}</if>
- <if test="fd19 != null "> and FD19 = #{fd19}</if>
- <if test="fd20 != null "> and FD20 = #{fd20}</if>
- <if test="fd21 != null "> and FD21 = #{fd21}</if>
- <if test="fd22 != null "> and FD22 = #{fd22}</if>
- <if test="fd23 != null "> and FD23 = #{fd23}</if>
- <if test="fd24 != null "> and FD24 = #{fd24}</if>
- <if test="fd25 != null "> and FD25 = #{fd25}</if>
- <if test="cd10 != null "> and CD10 = #{cd10}</if>
- <if test="cd11 != null "> and CD11 = #{cd11}</if>
- <if test="cd12 != null "> and CD12 = #{cd12}</if>
- <if test="cd13 != null "> and CD13 = #{cd13}</if>
- <if test="cd14 != null "> and CD14 = #{cd14}</if>
- <if test="cd15 != null "> and CD15 = #{cd15}</if>
- <if test="cd16 != null "> and CD16 = #{cd16}</if>
- <if test="cd17 != null "> and CD17 = #{cd17}</if>
- <if test="cd18 != null "> and CD18 = #{cd18}</if>
- <if test="cd19 != null "> and CD19 = #{cd19}</if>
- <if test="remark != null and remark != ''"> and REMARK = #{remark}</if>
- </where>
- </select>
- <select id="selectTwinFormulaInfoBySpecInfoId" parameterType="Long" resultMap="TwinFormulaInfoResult">
- <include refid="selectTwinFormulaInfoVo"/>
- where SPEC_INFO_ID = #{specInfoId}
- </select>
- <insert id="insertTwinFormulaInfo" parameterType="TwinFormulaInfo" useGeneratedKeys="true" keyProperty="specInfoId">
- insert into twin_formula_info
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="specInfoId != null">SPEC_INFO_ID,</if>
- <if test="deviceId != null">DEVICE_ID,</if>
- <if test="fd1 != null">FD1,</if>
- <if test="fd2 != null">FD2,</if>
- <if test="fd3 != null">FD3,</if>
- <if test="fd4 != null">FD4,</if>
- <if test="fd5 != null">FD5,</if>
- <if test="fd6 != null">FD6,</if>
- <if test="fd7 != null">FD7,</if>
- <if test="fd8 != null">FD8,</if>
- <if test="fd9 != null">FD9,</if>
- <if test="fd10 != null">FD10,</if>
- <if test="fd11 != null">FD11,</if>
- <if test="fd12 != null">FD12,</if>
- <if test="fd13 != null">FD13,</if>
- <if test="fd14 != null">FD14,</if>
- <if test="fd15 != null">FD15,</if>
- <if test="fd16 != null">FD16,</if>
- <if test="fd17 != null">FD17,</if>
- <if test="fd18 != null">FD18,</if>
- <if test="fd19 != null">FD19,</if>
- <if test="fd20 != null">FD20,</if>
- <if test="fd21 != null">FD21,</if>
- <if test="fd22 != null">FD22,</if>
- <if test="fd23 != null">FD23,</if>
- <if test="fd24 != null">FD24,</if>
- <if test="fd25 != null">FD25,</if>
- <if test="cd10 != null">CD10,</if>
- <if test="cd11 != null">CD11,</if>
- <if test="cd12 != null">CD12,</if>
- <if test="cd13 != null">CD13,</if>
- <if test="cd14 != null">CD14,</if>
- <if test="cd15 != null">CD15,</if>
- <if test="cd16 != null">CD16,</if>
- <if test="cd17 != null">CD17,</if>
- <if test="cd18 != null">CD18,</if>
- <if test="cd19 != null">CD19,</if>
- <if test="remark != null">REMARK,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="specInfoId != null">#{specInfoId},</if>
- <if test="deviceId != null">#{deviceId},</if>
- <if test="fd1 != null">#{fd1},</if>
- <if test="fd2 != null">#{fd2},</if>
- <if test="fd3 != null">#{fd3},</if>
- <if test="fd4 != null">#{fd4},</if>
- <if test="fd5 != null">#{fd5},</if>
- <if test="fd6 != null">#{fd6},</if>
- <if test="fd7 != null">#{fd7},</if>
- <if test="fd8 != null">#{fd8},</if>
- <if test="fd9 != null">#{fd9},</if>
- <if test="fd10 != null">#{fd10},</if>
- <if test="fd11 != null">#{fd11},</if>
- <if test="fd12 != null">#{fd12},</if>
- <if test="fd13 != null">#{fd13},</if>
- <if test="fd14 != null">#{fd14},</if>
- <if test="fd15 != null">#{fd15},</if>
- <if test="fd16 != null">#{fd16},</if>
- <if test="fd17 != null">#{fd17},</if>
- <if test="fd18 != null">#{fd18},</if>
- <if test="fd19 != null">#{fd19},</if>
- <if test="fd20 != null">#{fd20},</if>
- <if test="fd21 != null">#{fd21},</if>
- <if test="fd22 != null">#{fd22},</if>
- <if test="fd23 != null">#{fd23},</if>
- <if test="fd24 != null">#{fd24},</if>
- <if test="fd25 != null">#{fd25},</if>
- <if test="cd10 != null">#{cd10},</if>
- <if test="cd11 != null">#{cd11},</if>
- <if test="cd12 != null">#{cd12},</if>
- <if test="cd13 != null">#{cd13},</if>
- <if test="cd14 != null">#{cd14},</if>
- <if test="cd15 != null">#{cd15},</if>
- <if test="cd16 != null">#{cd16},</if>
- <if test="cd17 != null">#{cd17},</if>
- <if test="cd18 != null">#{cd18},</if>
- <if test="cd19 != null">#{cd19},</if>
- <if test="remark != null">#{remark},</if>
- </trim>
- </insert>
- <update id="updateTwinFormulaInfo" parameterType="TwinFormulaInfo">
- update twin_formula_info
- <trim prefix="SET" suffixOverrides=",">
- <if test="deviceId != null">DEVICE_ID = #{deviceId},</if>
- <if test="fd1 != null">FD1 = #{fd1},</if>
- <if test="fd2 != null">FD2 = #{fd2},</if>
- <if test="fd3 != null">FD3 = #{fd3},</if>
- <if test="fd4 != null">FD4 = #{fd4},</if>
- <if test="fd5 != null">FD5 = #{fd5},</if>
- <if test="fd6 != null">FD6 = #{fd6},</if>
- <if test="fd7 != null">FD7 = #{fd7},</if>
- <if test="fd8 != null">FD8 = #{fd8},</if>
- <if test="fd9 != null">FD9 = #{fd9},</if>
- <if test="fd10 != null">FD10 = #{fd10},</if>
- <if test="fd11 != null">FD11 = #{fd11},</if>
- <if test="fd12 != null">FD12 = #{fd12},</if>
- <if test="fd13 != null">FD13 = #{fd13},</if>
- <if test="fd14 != null">FD14 = #{fd14},</if>
- <if test="fd15 != null">FD15 = #{fd15},</if>
- <if test="fd16 != null">FD16 = #{fd16},</if>
- <if test="fd17 != null">FD17 = #{fd17},</if>
- <if test="fd18 != null">FD18 = #{fd18},</if>
- <if test="fd19 != null">FD19 = #{fd19},</if>
- <if test="fd20 != null">FD20 = #{fd20},</if>
- <if test="fd21 != null">FD21 = #{fd21},</if>
- <if test="fd22 != null">FD22 = #{fd22},</if>
- <if test="fd23 != null">FD23 = #{fd23},</if>
- <if test="fd24 != null">FD24 = #{fd24},</if>
- <if test="fd25 != null">FD25 = #{fd25},</if>
- <if test="cd10 != null">CD10 = #{cd10},</if>
- <if test="cd11 != null">CD11 = #{cd11},</if>
- <if test="cd12 != null">CD12 = #{cd12},</if>
- <if test="cd13 != null">CD13 = #{cd13},</if>
- <if test="cd14 != null">CD14 = #{cd14},</if>
- <if test="cd15 != null">CD15 = #{cd15},</if>
- <if test="cd16 != null">CD16 = #{cd16},</if>
- <if test="cd17 != null">CD17 = #{cd17},</if>
- <if test="cd18 != null">CD18 = #{cd18},</if>
- <if test="cd19 != null">CD19 = #{cd19},</if>
- <if test="remark != null">REMARK = #{remark},</if>
- </trim>
- where SPEC_INFO_ID = #{specInfoId}
- </update>
- <delete id="deleteTwinFormulaInfoBySpecInfoId" parameterType="Long">
- delete from twin_formula_info where SPEC_INFO_ID = #{specInfoId}
- </delete>
- <delete id="deleteTwinFormulaInfoBySpecInfoIds" parameterType="String">
- delete from twin_formula_info where SPEC_INFO_ID in
- <foreach item="specInfoId" collection="array" open="(" separator="," close=")">
- #{specInfoId}
- </foreach>
- </delete>
- </mapper>
|