| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?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.BisInspSwhsjsMgtDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSwhsjsMgt" id="bisInspSwhsjsMgtResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isSaf" column="IS_SAF"/>
- <result property="isCert" column="IS_CERT"/>
- <result property="isMeas" column="IS_MEAS"/>
- <result property="isLevel" column="IS_LEVEL"/>
- <result property="isAdqWtr" column="IS_ADQ_WTR"/>
- <result property="isPlan" column="IS_PLAN"/>
- <result property="isRun" column="IS_RUN"/>
- <result property="isWtrQlty" column="IS_WTR_QLTY"/>
- <result property="isTranPros" column="IS_TRAN_PROS"/>
- <result property="isPub" column="IS_PUB"/>
- <result property="isClose" column="IS_CLOSE"/>
- <result property="isBrand" column="IS_BRAND"/>
- <result property="isGreen" column="IS_GREEN"/>
- <result property="isRequ" column="IS_REQU"/>
- <result property="isOneInds" column="IS_ONE_INDS"/>
- <result property="isTwoInds" column="IS_TWO_INDS"/>
- <result property="isPollEqpt" column="IS_POLL_EQPT"/>
- <result property="isStandard" column="IS_STANDARD"/>
- <result property="isPlace" column="IS_PLACE"/>
- <result property="isAcrossSys" column="IS_ACROSS_SYS"/>
- <result property="isMgtSys" column="IS_MGT_SYS"/>
- <result property="isPatrolSys" column="IS_PATROL_SYS"/>
- <result property="isAppr" column="IS_APPR"/>
- <result property="isElect" column="IS_ELECT"/>
- <result property="isBoard" column="IS_BOARD"/>
- <result property="isAssess" column="IS_ASSESS"/>
- <result property="isLevMon" column="IS_LEV_MON"/>
- <result property="isShare" column="IS_SHARE"/>
- <result property="isBloomMon" column="IS_BLOOM_MON"/>
- <result property="isComMon" column="IS_COM_MON"/>
- <result property="isVideoMon" column="IS_VIDEO_MON"/>
- <result property="isBuildEqpt" column="IS_BUILD_EQPT"/>
- <result property="isRelSys" column="IS_REL_SYS"/>
- <result property="isWtrAssess" column="IS_WTR_ASSESS"/>
- <result property="isSecAssess" column="IS_SEC_ASSESS"/>
- <result property="isSpecialPlan" column="IS_SPECIAL_PLAN"/>
- <result property="isDrill" column="IS_DRILL"/>
- <result property="isEng" column="IS_ENG"/>
- <result property="isEmerSys" column="IS_EMER_SYS"/>
- <result property="isEmerDisp" column="IS_EMER_DISP"/>
- <result property="isEmerMon" column="IS_EMER_MON"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- IS_SAF,
- IS_CERT,
- IS_MEAS,
- IS_LEVEL,
- IS_ADQ_WTR,
- IS_PLAN,
- IS_RUN,
- IS_WTR_QLTY,
- IS_TRAN_PROS,
- IS_PUB,
- IS_CLOSE,
- IS_BRAND,
- IS_GREEN,
- IS_REQU,
- IS_ONE_INDS,
- IS_TWO_INDS,
- IS_POLL_EQPT,
- IS_STANDARD,
- IS_PLACE,
- IS_ACROSS_SYS,
- IS_MGT_SYS,
- IS_PATROL_SYS,
- IS_APPR,
- IS_ELECT,
- IS_BOARD,
- IS_ASSESS,
- IS_LEV_MON,
- IS_SHARE,
- IS_BLOOM_MON,
- IS_COM_MON,
- IS_VIDEO_MON,
- IS_BUILD_EQPT,
- IS_REL_SYS,
- IS_WTR_ASSESS,
- IS_SEC_ASSESS,
- IS_SPECIAL_PLAN,
- IS_DRILL,
- IS_ENG,
- IS_EMER_SYS,
- IS_EMER_DISP,
- IS_EMER_MON
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{isSaf},
- #{isCert},
- #{isMeas},
- #{isLevel},
- #{isAdqWtr},
- #{isPlan},
- #{isRun},
- #{isWtrQlty},
- #{isTranPros},
- #{isPub},
- #{isClose},
- #{isBrand},
- #{isGreen},
- #{isRequ},
- #{isOneInds},
- #{isTwoInds},
- #{isPollEqpt},
- #{isStandard},
- #{isPlace},
- #{isAcrossSys},
- #{isMgtSys},
- #{isPatrolSys},
- #{isAppr},
- #{isElect},
- #{isBoard},
- #{isAssess},
- #{isLevMon},
- #{isShare},
- #{isBloomMon},
- #{isComMon},
- #{isVideoMon},
- #{isBuildEqpt},
- #{isRelSys},
- #{isWtrAssess},
- #{isSecAssess},
- #{isSpecialPlan},
- #{isDrill},
- #{isEng},
- #{isEmerSys},
- #{isEmerDisp},
- #{isEmerMon}
- </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="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="isSaf != null and isSaf != ''">and IS_SAF = #{isSaf}</if>
- <if test="isCert != null and isCert != ''">and IS_CERT = #{isCert}</if>
- <if test="isMeas != null and isMeas != ''">and IS_MEAS = #{isMeas}</if>
- <if test="isLevel != null and isLevel != ''">and IS_LEVEL = #{isLevel}</if>
- <if test="isAdqWtr != null and isAdqWtr != ''">and IS_ADQ_WTR = #{isAdqWtr}</if>
- <if test="isPlan != null and isPlan != ''">and IS_PLAN = #{isPlan}</if>
- <if test="isRun != null and isRun != ''">and IS_RUN = #{isRun}</if>
- <if test="isWtrQlty != null and isWtrQlty != ''">and IS_WTR_QLTY = #{isWtrQlty}</if>
- <if test="isTranPros != null and isTranPros != ''">and IS_TRAN_PROS = #{isTranPros}</if>
- <if test="isPub != null and isPub != ''">and IS_PUB = #{isPub}</if>
- <if test="isClose != null and isClose != ''">and IS_CLOSE = #{isClose}</if>
- <if test="isBrand != null and isBrand != ''">and IS_BRAND = #{isBrand}</if>
- <if test="isGreen != null and isGreen != ''">and IS_GREEN = #{isGreen}</if>
- <if test="isRequ != null and isRequ != ''">and IS_REQU = #{isRequ}</if>
- <if test="isOneInds != null and isOneInds != ''">and IS_ONE_INDS = #{isOneInds}</if>
- <if test="isTwoInds != null and isTwoInds != ''">and IS_TWO_INDS = #{isTwoInds}</if>
- <if test="isPollEqpt != null and isPollEqpt != ''">and IS_POLL_EQPT = #{isPollEqpt}</if>
- <if test="isStandard != null and isStandard != ''">and IS_STANDARD = #{isStandard}</if>
- <if test="isPlace != null and isPlace != ''">and IS_PLACE = #{isPlace}</if>
- <if test="isAcrossSys != null and isAcrossSys != ''">and IS_ACROSS_SYS = #{isAcrossSys}</if>
- <if test="isMgtSys != null and isMgtSys != ''">and IS_MGT_SYS = #{isMgtSys}</if>
- <if test="isPatrolSys != null and isPatrolSys != ''">and IS_PATROL_SYS = #{isPatrolSys}</if>
- <if test="isAppr != null and isAppr != ''">and IS_APPR = #{isAppr}</if>
- <if test="isElect != null and isElect != ''">and IS_ELECT = #{isElect}</if>
- <if test="isBoard != null and isBoard != ''">and IS_BOARD = #{isBoard}</if>
- <if test="isAssess != null and isAssess != ''">and IS_ASSESS = #{isAssess}</if>
- <if test="isLevMon != null and isLevMon != ''">and IS_LEV_MON = #{isLevMon}</if>
- <if test="isShare != null and isShare != ''">and IS_SHARE = #{isShare}</if>
- <if test="isBloomMon != null and isBloomMon != ''">and IS_BLOOM_MON = #{isBloomMon}</if>
- <if test="isComMon != null and isComMon != ''">and IS_COM_MON = #{isComMon}</if>
- <if test="isVideoMon != null and isVideoMon != ''">and IS_VIDEO_MON = #{isVideoMon}</if>
- <if test="isBuildEqpt != null and isBuildEqpt != ''">and IS_BUILD_EQPT = #{isBuildEqpt}</if>
- <if test="isRelSys != null and isRelSys != ''">and IS_REL_SYS = #{isRelSys}</if>
- <if test="isWtrAssess != null and isWtrAssess != ''">and IS_WTR_ASSESS = #{isWtrAssess}</if>
- <if test="isSecAssess != null and isSecAssess != ''">and IS_SEC_ASSESS = #{isSecAssess}</if>
- <if test="isSpecialPlan != null and isSpecialPlan != ''">and IS_SPECIAL_PLAN = #{isSpecialPlan}</if>
- <if test="isDrill != null and isDrill != ''">and IS_DRILL = #{isDrill}</if>
- <if test="isEng != null and isEng != ''">and IS_ENG = #{isEng}</if>
- <if test="isEmerSys != null and isEmerSys != ''">and IS_EMER_SYS = #{isEmerSys}</if>
- <if test="isEmerDisp != null and isEmerDisp != ''">and IS_EMER_DISP = #{isEmerDisp}</if>
- <if test="isEmerMon != null and isEmerMon != ''">and IS_EMER_MON = #{isEmerMon}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSwhsjsMgtResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_SWHSJS_MGT where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSwhsjsMgtResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_SWHSJS_MGT
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspSwhsjsMgtResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_SWHSJS_MGT
- </select>
- <select id="findList" resultMap="bisInspSwhsjsMgtResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_SWHSJS_MGT
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_SWHSJS_MGT
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSwhsjsMgt">
- insert into BIS_INSP_SWHSJS_MGT(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_SWHSJS_MGT set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSwhsjsMgt">
- update BIS_INSP_SWHSJS_MGT set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SWHSJS_MGT set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSwhsjsMgt">
- update BIS_INSP_SWHSJS_MGT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="isSaf != null and isSaf != ''">IS_SAF = #{isSaf},</if>
- <if test="isCert != null and isCert != ''">IS_CERT = #{isCert},</if>
- <if test="isMeas != null and isMeas != ''">IS_MEAS = #{isMeas},</if>
- <if test="isLevel != null and isLevel != ''">IS_LEVEL = #{isLevel},</if>
- <if test="isAdqWtr != null and isAdqWtr != ''">IS_ADQ_WTR = #{isAdqWtr},</if>
- <if test="isPlan != null and isPlan != ''">IS_PLAN = #{isPlan},</if>
- <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
- <if test="isWtrQlty != null and isWtrQlty != ''">IS_WTR_QLTY = #{isWtrQlty},</if>
- <if test="isTranPros != null and isTranPros != ''">IS_TRAN_PROS = #{isTranPros},</if>
- <if test="isPub != null and isPub != ''">IS_PUB = #{isPub},</if>
- <if test="isClose != null and isClose != ''">IS_CLOSE = #{isClose},</if>
- <if test="isBrand != null and isBrand != ''">IS_BRAND = #{isBrand},</if>
- <if test="isGreen != null and isGreen != ''">IS_GREEN = #{isGreen},</if>
- <if test="isRequ != null and isRequ != ''">IS_REQU = #{isRequ},</if>
- <if test="isOneInds != null and isOneInds != ''">IS_ONE_INDS = #{isOneInds},</if>
- <if test="isTwoInds != null and isTwoInds != ''">IS_TWO_INDS = #{isTwoInds},</if>
- <if test="isPollEqpt != null and isPollEqpt != ''">IS_POLL_EQPT = #{isPollEqpt},</if>
- <if test="isStandard != null and isStandard != ''">IS_STANDARD = #{isStandard},</if>
- <if test="isPlace != null and isPlace != ''">IS_PLACE = #{isPlace},</if>
- <if test="isAcrossSys != null and isAcrossSys != ''">IS_ACROSS_SYS = #{isAcrossSys},</if>
- <if test="isMgtSys != null and isMgtSys != ''">IS_MGT_SYS = #{isMgtSys},</if>
- <if test="isPatrolSys != null and isPatrolSys != ''">IS_PATROL_SYS = #{isPatrolSys},</if>
- <if test="isAppr != null and isAppr != ''">IS_APPR = #{isAppr},</if>
- <if test="isElect != null and isElect != ''">IS_ELECT = #{isElect},</if>
- <if test="isBoard != null and isBoard != ''">IS_BOARD = #{isBoard},</if>
- <if test="isAssess != null and isAssess != ''">IS_ASSESS = #{isAssess},</if>
- <if test="isLevMon != null and isLevMon != ''">IS_LEV_MON = #{isLevMon},</if>
- <if test="isShare != null and isShare != ''">IS_SHARE = #{isShare},</if>
- <if test="isBloomMon != null and isBloomMon != ''">IS_BLOOM_MON = #{isBloomMon},</if>
- <if test="isComMon != null and isComMon != ''">IS_COM_MON = #{isComMon},</if>
- <if test="isVideoMon != null and isVideoMon != ''">IS_VIDEO_MON = #{isVideoMon},</if>
- <if test="isBuildEqpt != null and isBuildEqpt != ''">IS_BUILD_EQPT = #{isBuildEqpt},</if>
- <if test="isRelSys != null and isRelSys != ''">IS_REL_SYS = #{isRelSys},</if>
- <if test="isWtrAssess != null and isWtrAssess != ''">IS_WTR_ASSESS = #{isWtrAssess},</if>
- <if test="isSecAssess != null and isSecAssess != ''">IS_SEC_ASSESS = #{isSecAssess},</if>
- <if test="isSpecialPlan != null and isSpecialPlan != ''">IS_SPECIAL_PLAN = #{isSpecialPlan},</if>
- <if test="isDrill != null and isDrill != ''">IS_DRILL = #{isDrill},</if>
- <if test="isEng != null and isEng != ''">IS_ENG = #{isEng},</if>
- <if test="isEmerSys != null and isEmerSys != ''">IS_EMER_SYS = #{isEmerSys},</if>
- <if test="isEmerDisp != null and isEmerDisp != ''">IS_EMER_DISP = #{isEmerDisp},</if>
- <if test="isEmerMon != null and isEmerMon != ''">IS_EMER_MON = #{isEmerMon},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSwhsjsMgt">
- update BIS_INSP_SWHSJS_MGT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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="isSaf != null and isSaf != ''">IS_SAF = #{isSaf},</if>
- <if test="isCert != null and isCert != ''">IS_CERT = #{isCert},</if>
- <if test="isMeas != null and isMeas != ''">IS_MEAS = #{isMeas},</if>
- <if test="isLevel != null and isLevel != ''">IS_LEVEL = #{isLevel},</if>
- <if test="isAdqWtr != null and isAdqWtr != ''">IS_ADQ_WTR = #{isAdqWtr},</if>
- <if test="isPlan != null and isPlan != ''">IS_PLAN = #{isPlan},</if>
- <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
- <if test="isWtrQlty != null and isWtrQlty != ''">IS_WTR_QLTY = #{isWtrQlty},</if>
- <if test="isTranPros != null and isTranPros != ''">IS_TRAN_PROS = #{isTranPros},</if>
- <if test="isPub != null and isPub != ''">IS_PUB = #{isPub},</if>
- <if test="isClose != null and isClose != ''">IS_CLOSE = #{isClose},</if>
- <if test="isBrand != null and isBrand != ''">IS_BRAND = #{isBrand},</if>
- <if test="isGreen != null and isGreen != ''">IS_GREEN = #{isGreen},</if>
- <if test="isRequ != null and isRequ != ''">IS_REQU = #{isRequ},</if>
- <if test="isOneInds != null and isOneInds != ''">IS_ONE_INDS = #{isOneInds},</if>
- <if test="isTwoInds != null and isTwoInds != ''">IS_TWO_INDS = #{isTwoInds},</if>
- <if test="isPollEqpt != null and isPollEqpt != ''">IS_POLL_EQPT = #{isPollEqpt},</if>
- <if test="isStandard != null and isStandard != ''">IS_STANDARD = #{isStandard},</if>
- <if test="isPlace != null and isPlace != ''">IS_PLACE = #{isPlace},</if>
- <if test="isAcrossSys != null and isAcrossSys != ''">IS_ACROSS_SYS = #{isAcrossSys},</if>
- <if test="isMgtSys != null and isMgtSys != ''">IS_MGT_SYS = #{isMgtSys},</if>
- <if test="isPatrolSys != null and isPatrolSys != ''">IS_PATROL_SYS = #{isPatrolSys},</if>
- <if test="isAppr != null and isAppr != ''">IS_APPR = #{isAppr},</if>
- <if test="isElect != null and isElect != ''">IS_ELECT = #{isElect},</if>
- <if test="isBoard != null and isBoard != ''">IS_BOARD = #{isBoard},</if>
- <if test="isAssess != null and isAssess != ''">IS_ASSESS = #{isAssess},</if>
- <if test="isLevMon != null and isLevMon != ''">IS_LEV_MON = #{isLevMon},</if>
- <if test="isShare != null and isShare != ''">IS_SHARE = #{isShare},</if>
- <if test="isBloomMon != null and isBloomMon != ''">IS_BLOOM_MON = #{isBloomMon},</if>
- <if test="isComMon != null and isComMon != ''">IS_COM_MON = #{isComMon},</if>
- <if test="isVideoMon != null and isVideoMon != ''">IS_VIDEO_MON = #{isVideoMon},</if>
- <if test="isBuildEqpt != null and isBuildEqpt != ''">IS_BUILD_EQPT = #{isBuildEqpt},</if>
- <if test="isRelSys != null and isRelSys != ''">IS_REL_SYS = #{isRelSys},</if>
- <if test="isWtrAssess != null and isWtrAssess != ''">IS_WTR_ASSESS = #{isWtrAssess},</if>
- <if test="isSecAssess != null and isSecAssess != ''">IS_SEC_ASSESS = #{isSecAssess},</if>
- <if test="isSpecialPlan != null and isSpecialPlan != ''">IS_SPECIAL_PLAN = #{isSpecialPlan},</if>
- <if test="isDrill != null and isDrill != ''">IS_DRILL = #{isDrill},</if>
- <if test="isEng != null and isEng != ''">IS_ENG = #{isEng},</if>
- <if test="isEmerSys != null and isEmerSys != ''">IS_EMER_SYS = #{isEmerSys},</if>
- <if test="isEmerDisp != null and isEmerDisp != ''">IS_EMER_DISP = #{isEmerDisp},</if>
- <if test="isEmerMon != null and isEmerMon != ''">IS_EMER_MON = #{isEmerMon},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|