| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <?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.BisInspRsfcoRgstrBaseDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrBase" id="bisInspRsfcoRgstrBaseResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="admOrg" column="ADM_ORG"/>
- <result property="poorCountry" column="POOR_COUNTRY"/>
- <result property="mngtUnit" column="MNGT_UNIT"/>
- <result property="cpttUnit" column="CPTT_UNIT"/>
- <result property="orgUnit" column="ORG_UNIT"/>
- <result property="fldWk" column="FLD_WK"/>
- <result property="fldWkTm" column="FLD_WK_TM"/>
- <result property="calls" column="CALLS"/>
- <result property="callsTm" column="CALLS_TM"/>
- <result property="imgVfct" column="IMG_VFCT"/>
- <result property="imgVfctTm" column="IMG_VFCT_TM"/>
- <result property="vdoCnnt" column="VDO_CNNT"/>
- <result property="vdoCnntTm" column="VDO_CNNT_TM"/>
- <result property="gtFlLowLimLev" column="GT_FL_LOW_LIM_LEV"/>
- <result property="isVlts" column="IS_VLTS"/>
- <result property="status" column="STATUS"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- ADM_ORG,
- POOR_COUNTRY,
- MNGT_UNIT,
- CPTT_UNIT,
- ORG_UNIT,
- FLD_WK,
- FLD_WK_TM,
- CALLS,
- CALLS_TM,
- IMG_VFCT,
- IMG_VFCT_TM,
- VDO_CNNT,
- VDO_CNNT_TM,
- GT_FL_LOW_LIM_LEV,
- IS_VLTS,
- STATUS,
- REC_PERS_ID,
- REC_PERS,
- REC_PERS_TEL,
- INTM,
- UPTM
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{admOrg},
- #{poorCountry},
- #{mngtUnit},
- #{cpttUnit},
- #{orgUnit},
- #{fldWk},
- #{fldWkTm},
- #{calls},
- #{callsTm},
- #{imgVfct},
- #{imgVfctTm},
- #{vdoCnnt},
- #{vdoCnntTm},
- #{gtFlLowLimLev},
- #{isVlts},
- #{status},
- #{recPersId},
- #{recPers},
- #{recPersTel},
- #{intm},
- #{uptm}
- </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="admOrg != null and admOrg != ''">and ADM_ORG = #{admOrg}</if>
- <if test="poorCountry != null and poorCountry != ''">and POOR_COUNTRY = #{poorCountry}</if>
- <if test="mngtUnit != null and mngtUnit != ''">and MNGT_UNIT = #{mngtUnit}</if>
- <if test="cpttUnit != null and cpttUnit != ''">and CPTT_UNIT = #{cpttUnit}</if>
- <if test="orgUnit != null and orgUnit != ''">and ORG_UNIT = #{orgUnit}</if>
- <if test="fldWk != null and fldWk != ''">and FLD_WK = #{fldWk}</if>
- <if test="fldWkTm != null">and FLD_WK_TM = #{fldWkTm}</if>
- <if test="calls != null and calls != ''">and CALLS = #{calls}</if>
- <if test="callsTm != null">and CALLS_TM = #{callsTm}</if>
- <if test="imgVfct != null and imgVfct != ''">and IMG_VFCT = #{imgVfct}</if>
- <if test="imgVfctTm != null">and IMG_VFCT_TM = #{imgVfctTm}</if>
- <if test="vdoCnnt != null and vdoCnnt != ''">and VDO_CNNT = #{vdoCnnt}</if>
- <if test="vdoCnntTm != null">and VDO_CNNT_TM = #{vdoCnntTm}</if>
- <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">and GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev}</if>
- <if test="isVlts != null and isVlts != ''">and IS_VLTS = #{isVlts}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
- <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsfcoRgstrBaseResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_BASE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsfcoRgstrBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_BASE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsfcoRgstrBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_BASE
- </select>
- <select id="findList" resultMap="bisInspRsfcoRgstrBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSFCO_RGSTR_BASE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSFCO_RGSTR_BASE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrBase">
- insert into BIS_INSP_RSFCO_RGSTR_BASE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_RSFCO_RGSTR_BASE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrBase">
- delete from BIS_INSP_RSFCO_RGSTR_BASE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSFCO_RGSTR_BASE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrBase">
- update BIS_INSP_RSFCO_RGSTR_BASE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="admOrg != null and admOrg != ''">ADM_ORG = #{admOrg},</if>
- <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
- <if test="mngtUnit != null and mngtUnit != ''">MNGT_UNIT = #{mngtUnit},</if>
- <if test="cpttUnit != null and cpttUnit != ''">CPTT_UNIT = #{cpttUnit},</if>
- <if test="orgUnit != null and orgUnit != ''">ORG_UNIT = #{orgUnit},</if>
- <if test="fldWk != null and fldWk != ''">FLD_WK = #{fldWk},</if>
- <if test="fldWkTm != null">FLD_WK_TM = #{fldWkTm},</if>
- <if test="calls != null and calls != ''">CALLS = #{calls},</if>
- <if test="callsTm != null">CALLS_TM = #{callsTm},</if>
- <if test="imgVfct != null and imgVfct != ''">IMG_VFCT = #{imgVfct},</if>
- <if test="imgVfctTm != null">IMG_VFCT_TM = #{imgVfctTm},</if>
- <if test="vdoCnnt != null and vdoCnnt != ''">VDO_CNNT = #{vdoCnnt},</if>
- <if test="vdoCnntTm != null">VDO_CNNT_TM = #{vdoCnntTm},</if>
- <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev},</if>
- <if test="isVlts != null and isVlts != ''">IS_VLTS = #{isVlts},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrBase">
- update BIS_INSP_RSFCO_RGSTR_BASE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="admOrg != null and admOrg != ''">ADM_ORG = #{admOrg},</if>
- <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
- <if test="mngtUnit != null and mngtUnit != ''">MNGT_UNIT = #{mngtUnit},</if>
- <if test="cpttUnit != null and cpttUnit != ''">CPTT_UNIT = #{cpttUnit},</if>
- <if test="orgUnit != null and orgUnit != ''">ORG_UNIT = #{orgUnit},</if>
- <if test="fldWk != null and fldWk != ''">FLD_WK = #{fldWk},</if>
- <if test="fldWkTm != null">FLD_WK_TM = #{fldWkTm},</if>
- <if test="calls != null and calls != ''">CALLS = #{calls},</if>
- <if test="callsTm != null">CALLS_TM = #{callsTm},</if>
- <if test="imgVfct != null and imgVfct != ''">IMG_VFCT = #{imgVfct},</if>
- <if test="imgVfctTm != null">IMG_VFCT_TM = #{imgVfctTm},</if>
- <if test="vdoCnnt != null and vdoCnnt != ''">VDO_CNNT = #{vdoCnnt},</if>
- <if test="vdoCnntTm != null">VDO_CNNT_TM = #{vdoCnntTm},</if>
- <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev},</if>
- <if test="isVlts != null and isVlts != ''">IS_VLTS = #{isVlts},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|