| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?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.BisInspWrwxRgstrWgDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWg" id="bisInspWrwxRgstrWgResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isRunBuild" column="IS_RUN_BUILD"/>
- <result property="noItemName" column="NO_ITEM_NAME"/>
- <result property="isCntAss" column="IS_CNT_ASS"/>
- <result property="noCntAssRprt" column="NO_CNT_ASS_RPRT"/>
- <result property="isLgt" column="IS_LGT"/>
- <result property="noLgtNote" column="NO_LGT_NOTE"/>
- <result property="isUvrApp" column="IS_UVR_APP"/>
- <result property="noUvrName" column="NO_UVR_NAME"/>
- <result property="isChgApp" column="IS_CHG_APP"/>
- <result property="noChgAppName" column="NO_CHG_APP_NAME"/>
- <result property="rvLcpNum" column="RV_LCP_NUM"/>
- <result property="msuNum" column="MSU_NUM"/>
- <result property="wtDepNum" column="WT_DEP_NUM"/>
- <result property="buldMsuNum" column="BULD_MSU_NUM"/>
- <result property="isClltFullPay" column="IS_CLLT_FULL_PAY"/>
- <result property="noFullPayName" column="NO_FULL_PAY_NAME"/>
- <result property="isClltTmPay" column="IS_CLLT_TM_PAY"/>
- <result property="noWtuName" column="NO_WTU_NAME"/>
- <result property="isWtuBook" column="IS_WTU_BOOK"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_RUN_BUILD,
- NO_ITEM_NAME,
- IS_CNT_ASS,
- NO_CNT_ASS_RPRT,
- IS_LGT,
- NO_LGT_NOTE,
- IS_UVR_APP,
- NO_UVR_NAME,
- IS_CHG_APP,
- NO_CHG_APP_NAME,
- RV_LCP_NUM,
- MSU_NUM,
- WT_DEP_NUM,
- BULD_MSU_NUM,
- IS_CLLT_FULL_PAY,
- NO_FULL_PAY_NAME,
- IS_CLLT_TM_PAY,
- NO_WTU_NAME,
- IS_WTU_BOOK,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isRunBuild},
- #{noItemName},
- #{isCntAss},
- #{noCntAssRprt},
- #{isLgt},
- #{noLgtNote},
- #{isUvrApp},
- #{noUvrName},
- #{isChgApp},
- #{noChgAppName},
- #{rvLcpNum},
- #{msuNum},
- #{wtDepNum},
- #{buldMsuNum},
- #{isClltFullPay},
- #{noFullPayName},
- #{isClltTmPay},
- #{noWtuName},
- #{isWtuBook},
- #{persId},
- #{intm},
- #{uptm},
- #{state},
- #{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="isRunBuild != null and isRunBuild != ''">and IS_RUN_BUILD = #{isRunBuild}</if>
- <if test="noItemName != null and noItemName != ''">and NO_ITEM_NAME = #{noItemName}</if>
- <if test="isCntAss != null and isCntAss != ''">and IS_CNT_ASS = #{isCntAss}</if>
- <if test="noCntAssRprt != null and noCntAssRprt != ''">and NO_CNT_ASS_RPRT = #{noCntAssRprt}</if>
- <if test="isLgt != null and isLgt != ''">and IS_LGT = #{isLgt}</if>
- <if test="noLgtNote != null and noLgtNote != ''">and NO_LGT_NOTE = #{noLgtNote}</if>
- <if test="isUvrApp != null and isUvrApp != ''">and IS_UVR_APP = #{isUvrApp}</if>
- <if test="noUvrName != null and noUvrName != ''">and NO_UVR_NAME = #{noUvrName}</if>
- <if test="isChgApp != null and isChgApp != ''">and IS_CHG_APP = #{isChgApp}</if>
- <if test="noChgAppName != null and noChgAppName != ''">and NO_CHG_APP_NAME = #{noChgAppName}</if>
- <if test="rvLcpNum != null and rvLcpNum != ''">and RV_LCP_NUM = #{rvLcpNum}</if>
- <if test="msuNum != null and msuNum != ''">and MSU_NUM = #{msuNum}</if>
- <if test="wtDepNum != null and wtDepNum != ''">and WT_DEP_NUM = #{wtDepNum}</if>
- <if test="buldMsuNum != null and buldMsuNum != ''">and BULD_MSU_NUM = #{buldMsuNum}</if>
- <if test="isClltFullPay != null and isClltFullPay != ''">and IS_CLLT_FULL_PAY = #{isClltFullPay}</if>
- <if test="noFullPayName != null and noFullPayName != ''">and NO_FULL_PAY_NAME = #{noFullPayName}</if>
- <if test="isClltTmPay != null and isClltTmPay != ''">and IS_CLLT_TM_PAY = #{isClltTmPay}</if>
- <if test="noWtuName != null and noWtuName != ''">and NO_WTU_NAME = #{noWtuName}</if>
- <if test="isWtuBook != null and isWtuBook != ''">and IS_WTU_BOOK = #{isWtuBook}</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="state != null and state != ''">and STATE = #{state}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWrwxRgstrWgResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WRWX_RGSTR_WG where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWrwxRgstrWgResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRWX_RGSTR_WG <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWrwxRgstrWgResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRWX_RGSTR_WG
- </select>
- <select id="findList" resultMap="bisInspWrwxRgstrWgResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WRWX_RGSTR_WG <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WRWX_RGSTR_WG <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWg">
- insert into BIS_INSP_WRWX_RGSTR_WG( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WRWX_RGSTR_WG set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWg">
- update BIS_INSP_WRWX_RGSTR_WG set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WRWX_RGSTR_WG set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWg">
- update BIS_INSP_WRWX_RGSTR_WG
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isRunBuild != null and isRunBuild != ''">IS_RUN_BUILD = #{isRunBuild},</if>
- <if test="noItemName != null and noItemName != ''">NO_ITEM_NAME = #{noItemName},</if>
- <if test="isCntAss != null and isCntAss != ''">IS_CNT_ASS = #{isCntAss},</if>
- <if test="noCntAssRprt != null and noCntAssRprt != ''">NO_CNT_ASS_RPRT = #{noCntAssRprt},</if>
- <if test="isLgt != null and isLgt != ''">IS_LGT = #{isLgt},</if>
- <if test="noLgtNote != null and noLgtNote != ''">NO_LGT_NOTE = #{noLgtNote},</if>
- <if test="isUvrApp != null and isUvrApp != ''">IS_UVR_APP = #{isUvrApp},</if>
- <if test="noUvrName != null and noUvrName != ''">NO_UVR_NAME = #{noUvrName},</if>
- <if test="isChgApp != null and isChgApp != ''">IS_CHG_APP = #{isChgApp},</if>
- <if test="noChgAppName != null and noChgAppName != ''">NO_CHG_APP_NAME = #{noChgAppName},</if>
- <if test="rvLcpNum != null and rvLcpNum != ''">RV_LCP_NUM = #{rvLcpNum},</if>
- <if test="msuNum != null and msuNum != ''">MSU_NUM = #{msuNum},</if>
- <if test="wtDepNum != null and wtDepNum != ''">WT_DEP_NUM = #{wtDepNum},</if>
- <if test="buldMsuNum != null and buldMsuNum != ''">BULD_MSU_NUM = #{buldMsuNum},</if>
- <if test="isClltFullPay != null and isClltFullPay != ''">IS_CLLT_FULL_PAY = #{isClltFullPay},</if>
- <if test="noFullPayName != null and noFullPayName != ''">NO_FULL_PAY_NAME = #{noFullPayName},</if>
- <if test="isClltTmPay != null and isClltTmPay != ''">IS_CLLT_TM_PAY = #{isClltTmPay},</if>
- <if test="noWtuName != null and noWtuName != ''">NO_WTU_NAME = #{noWtuName},</if>
- <if test="isWtuBook != null and isWtuBook != ''">IS_WTU_BOOK = #{isWtuBook},</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="state != null and state != ''">STATE = #{state},</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.BisInspWrwxRgstrWg">
- update BIS_INSP_WRWX_RGSTR_WG
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isRunBuild != null and isRunBuild != ''">IS_RUN_BUILD = #{isRunBuild},</if>
- <if test="noItemName != null and noItemName != ''">NO_ITEM_NAME = #{noItemName},</if>
- <if test="isCntAss != null and isCntAss != ''">IS_CNT_ASS = #{isCntAss},</if>
- <if test="noCntAssRprt != null and noCntAssRprt != ''">NO_CNT_ASS_RPRT = #{noCntAssRprt},</if>
- <if test="isLgt != null and isLgt != ''">IS_LGT = #{isLgt},</if>
- <if test="noLgtNote != null and noLgtNote != ''">NO_LGT_NOTE = #{noLgtNote},</if>
- <if test="isUvrApp != null and isUvrApp != ''">IS_UVR_APP = #{isUvrApp},</if>
- <if test="noUvrName != null and noUvrName != ''">NO_UVR_NAME = #{noUvrName},</if>
- <if test="isChgApp != null and isChgApp != ''">IS_CHG_APP = #{isChgApp},</if>
- <if test="noChgAppName != null and noChgAppName != ''">NO_CHG_APP_NAME = #{noChgAppName},</if>
- <if test="rvLcpNum != null and rvLcpNum != ''">RV_LCP_NUM = #{rvLcpNum},</if>
- <if test="msuNum != null and msuNum != ''">MSU_NUM = #{msuNum},</if>
- <if test="wtDepNum != null and wtDepNum != ''">WT_DEP_NUM = #{wtDepNum},</if>
- <if test="buldMsuNum != null and buldMsuNum != ''">BULD_MSU_NUM = #{buldMsuNum},</if>
- <if test="isClltFullPay != null and isClltFullPay != ''">IS_CLLT_FULL_PAY = #{isClltFullPay},</if>
- <if test="noFullPayName != null and noFullPayName != ''">NO_FULL_PAY_NAME = #{noFullPayName},</if>
- <if test="isClltTmPay != null and isClltTmPay != ''">IS_CLLT_TM_PAY = #{isClltTmPay},</if>
- <if test="noWtuName != null and noWtuName != ''">NO_WTU_NAME = #{noWtuName},</if>
- <if test="isWtuBook != null and isWtuBook != ''">IS_WTU_BOOK = #{isWtuBook},</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="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|