|
@@ -0,0 +1,205 @@
|
|
|
+<?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.slibra.business.mapper.TXinyiCalculateMapper">
|
|
|
+
|
|
|
+ <resultMap type="TXinyiCalculate" id="TXinyiCalculateResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="testDate" column="TEST_DATE" />
|
|
|
+ <result property="testHour" column="TEST_HOUR" />
|
|
|
+ <result property="testTime" column="TEST_TIME" />
|
|
|
+ <result property="jsTdb" column="JS_TDB" />
|
|
|
+ <result property="jsTlb" column="JS_TLB" />
|
|
|
+ <result property="jsBodBCod" column="JS_BOD_B_COD" />
|
|
|
+ <result property="yyqHrt" column="YYQ_HRT" />
|
|
|
+ <result property="qyqHrt" column="QYQ_HRT" />
|
|
|
+ <result property="hyqHrt" column="HYQ_HRT" />
|
|
|
+ <result property="HFXWNNDZB" column="HFXWNNDZB" />
|
|
|
+ <result property="fM" column="F_M" />
|
|
|
+ <result property="GSLS" column="GSLS" />
|
|
|
+ <result property="gslsOne" column="GSLS_ONE" />
|
|
|
+ <result property="gslsTwo" column="GSLS_TWO" />
|
|
|
+ <result property="xgsGsls" column="XGS_GSLS" />
|
|
|
+ <result property="xlcscBmfh" column="XLCSC_BMFH" />
|
|
|
+ <result property="xlcscHrt" column="XLCSC_HRT" />
|
|
|
+ <result property="cccdcBmfh" column="CCCDC_BMFH" />
|
|
|
+ <result property="cccdcHrt" column="CCCDC_HRT" />
|
|
|
+ <result property="eccBmfh" column="ECC_BMFH" />
|
|
|
+ <result property="eccHrt" column="ECC_HRT" />
|
|
|
+ <result property="eccGtfh" column="ECC_GTFH" />
|
|
|
+ <result property="clsnJcsj" column="CLSN_JCSJ" />
|
|
|
+ <result property="xgcdcQsqSsls" column="XGCDC_QSQ_SSLS" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="revision" column="revision" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTXinyiCalculateVo">
|
|
|
+ select id, TEST_DATE, TEST_HOUR, TEST_TIME, JS_TDB, JS_TLB, JS_BOD_B_COD, YYQ_HRT, QYQ_HRT, HYQ_HRT, HFXWNNDZB, F_M, GSLS, GSLS_ONE, GSLS_TWO, XGS_GSLS, XLCSC_BMFH, XLCSC_HRT, CCCDC_BMFH, CCCDC_HRT, ECC_BMFH, ECC_HRT, ECC_GTFH, CLSN_JCSJ, XGCDC_QSQ_SSLS, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_calculate
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTXinyiCalculateList" parameterType="TXinyiCalculate" resultMap="TXinyiCalculateResult">
|
|
|
+ <include refid="selectTXinyiCalculateVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="testDate != null and testDate != ''"> and TEST_DATE = #{testDate}</if>
|
|
|
+ <if test="testHour != null and testHour != ''"> and TEST_HOUR = #{testHour}</if>
|
|
|
+ <if test="testTime != null and testTime != ''"> and TEST_TIME = #{testTime}</if>
|
|
|
+ <if test="jsTdb != null "> and JS_TDB = #{jsTdb}</if>
|
|
|
+ <if test="jsTlb != null "> and JS_TLB = #{jsTlb}</if>
|
|
|
+ <if test="jsBodBCod != null "> and JS_BOD_B_COD = #{jsBodBCod}</if>
|
|
|
+ <if test="yyqHrt != null "> and YYQ_HRT = #{yyqHrt}</if>
|
|
|
+ <if test="qyqHrt != null "> and QYQ_HRT = #{qyqHrt}</if>
|
|
|
+ <if test="hyqHrt != null "> and HYQ_HRT = #{hyqHrt}</if>
|
|
|
+ <if test="HFXWNNDZB != null "> and HFXWNNDZB = #{HFXWNNDZB}</if>
|
|
|
+ <if test="fM != null "> and F_M = #{fM}</if>
|
|
|
+ <if test="GSLS != null "> and GSLS = #{GSLS}</if>
|
|
|
+ <if test="gslsOne != null "> and GSLS_ONE = #{gslsOne}</if>
|
|
|
+ <if test="gslsTwo != null "> and GSLS_TWO = #{gslsTwo}</if>
|
|
|
+ <if test="xgsGsls != null "> and XGS_GSLS = #{xgsGsls}</if>
|
|
|
+ <if test="xlcscBmfh != null "> and XLCSC_BMFH = #{xlcscBmfh}</if>
|
|
|
+ <if test="xlcscHrt != null "> and XLCSC_HRT = #{xlcscHrt}</if>
|
|
|
+ <if test="cccdcBmfh != null "> and CCCDC_BMFH = #{cccdcBmfh}</if>
|
|
|
+ <if test="cccdcHrt != null "> and CCCDC_HRT = #{cccdcHrt}</if>
|
|
|
+ <if test="eccBmfh != null "> and ECC_BMFH = #{eccBmfh}</if>
|
|
|
+ <if test="eccHrt != null "> and ECC_HRT = #{eccHrt}</if>
|
|
|
+ <if test="eccGtfh != null "> and ECC_GTFH = #{eccGtfh}</if>
|
|
|
+ <if test="clsnJcsj != null "> and CLSN_JCSJ = #{clsnJcsj}</if>
|
|
|
+ <if test="xgcdcQsqSsls != null "> and XGCDC_QSQ_SSLS = #{xgcdcQsqSsls}</if>
|
|
|
+ <if test="revision != null "> and revision = #{revision}</if>
|
|
|
+ </where>
|
|
|
+ and del_flag = 0 order by id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTXinyiCalculateById" parameterType="Long" resultMap="TXinyiCalculateResult">
|
|
|
+ <include refid="selectTXinyiCalculateVo"/>
|
|
|
+ where id = #{id} and del_flag = 0
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTXinyiCalculate" parameterType="TXinyiCalculate" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into t_xinyi_calculate
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="testDate != null">TEST_DATE,</if>
|
|
|
+ <if test="testHour != null">TEST_HOUR,</if>
|
|
|
+ <if test="testTime != null">TEST_TIME,</if>
|
|
|
+ <if test="jsTdb != null">JS_TDB,</if>
|
|
|
+ <if test="jsTlb != null">JS_TLB,</if>
|
|
|
+ <if test="jsBodBCod != null">JS_BOD_B_COD,</if>
|
|
|
+ <if test="yyqHrt != null">YYQ_HRT,</if>
|
|
|
+ <if test="qyqHrt != null">QYQ_HRT,</if>
|
|
|
+ <if test="hyqHrt != null">HYQ_HRT,</if>
|
|
|
+ <if test="HFXWNNDZB != null">HFXWNNDZB,</if>
|
|
|
+ <if test="fM != null">F_M,</if>
|
|
|
+ <if test="GSLS != null">GSLS,</if>
|
|
|
+ <if test="gslsOne != null">GSLS_ONE,</if>
|
|
|
+ <if test="gslsTwo != null">GSLS_TWO,</if>
|
|
|
+ <if test="xgsGsls != null">XGS_GSLS,</if>
|
|
|
+ <if test="xlcscBmfh != null">XLCSC_BMFH,</if>
|
|
|
+ <if test="xlcscHrt != null">XLCSC_HRT,</if>
|
|
|
+ <if test="cccdcBmfh != null">CCCDC_BMFH,</if>
|
|
|
+ <if test="cccdcHrt != null">CCCDC_HRT,</if>
|
|
|
+ <if test="eccBmfh != null">ECC_BMFH,</if>
|
|
|
+ <if test="eccHrt != null">ECC_HRT,</if>
|
|
|
+ <if test="eccGtfh != null">ECC_GTFH,</if>
|
|
|
+ <if test="clsnJcsj != null">CLSN_JCSJ,</if>
|
|
|
+ <if test="xgcdcQsqSsls != null">XGCDC_QSQ_SSLS,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="revision != null">revision,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="testDate != null">#{testDate},</if>
|
|
|
+ <if test="testHour != null">#{testHour},</if>
|
|
|
+ <if test="testTime != null">#{testTime},</if>
|
|
|
+ <if test="jsTdb != null">#{jsTdb},</if>
|
|
|
+ <if test="jsTlb != null">#{jsTlb},</if>
|
|
|
+ <if test="jsBodBCod != null">#{jsBodBCod},</if>
|
|
|
+ <if test="yyqHrt != null">#{yyqHrt},</if>
|
|
|
+ <if test="qyqHrt != null">#{qyqHrt},</if>
|
|
|
+ <if test="hyqHrt != null">#{hyqHrt},</if>
|
|
|
+ <if test="HFXWNNDZB != null">#{HFXWNNDZB},</if>
|
|
|
+ <if test="fM != null">#{fM},</if>
|
|
|
+ <if test="GSLS != null">#{GSLS},</if>
|
|
|
+ <if test="gslsOne != null">#{gslsOne},</if>
|
|
|
+ <if test="gslsTwo != null">#{gslsTwo},</if>
|
|
|
+ <if test="xgsGsls != null">#{xgsGsls},</if>
|
|
|
+ <if test="xlcscBmfh != null">#{xlcscBmfh},</if>
|
|
|
+ <if test="xlcscHrt != null">#{xlcscHrt},</if>
|
|
|
+ <if test="cccdcBmfh != null">#{cccdcBmfh},</if>
|
|
|
+ <if test="cccdcHrt != null">#{cccdcHrt},</if>
|
|
|
+ <if test="eccBmfh != null">#{eccBmfh},</if>
|
|
|
+ <if test="eccHrt != null">#{eccHrt},</if>
|
|
|
+ <if test="eccGtfh != null">#{eccGtfh},</if>
|
|
|
+ <if test="clsnJcsj != null">#{clsnJcsj},</if>
|
|
|
+ <if test="xgcdcQsqSsls != null">#{xgcdcQsqSsls},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="revision != null">#{revision},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTXinyiCalculate" parameterType="TXinyiCalculate">
|
|
|
+ update t_xinyi_calculate
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="testDate != null">TEST_DATE = #{testDate},</if>
|
|
|
+ <if test="testHour != null">TEST_HOUR = #{testHour},</if>
|
|
|
+ <if test="testTime != null">TEST_TIME = #{testTime},</if>
|
|
|
+ <if test="jsTdb != null">JS_TDB = #{jsTdb},</if>
|
|
|
+ <if test="jsTlb != null">JS_TLB = #{jsTlb},</if>
|
|
|
+ <if test="jsBodBCod != null">JS_BOD_B_COD = #{jsBodBCod},</if>
|
|
|
+ <if test="yyqHrt != null">YYQ_HRT = #{yyqHrt},</if>
|
|
|
+ <if test="qyqHrt != null">QYQ_HRT = #{qyqHrt},</if>
|
|
|
+ <if test="hyqHrt != null">HYQ_HRT = #{hyqHrt},</if>
|
|
|
+ <if test="HFXWNNDZB != null">HFXWNNDZB = #{HFXWNNDZB},</if>
|
|
|
+ <if test="fM != null">F_M = #{fM},</if>
|
|
|
+ <if test="GSLS != null">GSLS = #{GSLS},</if>
|
|
|
+ <if test="gslsOne != null">GSLS_ONE = #{gslsOne},</if>
|
|
|
+ <if test="gslsTwo != null">GSLS_TWO = #{gslsTwo},</if>
|
|
|
+ <if test="xgsGsls != null">XGS_GSLS = #{xgsGsls},</if>
|
|
|
+ <if test="xlcscBmfh != null">XLCSC_BMFH = #{xlcscBmfh},</if>
|
|
|
+ <if test="xlcscHrt != null">XLCSC_HRT = #{xlcscHrt},</if>
|
|
|
+ <if test="cccdcBmfh != null">CCCDC_BMFH = #{cccdcBmfh},</if>
|
|
|
+ <if test="cccdcHrt != null">CCCDC_HRT = #{cccdcHrt},</if>
|
|
|
+ <if test="eccBmfh != null">ECC_BMFH = #{eccBmfh},</if>
|
|
|
+ <if test="eccHrt != null">ECC_HRT = #{eccHrt},</if>
|
|
|
+ <if test="eccGtfh != null">ECC_GTFH = #{eccGtfh},</if>
|
|
|
+ <if test="clsnJcsj != null">CLSN_JCSJ = #{clsnJcsj},</if>
|
|
|
+ <if test="xgcdcQsqSsls != null">XGCDC_QSQ_SSLS = #{xgcdcQsqSsls},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="revision != null">revision = #{revision},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ </trim>
|
|
|
+ ,revision = revision + 1
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <delete id="deleteTXinyiCalculateById" parameterType="Long">
|
|
|
+ update t_xinyi_calculate set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTXinyiCalculateByIds" parameterType="String">
|
|
|
+ update t_xinyi_calculate set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|