| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <?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.BisInspRsraqgRgstrCityDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCity" id="bisInspRsraqgRgstrCityResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="tolamruutjtcosarwPoints" column="TOLAMRUUTJTCOSARW_POINTS"/>
- <result property="tolamruutjtcosarwDesc" column="TOLAMRUUTJTCOSARW_DESC"/>
- <result property="tcttosolamrPoints" column="TCTTOSOLAMR_POINTS"/>
- <result property="tcttosolamrDesc" column="TCTTOSOLAMR_DESC"/>
- <result property="solamrftipspPoints" column="SOLAMRFTIPSP_POINTS"/>
- <result property="solamrftipspDesc" column="SOLAMRFTIPSP_DESC"/>
- <result property="tgaucrsarwPoints" column="TGAUCRSARW_POINTS"/>
- <result property="tgaucrsarwDesc" column="TGAUCRSARW_DESC"/>
- <result property="cwplrsPoints" column="CWPLRS_POINTS"/>
- <result property="cwplrsDesc" column="CWPLRS_DESC"/>
- <result property="tstswolamrwtjPoints" column="TSTSWOLAMRWTJ_POINTS"/>
- <result property="tstswolamrwtjDesc" column="TSTSWOLAMRWTJ_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,
- TOLAMRUUTJTCOSARW_POINTS,
- TOLAMRUUTJTCOSARW_DESC,
- TCTTOSOLAMR_POINTS,
- TCTTOSOLAMR_DESC,
- SOLAMRFTIPSP_POINTS,
- SOLAMRFTIPSP_DESC,
- TGAUCRSARW_POINTS,
- TGAUCRSARW_DESC,
- CWPLRS_POINTS,
- CWPLRS_DESC,
- TSTSWOLAMRWTJ_POINTS,
- TSTSWOLAMRWTJ_DESC,
- TOT_SCO,
- REC_PERS_ID,
- REC_PERS2,
- REC_PERS_TEL,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{tolamruutjtcosarwPoints},
- #{tolamruutjtcosarwDesc},
- #{tcttosolamrPoints},
- #{tcttosolamrDesc},
- #{solamrftipspPoints},
- #{solamrftipspDesc},
- #{tgaucrsarwPoints},
- #{tgaucrsarwDesc},
- #{cwplrsPoints},
- #{cwplrsDesc},
- #{tstswolamrwtjPoints},
- #{tstswolamrwtjDesc},
- #{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="tolamruutjtcosarwPoints != null and tolamruutjtcosarwPoints != ''">and TOLAMRUUTJTCOSARW_POINTS = #{tolamruutjtcosarwPoints}</if>
- <if test="tolamruutjtcosarwDesc != null and tolamruutjtcosarwDesc != ''">and TOLAMRUUTJTCOSARW_DESC = #{tolamruutjtcosarwDesc}</if>
- <if test="tcttosolamrPoints != null and tcttosolamrPoints != ''">and TCTTOSOLAMR_POINTS = #{tcttosolamrPoints}</if>
- <if test="tcttosolamrDesc != null and tcttosolamrDesc != ''">and TCTTOSOLAMR_DESC = #{tcttosolamrDesc}</if>
- <if test="solamrftipspPoints != null and solamrftipspPoints != ''">and SOLAMRFTIPSP_POINTS = #{solamrftipspPoints}</if>
- <if test="solamrftipspDesc != null and solamrftipspDesc != ''">and SOLAMRFTIPSP_DESC = #{solamrftipspDesc}</if>
- <if test="tgaucrsarwPoints != null and tgaucrsarwPoints != ''">and TGAUCRSARW_POINTS = #{tgaucrsarwPoints}</if>
- <if test="tgaucrsarwDesc != null and tgaucrsarwDesc != ''">and TGAUCRSARW_DESC = #{tgaucrsarwDesc}</if>
- <if test="cwplrsPoints != null and cwplrsPoints != ''">and CWPLRS_POINTS = #{cwplrsPoints}</if>
- <if test="cwplrsDesc != null and cwplrsDesc != ''">and CWPLRS_DESC = #{cwplrsDesc}</if>
- <if test="tstswolamrwtjPoints != null and tstswolamrwtjPoints != ''">and TSTSWOLAMRWTJ_POINTS = #{tstswolamrwtjPoints}</if>
- <if test="tstswolamrwtjDesc != null and tstswolamrwtjDesc != ''">and TSTSWOLAMRWTJ_DESC = #{tstswolamrwtjDesc}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspRsraqgRgstrCityResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_CITY where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspRsraqgRgstrCityResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_CITY <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspRsraqgRgstrCityResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_CITY
- </select>
- <select id="findList" resultMap="bisInspRsraqgRgstrCityResultMap">
- select <include refid="table_columns" /> from BIS_INSP_RSRAQG_RGSTR_CITY <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_RSRAQG_RGSTR_CITY <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCity">
- insert into BIS_INSP_RSRAQG_RGSTR_CITY( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_RSRAQG_RGSTR_CITY set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCity">
- update BIS_INSP_RSRAQG_RGSTR_CITY set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_RSRAQG_RGSTR_CITY set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCity">
- update BIS_INSP_RSRAQG_RGSTR_CITY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="tolamruutjtcosarwPoints != null">TOLAMRUUTJTCOSARW_POINTS = #{tolamruutjtcosarwPoints},</if>
- TOLAMRUUTJTCOSARW_DESC = #{tolamruutjtcosarwDesc},
- <if test="tcttosolamrPoints != null">TCTTOSOLAMR_POINTS = #{tcttosolamrPoints},</if>
- TCTTOSOLAMR_DESC = #{tcttosolamrDesc},
- <if test="solamrftipspPoints != null">SOLAMRFTIPSP_POINTS = #{solamrftipspPoints},</if>
- SOLAMRFTIPSP_DESC = #{solamrftipspDesc},
- <if test="tgaucrsarwPoints != null">TGAUCRSARW_POINTS = #{tgaucrsarwPoints},</if>
- TGAUCRSARW_DESC = #{tgaucrsarwDesc},
- <if test="cwplrsPoints != null">CWPLRS_POINTS = #{cwplrsPoints},</if>
- CWPLRS_DESC = #{cwplrsDesc},
- <if test="tstswolamrwtjPoints != null">TSTSWOLAMRWTJ_POINTS = #{tstswolamrwtjPoints},</if>
- TSTSWOLAMRWTJ_DESC = #{tstswolamrwtjDesc},
- <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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsraqgRgstrCity">
- update BIS_INSP_RSRAQG_RGSTR_CITY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="tolamruutjtcosarwPoints != null">TOLAMRUUTJTCOSARW_POINTS = #{tolamruutjtcosarwPoints},</if>
- TOLAMRUUTJTCOSARW_DESC = #{tolamruutjtcosarwDesc},
- <if test="tcttosolamrPoints != null">TCTTOSOLAMR_POINTS = #{tcttosolamrPoints},</if>
- TCTTOSOLAMR_DESC = #{tcttosolamrDesc},
- <if test="solamrftipspPoints != null">SOLAMRFTIPSP_POINTS = #{solamrftipspPoints},</if>
- SOLAMRFTIPSP_DESC = #{solamrftipspDesc},
- <if test="tgaucrsarwPoints != null">TGAUCRSARW_POINTS = #{tgaucrsarwPoints},</if>
- TGAUCRSARW_DESC = #{tgaucrsarwDesc},
- <if test="cwplrsPoints != null">CWPLRS_POINTS = #{cwplrsPoints},</if>
- CWPLRS_DESC = #{cwplrsDesc},
- <if test="tstswolamrwtjPoints != null">TSTSWOLAMRWTJ_POINTS = #{tstswolamrwtjPoints},</if>
- TSTSWOLAMRWTJ_DESC = #{tstswolamrwtjDesc},
- <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>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|