| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?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.BisInspRsraqgRgstrCountyDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCounty" id="bisInspRsraqgRgstrCountyResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="tosauwputcosasosrPoints" column="TOSAUWPUTCOSASOSR_POINTS"/>
- <result property="tosauwputcosasosrDesc" column="TOSAUWPUTCOSASOSR_DESC"/>
- <result property="ctsrsitPoints" column="CTSRSIT_POINTS"/>
- <result property="ctsrsitDesc" column="CTSRSIT_DESC"/>
- <result property="sosrftipspPoints" column="SOSRFTIPSP_POINTS"/>
- <result property="sosrftipspDesc" column="SOSRFTIPSP_DESC"/>
- <result property="ftlpcapaspPoints" column="FTLPCAPASP_POINTS"/>
- <result property="ftlpcapaspDesc" column="FTLPCAPASP_DESC"/>
- <result property="tstswosrwtjPoints" column="TSTSWOSRWTJ_POINTS"/>
- <result property="tstswosrwtjDesc" column="TSTSWOSRWTJ_DESC"/>
- <result property="totSco" column="TOT_SCO"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers2" column="REC_PERS2"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- AD_NAME,
- AD_CODE,
- TOSAUWPUTCOSASOSR_POINTS,
- TOSAUWPUTCOSASOSR_DESC,
- CTSRSIT_POINTS,
- CTSRSIT_DESC,
- SOSRFTIPSP_POINTS,
- SOSRFTIPSP_DESC,
- FTLPCAPASP_POINTS,
- FTLPCAPASP_DESC,
- TSTSWOSRWTJ_POINTS,
- TSTSWOSRWTJ_DESC,
- TOT_SCO,
- REC_PERS_ID,
- REC_PERS2,
- REC_PERS_TEL,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{adName},
- #{adCode},
- #{tosauwputcosasosrPoints},
- #{tosauwputcosasosrDesc},
- #{ctsrsitPoints},
- #{ctsrsitDesc},
- #{sosrftipspPoints},
- #{sosrftipspDesc},
- #{ftlpcapaspPoints},
- #{ftlpcapaspDesc},
- #{tstswosrwtjPoints},
- #{tstswosrwtjDesc},
- #{totSco},
- #{recPersId},
- #{recPers2},
- #{recPersTel},
- #{intm},
- #{uptm},
- #{status}
- </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="tosauwputcosasosrPoints != null and tosauwputcosasosrPoints != ''">and TOSAUWPUTCOSASOSR_POINTS = #{tosauwputcosasosrPoints}</if>
- <if test="tosauwputcosasosrDesc != null and tosauwputcosasosrDesc != ''">and TOSAUWPUTCOSASOSR_DESC = #{tosauwputcosasosrDesc}</if>
- <if test="ctsrsitPoints != null and ctsrsitPoints != ''">and CTSRSIT_POINTS = #{ctsrsitPoints}</if>
- <if test="ctsrsitDesc != null and ctsrsitDesc != ''">and CTSRSIT_DESC = #{ctsrsitDesc}</if>
- <if test="sosrftipspPoints != null and sosrftipspPoints != ''">and SOSRFTIPSP_POINTS = #{sosrftipspPoints}</if>
- <if test="sosrftipspDesc != null and sosrftipspDesc != ''">and SOSRFTIPSP_DESC = #{sosrftipspDesc}</if>
- <if test="ftlpcapaspPoints != null and ftlpcapaspPoints != ''">and FTLPCAPASP_POINTS = #{ftlpcapaspPoints}</if>
- <if test="ftlpcapaspDesc != null and ftlpcapaspDesc != ''">and FTLPCAPASP_DESC = #{ftlpcapaspDesc}</if>
- <if test="tstswosrwtjPoints != null and tstswosrwtjPoints != ''">and TSTSWOSRWTJ_POINTS = #{tstswosrwtjPoints}</if>
- <if test="tstswosrwtjDesc != null and tstswosrwtjDesc != ''">and TSTSWOSRWTJ_DESC = #{tstswosrwtjDesc}</if>
- <if test="totSco != null and totSco != ''">and TOT_SCO = #{totSco}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</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>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsraqgRgstrCountyResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_COUNTY where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsraqgRgstrCountyResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_COUNTY <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsraqgRgstrCountyResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_COUNTY
- </select>
- <select id="findList" resultMap="bisInspRsraqgRgstrCountyResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_COUNTY <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSRAQG_RGSTR_COUNTY <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCounty">
- insert into BIS_INSP_RSRAQG_RGSTR_COUNTY( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_RSRAQG_RGSTR_COUNTY set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCounty">
- update BIS_INSP_RSRAQG_RGSTR_COUNTY set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSRAQG_RGSTR_COUNTY set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCounty">
- update BIS_INSP_RSRAQG_RGSTR_COUNTY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="tosauwputcosasosrPoints != null">TOSAUWPUTCOSASOSR_POINTS = #{tosauwputcosasosrPoints},</if>
- TOSAUWPUTCOSASOSR_DESC = #{tosauwputcosasosrDesc},
- <if test="ctsrsitPoints != null">CTSRSIT_POINTS = #{ctsrsitPoints},</if>
- CTSRSIT_DESC = #{ctsrsitDesc},
- <if test="sosrftipspPoints != null">SOSRFTIPSP_POINTS = #{sosrftipspPoints},</if>
- SOSRFTIPSP_DESC = #{sosrftipspDesc},
- <if test="ftlpcapaspPoints != null">FTLPCAPASP_POINTS = #{ftlpcapaspPoints},</if>
- FTLPCAPASP_DESC = #{ftlpcapaspDesc},
- <if test="tstswosrwtjPoints != null">TSTSWOSRWTJ_POINTS = #{tstswosrwtjPoints},</if>
- TSTSWOSRWTJ_DESC = #{tstswosrwtjDesc},
- <if test="totSco != null">TOT_SCO = #{totSco},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</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>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCounty">
- update BIS_INSP_RSRAQG_RGSTR_COUNTY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="tosauwputcosasosrPoints != null">TOSAUWPUTCOSASOSR_POINTS = #{tosauwputcosasosrPoints},</if>
- TOSAUWPUTCOSASOSR_DESC = #{tosauwputcosasosrDesc},
- <if test="ctsrsitPoints != null">CTSRSIT_POINTS = #{ctsrsitPoints},</if>
- CTSRSIT_DESC = #{ctsrsitDesc},
- <if test="sosrftipspPoints != null">SOSRFTIPSP_POINTS = #{sosrftipspPoints},</if>
- SOSRFTIPSP_DESC = #{sosrftipspDesc},
- <if test="ftlpcapaspPoints != null">FTLPCAPASP_POINTS = #{ftlpcapaspPoints},</if>
- FTLPCAPASP_DESC = #{ftlpcapaspDesc},
- <if test="tstswosrwtjPoints != null">TSTSWOSRWTJ_POINTS = #{tstswosrwtjPoints},</if>
- TSTSWOSRWTJ_DESC = #{tstswosrwtjDesc},
- <if test="totSco != null">TOT_SCO = #{totSco},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</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>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|