| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <?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.BisInspVillgdWtspCaseDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillgdWtspCase" id="bisInspVillgdWtspCaseResultMap">
- <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="id" column="ID"/>
- <result property="wtspId" column="WTSP_ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isWfixPatrol" column="IS_WFIX_PATROL"/>
- <result property="isWfindMend" column="IS_WFIND_MEND"/>
- <result property="isNfixPatrol" column="IS_NFIX_PATROL"/>
- <result property="isNfindMend" column="IS_NFIND_MEND"/>
- <result property="isSetBurd" column="IS_SET_BURD"/>
- <result property="isSetBurdRoom" column="IS_SET_BURD_ROOM"/>
- <result property="isSetWind" column="IS_SET_WIND"/>
- <result property="isSetMsur" column="IS_SET_MSUR"/>
- <result property="isSureDep" column="IS_SURE_DEP"/>
- <result property="isSureDuty" column="IS_SURE_DUTY"/>
- <result property="isPubDuty" column="IS_PUB_DUTY"/>
- <result property="isBuldSys" column="IS_BULD_SYS"/>
- <result property="isSetProt" column="IS_SET_PROT"/>
- <result property="isRunNomal" column="IS_RUN_NOMAL"/>
- <result property="isPartSave" column="IS_PART_SAVE"/>
- <result property="isFixClean" column="IS_FIX_CLEAN"/>
- <result property="isRchStan" column="IS_RCH_STAN"/>
- <result property="isChkDev" column="IS_CHK_DEV"/>
- <result property="isBuldLog" column="IS_BULD_LOG"/>
- <result property="state" column="STATE"/>
- </resultMap>
- <sql id="table_columns">
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- ID,
- WTSP_ID,
- RGSTR_ID,
- IS_WFIX_PATROL,
- IS_WFIND_MEND,
- IS_NFIX_PATROL,
- IS_NFIND_MEND,
- IS_SET_BURD,
- IS_SET_BURD_ROOM,
- IS_SET_WIND,
- IS_SET_MSUR,
- IS_SURE_DEP,
- IS_SURE_DUTY,
- IS_PUB_DUTY,
- IS_BULD_SYS,
- IS_SET_PROT,
- IS_RUN_NOMAL,
- IS_PART_SAVE,
- IS_FIX_CLEAN,
- IS_RCH_STAN,
- IS_CHK_DEV,
- IS_BULD_LOG,
- STATE
- </sql>
- <sql id="entity_properties">
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{id},
- #{wtspId},
- #{rgstrId},
- #{isWfixPatrol},
- #{isWfindMend},
- #{isNfixPatrol},
- #{isNfindMend},
- #{isSetBurd},
- #{isSetBurdRoom},
- #{isSetWind},
- #{isSetMsur},
- #{isSureDep},
- #{isSureDuty},
- #{isPubDuty},
- #{isBuldSys},
- #{isSetProt},
- #{isRunNomal},
- #{isPartSave},
- #{isFixClean},
- #{isRchStan},
- #{isChkDev},
- #{isBuldLog},
- #{state}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <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="wtspId != null and wtspId != ''">
- and WTSP_ID = #{wtspId}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="isWfixPatrol != null and isWfixPatrol != ''">
- and IS_WFIX_PATROL = #{isWfixPatrol}
- </if>
- <if test="isWfindMend != null and isWfindMend != ''">
- and IS_WFIND_MEND = #{isWfindMend}
- </if>
- <if test="isNfixPatrol != null and isNfixPatrol != ''">
- and IS_NFIX_PATROL = #{isNfixPatrol}
- </if>
- <if test="isNfindMend != null and isNfindMend != ''">
- and IS_NFIND_MEND = #{isNfindMend}
- </if>
- <if test="isSetBurd != null and isSetBurd != ''">
- and IS_SET_BURD = #{isSetBurd}
- </if>
- <if test="isSetBurdRoom != null and isSetBurdRoom != ''">
- and IS_SET_BURD_ROOM = #{isSetBurdRoom}
- </if>
- <if test="isSetWind != null and isSetWind != ''">
- and IS_SET_WIND = #{isSetWind}
- </if>
- <if test="isSetMsur != null and isSetMsur != ''">
- and IS_SET_MSUR = #{isSetMsur}
- </if>
- <if test="isSureDep != null and isSureDep != ''">
- and IS_SURE_DEP = #{isSureDep}
- </if>
- <if test="isSureDuty != null and isSureDuty != ''">
- and IS_SURE_DUTY = #{isSureDuty}
- </if>
- <if test="isPubDuty != null and isPubDuty != ''">
- and IS_PUB_DUTY = #{isPubDuty}
- </if>
- <if test="isBuldSys != null and isBuldSys != ''">
- and IS_BULD_SYS = #{isBuldSys}
- </if>
- <if test="isSetProt != null and isSetProt != ''">
- and IS_SET_PROT = #{isSetProt}
- </if>
- <if test="isRunNomal != null and isRunNomal != ''">
- and IS_RUN_NOMAL = #{isRunNomal}
- </if>
- <if test="isPartSave != null and isPartSave != ''">
- and IS_PART_SAVE = #{isPartSave}
- </if>
- <if test="isFixClean != null and isFixClean != ''">
- and IS_FIX_CLEAN = #{isFixClean}
- </if>
- <if test="isRchStan != null and isRchStan != ''">
- and IS_RCH_STAN = #{isRchStan}
- </if>
- <if test="isChkDev != null and isChkDev != ''">
- and IS_CHK_DEV = #{isChkDev}
- </if>
- <if test="isBuldLog != null and isBuldLog != ''">
- and IS_BULD_LOG = #{isBuldLog}
- </if>
- <if test="state != null and state != ''">
- and STATE = #{state}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVillgdWtspCaseResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_WTSP_CASE where WTSP_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVillgdWtspCaseResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_WTSP_CASE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVillgdWtspCaseResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_WTSP_CASE
- </select>
- <select id="findList" resultMap="bisInspVillgdWtspCaseResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_WTSP_CASE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILLGD_WTSP_CASE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdWtspCase">
- insert into BIS_INSP_VILLGD_WTSP_CASE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_WTSP_CASE set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdWtspCase">
- update BIS_INSP_VILLGD_WTSP_CASE set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_WTSP_CASE set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdWtspCase">
- update BIS_INSP_VILLGD_WTSP_CASE
- <trim prefix="set" suffixOverrides=",">
- <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="wtspId != null and wtspId != ''">WTSP_ID
- = #{wtspId},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isWfixPatrol != null and isWfixPatrol != ''">IS_WFIX_PATROL
- = #{isWfixPatrol},
- </if>
- <if test="isWfindMend != null and isWfindMend != ''">IS_WFIND_MEND
- = #{isWfindMend},
- </if>
- <if test="isNfixPatrol != null and isNfixPatrol != ''">IS_NFIX_PATROL
- = #{isNfixPatrol},
- </if>
- <if test="isNfindMend != null and isNfindMend != ''">IS_NFIND_MEND
- = #{isNfindMend},
- </if>
- <if test="isSetBurd != null and isSetBurd != ''">IS_SET_BURD
- = #{isSetBurd},
- </if>
- <if test="isSetBurdRoom != null and isSetBurdRoom != ''">IS_SET_BURD_ROOM
- = #{isSetBurdRoom},
- </if>
- <if test="isSetWind != null and isSetWind != ''">IS_SET_WIND
- = #{isSetWind},
- </if>
- <if test="isSetMsur != null and isSetMsur != ''">IS_SET_MSUR
- = #{isSetMsur},
- </if>
- <if test="isSureDep != null and isSureDep != ''">IS_SURE_DEP
- = #{isSureDep},
- </if>
- <if test="isSureDuty != null and isSureDuty != ''">IS_SURE_DUTY
- = #{isSureDuty},
- </if>
- <if test="isPubDuty != null and isPubDuty != ''">IS_PUB_DUTY
- = #{isPubDuty},
- </if>
- <if test="isBuldSys != null and isBuldSys != ''">IS_BULD_SYS
- = #{isBuldSys},
- </if>
- <if test="isSetProt != null and isSetProt != ''">IS_SET_PROT
- = #{isSetProt},
- </if>
- <if test="isRunNomal != null and isRunNomal != ''">IS_RUN_NOMAL
- = #{isRunNomal},
- </if>
- <if test="isPartSave != null and isPartSave != ''">IS_PART_SAVE
- = #{isPartSave},
- </if>
- <if test="isFixClean != null and isFixClean != ''">IS_FIX_CLEAN
- = #{isFixClean},
- </if>
- <if test="isRchStan != null and isRchStan != ''">IS_RCH_STAN
- = #{isRchStan},
- </if>
- <if test="isChkDev != null and isChkDev != ''">IS_CHK_DEV
- = #{isChkDev},
- </if>
- <if test="isBuldLog != null and isBuldLog != ''">IS_BULD_LOG
- = #{isBuldLog},
- </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.BisInspVillgdWtspCase">
- update BIS_INSP_VILLGD_WTSP_CASE
- <trim prefix="set" suffixOverrides=",">
- <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="wtspId != null and wtspId != ''">WTSP_ID
- = #{wtspId},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isWfixPatrol != null and isWfixPatrol != ''">IS_WFIX_PATROL
- = #{isWfixPatrol},
- </if>
- <if test="isWfindMend != null and isWfindMend != ''">IS_WFIND_MEND
- = #{isWfindMend},
- </if>
- <if test="isNfixPatrol != null and isNfixPatrol != ''">IS_NFIX_PATROL
- = #{isNfixPatrol},
- </if>
- <if test="isNfindMend != null and isNfindMend != ''">IS_NFIND_MEND
- = #{isNfindMend},
- </if>
- <if test="isSetBurd != null and isSetBurd != ''">IS_SET_BURD
- = #{isSetBurd},
- </if>
- <if test="isSetBurdRoom != null and isSetBurdRoom != ''">IS_SET_BURD_ROOM
- = #{isSetBurdRoom},
- </if>
- <if test="isSetWind != null and isSetWind != ''">IS_SET_WIND
- = #{isSetWind},
- </if>
- <if test="isSetMsur != null and isSetMsur != ''">IS_SET_MSUR
- = #{isSetMsur},
- </if>
- <if test="isSureDep != null and isSureDep != ''">IS_SURE_DEP
- = #{isSureDep},
- </if>
- <if test="isSureDuty != null and isSureDuty != ''">IS_SURE_DUTY
- = #{isSureDuty},
- </if>
- <if test="isPubDuty != null and isPubDuty != ''">IS_PUB_DUTY
- = #{isPubDuty},
- </if>
- <if test="isBuldSys != null and isBuldSys != ''">IS_BULD_SYS
- = #{isBuldSys},
- </if>
- <if test="isSetProt != null and isSetProt != ''">IS_SET_PROT
- = #{isSetProt},
- </if>
- <if test="isRunNomal != null and isRunNomal != ''">IS_RUN_NOMAL
- = #{isRunNomal},
- </if>
- <if test="isPartSave != null and isPartSave != ''">IS_PART_SAVE
- = #{isPartSave},
- </if>
- <if test="isFixClean != null and isFixClean != ''">IS_FIX_CLEAN
- = #{isFixClean},
- </if>
- <if test="isRchStan != null and isRchStan != ''">IS_RCH_STAN
- = #{isRchStan},
- </if>
- <if test="isChkDev != null and isChkDev != ''">IS_CHK_DEV
- = #{isChkDev},
- </if>
- <if test="isBuldLog != null and isBuldLog != ''">IS_BULD_LOG
- = #{isBuldLog},
- </if>
- <if test="state != null and state != ''">
- STATE = #{state},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|