| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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.BisInspWtgtRgstrPayDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWtgtRgstrPay" id="bisInspWtgtRgstrPayResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isExpiry" column="IS_EXPIRY"/>
- <result property="isConform" column="IS_CONFORM"/>
- <result property="isMsrNoml" column="IS_MSR_NOML"/>
- <result property="isCmpRgstr" column="IS_CMP_RGSTR"/>
- <result property="isRunNoml" column="IS_RUN_NOML"/>
- <result property="isCmpChk" column="IS_CMP_CHK"/>
- <result property="isInRange" column="IS_IN_RANGE"/>
- <result property="isMwrFit" column="IS_MWR_FIT"/>
- <result property="isWtrPay" column="IS_WTR_PAY"/>
- <result property="isSysSend" column="IS_SYS_SEND"/>
- <result property="isOutPlan" column="IS_OUT_PLAN"/>
- <result property="isOutPlanAlarm" column="IS_OUT_PLAN_ALARM"/>
- <result property="isOplanPay" column="IS_OPLAN_PAY"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="groupId" column="GROUP_ID"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_EXPIRY,
- IS_CONFORM,
- IS_MSR_NOML,
- IS_CMP_RGSTR,
- IS_RUN_NOML,
- IS_CMP_CHK,
- IS_IN_RANGE,
- IS_MWR_FIT,
- IS_WTR_PAY,
- IS_SYS_SEND,
- IS_OUT_PLAN,
- IS_OUT_PLAN_ALARM,
- IS_OPLAN_PAY,
- PERS_ID,
- INTM,
- UPTM,
- GROUP_ID,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isExpiry},
- #{isConform},
- #{isMsrNoml},
- #{isCmpRgstr},
- #{isRunNoml},
- #{isCmpChk},
- #{isInRange},
- #{isMwrFit},
- #{isWtrPay},
- #{isSysSend},
- #{isOutPlan},
- #{isOutPlanAlarm},
- #{isOplanPay},
- #{persId},
- #{intm},
- #{uptm},
- #{groupId},
- #{dataStat}
- </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="isExpiry != null and isExpiry != ''">and IS_EXPIRY = #{isExpiry}</if>
- <if test="isConform != null and isConform != ''">and IS_CONFORM = #{isConform}</if>
- <if test="isMsrNoml != null and isMsrNoml != ''">and IS_MSR_NOML = #{isMsrNoml}</if>
- <if test="isCmpRgstr != null and isCmpRgstr != ''">and IS_CMP_RGSTR = #{isCmpRgstr}</if>
- <if test="isRunNoml != null and isRunNoml != ''">and IS_RUN_NOML = #{isRunNoml}</if>
- <if test="isCmpChk != null and isCmpChk != ''">and IS_CMP_CHK = #{isCmpChk}</if>
- <if test="isInRange != null and isInRange != ''">and IS_IN_RANGE = #{isInRange}</if>
- <if test="isMwrFit != null and isMwrFit != ''">and IS_MWR_FIT = #{isMwrFit}</if>
- <if test="isWtrPay != null and isWtrPay != ''">and IS_WTR_PAY = #{isWtrPay}</if>
- <if test="isSysSend != null and isSysSend != ''">and IS_SYS_SEND = #{isSysSend}</if>
- <if test="isOutPlan != null and isOutPlan != ''">and IS_OUT_PLAN = #{isOutPlan}</if>
- <if test="isOutPlanAlarm != null and isOutPlanAlarm != ''">and IS_OUT_PLAN_ALARM = #{isOutPlanAlarm}</if>
- <if test="isOplanPay != null and isOplanPay != ''">and IS_OPLAN_PAY = #{isOplanPay}</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="groupId != null and groupId != ''">and GROUP_ID = #{groupId}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWtgtRgstrPayResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WTGT_RGSTR_PAY where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWtgtRgstrPayResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTGT_RGSTR_PAY <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWtgtRgstrPayResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTGT_RGSTR_PAY
- </select>
- <select id="findList" resultMap="bisInspWtgtRgstrPayResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WTGT_RGSTR_PAY <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WTGT_RGSTR_PAY <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtgtRgstrPay">
- insert into BIS_INSP_WTGT_RGSTR_PAY( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WTGT_RGSTR_PAY set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtgtRgstrPay">
- update BIS_INSP_WTGT_RGSTR_PAY set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WTGT_RGSTR_PAY set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWtgtRgstrPay">
- update BIS_INSP_WTGT_RGSTR_PAY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isExpiry != null and isExpiry != ''">IS_EXPIRY = #{isExpiry},</if>
- <if test="isConform != null and isConform != ''">IS_CONFORM = #{isConform},</if>
- <if test="isMsrNoml != null and isMsrNoml != ''">IS_MSR_NOML = #{isMsrNoml},</if>
- <if test="isCmpRgstr != null and isCmpRgstr != ''">IS_CMP_RGSTR = #{isCmpRgstr},</if>
- <if test="isRunNoml != null and isRunNoml != ''">IS_RUN_NOML = #{isRunNoml},</if>
- <if test="isCmpChk != null and isCmpChk != ''">IS_CMP_CHK = #{isCmpChk},</if>
- <if test="isInRange != null and isInRange != ''">IS_IN_RANGE = #{isInRange},</if>
- <if test="isMwrFit != null and isMwrFit != ''">IS_MWR_FIT = #{isMwrFit},</if>
- <if test="isWtrPay != null and isWtrPay != ''">IS_WTR_PAY = #{isWtrPay},</if>
- <if test="isSysSend != null and isSysSend != ''">IS_SYS_SEND = #{isSysSend},</if>
- <if test="isOutPlan != null and isOutPlan != ''">IS_OUT_PLAN = #{isOutPlan},</if>
- <if test="isOutPlanAlarm != null and isOutPlanAlarm != ''">IS_OUT_PLAN_ALARM = #{isOutPlanAlarm},</if>
- <if test="isOplanPay != null and isOplanPay != ''">IS_OPLAN_PAY = #{isOplanPay},</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="groupId != null and groupId != ''">GROUP_ID = #{groupId},</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.BisInspWtgtRgstrPay">
- update BIS_INSP_WTGT_RGSTR_PAY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isExpiry != null and isExpiry != ''">IS_EXPIRY = #{isExpiry},</if>
- <if test="isConform != null and isConform != ''">IS_CONFORM = #{isConform},</if>
- <if test="isMsrNoml != null and isMsrNoml != ''">IS_MSR_NOML = #{isMsrNoml},</if>
- <if test="isCmpRgstr != null and isCmpRgstr != ''">IS_CMP_RGSTR = #{isCmpRgstr},</if>
- <if test="isRunNoml != null and isRunNoml != ''">IS_RUN_NOML = #{isRunNoml},</if>
- <if test="isCmpChk != null and isCmpChk != ''">IS_CMP_CHK = #{isCmpChk},</if>
- <if test="isInRange != null and isInRange != ''">IS_IN_RANGE = #{isInRange},</if>
- <if test="isMwrFit != null and isMwrFit != ''">IS_MWR_FIT = #{isMwrFit},</if>
- <if test="isWtrPay != null and isWtrPay != ''">IS_WTR_PAY = #{isWtrPay},</if>
- <if test="isSysSend != null and isSysSend != ''">IS_SYS_SEND = #{isSysSend},</if>
- <if test="isOutPlan != null and isOutPlan != ''">IS_OUT_PLAN = #{isOutPlan},</if>
- <if test="isOutPlanAlarm != null and isOutPlanAlarm != ''">IS_OUT_PLAN_ALARM = #{isOutPlanAlarm},</if>
- <if test="isOplanPay != null and isOplanPay != ''">IS_OPLAN_PAY = #{isOplanPay},</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="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|