| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- <?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.BisInspVill2021MopoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVill2021Mopo" id="bisInspVill2021MopoResultMap">
- <result property="isMoptMeet" column="IS_MOPT_MEET"/>
- <result property="pblm12314Size" column="PBLM_12314_SIZE"/>
- <result property="pblmPlacSize" column="PBLM_PLAC_SIZE"/>
- <result property="pblmCountySize" column="PBLM_COUNTY_SIZE"/>
- <result property="pblmMend12314Size" column="PBLM_MEND_12314_SIZE"/>
- <result property="pblmMendPlacSize" column="PBLM_MEND_PLAC_SIZE"/>
- <result property="bplmMendCountySize" column="BPLM_MEND_COUNTY_SIZE"/>
- <result property="pblmMend" column="PBLM_MEND"/>
- <result property="isMendBook" column="IS_MEND_BOOK"/>
- <result property="isPepairBook" column="IS_PEPAIR_BOOK"/>
- <result property="note" column="NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isPoorCounty" column="IS_POOR_COUNTY"/>
- <result property="isSend" column="IS_SEND"/>
- <result property="isMeetSend" column="IS_MEET_SEND"/>
- </resultMap>
- <sql id="table_columns">
- IS_MOPT_MEET,
- PBLM_12314_SIZE,
- PBLM_PLAC_SIZE,
- PBLM_COUNTY_SIZE,
- PBLM_MEND_12314_SIZE,
- PBLM_MEND_PLAC_SIZE,
- BPLM_MEND_COUNTY_SIZE,
- PBLM_MEND,
- IS_MEND_BOOK,
- IS_PEPAIR_BOOK,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- ID,
- RGSTR_ID,
- IS_POOR_COUNTY,
- IS_SEND,
- IS_MEET_SEND
- </sql>
- <sql id="entity_properties">
- #{isMoptMeet},
- #{pblm12314Size},
- #{pblmPlacSize},
- #{pblmCountySize},
- #{pblmMend12314Size},
- #{pblmMendPlacSize},
- #{bplmMendCountySize},
- #{pblmMend},
- #{isMendBook},
- #{isPepairBook},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{isPoorCounty},
- #{isSend},
- #{isMeetSend}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="isMoptMeet != null and isMoptMeet != ''">
- and IS_MOPT_MEET = #{isMoptMeet}
- </if>
- <if test="pblm12314Size != null and pblm12314Size != ''">
- and PBLM_12314_SIZE = #{pblm12314Size}
- </if>
- <if test="pblmPlacSize != null and pblmPlacSize != ''">
- and PBLM_PLAC_SIZE = #{pblmPlacSize}
- </if>
- <if test="pblmCountySize != null and pblmCountySize != ''">
- and PBLM_COUNTY_SIZE = #{pblmCountySize}
- </if>
- <if test="pblmMend12314Size != null and pblmMend12314Size != ''">
- and PBLM_MEND_12314_SIZE = #{pblmMend12314Size}
- </if>
- <if test="pblmMendPlacSize != null and pblmMendPlacSize != ''">
- and PBLM_MEND_PLAC_SIZE = #{pblmMendPlacSize}
- </if>
- <if test="bplmMendCountySize != null and bplmMendCountySize != ''">
- and BPLM_MEND_COUNTY_SIZE = #{bplmMendCountySize}
- </if>
- <if test="pblmMend != null and pblmMend != ''">
- and PBLM_MEND = #{pblmMend}
- </if>
- <if test="isMendBook != null and isMendBook != ''">
- and IS_MEND_BOOK = #{isMendBook}
- </if>
- <if test="isPepairBook != null and isPepairBook != ''">
- and IS_PEPAIR_BOOK = #{isPepairBook}
- </if>
- <if test="note != null and note != ''">
- and NOTE = #{note}
- </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="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- <if test="rgstrId != null and rgstrId != ''">
- and RGSTR_ID = #{rgstrId}
- </if>
- <if test="isPoorCounty != null and isPoorCounty != ''">
- and IS_POOR_COUNTY = #{isPoorCounty}
- </if>
- <if test="isSend != null and isSend != ''">
- and IS_SEND = #{isSend}
- </if>
- <if test="isMeetSend != null and isMeetSend != ''">
- and IS_MEET_SEND = #{isMeetSend}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVill2021MopoResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_MOPO where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVill2021MopoResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_MOPO
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVill2021MopoResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_MOPO
- </select>
- <select id="findList" resultMap="bisInspVill2021MopoResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILL2021_MOPO
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILL2021_MOPO
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Mopo">
- insert into BIS_INSP_VILL2021_MOPO(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILL2021_MOPO set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Mopo">
- update BIS_INSP_VILL2021_MOPO set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILL2021_MOPO set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Mopo">
- update BIS_INSP_VILL2021_MOPO
- <trim prefix="set" suffixOverrides=",">
- <if test="isMoptMeet != null and isMoptMeet != ''">IS_MOPT_MEET
- = #{isMoptMeet},
- </if>
- <if test="pblm12314Size != null and pblm12314Size != ''">PBLM_12314_SIZE
- = #{pblm12314Size},
- </if>
- <if test="pblmPlacSize != null and pblmPlacSize != ''">PBLM_PLAC_SIZE
- = #{pblmPlacSize},
- </if>
- <if test="pblmCountySize != null and pblmCountySize != ''">PBLM_COUNTY_SIZE
- = #{pblmCountySize},
- </if>
- <if test="pblmMend12314Size != null and pblmMend12314Size != ''">PBLM_MEND_12314_SIZE
- = #{pblmMend12314Size},
- </if>
- <if test="pblmMendPlacSize != null and pblmMendPlacSize != ''">PBLM_MEND_PLAC_SIZE
- = #{pblmMendPlacSize},
- </if>
- <if test="bplmMendCountySize != null and bplmMendCountySize != ''">BPLM_MEND_COUNTY_SIZE
- = #{bplmMendCountySize},
- </if>
- <if test="pblmMend != null and pblmMend != ''">PBLM_MEND
- = #{pblmMend},
- </if>
- <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
- = #{isMendBook},
- </if>
- <if test="isPepairBook != null and isPepairBook != ''">IS_PEPAIR_BOOK
- = #{isPepairBook},
- </if>
- <if test="note != null and note != ''">NOTE
- = #{note},
- </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="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPoorCounty != null and isPoorCounty != ''">IS_POOR_COUNTY
- = #{isPoorCounty},
- </if>
- <if test="isSend != null and isSend != ''">IS_SEND
- = #{isSend},
- </if>
- <if test="isMeetSend != null and isMeetSend != ''">IS_MEET_SEND
- = #{isMeetSend},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Mopo">
- update BIS_INSP_VILL2021_MOPO
- <trim prefix="set" suffixOverrides=",">
- <if test="isMoptMeet != null and isMoptMeet != ''">IS_MOPT_MEET
- = #{isMoptMeet},
- </if>
- <if test="pblm12314Size != null and pblm12314Size != ''">PBLM_12314_SIZE
- = #{pblm12314Size},
- </if>
- <if test="pblmPlacSize != null and pblmPlacSize != ''">PBLM_PLAC_SIZE
- = #{pblmPlacSize},
- </if>
- <if test="pblmCountySize != null and pblmCountySize != ''">PBLM_COUNTY_SIZE
- = #{pblmCountySize},
- </if>
- <if test="pblmMend12314Size != null and pblmMend12314Size != ''">PBLM_MEND_12314_SIZE
- = #{pblmMend12314Size},
- </if>
- <if test="pblmMendPlacSize != null and pblmMendPlacSize != ''">PBLM_MEND_PLAC_SIZE
- = #{pblmMendPlacSize},
- </if>
- <if test="bplmMendCountySize != null and bplmMendCountySize != ''">BPLM_MEND_COUNTY_SIZE
- = #{bplmMendCountySize},
- </if>
- <if test="pblmMend != null and pblmMend != ''">PBLM_MEND
- = #{pblmMend},
- </if>
- <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
- = #{isMendBook},
- </if>
- <if test="isPepairBook != null and isPepairBook != ''">IS_PEPAIR_BOOK
- = #{isPepairBook},
- </if>
- <if test="note != null and note != ''">NOTE
- = #{note},
- </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="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPoorCounty != null and isPoorCounty != ''">IS_POOR_COUNTY
- = #{isPoorCounty},
- </if>
- <if test="isSend != null and isSend != ''">IS_SEND
- = #{isSend},
- </if>
- <if test="isMeetSend != null and isMeetSend != ''">IS_MEET_SEND
- = #{isMeetSend},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|