| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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.BisInspRsvrSdSynDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsvrSdSyn" id="bisInspRsvrSdSynResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isExpSour" column="IS_EXP_SOUR"/>
- <result property="isAskRgstr" column="IS_ASK_RGSTR"/>
- <result property="isRgstrNpm" column="IS_RGSTR_NPM"/>
- <result property="isRunRvmg" column="IS_RUN_RVMG"/>
- <result property="isRunPlan" column="IS_RUN_PLAN"/>
- <result property="isStorWater" column="IS_STOR_WATER"/>
- <result property="isRunFsltdz" column="IS_RUN_FSLTDZ"/>
- <result property="isRunStor" column="IS_RUN_STOR"/>
- <result property="isSafIdnt" column="IS_SAF_IDNT"/>
- <result property="isIdntPro" column="IS_IDNT_PRO"/>
- <result property="isMontTrim" column="IS_MONT_TRIM"/>
- <result property="isStorGood" column="IS_STOR_GOOD"/>
- <result property="isReqStsf" column="IS_REQ_STSF"/>
- <result property="isMgnRoom" column="IS_MGN_ROOM"/>
- <result property="isSteRange" column="IS_STE_RANGE"/>
- <result property="isRngRisk" column="IS_RNG_RISK"/>
- <result property="isRngSlt" column="IS_RNG_SLT"/>
- <result property="isInRisk" column="IS_IN_RISK"/>
- <result property="isDamRisk" column="IS_DAM_RISK"/>
- <result property="isStorLit" column="IS_STOR_LIT"/>
- <result property="isRngBuld" column="IS_RNG_BULD"/>
- <result property="isClnRub" column="IS_CLN_RUB"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_EXP_SOUR,
- IS_ASK_RGSTR,
- IS_RGSTR_NPM,
- IS_RUN_RVMG,
- IS_RUN_PLAN,
- IS_STOR_WATER,
- IS_RUN_FSLTDZ,
- IS_RUN_STOR,
- IS_SAF_IDNT,
- IS_IDNT_PRO,
- IS_MONT_TRIM,
- IS_STOR_GOOD,
- IS_REQ_STSF,
- IS_MGN_ROOM,
- IS_STE_RANGE,
- IS_RNG_RISK,
- IS_RNG_SLT,
- IS_IN_RISK,
- IS_DAM_RISK,
- IS_STOR_LIT,
- IS_RNG_BULD,
- IS_CLN_RUB,
- DATA_STAT,
- PERS_ID,
- INTM,
- UPTM,
- NOTE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isExpSour},
- #{isAskRgstr},
- #{isRgstrNpm},
- #{isRunRvmg},
- #{isRunPlan},
- #{isStorWater},
- #{isRunFsltdz},
- #{isRunStor},
- #{isSafIdnt},
- #{isIdntPro},
- #{isMontTrim},
- #{isStorGood},
- #{isReqStsf},
- #{isMgnRoom},
- #{isSteRange},
- #{isRngRisk},
- #{isRngSlt},
- #{isInRisk},
- #{isDamRisk},
- #{isStorLit},
- #{isRngBuld},
- #{isClnRub},
- #{dataStat},
- #{persId},
- #{intm},
- #{uptm},
- #{note}
- </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="isExpSour != null and isExpSour != ''">and IS_EXP_SOUR = #{isExpSour}</if>
- <if test="isAskRgstr != null and isAskRgstr != ''">and IS_ASK_RGSTR = #{isAskRgstr}</if>
- <if test="isRgstrNpm != null and isRgstrNpm != ''">and IS_RGSTR_NPM = #{isRgstrNpm}</if>
- <if test="isRunRvmg != null and isRunRvmg != ''">and IS_RUN_RVMG = #{isRunRvmg}</if>
- <if test="isRunPlan != null and isRunPlan != ''">and IS_RUN_PLAN = #{isRunPlan}</if>
- <if test="isStorWater != null and isStorWater != ''">and IS_STOR_WATER = #{isStorWater}</if>
- <if test="isRunFsltdz != null and isRunFsltdz != ''">and IS_RUN_FSLTDZ = #{isRunFsltdz}</if>
- <if test="isRunStor != null and isRunStor != ''">and IS_RUN_STOR = #{isRunStor}</if>
- <if test="isSafIdnt != null and isSafIdnt != ''">and IS_SAF_IDNT = #{isSafIdnt}</if>
- <if test="isIdntPro != null and isIdntPro != ''">and IS_IDNT_PRO = #{isIdntPro}</if>
- <if test="isMontTrim != null and isMontTrim != ''">and IS_MONT_TRIM = #{isMontTrim}</if>
- <if test="isStorGood != null and isStorGood != ''">and IS_STOR_GOOD = #{isStorGood}</if>
- <if test="isReqStsf != null and isReqStsf != ''">and IS_REQ_STSF = #{isReqStsf}</if>
- <if test="isMgnRoom != null and isMgnRoom != ''">and IS_MGN_ROOM = #{isMgnRoom}</if>
- <if test="isSteRange != null and isSteRange != ''">and IS_STE_RANGE = #{isSteRange}</if>
- <if test="isRngRisk != null and isRngRisk != ''">and IS_RNG_RISK = #{isRngRisk}</if>
- <if test="isRngSlt != null and isRngSlt != ''">and IS_RNG_SLT = #{isRngSlt}</if>
- <if test="isInRisk != null and isInRisk != ''">and IS_IN_RISK = #{isInRisk}</if>
- <if test="isDamRisk != null and isDamRisk != ''">and IS_DAM_RISK = #{isDamRisk}</if>
- <if test="isStorLit != null and isStorLit != ''">and IS_STOR_LIT = #{isStorLit}</if>
- <if test="isRngBuld != null and isRngBuld != ''">and IS_RNG_BULD = #{isRngBuld}</if>
- <if test="isClnRub != null and isClnRub != ''">and IS_CLN_RUB = #{isClnRub}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsvrSdSynResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSVR_SD_SYN where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsvrSdSynResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_SD_SYN <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsvrSdSynResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_SD_SYN
- </select>
- <select id="findList" resultMap="bisInspRsvrSdSynResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSVR_SD_SYN <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSVR_SD_SYN <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrSdSyn">
- insert into BIS_INSP_RSVR_SD_SYN( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_RSVR_SD_SYN set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrSdSyn">
- delete from BIS_INSP_RSVR_SD_SYN <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSVR_SD_SYN set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrSdSyn">
- update BIS_INSP_RSVR_SD_SYN
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isExpSour != null and isExpSour != ''">IS_EXP_SOUR = #{isExpSour},</if>
- <if test="isAskRgstr != null and isAskRgstr != ''">IS_ASK_RGSTR = #{isAskRgstr},</if>
- <if test="isRgstrNpm != null and isRgstrNpm != ''">IS_RGSTR_NPM = #{isRgstrNpm},</if>
- <if test="isRunRvmg != null and isRunRvmg != ''">IS_RUN_RVMG = #{isRunRvmg},</if>
- <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
- <if test="isStorWater != null and isStorWater != ''">IS_STOR_WATER = #{isStorWater},</if>
- <if test="isRunFsltdz != null and isRunFsltdz != ''">IS_RUN_FSLTDZ = #{isRunFsltdz},</if>
- <if test="isRunStor != null and isRunStor != ''">IS_RUN_STOR = #{isRunStor},</if>
- <if test="isSafIdnt != null and isSafIdnt != ''">IS_SAF_IDNT = #{isSafIdnt},</if>
- <if test="isIdntPro != null and isIdntPro != ''">IS_IDNT_PRO = #{isIdntPro},</if>
- <if test="isMontTrim != null and isMontTrim != ''">IS_MONT_TRIM = #{isMontTrim},</if>
- <if test="isStorGood != null and isStorGood != ''">IS_STOR_GOOD = #{isStorGood},</if>
- <if test="isReqStsf != null and isReqStsf != ''">IS_REQ_STSF = #{isReqStsf},</if>
- <if test="isMgnRoom != null and isMgnRoom != ''">IS_MGN_ROOM = #{isMgnRoom},</if>
- <if test="isSteRange != null and isSteRange != ''">IS_STE_RANGE = #{isSteRange},</if>
- <if test="isRngRisk != null and isRngRisk != ''">IS_RNG_RISK = #{isRngRisk},</if>
- <if test="isRngSlt != null and isRngSlt != ''">IS_RNG_SLT = #{isRngSlt},</if>
- <if test="isInRisk != null and isInRisk != ''">IS_IN_RISK = #{isInRisk},</if>
- <if test="isDamRisk != null and isDamRisk != ''">IS_DAM_RISK = #{isDamRisk},</if>
- <if test="isStorLit != null and isStorLit != ''">IS_STOR_LIT = #{isStorLit},</if>
- <if test="isRngBuld != null and isRngBuld != ''">IS_RNG_BULD = #{isRngBuld},</if>
- <if test="isClnRub != null and isClnRub != ''">IS_CLN_RUB = #{isClnRub},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrSdSyn">
- update BIS_INSP_RSVR_SD_SYN
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isExpSour != null and isExpSour != ''">IS_EXP_SOUR = #{isExpSour},</if>
- <if test="isAskRgstr != null and isAskRgstr != ''">IS_ASK_RGSTR = #{isAskRgstr},</if>
- <if test="isRgstrNpm != null and isRgstrNpm != ''">IS_RGSTR_NPM = #{isRgstrNpm},</if>
- <if test="isRunRvmg != null and isRunRvmg != ''">IS_RUN_RVMG = #{isRunRvmg},</if>
- <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
- <if test="isStorWater != null and isStorWater != ''">IS_STOR_WATER = #{isStorWater},</if>
- <if test="isRunFsltdz != null and isRunFsltdz != ''">IS_RUN_FSLTDZ = #{isRunFsltdz},</if>
- <if test="isRunStor != null and isRunStor != ''">IS_RUN_STOR = #{isRunStor},</if>
- <if test="isSafIdnt != null and isSafIdnt != ''">IS_SAF_IDNT = #{isSafIdnt},</if>
- <if test="isIdntPro != null and isIdntPro != ''">IS_IDNT_PRO = #{isIdntPro},</if>
- <if test="isMontTrim != null and isMontTrim != ''">IS_MONT_TRIM = #{isMontTrim},</if>
- <if test="isStorGood != null and isStorGood != ''">IS_STOR_GOOD = #{isStorGood},</if>
- <if test="isReqStsf != null and isReqStsf != ''">IS_REQ_STSF = #{isReqStsf},</if>
- <if test="isMgnRoom != null and isMgnRoom != ''">IS_MGN_ROOM = #{isMgnRoom},</if>
- <if test="isSteRange != null and isSteRange != ''">IS_STE_RANGE = #{isSteRange},</if>
- <if test="isRngRisk != null and isRngRisk != ''">IS_RNG_RISK = #{isRngRisk},</if>
- <if test="isRngSlt != null and isRngSlt != ''">IS_RNG_SLT = #{isRngSlt},</if>
- <if test="isInRisk != null and isInRisk != ''">IS_IN_RISK = #{isInRisk},</if>
- <if test="isDamRisk != null and isDamRisk != ''">IS_DAM_RISK = #{isDamRisk},</if>
- <if test="isStorLit != null and isStorLit != ''">IS_STOR_LIT = #{isStorLit},</if>
- <if test="isRngBuld != null and isRngBuld != ''">IS_RNG_BULD = #{isRngBuld},</if>
- <if test="isClnRub != null and isClnRub != ''">IS_CLN_RUB = #{isClnRub},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</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>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|