| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <?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.BisInspUnwtSynDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspUnwtSyn" id="bisInspUnwtSynResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isLeak" column="IS_LEAK"/>
- <result property="isQr" column="IS_QR"/>
- <result property="backNote" column="BACK_NOTE"/>
- <result property="isUsrScrt" column="IS_USR_SCRT"/>
- <result property="isNusrStnd" column="IS_NUSR_STND"/>
- <result property="isSysUsr" column="IS_SYS_USR"/>
- <result property="wtzNote" column="WTZ_NOTE"/>
- <result property="isNplanCmp" column="IS_NPLAN_CMP"/>
- <result property="isPrjtNusr" column="IS_PRJT_NUSR"/>
- <result property="isNusrRole" column="IS_NUSR_ROLE"/>
- <result property="repairNote" column="REPAIR_NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isStopAll" column="IS_STOP_ALL"/>
- <result property="isQrFit" column="IS_QR_FIT"/>
- <result property="isSetLog" column="IS_SET_LOG"/>
- <result property="isLose" column="IS_LOSE"/>
- <result property="isMeet" column="IS_MEET"/>
- <result property="isLkbkLose" column="IS_LKBK_LOSE"/>
- <result property="isLkbkBook" column="IS_LKBK_BOOK"/>
- <result property="isLkbkRmd" column="IS_LKBK_RMD"/>
- <result property="isIrrBook" column="IS_IRR_BOOK"/>
- <result property="isIrrSend" column="IS_IRR_SEND"/>
- <result property="isIrrLimit" column="IS_IRR_LIMIT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_LEAK,
- IS_QR,
- BACK_NOTE,
- IS_USR_SCRT,
- IS_NUSR_STND,
- IS_SYS_USR,
- WTZ_NOTE,
- IS_NPLAN_CMP,
- IS_PRJT_NUSR,
- IS_NUSR_ROLE,
- REPAIR_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- IS_STOP_ALL,
- IS_QR_FIT,
- IS_SET_LOG,
- IS_LOSE,
- IS_MEET,
- IS_LKBK_LOSE,
- IS_LKBK_BOOK,
- IS_LKBK_RMD,
- IS_IRR_BOOK,
- IS_IRR_SEND,
- IS_IRR_LIMIT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isLeak},
- #{isQr},
- #{backNote},
- #{isUsrScrt},
- #{isNusrStnd},
- #{isSysUsr},
- #{wtzNote},
- #{isNplanCmp},
- #{isPrjtNusr},
- #{isNusrRole},
- #{repairNote},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{isStopAll},
- #{isQrFit},
- #{isSetLog},
- #{isLose},
- #{isMeet},
- #{isLkbkLose},
- #{isLkbkBook},
- #{isLkbkRmd},
- #{isIrrBook},
- #{isIrrSend},
- #{isIrrLimit}
- </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="isLeak != null and isLeak != ''">
- and IS_LEAK = #{isLeak}
- </if>
- <if test="isQr != null and isQr != ''">
- and IS_QR = #{isQr}
- </if>
- <if test="backNote != null and backNote != ''">
- and BACK_NOTE = #{backNote}
- </if>
- <if test="isUsrScrt != null and isUsrScrt != ''">
- and IS_USR_SCRT = #{isUsrScrt}
- </if>
- <if test="isNusrStnd != null and isNusrStnd != ''">
- and IS_NUSR_STND = #{isNusrStnd}
- </if>
- <if test="isSysUsr != null and isSysUsr != ''">
- and IS_SYS_USR = #{isSysUsr}
- </if>
- <if test="wtzNote != null and wtzNote != ''">
- and WTZ_NOTE = #{wtzNote}
- </if>
- <if test="isNplanCmp != null and isNplanCmp != ''">
- and IS_NPLAN_CMP = #{isNplanCmp}
- </if>
- <if test="isPrjtNusr != null and isPrjtNusr != ''">
- and IS_PRJT_NUSR = #{isPrjtNusr}
- </if>
- <if test="isNusrRole != null and isNusrRole != ''">
- and IS_NUSR_ROLE = #{isNusrRole}
- </if>
- <if test="repairNote != null and repairNote != ''">
- and REPAIR_NOTE = #{repairNote}
- </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="note != null and note != ''">
- and NOTE = #{note}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- <if test="isStopAll != null and isStopAll != ''">
- and IS_STOP_ALL = #{isStopAll}
- </if>
- <if test="isQrFit != null and isQrFit != ''">
- and IS_QR_FIT = #{isQrFit}
- </if>
- <if test="isSetLog != null and isSetLog != ''">
- and IS_SET_LOG = #{isSetLog}
- </if>
- <if test="isLose != null and isLose != ''">
- and IS_LOSE = #{isLose}
- </if>
- <if test="isMeet != null and isMeet != ''">
- and IS_MEET = #{isMeet}
- </if>
- <if test="isLkbkLose != null and isLkbkLose != ''">
- and IS_LKBK_LOSE = #{isLkbkLose}
- </if>
- <if test="isLkbkBook != null and isLkbkBook != ''">
- and IS_LKBK_BOOK = #{isLkbkBook}
- </if>
- <if test="isLkbkRmd != null and isLkbkRmd != ''">
- and IS_LKBK_RMD = #{isLkbkRmd}
- </if>
- <if test="isIrrBook != null and isIrrBook != ''">
- and IS_IRR_BOOK = #{isIrrBook}
- </if>
- <if test="isIrrSend != null and isIrrSend != ''">
- and IS_IRR_SEND = #{isIrrSend}
- </if>
- <if test="isIrrLimit != null and isIrrLimit != ''">
- and IS_IRR_LIMIT = #{isIrrLimit}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspUnwtSynResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_UNWT_SYN where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspUnwtSynResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_UNWT_SYN
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspUnwtSynResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_UNWT_SYN
- </select>
- <select id="findList" resultMap="bisInspUnwtSynResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_UNWT_SYN
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_UNWT_SYN
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspUnwtSyn">
- insert into BIS_INSP_UNWT_SYN(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_UNWT_SYN set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspUnwtSyn">
- update BIS_INSP_UNWT_SYN set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_UNWT_SYN set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspUnwtSyn">
- update BIS_INSP_UNWT_SYN
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isLeak != null and isLeak != ''">IS_LEAK
- = #{isLeak},
- </if>
- <if test="isQr != null and isQr != ''">IS_QR
- = #{isQr},
- </if>
- <if test="backNote != null and backNote != ''">BACK_NOTE
- = #{backNote},
- </if>
- <if test="isUsrScrt != null and isUsrScrt != ''">IS_USR_SCRT
- = #{isUsrScrt},
- </if>
- <if test="isNusrStnd != null and isNusrStnd != ''">IS_NUSR_STND
- = #{isNusrStnd},
- </if>
- <if test="isSysUsr != null and isSysUsr != ''">IS_SYS_USR
- = #{isSysUsr},
- </if>
- <if test="wtzNote != null and wtzNote != ''">WTZ_NOTE
- = #{wtzNote},
- </if>
- <if test="isNplanCmp != null and isNplanCmp != ''">IS_NPLAN_CMP
- = #{isNplanCmp},
- </if>
- <if test="isPrjtNusr != null and isPrjtNusr != ''">IS_PRJT_NUSR
- = #{isPrjtNusr},
- </if>
- <if test="isNusrRole != null and isNusrRole != ''">IS_NUSR_ROLE
- = #{isNusrRole},
- </if>
- <if test="repairNote != null and repairNote != ''">REPAIR_NOTE
- = #{repairNote},
- </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="note != null and note != ''">NOTE
- = #{note},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="isStopAll != null and isStopAll != ''">IS_STOP_ALL
- = #{isStopAll},
- </if>
- <if test="isQrFit != null and isQrFit != ''">IS_QR_FIT
- = #{isQrFit},
- </if>
- <if test="isSetLog != null and isSetLog != ''">IS_SET_LOG
- = #{isSetLog},
- </if>
- <if test="isLose != null and isLose != ''">IS_LOSE
- = #{isLose},
- </if>
- <if test="isMeet != null and isMeet != ''">IS_MEET
- = #{isMeet},
- </if>
- <if test="isLkbkLose != null and isLkbkLose != ''">IS_LKBK_LOSE
- = #{isLkbkLose},
- </if>
- <if test="isLkbkBook != null and isLkbkBook != ''">IS_LKBK_BOOK
- = #{isLkbkBook},
- </if>
- <if test="isLkbkRmd != null and isLkbkRmd != ''">IS_LKBK_RMD
- = #{isLkbkRmd},
- </if>
- <if test="isIrrBook != null and isIrrBook != ''">IS_IRR_BOOK
- = #{isIrrBook},
- </if>
- <if test="isIrrSend != null and isIrrSend != ''">IS_IRR_SEND
- = #{isIrrSend},
- </if>
- <if test="isIrrLimit != null and isIrrLimit != ''">IS_IRR_LIMIT
- = #{isIrrLimit},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspUnwtSyn">
- update BIS_INSP_UNWT_SYN
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isLeak != null and isLeak != ''">IS_LEAK
- = #{isLeak},
- </if>
- <if test="isQr != null and isQr != ''">IS_QR
- = #{isQr},
- </if>
- <if test="backNote != null and backNote != ''">BACK_NOTE
- = #{backNote},
- </if>
- <if test="isUsrScrt != null and isUsrScrt != ''">IS_USR_SCRT
- = #{isUsrScrt},
- </if>
- <if test="isNusrStnd != null and isNusrStnd != ''">IS_NUSR_STND
- = #{isNusrStnd},
- </if>
- <if test="isSysUsr != null and isSysUsr != ''">IS_SYS_USR
- = #{isSysUsr},
- </if>
- <if test="wtzNote != null and wtzNote != ''">WTZ_NOTE
- = #{wtzNote},
- </if>
- <if test="isNplanCmp != null and isNplanCmp != ''">IS_NPLAN_CMP
- = #{isNplanCmp},
- </if>
- <if test="isPrjtNusr != null and isPrjtNusr != ''">IS_PRJT_NUSR
- = #{isPrjtNusr},
- </if>
- <if test="isNusrRole != null and isNusrRole != ''">IS_NUSR_ROLE
- = #{isNusrRole},
- </if>
- <if test="repairNote != null and repairNote != ''">REPAIR_NOTE
- = #{repairNote},
- </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="note != null and note != ''">NOTE
- = #{note},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="isStopAll != null and isStopAll != ''">IS_STOP_ALL
- = #{isStopAll},
- </if>
- <if test="isQrFit != null and isQrFit != ''">IS_QR_FIT
- = #{isQrFit},
- </if>
- <if test="isSetLog != null and isSetLog != ''">IS_SET_LOG
- = #{isSetLog},
- </if>
- <if test="isLose != null and isLose != ''">IS_LOSE
- = #{isLose},
- </if>
- <if test="isMeet != null and isMeet != ''">IS_MEET
- = #{isMeet},
- </if>
- <if test="isLkbkLose != null and isLkbkLose != ''">IS_LKBK_LOSE
- = #{isLkbkLose},
- </if>
- <if test="isLkbkBook != null and isLkbkBook != ''">IS_LKBK_BOOK
- = #{isLkbkBook},
- </if>
- <if test="isLkbkRmd != null and isLkbkRmd != ''">IS_LKBK_RMD
- = #{isLkbkRmd},
- </if>
- <if test="isIrrBook != null and isIrrBook != ''">IS_IRR_BOOK
- = #{isIrrBook},
- </if>
- <if test="isIrrSend != null and isIrrSend != ''">IS_IRR_SEND
- = #{isIrrSend},
- </if>
- <if test="isIrrLimit != null and isIrrLimit != ''">IS_IRR_LIMIT
- = #{isIrrLimit},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|