| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?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="cn.com.goldenwater.dcproj.dao.BisInspQaScoreSdDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspQaScoreSd" id="bisInspQaScoreSdResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="qaMgr" column="QA_MGR"/>
- <result property="qaDst" column="QA_DST"/>
- <result property="qaNewEta" column="QA_NEW_ETA"/>
- <result property="qaZrr" column="QA_ZRR"/>
- <result property="qaBuld" column="QA_BULD"/>
- <result property="qaGzyd" column="QA_GZYD"/>
- <result property="qaZgls" column="QA_ZGLS"/>
- <result property="qaJdsq" column="QA_JDSQ"/>
- <result property="qaGzjh" column="QA_GZJH"/>
- <result property="qaXmhf" column="QA_XMHF"/>
- <result property="qaPdbz" column="QA_PDBZ"/>
- <result property="qaZzqk" column="QA_ZZQK"/>
- <result property="qaJlqk" column="QA_JLQK"/>
- <result property="qaYxqk" column="QA_YXQK"/>
- <result property="qaJdjc" column="QA_JDJC"/>
- <result property="qaZljl" column="QA_ZLJL"/>
- <result property="qaWtcl" column="QA_WTCL"/>
- <result property="qaZszrz" column="QA_ZSZRZ"/>
- <result property="qaZdbg" column="QA_ZDBG"/>
- <result property="qaJdda" column="QA_JDDA"/>
- <result property="qaJbts" column="QA_JBTS"/>
- <result property="qaFwxw" column="QA_FWXW"/>
- <result property="qaGlxxh" column="QA_GLXXH"/>
- <result property="qaSpts" column="QA_SPTS"/>
- <result property="total" column="TOTAL"/>
- <result property="subTotal" column="SUB_TOTAL"/>
- <result property="addTotal" column="ADD_TOTAL"/>
- <result property="note" column="NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- QA_MGR,
- QA_DST,
- QA_NEW_ETA,
- QA_ZRR,
- QA_BULD,
- QA_GZYD,
- QA_ZGLS,
- QA_JDSQ,
- QA_GZJH,
- QA_XMHF,
- QA_PDBZ,
- QA_ZZQK,
- QA_JLQK,
- QA_YXQK,
- QA_JDJC,
- QA_ZLJL,
- QA_WTCL,
- QA_ZSZRZ,
- QA_ZDBG,
- QA_JDDA,
- QA_JBTS,
- QA_FWXW,
- QA_GLXXH,
- QA_SPTS,
- TOTAL,
- SUB_TOTAL,
- ADD_TOTAL,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{qaMgr},
- #{qaDst},
- #{qaNewEta},
- #{qaZrr},
- #{qaBuld},
- #{qaGzyd},
- #{qaZgls},
- #{qaJdsq},
- #{qaGzjh},
- #{qaXmhf},
- #{qaPdbz},
- #{qaZzqk},
- #{qaJlqk},
- #{qaYxqk},
- #{qaJdjc},
- #{qaZljl},
- #{qaWtcl},
- #{qaZszrz},
- #{qaZdbg},
- #{qaJdda},
- #{qaJbts},
- #{qaFwxw},
- #{qaGlxxh},
- #{qaSpts},
- #{total},
- #{subTotal},
- #{addTotal},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="qaMgr != null and qaMgr != ''">and QA_MGR = #{qaMgr}</if>
- <if test="qaDst != null and qaDst != ''">and QA_DST = #{qaDst}</if>
- <if test="qaNewEta != null and qaNewEta != ''">and QA_NEW_ETA = #{qaNewEta}</if>
- <if test="qaZrr != null and qaZrr != ''">and QA_ZRR = #{qaZrr}</if>
- <if test="qaBuld != null and qaBuld != ''">and QA_BULD = #{qaBuld}</if>
- <if test="qaGzyd != null and qaGzyd != ''">and QA_GZYD = #{qaGzyd}</if>
- <if test="qaZgls != null and qaZgls != ''">and QA_ZGLS = #{qaZgls}</if>
- <if test="qaJdsq != null and qaJdsq != ''">and QA_JDSQ = #{qaJdsq}</if>
- <if test="qaGzjh != null and qaGzjh != ''">and QA_GZJH = #{qaGzjh}</if>
- <if test="qaXmhf != null and qaXmhf != ''">and QA_XMHF = #{qaXmhf}</if>
- <if test="qaPdbz != null and qaPdbz != ''">and QA_PDBZ = #{qaPdbz}</if>
- <if test="qaZzqk != null and qaZzqk != ''">and QA_ZZQK = #{qaZzqk}</if>
- <if test="qaJlqk != null and qaJlqk != ''">and QA_JLQK = #{qaJlqk}</if>
- <if test="qaYxqk != null and qaYxqk != ''">and QA_YXQK = #{qaYxqk}</if>
- <if test="qaJdjc != null and qaJdjc != ''">and QA_JDJC = #{qaJdjc}</if>
- <if test="qaZljl != null and qaZljl != ''">and QA_ZLJL = #{qaZljl}</if>
- <if test="qaWtcl != null and qaWtcl != ''">and QA_WTCL = #{qaWtcl}</if>
- <if test="qaZszrz != null and qaZszrz != ''">and QA_ZSZRZ = #{qaZszrz}</if>
- <if test="qaZdbg != null and qaZdbg != ''">and QA_ZDBG = #{qaZdbg}</if>
- <if test="qaJdda != null and qaJdda != ''">and QA_JDDA = #{qaJdda}</if>
- <if test="qaJbts != null and qaJbts != ''">and QA_JBTS = #{qaJbts}</if>
- <if test="qaFwxw != null and qaFwxw != ''">and QA_FWXW = #{qaFwxw}</if>
- <if test="qaGlxxh != null and qaGlxxh != ''">and QA_GLXXH = #{qaGlxxh}</if>
- <if test="qaSpts != null and qaSpts != ''">and QA_SPTS = #{qaSpts}</if>
- <if test="total != null and total != ''">and TOTAL = #{total}</if>
- <if test="subTotal != null and subTotal != ''">and SUB_TOTAL = #{subTotal}</if>
- <if test="addTotal != null and addTotal != ''">and ADD_TOTAL = #{addTotal}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspQaScoreSdResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_QA_SCORE_SD where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspQaScoreSdResultMap">
- select <include refid="table_columns" /> from BIS_INSP_QA_SCORE_SD <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspQaScoreSdResultMap">
- select <include refid="table_columns" /> from BIS_INSP_QA_SCORE_SD
- </select>
- <select id="findList" resultMap="bisInspQaScoreSdResultMap">
- select <include refid="table_columns" /> from BIS_INSP_QA_SCORE_SD <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_QA_SCORE_SD <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScoreSd">
- insert into BIS_INSP_QA_SCORE_SD( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_QA_SCORE_SD set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScoreSd">
- delete from BIS_INSP_QA_SCORE_SD <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_QA_SCORE_SD set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScoreSd">
- update BIS_INSP_QA_SCORE_SD
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="qaMgr != null">QA_MGR = #{qaMgr},</if>
- <if test="qaDst != null">QA_DST = #{qaDst},</if>
- <if test="qaNewEta != null">QA_NEW_ETA = #{qaNewEta},</if>
- <if test="qaZrr != null">QA_ZRR = #{qaZrr},</if>
- <if test="qaBuld != null">QA_BULD = #{qaBuld},</if>
- <if test="qaGzyd != null">QA_GZYD = #{qaGzyd},</if>
- <if test="qaZgls != null">QA_ZGLS = #{qaZgls},</if>
- <if test="qaJdsq != null">QA_JDSQ = #{qaJdsq},</if>
- <if test="qaGzjh != null">QA_GZJH = #{qaGzjh},</if>
- <if test="qaXmhf != null">QA_XMHF = #{qaXmhf},</if>
- <if test="qaPdbz != null">QA_PDBZ = #{qaPdbz},</if>
- <if test="qaZzqk != null">QA_ZZQK = #{qaZzqk},</if>
- <if test="qaJlqk != null">QA_JLQK = #{qaJlqk},</if>
- <if test="qaYxqk != null">QA_YXQK = #{qaYxqk},</if>
- <if test="qaJdjc != null">QA_JDJC = #{qaJdjc},</if>
- <if test="qaZljl != null">QA_ZLJL = #{qaZljl},</if>
- <if test="qaWtcl != null">QA_WTCL = #{qaWtcl},</if>
- <if test="qaZszrz != null">QA_ZSZRZ = #{qaZszrz},</if>
- <if test="qaZdbg != null">QA_ZDBG = #{qaZdbg},</if>
- <if test="qaJdda != null">QA_JDDA = #{qaJdda},</if>
- <if test="qaJbts != null">QA_JBTS = #{qaJbts},</if>
- <if test="qaFwxw != null">QA_FWXW = #{qaFwxw},</if>
- <if test="qaGlxxh != null">QA_GLXXH = #{qaGlxxh},</if>
- <if test="qaSpts != null">QA_SPTS = #{qaSpts},</if>
- <if test="total != null">TOTAL = #{total},</if>
- <if test="subTotal != null">SUB_TOTAL = #{subTotal},</if>
- <if test="addTotal != null">ADD_TOTAL = #{addTotal},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScoreSd">
- update BIS_INSP_QA_SCORE_SD
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="qaMgr != null and qaMgr != ''">QA_MGR = #{qaMgr},</if>
- <if test="qaDst != null and qaDst != ''">QA_DST = #{qaDst},</if>
- <if test="qaNewEta != null and qaNewEta != ''">QA_NEW_ETA = #{qaNewEta},</if>
- <if test="qaZrr != null and qaZrr != ''">QA_ZRR = #{qaZrr},</if>
- <if test="qaBuld != null and qaBuld != ''">QA_BULD = #{qaBuld},</if>
- <if test="qaGzyd != null and qaGzyd != ''">QA_GZYD = #{qaGzyd},</if>
- <if test="qaZgls != null and qaZgls != ''">QA_ZGLS = #{qaZgls},</if>
- <if test="qaJdsq != null and qaJdsq != ''">QA_JDSQ = #{qaJdsq},</if>
- <if test="qaGzjh != null and qaGzjh != ''">QA_GZJH = #{qaGzjh},</if>
- <if test="qaXmhf != null and qaXmhf != ''">QA_XMHF = #{qaXmhf},</if>
- <if test="qaPdbz != null and qaPdbz != ''">QA_PDBZ = #{qaPdbz},</if>
- <if test="qaZzqk != null and qaZzqk != ''">QA_ZZQK = #{qaZzqk},</if>
- <if test="qaJlqk != null and qaJlqk != ''">QA_JLQK = #{qaJlqk},</if>
- <if test="qaYxqk != null and qaYxqk != ''">QA_YXQK = #{qaYxqk},</if>
- <if test="qaJdjc != null and qaJdjc != ''">QA_JDJC = #{qaJdjc},</if>
- <if test="qaZljl != null and qaZljl != ''">QA_ZLJL = #{qaZljl},</if>
- <if test="qaWtcl != null and qaWtcl != ''">QA_WTCL = #{qaWtcl},</if>
- <if test="qaZszrz != null and qaZszrz != ''">QA_ZSZRZ = #{qaZszrz},</if>
- <if test="qaZdbg != null and qaZdbg != ''">QA_ZDBG = #{qaZdbg},</if>
- <if test="qaJdda != null and qaJdda != ''">QA_JDDA = #{qaJdda},</if>
- <if test="qaJbts != null and qaJbts != ''">QA_JBTS = #{qaJbts},</if>
- <if test="qaFwxw != null and qaFwxw != ''">QA_FWXW = #{qaFwxw},</if>
- <if test="qaGlxxh != null and qaGlxxh != ''">QA_GLXXH = #{qaGlxxh},</if>
- <if test="qaSpts != null and qaSpts != ''">QA_SPTS = #{qaSpts},</if>
- <if test="total != null and total != ''">TOTAL = #{total},</if>
- <if test="subTotal != null and subTotal != ''">SUB_TOTAL = #{subTotal},</if>
- <if test="addTotal != null and addTotal != ''">ADD_TOTAL = #{addTotal},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|