| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <?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.BisInspYnDrdmpSystemDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSystem" id="bisInspYnDrdmpSystemResultMap">
- <result property="impLeadNote" column="IMP_LEAD_NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isLearn" column="IS_LEARN"/>
- <result property="learnNote" column="LEARN_NOTE"/>
- <result property="isOrgLearn" column="IS_ORG_LEARN"/>
- <result property="orgLearNote" column="ORG_LEAR_NOTE"/>
- <result property="isImpFile" column="IS_IMP_FILE"/>
- <result property="impFileNote" column="IMP_FILE_NOTE"/>
- <result property="isImpPdc" column="IS_IMP_PDC"/>
- <result property="impPdcNote" column="IMP_PDC_NOTE"/>
- <result property="isImpAck" column="IS_IMP_ACK"/>
- <result property="impAckNote" column="IMP_ACK_NOTE"/>
- <result property="isImpPblm" column="IS_IMP_PBLM"/>
- <result property="impPblmNote" column="IMP_PBLM_NOTE"/>
- <result property="isImpOther" column="IS_IMP_OTHER"/>
- <result property="impOtherNote" column="IMP_OTHER_NOTE"/>
- <result property="isImpLead" column="IS_IMP_LEAD"/>
- </resultMap>
- <sql id="table_columns">
- IMP_LEAD_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT,
- ID,
- RGSTR_ID,
- IS_LEARN,
- LEARN_NOTE,
- IS_ORG_LEARN,
- ORG_LEAR_NOTE,
- IS_IMP_FILE,
- IMP_FILE_NOTE,
- IS_IMP_PDC,
- IMP_PDC_NOTE,
- IS_IMP_ACK,
- IMP_ACK_NOTE,
- IS_IMP_PBLM,
- IMP_PBLM_NOTE,
- IS_IMP_OTHER,
- IMP_OTHER_NOTE,
- IS_IMP_LEAD
- </sql>
- <sql id="entity_properties">
- #{impLeadNote},
- #{persId},
- #{intm},
- #{uptm},
- #{state},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{isLearn},
- #{learnNote},
- #{isOrgLearn},
- #{orgLearNote},
- #{isImpFile},
- #{impFileNote},
- #{isImpPdc},
- #{impPdcNote},
- #{isImpAck},
- #{impAckNote},
- #{isImpPblm},
- #{impPblmNote},
- #{isImpOther},
- #{impOtherNote},
- #{isImpLead}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="impLeadNote != null and impLeadNote != ''">
- and IMP_LEAD_NOTE = #{impLeadNote}
- </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="state != null and state != ''">
- and STATE = #{state}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="isLearn != null and isLearn != ''">
- and IS_LEARN = #{isLearn}
- </if>
- <if test="learnNote != null and learnNote != ''">
- and LEARN_NOTE = #{learnNote}
- </if>
- <if test="isOrgLearn != null and isOrgLearn != ''">
- and IS_ORG_LEARN = #{isOrgLearn}
- </if>
- <if test="orgLearNote != null and orgLearNote != ''">
- and ORG_LEAR_NOTE = #{orgLearNote}
- </if>
- <if test="isImpFile != null and isImpFile != ''">
- and IS_IMP_FILE = #{isImpFile}
- </if>
- <if test="impFileNote != null and impFileNote != ''">
- and IMP_FILE_NOTE = #{impFileNote}
- </if>
- <if test="isImpPdc != null and isImpPdc != ''">
- and IS_IMP_PDC = #{isImpPdc}
- </if>
- <if test="impPdcNote != null and impPdcNote != ''">
- and IMP_PDC_NOTE = #{impPdcNote}
- </if>
- <if test="isImpAck != null and isImpAck != ''">
- and IS_IMP_ACK = #{isImpAck}
- </if>
- <if test="impAckNote != null and impAckNote != ''">
- and IMP_ACK_NOTE = #{impAckNote}
- </if>
- <if test="isImpPblm != null and isImpPblm != ''">
- and IS_IMP_PBLM = #{isImpPblm}
- </if>
- <if test="impPblmNote != null and impPblmNote != ''">
- and IMP_PBLM_NOTE = #{impPblmNote}
- </if>
- <if test="isImpOther != null and isImpOther != ''">
- and IS_IMP_OTHER = #{isImpOther}
- </if>
- <if test="impOtherNote != null and impOtherNote != ''">
- and IMP_OTHER_NOTE = #{impOtherNote}
- </if>
- <if test="isImpLead != null and isImpLead != ''">
- and IS_IMP_LEAD = #{isImpLead}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspYnDrdmpSystemResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SYSTEM where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspYnDrdmpSystemResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SYSTEM
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspYnDrdmpSystemResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SYSTEM
- </select>
- <select id="findList" resultMap="bisInspYnDrdmpSystemResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_YN_DRDMP_SYSTEM
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_YN_DRDMP_SYSTEM
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSystem">
- insert into BIS_INSP_YN_DRDMP_SYSTEM(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_YN_DRDMP_SYSTEM set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSystem">
- update BIS_INSP_YN_DRDMP_SYSTEM set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_YN_DRDMP_SYSTEM set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSystem">
- update BIS_INSP_YN_DRDMP_SYSTEM
- <trim prefix="set" suffixOverrides=",">
- <if test="impLeadNote != null and impLeadNote != ''">IMP_LEAD_NOTE
- = #{impLeadNote},
- </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="state != null and state != ''">STATE
- = #{state},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isLearn != null and isLearn != ''">IS_LEARN
- = #{isLearn},
- </if>
- <if test="learnNote != null and learnNote != ''">LEARN_NOTE
- = #{learnNote},
- </if>
- <if test="isOrgLearn != null and isOrgLearn != ''">IS_ORG_LEARN
- = #{isOrgLearn},
- </if>
- <if test="orgLearNote != null and orgLearNote != ''">ORG_LEAR_NOTE
- = #{orgLearNote},
- </if>
- <if test="isImpFile != null and isImpFile != ''">IS_IMP_FILE
- = #{isImpFile},
- </if>
- <if test="impFileNote != null and impFileNote != ''">IMP_FILE_NOTE
- = #{impFileNote},
- </if>
- <if test="isImpPdc != null and isImpPdc != ''">IS_IMP_PDC
- = #{isImpPdc},
- </if>
- <if test="impPdcNote != null and impPdcNote != ''">IMP_PDC_NOTE
- = #{impPdcNote},
- </if>
- <if test="isImpAck != null and isImpAck != ''">IS_IMP_ACK
- = #{isImpAck},
- </if>
- <if test="impAckNote != null and impAckNote != ''">IMP_ACK_NOTE
- = #{impAckNote},
- </if>
- <if test="isImpPblm != null and isImpPblm != ''">IS_IMP_PBLM
- = #{isImpPblm},
- </if>
- <if test="impPblmNote != null and impPblmNote != ''">IMP_PBLM_NOTE
- = #{impPblmNote},
- </if>
- <if test="isImpOther != null and isImpOther != ''">IS_IMP_OTHER
- = #{isImpOther},
- </if>
- <if test="impOtherNote != null and impOtherNote != ''">IMP_OTHER_NOTE
- = #{impOtherNote},
- </if>
- <if test="isImpLead != null and isImpLead != ''">IS_IMP_LEAD
- = #{isImpLead},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspYnDrdmpSystem">
- update BIS_INSP_YN_DRDMP_SYSTEM
- <trim prefix="set" suffixOverrides=",">
- <if test="impLeadNote != null and impLeadNote != ''">IMP_LEAD_NOTE
- = #{impLeadNote},
- </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="state != null and state != ''">STATE
- = #{state},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isLearn != null and isLearn != ''">IS_LEARN
- = #{isLearn},
- </if>
- <if test="learnNote != null and learnNote != ''">LEARN_NOTE
- = #{learnNote},
- </if>
- <if test="isOrgLearn != null and isOrgLearn != ''">IS_ORG_LEARN
- = #{isOrgLearn},
- </if>
- <if test="orgLearNote != null and orgLearNote != ''">ORG_LEAR_NOTE
- = #{orgLearNote},
- </if>
- <if test="isImpFile != null and isImpFile != ''">IS_IMP_FILE
- = #{isImpFile},
- </if>
- <if test="impFileNote != null and impFileNote != ''">IMP_FILE_NOTE
- = #{impFileNote},
- </if>
- <if test="isImpPdc != null and isImpPdc != ''">IS_IMP_PDC
- = #{isImpPdc},
- </if>
- <if test="impPdcNote != null and impPdcNote != ''">IMP_PDC_NOTE
- = #{impPdcNote},
- </if>
- <if test="isImpAck != null and isImpAck != ''">IS_IMP_ACK
- = #{isImpAck},
- </if>
- <if test="impAckNote != null and impAckNote != ''">IMP_ACK_NOTE
- = #{impAckNote},
- </if>
- <if test="isImpPblm != null and isImpPblm != ''">IS_IMP_PBLM
- = #{isImpPblm},
- </if>
- <if test="impPblmNote != null and impPblmNote != ''">IMP_PBLM_NOTE
- = #{impPblmNote},
- </if>
- <if test="isImpOther != null and isImpOther != ''">IS_IMP_OTHER
- = #{isImpOther},
- </if>
- <if test="impOtherNote != null and impOtherNote != ''">IMP_OTHER_NOTE
- = #{impOtherNote},
- </if>
- <if test="isImpLead != null and isImpLead != ''">IS_IMP_LEAD
- = #{isImpLead},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|