| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- <?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.BisInspDpgmRsmpDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspDpgmRsmp" id="bisInspDpgmRsmpResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isPlanWork" column="IS_PLAN_WORK"/>
- <result property="planWorkNote" column="PLAN_WORK_NOTE"/>
- <result property="isPrtctWork" column="IS_PRTCT_WORK"/>
- <result property="prtctWorkNote" column="PRTCT_WORK_NOTE"/>
- <result property="isWorkLow" column="IS_WORK_LOW"/>
- <result property="workLowNote" column="WORK_LOW_NOTE"/>
- <result property="isAckChk" column="IS_ACK_CHK"/>
- <result property="ackChkNote" column="ACK_CHK_NOTE"/>
- <result property="isPblmMend" column="IS_PBLM_MEND"/>
- <result property="pblmMendNote" column="PBLM_MEND_NOTE"/>
- <result property="isNextChk" column="IS_NEXT_CHK"/>
- <result property="nextChkNote" column="NEXT_CHK_NOTE"/>
- <result property="isPrtctPblm" column="IS_PRTCT_PBLM"/>
- <result property="prtctPblmNote" column="PRTCT_PBLM_NOTE"/>
- <result property="isDstryMend" column="IS_DSTRY_MEND"/>
- <result property="dstryMendNote" column="DSTRY_MEND_NOTE"/>
- <result property="isDstryMendEff" column="IS_DSTRY_MEND_EFF"/>
- <result property="dstryMendEffNote" column="DSTRY_MEND_EFF_NOTE"/>
- <result property="isSureWork" column="IS_SURE_WORK"/>
- <result property="sureWorkNote" column="SURE_WORK_NOTE"/>
- <result property="isNextWorkChk" column="IS_NEXT_WORK_CHK"/>
- <result property="nextWorkChkNote" column="NEXT_WORK_CHK_NOTE"/>
- <result property="isOmitMend" column="IS_OMIT_MEND"/>
- <result property="omitMendNote" column="OMIT_MEND_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"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_PLAN_WORK,
- PLAN_WORK_NOTE,
- IS_PRTCT_WORK,
- PRTCT_WORK_NOTE,
- IS_WORK_LOW,
- WORK_LOW_NOTE,
- IS_ACK_CHK,
- ACK_CHK_NOTE,
- IS_PBLM_MEND,
- PBLM_MEND_NOTE,
- IS_NEXT_CHK,
- NEXT_CHK_NOTE,
- IS_PRTCT_PBLM,
- PRTCT_PBLM_NOTE,
- IS_DSTRY_MEND,
- DSTRY_MEND_NOTE,
- IS_DSTRY_MEND_EFF,
- DSTRY_MEND_EFF_NOTE,
- IS_SURE_WORK,
- SURE_WORK_NOTE,
- IS_NEXT_WORK_CHK,
- NEXT_WORK_CHK_NOTE,
- IS_OMIT_MEND,
- OMIT_MEND_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isPlanWork},
- #{planWorkNote},
- #{isPrtctWork},
- #{prtctWorkNote},
- #{isWorkLow},
- #{workLowNote},
- #{isAckChk},
- #{ackChkNote},
- #{isPblmMend},
- #{pblmMendNote},
- #{isNextChk},
- #{nextChkNote},
- #{isPrtctPblm},
- #{prtctPblmNote},
- #{isDstryMend},
- #{dstryMendNote},
- #{isDstryMendEff},
- #{dstryMendEffNote},
- #{isSureWork},
- #{sureWorkNote},
- #{isNextWorkChk},
- #{nextWorkChkNote},
- #{isOmitMend},
- #{omitMendNote},
- #{persId},
- #{intm},
- #{uptm},
- #{state},
- #{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="isPlanWork != null and isPlanWork != ''">
- and IS_PLAN_WORK = #{isPlanWork}
- </if>
- <if test="planWorkNote != null and planWorkNote != ''">
- and PLAN_WORK_NOTE = #{planWorkNote}
- </if>
- <if test="isPrtctWork != null and isPrtctWork != ''">
- and IS_PRTCT_WORK = #{isPrtctWork}
- </if>
- <if test="prtctWorkNote != null and prtctWorkNote != ''">
- and PRTCT_WORK_NOTE = #{prtctWorkNote}
- </if>
- <if test="isWorkLow != null and isWorkLow != ''">
- and IS_WORK_LOW = #{isWorkLow}
- </if>
- <if test="workLowNote != null and workLowNote != ''">
- and WORK_LOW_NOTE = #{workLowNote}
- </if>
- <if test="isAckChk != null and isAckChk != ''">
- and IS_ACK_CHK = #{isAckChk}
- </if>
- <if test="ackChkNote != null and ackChkNote != ''">
- and ACK_CHK_NOTE = #{ackChkNote}
- </if>
- <if test="isPblmMend != null and isPblmMend != ''">
- and IS_PBLM_MEND = #{isPblmMend}
- </if>
- <if test="pblmMendNote != null and pblmMendNote != ''">
- and PBLM_MEND_NOTE = #{pblmMendNote}
- </if>
- <if test="isNextChk != null and isNextChk != ''">
- and IS_NEXT_CHK = #{isNextChk}
- </if>
- <if test="nextChkNote != null and nextChkNote != ''">
- and NEXT_CHK_NOTE = #{nextChkNote}
- </if>
- <if test="isPrtctPblm != null and isPrtctPblm != ''">
- and IS_PRTCT_PBLM = #{isPrtctPblm}
- </if>
- <if test="prtctPblmNote != null and prtctPblmNote != ''">
- and PRTCT_PBLM_NOTE = #{prtctPblmNote}
- </if>
- <if test="isDstryMend != null and isDstryMend != ''">
- and IS_DSTRY_MEND = #{isDstryMend}
- </if>
- <if test="dstryMendNote != null and dstryMendNote != ''">
- and DSTRY_MEND_NOTE = #{dstryMendNote}
- </if>
- <if test="isDstryMendEff != null and isDstryMendEff != ''">
- and IS_DSTRY_MEND_EFF = #{isDstryMendEff}
- </if>
- <if test="dstryMendEffNote != null and dstryMendEffNote != ''">
- and DSTRY_MEND_EFF_NOTE = #{dstryMendEffNote}
- </if>
- <if test="isSureWork != null and isSureWork != ''">
- and IS_SURE_WORK = #{isSureWork}
- </if>
- <if test="sureWorkNote != null and sureWorkNote != ''">
- and SURE_WORK_NOTE = #{sureWorkNote}
- </if>
- <if test="isNextWorkChk != null and isNextWorkChk != ''">
- and IS_NEXT_WORK_CHK = #{isNextWorkChk}
- </if>
- <if test="nextWorkChkNote != null and nextWorkChkNote != ''">
- and NEXT_WORK_CHK_NOTE = #{nextWorkChkNote}
- </if>
- <if test="isOmitMend != null and isOmitMend != ''">
- and IS_OMIT_MEND = #{isOmitMend}
- </if>
- <if test="omitMendNote != null and omitMendNote != ''">
- and OMIT_MEND_NOTE = #{omitMendNote}
- </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>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspDpgmRsmpResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_DPGM_RSMP where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspDpgmRsmpResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_DPGM_RSMP
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspDpgmRsmpResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_DPGM_RSMP
- </select>
- <select id="findList" resultMap="bisInspDpgmRsmpResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_DPGM_RSMP
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_DPGM_RSMP
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspDpgmRsmp">
- insert into BIS_INSP_DPGM_RSMP(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_DPGM_RSMP set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspDpgmRsmp">
- update BIS_INSP_DPGM_RSMP set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_DPGM_RSMP set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspDpgmRsmp">
- update BIS_INSP_DPGM_RSMP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPlanWork != null and isPlanWork != ''">IS_PLAN_WORK
- = #{isPlanWork},
- </if>
- <if test="planWorkNote != null and planWorkNote != ''">PLAN_WORK_NOTE
- = #{planWorkNote},
- </if>
- <if test="isPrtctWork != null and isPrtctWork != ''">IS_PRTCT_WORK
- = #{isPrtctWork},
- </if>
- <if test="prtctWorkNote != null and prtctWorkNote != ''">PRTCT_WORK_NOTE
- = #{prtctWorkNote},
- </if>
- <if test="isWorkLow != null and isWorkLow != ''">IS_WORK_LOW
- = #{isWorkLow},
- </if>
- <if test="workLowNote != null and workLowNote != ''">WORK_LOW_NOTE
- = #{workLowNote},
- </if>
- <if test="isAckChk != null and isAckChk != ''">IS_ACK_CHK
- = #{isAckChk},
- </if>
- <if test="ackChkNote != null and ackChkNote != ''">ACK_CHK_NOTE
- = #{ackChkNote},
- </if>
- <if test="isPblmMend != null and isPblmMend != ''">IS_PBLM_MEND
- = #{isPblmMend},
- </if>
- <if test="pblmMendNote != null and pblmMendNote != ''">PBLM_MEND_NOTE
- = #{pblmMendNote},
- </if>
- <if test="isNextChk != null and isNextChk != ''">IS_NEXT_CHK
- = #{isNextChk},
- </if>
- <if test="nextChkNote != null and nextChkNote != ''">NEXT_CHK_NOTE
- = #{nextChkNote},
- </if>
- <if test="isPrtctPblm != null and isPrtctPblm != ''">IS_PRTCT_PBLM
- = #{isPrtctPblm},
- </if>
- <if test="prtctPblmNote != null and prtctPblmNote != ''">PRTCT_PBLM_NOTE
- = #{prtctPblmNote},
- </if>
- <if test="isDstryMend != null and isDstryMend != ''">IS_DSTRY_MEND
- = #{isDstryMend},
- </if>
- <if test="dstryMendNote != null and dstryMendNote != ''">DSTRY_MEND_NOTE
- = #{dstryMendNote},
- </if>
- <if test="isDstryMendEff != null and isDstryMendEff != ''">IS_DSTRY_MEND_EFF
- = #{isDstryMendEff},
- </if>
- <if test="dstryMendEffNote != null and dstryMendEffNote != ''">DSTRY_MEND_EFF_NOTE
- = #{dstryMendEffNote},
- </if>
- <if test="isSureWork != null and isSureWork != ''">IS_SURE_WORK
- = #{isSureWork},
- </if>
- <if test="sureWorkNote != null and sureWorkNote != ''">SURE_WORK_NOTE
- = #{sureWorkNote},
- </if>
- <if test="isNextWorkChk != null and isNextWorkChk != ''">IS_NEXT_WORK_CHK
- = #{isNextWorkChk},
- </if>
- <if test="nextWorkChkNote != null and nextWorkChkNote != ''">NEXT_WORK_CHK_NOTE
- = #{nextWorkChkNote},
- </if>
- <if test="isOmitMend != null and isOmitMend != ''">IS_OMIT_MEND
- = #{isOmitMend},
- </if>
- <if test="omitMendNote != null and omitMendNote != ''">OMIT_MEND_NOTE
- = #{omitMendNote},
- </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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspDpgmRsmp">
- update BIS_INSP_DPGM_RSMP
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPlanWork != null and isPlanWork != ''">IS_PLAN_WORK
- = #{isPlanWork},
- </if>
- <if test="planWorkNote != null and planWorkNote != ''">PLAN_WORK_NOTE
- = #{planWorkNote},
- </if>
- <if test="isPrtctWork != null and isPrtctWork != ''">IS_PRTCT_WORK
- = #{isPrtctWork},
- </if>
- <if test="prtctWorkNote != null and prtctWorkNote != ''">PRTCT_WORK_NOTE
- = #{prtctWorkNote},
- </if>
- <if test="isWorkLow != null and isWorkLow != ''">IS_WORK_LOW
- = #{isWorkLow},
- </if>
- <if test="workLowNote != null and workLowNote != ''">WORK_LOW_NOTE
- = #{workLowNote},
- </if>
- <if test="isAckChk != null and isAckChk != ''">IS_ACK_CHK
- = #{isAckChk},
- </if>
- <if test="ackChkNote != null and ackChkNote != ''">ACK_CHK_NOTE
- = #{ackChkNote},
- </if>
- <if test="isPblmMend != null and isPblmMend != ''">IS_PBLM_MEND
- = #{isPblmMend},
- </if>
- <if test="pblmMendNote != null and pblmMendNote != ''">PBLM_MEND_NOTE
- = #{pblmMendNote},
- </if>
- <if test="isNextChk != null and isNextChk != ''">IS_NEXT_CHK
- = #{isNextChk},
- </if>
- <if test="nextChkNote != null and nextChkNote != ''">NEXT_CHK_NOTE
- = #{nextChkNote},
- </if>
- <if test="isPrtctPblm != null and isPrtctPblm != ''">IS_PRTCT_PBLM
- = #{isPrtctPblm},
- </if>
- <if test="prtctPblmNote != null and prtctPblmNote != ''">PRTCT_PBLM_NOTE
- = #{prtctPblmNote},
- </if>
- <if test="isDstryMend != null and isDstryMend != ''">IS_DSTRY_MEND
- = #{isDstryMend},
- </if>
- <if test="dstryMendNote != null and dstryMendNote != ''">DSTRY_MEND_NOTE
- = #{dstryMendNote},
- </if>
- <if test="isDstryMendEff != null and isDstryMendEff != ''">IS_DSTRY_MEND_EFF
- = #{isDstryMendEff},
- </if>
- <if test="dstryMendEffNote != null and dstryMendEffNote != ''">DSTRY_MEND_EFF_NOTE
- = #{dstryMendEffNote},
- </if>
- <if test="isSureWork != null and isSureWork != ''">IS_SURE_WORK
- = #{isSureWork},
- </if>
- <if test="sureWorkNote != null and sureWorkNote != ''">SURE_WORK_NOTE
- = #{sureWorkNote},
- </if>
- <if test="isNextWorkChk != null and isNextWorkChk != ''">IS_NEXT_WORK_CHK
- = #{isNextWorkChk},
- </if>
- <if test="nextWorkChkNote != null and nextWorkChkNote != ''">NEXT_WORK_CHK_NOTE
- = #{nextWorkChkNote},
- </if>
- <if test="isOmitMend != null and isOmitMend != ''">IS_OMIT_MEND
- = #{isOmitMend},
- </if>
- <if test="omitMendNote != null and omitMendNote != ''">OMIT_MEND_NOTE
- = #{omitMendNote},
- </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>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|