| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?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.BisInspVillgdQqeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe" id="bisInspVillgdQqeResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isPkx" column="IS_PKX"/>
- <result property="zcWaterIsMake" column="ZC_WATER_IS_MAKE"/>
- <result property="zcWaterFilename" column="ZC_WATER_FILENAME"/>
- <result property="zcWaterFilenum" column="ZC_WATER_FILENUM"/>
- <result property="zcWaterDepart" column="ZC_WATER_DEPART"/>
- <result property="zcWaterTime" column="ZC_WATER_TIME"/>
- <result property="zcWaterNote" column="ZC_WATER_NOTE"/>
- <result property="zcBuzhuIsMake" column="ZC_BUZHU_IS_MAKE"/>
- <result property="zcBuzhuFilename" column="ZC_BUZHU_FILENAME"/>
- <result property="zcBuzhuFilenum" column="ZC_BUZHU_FILENUM"/>
- <result property="zcBuzhuDepart" column="ZC_BUZHU_DEPART"/>
- <result property="zcBuzhuTime" column="ZC_BUZHU_TIME"/>
- <result property="zcBuzhuNote" column="ZC_BUZHU_NOTE"/>
- <result property="zcOtherIsMake" column="ZC_OTHER_IS_MAKE"/>
- <result property="zcOtherIsFilename" column="ZC_OTHER_IS_FILENAME"/>
- <result property="zcOtherIsFilenum" column="ZC_OTHER_IS_FILENUM"/>
- <result property="zcOtherIsDepart" column="ZC_OTHER_IS_DEPART"/>
- <result property="zcOtherIsTime" column="ZC_OTHER_IS_TIME"/>
- <result property="zcOtherIsNote" column="ZC_OTHER_IS_NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_PKX,
- ZC_WATER_IS_MAKE,
- ZC_WATER_FILENAME,
- ZC_WATER_FILENUM,
- ZC_WATER_DEPART,
- ZC_WATER_TIME,
- ZC_WATER_NOTE,
- ZC_BUZHU_IS_MAKE,
- ZC_BUZHU_FILENAME,
- ZC_BUZHU_FILENUM,
- ZC_BUZHU_DEPART,
- ZC_BUZHU_TIME,
- ZC_BUZHU_NOTE,
- ZC_OTHER_IS_MAKE,
- ZC_OTHER_IS_FILENAME,
- ZC_OTHER_IS_FILENUM,
- ZC_OTHER_IS_DEPART,
- ZC_OTHER_IS_TIME,
- ZC_OTHER_IS_NOTE,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isPkx},
- #{zcWaterIsMake},
- #{zcWaterFilename},
- #{zcWaterFilenum},
- #{zcWaterDepart},
- #{zcWaterTime},
- #{zcWaterNote},
- #{zcBuzhuIsMake},
- #{zcBuzhuFilename},
- #{zcBuzhuFilenum},
- #{zcBuzhuDepart},
- #{zcBuzhuTime},
- #{zcBuzhuNote},
- #{zcOtherIsMake},
- #{zcOtherIsFilename},
- #{zcOtherIsFilenum},
- #{zcOtherIsDepart},
- #{zcOtherIsTime},
- #{zcOtherIsNote},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{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="isPkx != null and isPkx != ''">
- and IS_PKX = #{isPkx}
- </if>
- <if test="zcWaterIsMake != null and zcWaterIsMake != ''">
- and ZC_WATER_IS_MAKE = #{zcWaterIsMake}
- </if>
- <if test="zcWaterFilename != null and zcWaterFilename != ''">
- and ZC_WATER_FILENAME = #{zcWaterFilename}
- </if>
- <if test="zcWaterFilenum != null and zcWaterFilenum != ''">
- and ZC_WATER_FILENUM = #{zcWaterFilenum}
- </if>
- <if test="zcWaterDepart != null and zcWaterDepart != ''">
- and ZC_WATER_DEPART = #{zcWaterDepart}
- </if>
- <if test="zcWaterTime != null and zcWaterTime != ''">
- and ZC_WATER_TIME = #{zcWaterTime}
- </if>
- <if test="zcWaterNote != null and zcWaterNote != ''">
- and ZC_WATER_NOTE = #{zcWaterNote}
- </if>
- <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">
- and ZC_BUZHU_IS_MAKE = #{zcBuzhuIsMake}
- </if>
- <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">
- and ZC_BUZHU_FILENAME = #{zcBuzhuFilename}
- </if>
- <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">
- and ZC_BUZHU_FILENUM = #{zcBuzhuFilenum}
- </if>
- <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">
- and ZC_BUZHU_DEPART = #{zcBuzhuDepart}
- </if>
- <if test="zcBuzhuTime != null and zcBuzhuTime != ''">
- and ZC_BUZHU_TIME = #{zcBuzhuTime}
- </if>
- <if test="zcBuzhuNote != null and zcBuzhuNote != ''">
- and ZC_BUZHU_NOTE = #{zcBuzhuNote}
- </if>
- <if test="zcOtherIsMake != null and zcOtherIsMake != ''">
- and ZC_OTHER_IS_MAKE = #{zcOtherIsMake}
- </if>
- <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">
- and ZC_OTHER_IS_FILENAME = #{zcOtherIsFilename}
- </if>
- <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">
- and ZC_OTHER_IS_FILENUM = #{zcOtherIsFilenum}
- </if>
- <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">
- and ZC_OTHER_IS_DEPART = #{zcOtherIsDepart}
- </if>
- <if test="zcOtherIsTime != null and zcOtherIsTime != ''">
- and ZC_OTHER_IS_TIME = #{zcOtherIsTime}
- </if>
- <if test="zcOtherIsNote != null and zcOtherIsNote != ''">
- and ZC_OTHER_IS_NOTE = #{zcOtherIsNote}
- </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="note != null and note != ''">
- and NOTE = #{note}
- </if>
- <if test="dataStat != null and dataStat != ''">
- and DATA_STAT = #{dataStat}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspVillgdQqeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_QQE where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspVillgdQqeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_QQE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspVillgdQqeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_QQE
- </select>
- <select id="findList" resultMap="bisInspVillgdQqeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_VILLGD_QQE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_VILLGD_QQE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
- insert into BIS_INSP_VILLGD_QQE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_QQE set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
- update BIS_INSP_VILLGD_QQE set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_VILLGD_QQE set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
- update BIS_INSP_VILLGD_QQE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPkx != null and isPkx != ''">IS_PKX
- = #{isPkx},
- </if>
- <if test="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE
- = #{zcWaterIsMake},
- </if>
- <if test="zcWaterFilename != null and zcWaterFilename != ''">ZC_WATER_FILENAME
- = #{zcWaterFilename},
- </if>
- <if test="zcWaterFilenum != null and zcWaterFilenum != ''">ZC_WATER_FILENUM
- = #{zcWaterFilenum},
- </if>
- <if test="zcWaterDepart != null and zcWaterDepart != ''">ZC_WATER_DEPART
- = #{zcWaterDepart},
- </if>
- <if test="zcWaterTime != null and zcWaterTime != ''">ZC_WATER_TIME
- = #{zcWaterTime},
- </if>
- <if test="zcWaterNote != null and zcWaterNote != ''">ZC_WATER_NOTE
- = #{zcWaterNote},
- </if>
- <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE
- = #{zcBuzhuIsMake},
- </if>
- <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME
- = #{zcBuzhuFilename},
- </if>
- <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM
- = #{zcBuzhuFilenum},
- </if>
- <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART
- = #{zcBuzhuDepart},
- </if>
- <if test="zcBuzhuTime != null and zcBuzhuTime != ''">ZC_BUZHU_TIME
- = #{zcBuzhuTime},
- </if>
- <if test="zcBuzhuNote != null and zcBuzhuNote != ''">ZC_BUZHU_NOTE
- = #{zcBuzhuNote},
- </if>
- <if test="zcOtherIsMake != null and zcOtherIsMake != ''">ZC_OTHER_IS_MAKE
- = #{zcOtherIsMake},
- </if>
- <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">ZC_OTHER_IS_FILENAME
- = #{zcOtherIsFilename},
- </if>
- <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">ZC_OTHER_IS_FILENUM
- = #{zcOtherIsFilenum},
- </if>
- <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">ZC_OTHER_IS_DEPART
- = #{zcOtherIsDepart},
- </if>
- <if test="zcOtherIsTime != null and zcOtherIsTime != ''">ZC_OTHER_IS_TIME
- = #{zcOtherIsTime},
- </if>
- <if test="zcOtherIsNote != null and zcOtherIsNote != ''">ZC_OTHER_IS_NOTE
- = #{zcOtherIsNote},
- </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="note != null and note != ''">NOTE
- = #{note},
- </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.BisInspVillgdQqe">
- update BIS_INSP_VILLGD_QQE
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isPkx != null and isPkx != ''">IS_PKX
- = #{isPkx},
- </if>
- <if test="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE
- = #{zcWaterIsMake},
- </if>
- <if test="zcWaterFilename != null and zcWaterFilename != ''">ZC_WATER_FILENAME
- = #{zcWaterFilename},
- </if>
- <if test="zcWaterFilenum != null and zcWaterFilenum != ''">ZC_WATER_FILENUM
- = #{zcWaterFilenum},
- </if>
- <if test="zcWaterDepart != null and zcWaterDepart != ''">ZC_WATER_DEPART
- = #{zcWaterDepart},
- </if>
- <if test="zcWaterTime != null and zcWaterTime != ''">ZC_WATER_TIME
- = #{zcWaterTime},
- </if>
- <if test="zcWaterNote != null and zcWaterNote != ''">ZC_WATER_NOTE
- = #{zcWaterNote},
- </if>
- <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE
- = #{zcBuzhuIsMake},
- </if>
- <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME
- = #{zcBuzhuFilename},
- </if>
- <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM
- = #{zcBuzhuFilenum},
- </if>
- <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART
- = #{zcBuzhuDepart},
- </if>
- <if test="zcBuzhuTime != null and zcBuzhuTime != ''">ZC_BUZHU_TIME
- = #{zcBuzhuTime},
- </if>
- <if test="zcBuzhuNote != null and zcBuzhuNote != ''">ZC_BUZHU_NOTE
- = #{zcBuzhuNote},
- </if>
- <if test="zcOtherIsMake != null and zcOtherIsMake != ''">ZC_OTHER_IS_MAKE
- = #{zcOtherIsMake},
- </if>
- <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">ZC_OTHER_IS_FILENAME
- = #{zcOtherIsFilename},
- </if>
- <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">ZC_OTHER_IS_FILENUM
- = #{zcOtherIsFilenum},
- </if>
- <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">ZC_OTHER_IS_DEPART
- = #{zcOtherIsDepart},
- </if>
- <if test="zcOtherIsTime != null and zcOtherIsTime != ''">ZC_OTHER_IS_TIME
- = #{zcOtherIsTime},
- </if>
- <if test="zcOtherIsNote != null and zcOtherIsNote != ''">ZC_OTHER_IS_NOTE
- = #{zcOtherIsNote},
- </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="note != null and note != ''">NOTE
- = #{note},
- </if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT
- = #{dataStat},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|