| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?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.BisInspJspwiuWtruDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru" id="bisInspJspwiuWtruResultMap">
- <result property="isWtsvPub" column="IS_WTSV_PUB"/>
- <result property="isWtsvDeep" column="IS_WTSV_DEEP"/>
- <result property="isBldCmpchk" column="IS_BLD_CMPCHK"/>
- <result property="isEqtWtsv" column="IS_EQT_WTSV"/>
- <result property="isEqtLeak" column="IS_EQT_LEAK"/>
- <result property="isKeyTest" column="IS_KEY_TEST"/>
- <result property="isKeyIntest" column="IS_KEY_INTEST"/>
- <result property="isKeyUchk" column="IS_KEY_UCHK"/>
- <result property="isKeyIuchk" column="IS_KEY_IUCHK"/>
- <result property="isKeyCsvchk" column="IS_KEY_CSVCHK"/>
- <result property="wtsvGetDate" column="WTSV_GET_DATE"/>
- <result property="wtsvGetFile" column="WTSV_GET_FILE"/>
- <result property="isUsrNwter" column="IS_USR_NWTER"/>
- <result property="usrSti" column="USR_STI"/>
- <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"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="wtruType" column="WTRU_TYPE"/>
- <result property="wtruTypeNote" column="WTRU_TYPE_NOTE"/>
- <result property="acur" column="ACUR"/>
- <result property="isInplPub" column="IS_INPL_PUB"/>
- <result property="isInplByo" column="IS_INPL_BYO"/>
- <result property="isInplNnml" column="IS_INPL_NNML"/>
- <result property="isMnt" column="IS_MNT"/>
- <result property="isSndPlan" column="IS_SND_PLAN"/>
- <result property="isRslMon" column="IS_RSL_MON"/>
- <result property="isAppAdj" column="IS_APP_ADJ"/>
- <result property="isUsrOver" column="IS_USR_OVER"/>
- <result property="isPayCost" column="IS_PAY_COST"/>
- <result property="isPayOcost" column="IS_PAY_OCOST"/>
- <result property="itpScale" column="ITP_SCALE"/>
- <result property="usrStnd" column="USR_STND"/>
- <result property="isOverUsr" column="IS_OVER_USR"/>
- <result property="isBldMsr" column="IS_BLD_MSR"/>
- <result property="isMsrMeet" column="IS_MSR_MEET"/>
- <result property="isMsrRun" column="IS_MSR_RUN"/>
- <result property="isMsrChk" column="IS_MSR_CHK"/>
- <result property="isMsrBook" column="IS_MSR_BOOK"/>
- <result property="state" column="STATE"/>
- </resultMap>
-
- <sql id="table_columns">
- IS_WTSV_PUB,
- IS_WTSV_DEEP,
- IS_BLD_CMPCHK,
- IS_EQT_WTSV,
- IS_EQT_LEAK,
- IS_KEY_TEST,
- IS_KEY_INTEST,
- IS_KEY_UCHK,
- IS_KEY_IUCHK,
- IS_KEY_CSVCHK,
- WTSV_GET_DATE,
- WTSV_GET_FILE,
- IS_USR_NWTER,
- USR_STI,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- ID,
- RGSTR_ID,
- WTRU_TYPE,
- WTRU_TYPE_NOTE,
- ACUR,
- IS_INPL_PUB,
- IS_INPL_BYO,
- IS_INPL_NNML,
- IS_MNT,
- IS_SND_PLAN,
- IS_RSL_MON,
- IS_APP_ADJ,
- IS_USR_OVER,
- IS_PAY_COST,
- IS_PAY_OCOST,
- ITP_SCALE,
- USR_STND,
- IS_OVER_USR,
- IS_BLD_MSR,
- IS_MSR_MEET,
- IS_MSR_RUN,
- IS_MSR_CHK,
- IS_MSR_BOOK,
- STATE
- </sql>
- <sql id="entity_properties">
- #{isWtsvPub},
- #{isWtsvDeep},
- #{isBldCmpchk},
- #{isEqtWtsv},
- #{isEqtLeak},
- #{isKeyTest},
- #{isKeyIntest},
- #{isKeyUchk},
- #{isKeyIuchk},
- #{isKeyCsvchk},
- #{wtsvGetDate},
- #{wtsvGetFile},
- #{isUsrNwter},
- #{usrSti},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{wtruType},
- #{wtruTypeNote},
- #{acur},
- #{isInplPub},
- #{isInplByo},
- #{isInplNnml},
- #{isMnt},
- #{isSndPlan},
- #{isRslMon},
- #{isAppAdj},
- #{isUsrOver},
- #{isPayCost},
- #{isPayOcost},
- #{itpScale},
- #{usrStnd},
- #{isOverUsr},
- #{isBldMsr},
- #{isMsrMeet},
- #{isMsrRun},
- #{isMsrChk},
- #{isMsrBook},
- #{state}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="isWtsvPub != null and isWtsvPub != ''">and IS_WTSV_PUB = #{isWtsvPub}</if>
- <if test="isWtsvDeep != null and isWtsvDeep != ''">and IS_WTSV_DEEP = #{isWtsvDeep}</if>
- <if test="isBldCmpchk != null and isBldCmpchk != ''">and IS_BLD_CMPCHK = #{isBldCmpchk}</if>
- <if test="isEqtWtsv != null and isEqtWtsv != ''">and IS_EQT_WTSV = #{isEqtWtsv}</if>
- <if test="isEqtLeak != null and isEqtLeak != ''">and IS_EQT_LEAK = #{isEqtLeak}</if>
- <if test="isKeyTest != null and isKeyTest != ''">and IS_KEY_TEST = #{isKeyTest}</if>
- <if test="isKeyIntest != null and isKeyIntest != ''">and IS_KEY_INTEST = #{isKeyIntest}</if>
- <if test="isKeyUchk != null and isKeyUchk != ''">and IS_KEY_UCHK = #{isKeyUchk}</if>
- <if test="isKeyIuchk != null and isKeyIuchk != ''">and IS_KEY_IUCHK = #{isKeyIuchk}</if>
- <if test="isKeyCsvchk != null and isKeyCsvchk != ''">and IS_KEY_CSVCHK = #{isKeyCsvchk}</if>
- <if test="wtsvGetDate != null">and WTSV_GET_DATE = #{wtsvGetDate}</if>
- <if test="wtsvGetFile != null and wtsvGetFile != ''">and WTSV_GET_FILE = #{wtsvGetFile}</if>
- <if test="isUsrNwter != null and isUsrNwter != ''">and IS_USR_NWTER = #{isUsrNwter}</if>
- <if test="usrSti != null and usrSti != ''">and USR_STI = #{usrSti}</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>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="wtruType != null and wtruType != ''">and WTRU_TYPE = #{wtruType}</if>
- <if test="wtruTypeNote != null and wtruTypeNote != ''">and WTRU_TYPE_NOTE = #{wtruTypeNote}</if>
- <if test="acur != null and acur != ''">and ACUR = #{acur}</if>
- <if test="isInplPub != null and isInplPub != ''">and IS_INPL_PUB = #{isInplPub}</if>
- <if test="isInplByo != null and isInplByo != ''">and IS_INPL_BYO = #{isInplByo}</if>
- <if test="isInplNnml != null and isInplNnml != ''">and IS_INPL_NNML = #{isInplNnml}</if>
- <if test="isMnt != null and isMnt != ''">and IS_MNT = #{isMnt}</if>
- <if test="isSndPlan != null and isSndPlan != ''">and IS_SND_PLAN = #{isSndPlan}</if>
- <if test="isRslMon != null and isRslMon != ''">and IS_RSL_MON = #{isRslMon}</if>
- <if test="isAppAdj != null and isAppAdj != ''">and IS_APP_ADJ = #{isAppAdj}</if>
- <if test="isUsrOver != null and isUsrOver != ''">and IS_USR_OVER = #{isUsrOver}</if>
- <if test="isPayCost != null and isPayCost != ''">and IS_PAY_COST = #{isPayCost}</if>
- <if test="isPayOcost != null and isPayOcost != ''">and IS_PAY_OCOST = #{isPayOcost}</if>
- <if test="itpScale != null and itpScale != ''">and ITP_SCALE = #{itpScale}</if>
- <if test="usrStnd != null and usrStnd != ''">and USR_STND = #{usrStnd}</if>
- <if test="isOverUsr != null and isOverUsr != ''">and IS_OVER_USR = #{isOverUsr}</if>
- <if test="isBldMsr != null and isBldMsr != ''">and IS_BLD_MSR = #{isBldMsr}</if>
- <if test="isMsrMeet != null and isMsrMeet != ''">and IS_MSR_MEET = #{isMsrMeet}</if>
- <if test="isMsrRun != null and isMsrRun != ''">and IS_MSR_RUN = #{isMsrRun}</if>
- <if test="isMsrChk != null and isMsrChk != ''">and IS_MSR_CHK = #{isMsrChk}</if>
- <if test="isMsrBook != null and isMsrBook != ''">and IS_MSR_BOOK = #{isMsrBook}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspJspwiuWtruResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspJspwiuWtruResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspJspwiuWtruResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU
- </select>
- <select id="findList" resultMap="bisInspJspwiuWtruResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_JSPWIU_WTRU <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
- insert into BIS_INSP_JSPWIU_WTRU( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU_WTRU set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
- delete from BIS_INSP_JSPWIU_WTRU
- <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU_WTRU set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
- update BIS_INSP_JSPWIU_WTRU
- <trim prefix="set" suffixOverrides=",">
- <if test="isWtsvPub != null and isWtsvPub != ''"> IS_WTSV_PUB = #{isWtsvPub},</if>
- <if test="isWtsvDeep != null and isWtsvDeep != ''">IS_WTSV_DEEP = #{isWtsvDeep},</if>
- <if test="isBldCmpchk != null and isBldCmpchk != ''">IS_BLD_CMPCHK = #{isBldCmpchk},</if>
- <if test="isEqtWtsv != null and isEqtWtsv != ''">IS_EQT_WTSV = #{isEqtWtsv},</if>
- <if test="isEqtLeak != null and isEqtLeak != ''">IS_EQT_LEAK = #{isEqtLeak},</if>
- <if test="isKeyTest != null and isKeyTest != ''">IS_KEY_TEST = #{isKeyTest},</if>
- <if test="isKeyIntest != null and isKeyIntest != ''">IS_KEY_INTEST = #{isKeyIntest},</if>
- <if test="isKeyUchk != null and isKeyUchk != ''">IS_KEY_UCHK = #{isKeyUchk},</if>
- <if test="isKeyIuchk != null and isKeyIuchk != ''">IS_KEY_IUCHK = #{isKeyIuchk},</if>
- <if test="isKeyCsvchk != null and isKeyCsvchk != ''">IS_KEY_CSVCHK = #{isKeyCsvchk},</if>
- <if test="wtsvGetDate != null">WTSV_GET_DATE = #{wtsvGetDate},</if>
- <if test="wtsvGetFile != null and wtsvGetFile != ''">WTSV_GET_FILE = #{wtsvGetFile},</if>
- <if test="isUsrNwter != null and isUsrNwter != ''">IS_USR_NWTER = #{isUsrNwter},</if>
- <if test="usrSti != null and usrSti != ''">USR_STI = #{usrSti},</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>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wtruType != null and wtruType != ''">WTRU_TYPE = #{wtruType},</if>
- <if test="wtruTypeNote != null and wtruTypeNote != ''">WTRU_TYPE_NOTE = #{wtruTypeNote},</if>
- <if test="acur != null and acur != ''">ACUR = #{acur},</if>
- <if test="isInplPub != null and isInplPub != ''">IS_INPL_PUB = #{isInplPub},</if>
- <if test="isInplByo != null and isInplByo != ''">IS_INPL_BYO = #{isInplByo},</if>
- <if test="isInplNnml != null and isInplNnml != ''">IS_INPL_NNML = #{isInplNnml},</if>
- <if test="isMnt != null and isMnt != ''">IS_MNT = #{isMnt},</if>
- <if test="isSndPlan != null and isSndPlan != ''">IS_SND_PLAN = #{isSndPlan},</if>
- <if test="isRslMon != null and isRslMon != ''">IS_RSL_MON = #{isRslMon},</if>
- <if test="isAppAdj != null and isAppAdj != ''">IS_APP_ADJ = #{isAppAdj},</if>
- <if test="isUsrOver != null and isUsrOver != ''">IS_USR_OVER = #{isUsrOver},</if>
- <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST = #{isPayCost},</if>
- <if test="isPayOcost != null and isPayOcost != ''">IS_PAY_OCOST = #{isPayOcost},</if>
- <if test="itpScale != null and itpScale != ''">ITP_SCALE = #{itpScale},</if>
- <if test="usrStnd != null and usrStnd != ''">USR_STND = #{usrStnd},</if>
- <if test="isOverUsr != null and isOverUsr != ''">IS_OVER_USR = #{isOverUsr},</if>
- <if test="isBldMsr != null and isBldMsr != ''">IS_BLD_MSR = #{isBldMsr},</if>
- <if test="isMsrMeet != null and isMsrMeet != ''">IS_MSR_MEET = #{isMsrMeet},</if>
- <if test="isMsrRun != null and isMsrRun != ''">IS_MSR_RUN = #{isMsrRun},</if>
- <if test="isMsrChk != null and isMsrChk != ''">IS_MSR_CHK = #{isMsrChk},</if>
- <if test="isMsrBook != null and isMsrBook != ''">IS_MSR_BOOK = #{isMsrBook},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuWtru">
- update BIS_INSP_JSPWIU_WTRU
- <trim prefix="set" suffixOverrides=",">
- <if test="isWtsvPub != null and isWtsvPub != ''"> IS_WTSV_PUB = #{isWtsvPub},</if>
- <if test="isWtsvDeep != null and isWtsvDeep != ''">IS_WTSV_DEEP = #{isWtsvDeep},</if>
- <if test="isBldCmpchk != null and isBldCmpchk != ''">IS_BLD_CMPCHK = #{isBldCmpchk},</if>
- <if test="isEqtWtsv != null and isEqtWtsv != ''">IS_EQT_WTSV = #{isEqtWtsv},</if>
- <if test="isEqtLeak != null and isEqtLeak != ''">IS_EQT_LEAK = #{isEqtLeak},</if>
- <if test="isKeyTest != null and isKeyTest != ''">IS_KEY_TEST = #{isKeyTest},</if>
- <if test="isKeyIntest != null and isKeyIntest != ''">IS_KEY_INTEST = #{isKeyIntest},</if>
- <if test="isKeyUchk != null and isKeyUchk != ''">IS_KEY_UCHK = #{isKeyUchk},</if>
- <if test="isKeyIuchk != null and isKeyIuchk != ''">IS_KEY_IUCHK = #{isKeyIuchk},</if>
- <if test="isKeyCsvchk != null and isKeyCsvchk != ''">IS_KEY_CSVCHK = #{isKeyCsvchk},</if>
- <if test="wtsvGetDate != null">WTSV_GET_DATE = #{wtsvGetDate},</if>
- <if test="wtsvGetFile != null and wtsvGetFile != ''">WTSV_GET_FILE = #{wtsvGetFile},</if>
- <if test="isUsrNwter != null and isUsrNwter != ''">IS_USR_NWTER = #{isUsrNwter},</if>
- <if test="usrSti != null and usrSti != ''">USR_STI = #{usrSti},</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>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wtruType != null and wtruType != ''">WTRU_TYPE = #{wtruType},</if>
- <if test="wtruTypeNote != null and wtruTypeNote != ''">WTRU_TYPE_NOTE = #{wtruTypeNote},</if>
- <if test="acur != null and acur != ''">ACUR = #{acur},</if>
- <if test="isInplPub != null and isInplPub != ''">IS_INPL_PUB = #{isInplPub},</if>
- <if test="isInplByo != null and isInplByo != ''">IS_INPL_BYO = #{isInplByo},</if>
- <if test="isInplNnml != null and isInplNnml != ''">IS_INPL_NNML = #{isInplNnml},</if>
- <if test="isMnt != null and isMnt != ''">IS_MNT = #{isMnt},</if>
- <if test="isSndPlan != null and isSndPlan != ''">IS_SND_PLAN = #{isSndPlan},</if>
- <if test="isRslMon != null and isRslMon != ''">IS_RSL_MON = #{isRslMon},</if>
- <if test="isAppAdj != null and isAppAdj != ''">IS_APP_ADJ = #{isAppAdj},</if>
- <if test="isUsrOver != null and isUsrOver != ''">IS_USR_OVER = #{isUsrOver},</if>
- <if test="isPayCost != null and isPayCost != ''">IS_PAY_COST = #{isPayCost},</if>
- <if test="isPayOcost != null and isPayOcost != ''">IS_PAY_OCOST = #{isPayOcost},</if>
- <if test="itpScale != null and itpScale != ''">ITP_SCALE = #{itpScale},</if>
- <if test="usrStnd != null and usrStnd != ''">USR_STND = #{usrStnd},</if>
- <if test="isOverUsr != null and isOverUsr != ''">IS_OVER_USR = #{isOverUsr},</if>
- <if test="isBldMsr != null and isBldMsr != ''">IS_BLD_MSR = #{isBldMsr},</if>
- <if test="isMsrMeet != null and isMsrMeet != ''">IS_MSR_MEET = #{isMsrMeet},</if>
- <if test="isMsrRun != null and isMsrRun != ''">IS_MSR_RUN = #{isMsrRun},</if>
- <if test="isMsrChk != null and isMsrChk != ''">IS_MSR_CHK = #{isMsrChk},</if>
- <if test="isMsrBook != null and isMsrBook != ''">IS_MSR_BOOK = #{isMsrBook},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|