| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- <?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.BisInspStstnSceneDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspStstnScene" id="bisInspStstnSceneResultMap">
- <result property="total" column="TOTAL"/>
- <result property="actualScore" column="ACTUAL_SCORE"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="locNum" column="LOC_NUM"/>
- <result property="closeNum" column="CLOSE_NUM"/>
- <result property="pubNum" column="PUB_NUM"/>
- <result property="safNum" column="SAF_NUM"/>
- <result property="chkNum" column="CHK_NUM"/>
- <result property="buldNum" column="BULD_NUM"/>
- <result property="parkNum" column="PARK_NUM"/>
- <result property="sendNum" column="SEND_NUM"/>
- <result property="lytNum" column="LYT_NUM"/>
- <result property="isSet" column="IS_SET"/>
- <result property="setNum" column="SET_NUM"/>
- <result property="setRoomNum" column="SET_ROOM_NUM"/>
- <result property="coverNum" column="COVER_NUM"/>
- <result property="wasteNum" column="WASTE_NUM"/>
- <result property="isPubSaf" column="IS_PUB_SAF"/>
- <result property="pubSafNum" column="PUB_SAF_NUM"/>
- <result property="isHndlPub" column="IS_HNDL_PUB"/>
- <result property="hndlPubNum" column="HNDL_PUB_NUM"/>
- <result property="isPrcPub" column="IS_PRC_PUB"/>
- <result property="prcPubNum" column="PRC_PUB_NUM"/>
- <result property="isMtcPub" column="IS_MTC_PUB"/>
- <result property="mtcPubNum" column="MTC_PUB_NUM"/>
- <result property="isTestChk" column="IS_TEST_CHK"/>
- <result property="testChkNum" column="TEST_CHK_NUM"/>
- <result property="isRghtPlc" column="IS_RGHT_PLC"/>
- <result property="rghtPlcNum" column="RGHT_PLC_NUM"/>
- <result property="isAppPlan" column="IS_APP_PLAN"/>
- <result property="appPlanNum" column="APP_PLAN_NUM"/>
- <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"/>
- </resultMap>
- <sql id="table_columns">
- TOTAL,
- ACTUAL_SCORE,
- ID,
- RGSTR_ID,
- LOC_NUM,
- CLOSE_NUM,
- PUB_NUM,
- SAF_NUM,
- CHK_NUM,
- BULD_NUM,
- PARK_NUM,
- SEND_NUM,
- LYT_NUM,
- IS_SET,
- SET_NUM,
- SET_ROOM_NUM,
- COVER_NUM,
- WASTE_NUM,
- IS_PUB_SAF,
- PUB_SAF_NUM,
- IS_HNDL_PUB,
- HNDL_PUB_NUM,
- IS_PRC_PUB,
- PRC_PUB_NUM,
- IS_MTC_PUB,
- MTC_PUB_NUM,
- IS_TEST_CHK,
- TEST_CHK_NUM,
- IS_RGHT_PLC,
- RGHT_PLC_NUM,
- IS_APP_PLAN,
- APP_PLAN_NUM,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{total},
- #{actualScore},
- #{id},
- #{rgstrId},
- #{locNum},
- #{closeNum},
- #{pubNum},
- #{safNum},
- #{chkNum},
- #{buldNum},
- #{parkNum},
- #{sendNum},
- #{lytNum},
- #{isSet},
- #{setNum},
- #{setRoomNum},
- #{coverNum},
- #{wasteNum},
- #{isPubSaf},
- #{pubSafNum},
- #{isHndlPub},
- #{hndlPubNum},
- #{isPrcPub},
- #{prcPubNum},
- #{isMtcPub},
- #{mtcPubNum},
- #{isTestChk},
- #{testChkNum},
- #{isRghtPlc},
- #{rghtPlcNum},
- #{isAppPlan},
- #{appPlanNum},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="total != null and total != ''">
- and TOTAL = #{total}
- </if>
- <if test="actualScore != null and actualScore != ''">
- and ACTUAL_SCORE = #{actualScore}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="locNum != null ">
- and LOC_NUM = #{locNum}
- </if>
- <if test="closeNum != null ">
- and CLOSE_NUM = #{closeNum}
- </if>
- <if test="pubNum != null ">
- and PUB_NUM = #{pubNum}
- </if>
- <if test="safNum != null ">
- and SAF_NUM = #{safNum}
- </if>
- <if test="chkNum != null ">
- and CHK_NUM = #{chkNum}
- </if>
- <if test="buldNum != null ">
- and BULD_NUM = #{buldNum}
- </if>
- <if test="parkNum != null ">
- and PARK_NUM = #{parkNum}
- </if>
- <if test="sendNum != null ">
- and SEND_NUM = #{sendNum}
- </if>
- <if test="lytNum != null ">
- and LYT_NUM = #{lytNum}
- </if>
- <if test="isSet != null and isSet != ''">
- and IS_SET = #{isSet}
- </if>
- <if test="setNum != null ">
- and SET_NUM = #{setNum}
- </if>
- <if test="setRoomNum != null ">
- and SET_ROOM_NUM = #{setRoomNum}
- </if>
- <if test="coverNum != null ">
- and COVER_NUM = #{coverNum}
- </if>
- <if test="wasteNum != null ">
- and WASTE_NUM = #{wasteNum}
- </if>
- <if test="isPubSaf != null and isPubSaf != ''">
- and IS_PUB_SAF = #{isPubSaf}
- </if>
- <if test="pubSafNum != null ">
- and PUB_SAF_NUM = #{pubSafNum}
- </if>
- <if test="isHndlPub != null and isHndlPub != ''">
- and IS_HNDL_PUB = #{isHndlPub}
- </if>
- <if test="hndlPubNum != null ">
- and HNDL_PUB_NUM = #{hndlPubNum}
- </if>
- <if test="isPrcPub != null and isPrcPub != ''">
- and IS_PRC_PUB = #{isPrcPub}
- </if>
- <if test="prcPubNum != null ">
- and PRC_PUB_NUM = #{prcPubNum}
- </if>
- <if test="isMtcPub != null and isMtcPub != ''">
- and IS_MTC_PUB = #{isMtcPub}
- </if>
- <if test="mtcPubNum != null ">
- and MTC_PUB_NUM = #{mtcPubNum}
- </if>
- <if test="isTestChk != null and isTestChk != ''">
- and IS_TEST_CHK = #{isTestChk}
- </if>
- <if test="testChkNum != null ">
- and TEST_CHK_NUM = #{testChkNum}
- </if>
- <if test="isRghtPlc != null and isRghtPlc != ''">
- and IS_RGHT_PLC = #{isRghtPlc}
- </if>
- <if test="rghtPlcNum != null ">
- and RGHT_PLC_NUM = #{rghtPlcNum}
- </if>
- <if test="isAppPlan != null and isAppPlan != ''">
- and IS_APP_PLAN = #{isAppPlan}
- </if>
- <if test="appPlanNum != null ">
- and APP_PLAN_NUM = #{appPlanNum}
- </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>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspStstnSceneResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_STSTN_SCENE where RGSTR_ID = #{rgstrId}
- </select>
- <select id="getBy" resultMap="bisInspStstnSceneResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_STSTN_SCENE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspStstnSceneResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_STSTN_SCENE
- </select>
- <select id="findList" resultMap="bisInspStstnSceneResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_STSTN_SCENE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_STSTN_SCENE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnScene">
- insert into BIS_INSP_STSTN_SCENE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_STSTN_SCENE set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnScene">
- update BIS_INSP_STSTN_SCENE set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_STSTN_SCENE set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnScene">
- update BIS_INSP_STSTN_SCENE
- <trim prefix="set" suffixOverrides=",">
- <if test="total != null">TOTAL
- = #{total},
- </if>
- <if test="actualScore != null">ACTUAL_SCORE
- = #{actualScore},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="locNum != null">LOC_NUM
- = #{locNum},
- </if>
- <if test="closeNum != null">CLOSE_NUM
- = #{closeNum},
- </if>
- <if test="pubNum != null">PUB_NUM
- = #{pubNum},
- </if>
- <if test="safNum != null">SAF_NUM
- = #{safNum},
- </if>
- <if test="chkNum != null">CHK_NUM
- = #{chkNum},
- </if>
- <if test="buldNum != null">BULD_NUM
- = #{buldNum},
- </if>
- <if test="parkNum != null">PARK_NUM
- = #{parkNum},
- </if>
- <if test="sendNum != null">SEND_NUM
- = #{sendNum},
- </if>
- <if test="lytNum != null">LYT_NUM
- = #{lytNum},
- </if>
- <if test="isSet != null">IS_SET
- = #{isSet},
- </if>
- <if test="setNum != null">SET_NUM
- = #{setNum},
- </if>
- <if test="setRoomNum != null">SET_ROOM_NUM
- = #{setRoomNum},
- </if>
- <if test="coverNum != null">COVER_NUM
- = #{coverNum},
- </if>
- <if test="wasteNum != null">WASTE_NUM
- = #{wasteNum},
- </if>
- <if test="isPubSaf != null and isPubSaf != ''">IS_PUB_SAF
- = #{isPubSaf},
- </if>
- <if test="pubSafNum != null">PUB_SAF_NUM
- = #{pubSafNum},
- </if>
- <if test="isHndlPub != null and isHndlPub != ''">IS_HNDL_PUB
- = #{isHndlPub},
- </if>
- <if test="hndlPubNum != null">HNDL_PUB_NUM
- = #{hndlPubNum},
- </if>
- <if test="isPrcPub != null and isPrcPub != ''">IS_PRC_PUB
- = #{isPrcPub},
- </if>
- <if test="prcPubNum != null">PRC_PUB_NUM
- = #{prcPubNum},
- </if>
- <if test="isMtcPub != null and isMtcPub != ''">IS_MTC_PUB
- = #{isMtcPub},
- </if>
- <if test="mtcPubNum != null">MTC_PUB_NUM
- = #{mtcPubNum},
- </if>
- <if test="isTestChk != null and isTestChk != ''">IS_TEST_CHK
- = #{isTestChk},
- </if>
- <if test="testChkNum != null">TEST_CHK_NUM
- = #{testChkNum},
- </if>
- <if test="isRghtPlc != null and isRghtPlc != ''">IS_RGHT_PLC
- = #{isRghtPlc},
- </if>
- <if test="rghtPlcNum != null">RGHT_PLC_NUM
- = #{rghtPlcNum},
- </if>
- <if test="isAppPlan != null and isAppPlan != ''">IS_APP_PLAN
- = #{isAppPlan},
- </if>
- <if test="appPlanNum != null">APP_PLAN_NUM
- = #{appPlanNum},
- </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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspStstnScene">
- update BIS_INSP_STSTN_SCENE
- <trim prefix="set" suffixOverrides=",">
- <if test="total != null and total != ''">TOTAL
- = #{total},
- </if>
- <if test="actualScore != null and actualScore != ''">ACTUAL_SCORE
- = #{actualScore},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="locNum != null ">LOC_NUM
- = #{locNum},
- </if>
- <if test="closeNum != null ">CLOSE_NUM
- = #{closeNum},
- </if>
- <if test="pubNum != null ">PUB_NUM
- = #{pubNum},
- </if>
- <if test="safNum != null ">SAF_NUM
- = #{safNum},
- </if>
- <if test="chkNum != null ">CHK_NUM
- = #{chkNum},
- </if>
- <if test="buldNum != null ">BULD_NUM
- = #{buldNum},
- </if>
- <if test="parkNum != null ">PARK_NUM
- = #{parkNum},
- </if>
- <if test="sendNum != null ">SEND_NUM
- = #{sendNum},
- </if>
- <if test="lytNum != null ">LYT_NUM
- = #{lytNum},
- </if>
- <if test="isSet != null and isSet != ''">IS_SET
- = #{isSet},
- </if>
- <if test="setNum != null ">SET_NUM
- = #{setNum},
- </if>
- <if test="setRoomNum != null ">SET_ROOM_NUM
- = #{setRoomNum},
- </if>
- <if test="coverNum != null ">COVER_NUM
- = #{coverNum},
- </if>
- <if test="wasteNum != null ">WASTE_NUM
- = #{wasteNum},
- </if>
- <if test="isPubSaf != null and isPubSaf != ''">IS_PUB_SAF
- = #{isPubSaf},
- </if>
- <if test="pubSafNum != null ">PUB_SAF_NUM
- = #{pubSafNum},
- </if>
- <if test="isHndlPub != null and isHndlPub != ''">IS_HNDL_PUB
- = #{isHndlPub},
- </if>
- <if test="hndlPubNum != null ">HNDL_PUB_NUM
- = #{hndlPubNum},
- </if>
- <if test="isPrcPub != null and isPrcPub != ''">IS_PRC_PUB
- = #{isPrcPub},
- </if>
- <if test="prcPubNum != null ">PRC_PUB_NUM
- = #{prcPubNum},
- </if>
- <if test="isMtcPub != null and isMtcPub != ''">IS_MTC_PUB
- = #{isMtcPub},
- </if>
- <if test="mtcPubNum != null ">MTC_PUB_NUM
- = #{mtcPubNum},
- </if>
- <if test="isTestChk != null and isTestChk != ''">IS_TEST_CHK
- = #{isTestChk},
- </if>
- <if test="testChkNum != null ">TEST_CHK_NUM
- = #{testChkNum},
- </if>
- <if test="isRghtPlc != null and isRghtPlc != ''">IS_RGHT_PLC
- = #{isRghtPlc},
- </if>
- <if test="rghtPlcNum != null ">RGHT_PLC_NUM
- = #{rghtPlcNum},
- </if>
- <if test="isAppPlan != null and isAppPlan != ''">IS_APP_PLAN
- = #{isAppPlan},
- </if>
- <if test="appPlanNum != null ">APP_PLAN_NUM
- = #{appPlanNum},
- </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>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|