| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?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.BisInspRsfcoqhPresDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsfcoqhPres" id="bisInspRsfcoqhPresResultMap">
- <result property="chkPres" column="CHK_PRES"/>
- <result property="chkTm" column="CHK_TM"/>
- <result property="isMakPlan" column="IS_MAK_PLAN"/>
- <result property="isPubDuty" column="IS_PUB_DUTY"/>
- <result property="fsltdz" column="FSLTDZ"/>
- <result property="fsltdzRun" column="FSLTDZ_RUN"/>
- <result property="isStore" column="IS_STORE"/>
- <result property="isChkLog" column="IS_CHK_LOG"/>
- <result property="isRunDvc" column="IS_RUN_DVC"/>
- <result property="chkPres1" column="CHK_PRES_1"/>
- <result property="govMang" column="GOV_MANG"/>
- <result property="ackLimt" column="ACK_LIMT"/>
- <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="rgstrId" column="RGSTR_ID"/>
- <result property="isBuld" column="IS_BULD"/>
- <result property="isDuty" column="IS_DUTY"/>
- <result property="isPlanApp" column="IS_PLAN_APP"/>
- <result property="isRhrs" column="IS_RHRS"/>
- <result property="isDutyPres" column="IS_DUTY_PRES"/>
- </resultMap>
-
- <sql id="table_columns">
- CHK_PRES,
- CHK_TM,
- IS_MAK_PLAN,
- IS_PUB_DUTY,
- FSLTDZ,
- FSLTDZ_RUN,
- IS_STORE,
- IS_CHK_LOG,
- IS_RUN_DVC,
- CHK_PRES_1,
- GOV_MANG,
- ACK_LIMT,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- ID,
- RGSTR_ID,
- IS_BULD,
- IS_DUTY,
- IS_PLAN_APP,
- IS_RHRS,
- IS_DUTY_PRES
- </sql>
- <sql id="entity_properties">
- #{chkPres},
- #{chkTm},
- #{isMakPlan},
- #{isPubDuty},
- #{fsltdz},
- #{fsltdzRun},
- #{isStore},
- #{isChkLog},
- #{isRunDvc},
- #{chkPres1},
- #{govMang},
- #{ackLimt},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{isBuld},
- #{isDuty},
- #{isPlanApp},
- #{isRhrs},
- #{isDutyPres}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="chkTm != null">and CHK_TM = #{chkTm}</if>
- <if test="isMakPlan != null and isMakPlan != ''">and IS_MAK_PLAN = #{isMakPlan}</if>
- <if test="isPubDuty != null and isPubDuty != ''">and IS_PUB_DUTY = #{isPubDuty}</if>
- <if test="fsltdz != null and fsltdz != ''">and FSLTDZ = #{fsltdz}</if>
- <if test="fsltdzRun != null and fsltdzRun != ''">and FSLTDZ_RUN = #{fsltdzRun}</if>
- <if test="isStore != null and isStore != ''">and IS_STORE = #{isStore}</if>
- <if test="isChkLog != null and isChkLog != ''">and IS_CHK_LOG = #{isChkLog}</if>
- <if test="isRunDvc != null and isRunDvc != ''">and IS_RUN_DVC = #{isRunDvc}</if>
- <if test="chkPres1 != null and chkPres1 != ''">and CHK_PRES_1 = #{chkPres1}</if>
- <if test="govMang != null and govMang != ''">and GOV_MANG = #{govMang}</if>
- <if test="ackLimt != null and ackLimt != ''">and ACK_LIMT = #{ackLimt}</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>
- <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="isBuld != null and isBuld != ''">and IS_BULD = #{isBuld}</if>
- <if test="isDuty != null and isDuty != ''">and IS_DUTY = #{isDuty}</if>
- <if test="isPlanApp != null and isPlanApp != ''">and IS_PLAN_APP = #{isPlanApp}</if>
- <if test="isRhrs != null and isRhrs != ''">and IS_RHRS = #{isRhrs}</if>
- <if test="isDutyPres != null and isDutyPres != ''">and IS_DUTY_PRES = #{isDutyPres}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsfcoqhPresResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSFCOQH_PRES where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsfcoqhPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCOQH_PRES <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsfcoqhPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCOQH_PRES
- </select>
- <select id="findList" resultMap="bisInspRsfcoqhPresResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCOQH_PRES <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSFCOQH_PRES <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoqhPres">
- insert into BIS_INSP_RSFCOQH_PRES( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_RSFCOQH_PRES set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoqhPres">
- delete from BIS_INSP_RSFCOQH_PRES <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSFCOQH_PRES set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoqhPres">
- update BIS_INSP_RSFCOQH_PRES
- <trim prefix="set" suffixOverrides=",">
- <if test="chkTm != null">CHK_TM = #{chkTm},</if>
- <if test="isMakPlan != null and isMakPlan != ''">IS_MAK_PLAN = #{isMakPlan},</if>
- <if test="isPubDuty != null and isPubDuty != ''">IS_PUB_DUTY = #{isPubDuty},</if>
- <if test="fsltdz != null and fsltdz != ''">FSLTDZ = #{fsltdz},</if>
- <if test="fsltdzRun != null and fsltdzRun != ''">FSLTDZ_RUN = #{fsltdzRun},</if>
- <if test="isStore != null and isStore != ''">IS_STORE = #{isStore},</if>
- <if test="isChkLog != null and isChkLog != ''">IS_CHK_LOG = #{isChkLog},</if>
- <if test="isRunDvc != null and isRunDvc != ''">IS_RUN_DVC = #{isRunDvc},</if>
- <if test="chkPres1 != null and chkPres1 != ''">CHK_PRES_1 = #{chkPres1},</if>
- <if test="govMang != null and govMang != ''">GOV_MANG = #{govMang},</if>
- <if test="ackLimt != null and ackLimt != ''">ACK_LIMT = #{ackLimt},</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>
- <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="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
- <if test="isDuty != null and isDuty != ''">IS_DUTY = #{isDuty},</if>
- <if test="isPlanApp != null and isPlanApp != ''">IS_PLAN_APP = #{isPlanApp},</if>
- <if test="isRhrs != null and isRhrs != ''">IS_RHRS = #{isRhrs},</if>
- <if test="isDutyPres != null and isDutyPres != ''">IS_DUTY_PRES = #{isDutyPres},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoqhPres">
- update BIS_INSP_RSFCOQH_PRES
- <trim prefix="set" suffixOverrides=",">
- <if test="chkTm != null">CHK_TM = #{chkTm},</if>
- <if test="isMakPlan != null and isMakPlan != ''">IS_MAK_PLAN = #{isMakPlan},</if>
- <if test="isPubDuty != null and isPubDuty != ''">IS_PUB_DUTY = #{isPubDuty},</if>
- <if test="fsltdz != null and fsltdz != ''">FSLTDZ = #{fsltdz},</if>
- <if test="fsltdzRun != null and fsltdzRun != ''">FSLTDZ_RUN = #{fsltdzRun},</if>
- <if test="isStore != null and isStore != ''">IS_STORE = #{isStore},</if>
- <if test="isChkLog != null and isChkLog != ''">IS_CHK_LOG = #{isChkLog},</if>
- <if test="isRunDvc != null and isRunDvc != ''">IS_RUN_DVC = #{isRunDvc},</if>
- <if test="chkPres1 != null and chkPres1 != ''">CHK_PRES_1 = #{chkPres1},</if>
- <if test="govMang != null and govMang != ''">GOV_MANG = #{govMang},</if>
- <if test="ackLimt != null and ackLimt != ''">ACK_LIMT = #{ackLimt},</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>
- <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="isBuld != null and isBuld != ''">IS_BULD = #{isBuld},</if>
- <if test="isDuty != null and isDuty != ''">IS_DUTY = #{isDuty},</if>
- <if test="isPlanApp != null and isPlanApp != ''">IS_PLAN_APP = #{isPlanApp},</if>
- <if test="isRhrs != null and isRhrs != ''">IS_RHRS = #{isRhrs},</if>
- <if test="isDutyPres != null and isDutyPres != ''">IS_DUTY_PRES = #{isDutyPres},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|