| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <?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.BisNewCountryLawDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisNewCountryLaw" id="bisNewCountryLawResultMap">
- <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="visitDate" column="VISIT_DATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="recPers2" column="REC_PERS2"/>
- <result property="createTime" column="CREATE_TIME"/>
- <result property="updateTime" column="UPDATE_TIME"/>
- <result property="status" column="STATUS"/>
- <result property="visiteNote" column="VISITE_NOTE"/>
- <result property="id" column="ID"/>
- <result property="villageNm" column="VILLAGE_NM"/>
- <result property="regstrId" column="REGSTR_ID"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="telphone" column="TELPHONE"/>
- <result property="isPkx" column="IS_PKX"/>
- <result property="isTelNormal" column="IS_TEL_NORMAL"/>
- <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="zcWaterIsMake" column="ZC_WATER_IS_MAKE"/>
- <result property="zcBuzhuIsMake" column="ZC_BUZHU_IS_MAKE"/>
- <result property="zcBuzhuFilename" column="ZC_BUZHU_FILENAME"/>
- <result property="isFoOver" column="IS_FO_OVER"/>
- </resultMap>
-
- <sql id="table_columns">
- ZC_BUZHU_FILENUM,IS_FO_OVER,
- 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,
- VISIT_DATE,
- PERS_ID,
- REC_PERS2,
- CREATE_TIME,
- UPDATE_TIME,
- STATUS,
- VISITE_NOTE,
- ID,
- VILLAGE_NM,
- REGSTR_ID,
- AD_CODE,
- TELPHONE,
- IS_PKX,
- IS_TEL_NORMAL,
- ZC_WATER_FILENAME,
- ZC_WATER_FILENUM,
- ZC_WATER_DEPART,
- ZC_WATER_TIME,
- ZC_WATER_NOTE,
- ZC_WATER_IS_MAKE,
- ZC_BUZHU_IS_MAKE,
- ZC_BUZHU_FILENAME
- </sql>
- <sql id="entity_properties">
- #{zcBuzhuFilenum},#{isFoOver},
- #{zcBuzhuDepart},
- #{zcBuzhuTime},
- #{zcBuzhuNote},
- #{zcOtherIsMake},
- #{zcOtherIsFilename},
- #{zcOtherIsFilenum},
- #{zcOtherIsDepart},
- #{zcOtherIsTime},
- #{zcOtherIsNote},
- #{visitDate},
- #{persId},
- #{recPers2},
- #{createTime},
- #{updateTime},
- #{status},
- #{visiteNote},
- #{id},
- #{villageNm},
- #{regstrId},
- #{adCode},
- #{telphone},
- #{isPkx},
- #{isTelNormal},
- #{zcWaterFilename},
- #{zcWaterFilenum},
- #{zcWaterDepart},
- #{zcWaterTime},
- #{zcWaterNote},
- #{zcWaterIsMake},
- #{zcBuzhuIsMake},
- #{zcBuzhuFilename}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <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="visitDate != null and visitDate != ''">and VISIT_DATE = #{visitDate}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
- <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
- <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="visiteNote != null and visiteNote != ''">and VISITE_NOTE = #{visiteNote}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="villageNm != null and villageNm != ''">and VILLAGE_NM = #{villageNm}</if>
- <if test="regstrId != null and regstrId != ''">and REGSTR_ID = #{regstrId}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="telphone != null and telphone != ''">and TELPHONE = #{telphone}</if>
- <if test="isPkx != null and isPkx != ''">and IS_PKX = #{isPkx}</if>
- <if test="isFoOver != null and isFoOver != ''">and IS_FO_OVER = #{isFoOver}</if>
- <if test="isTelNormal != null and isTelNormal != ''">and IS_TEL_NORMAL = #{isTelNormal}</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="zcWaterIsMake != null and zcWaterIsMake != ''">and ZC_WATER_IS_MAKE = #{zcWaterIsMake}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisNewCountryLawResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_NEW_COUNTRY_LAW where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisNewCountryLawResultMap">
- select <include refid="table_columns" /> from BIS_NEW_COUNTRY_LAW <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisNewCountryLawResultMap">
- select <include refid="table_columns" /> from BIS_NEW_COUNTRY_LAW
- </select>
- <select id="findList" resultMap="bisNewCountryLawResultMap">
- select <include refid="table_columns" /> from BIS_NEW_COUNTRY_LAW <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_NEW_COUNTRY_LAW <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisNewCountryLaw">
- insert into BIS_NEW_COUNTRY_LAW( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_NEW_COUNTRY_LAW where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisNewCountryLaw">
- delete from BIS_NEW_COUNTRY_LAW <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_NEW_COUNTRY_LAW set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisNewCountryLaw">
- update BIS_NEW_COUNTRY_LAW
- <trim prefix="set" suffixOverrides=",">
- <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART = #{zcBuzhuDepart},</if>
- <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM = #{zcBuzhuFilenum},</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="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="createTime != null">CREATE_TIME = #{createTime},</if>
- <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="visiteNote != null and visiteNote != ''">VISITE_NOTE = #{visiteNote},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="villageNm != null and villageNm != ''">VILLAGE_NM = #{villageNm},</if>
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="telphone != null and telphone != ''">TELPHONE = #{telphone},</if>
- <if test="isPkx != null and isPkx != ''">IS_PKX = #{isPkx},</if>
- <if test="isFoOver != null and isFoOver != ''"> IS_FO_OVER = #{isFoOver},</if>
- <if test="isTelNormal != null and isTelNormal != ''">IS_TEL_NORMAL = #{isTelNormal},</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="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE = #{zcWaterIsMake},</if>
- <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE = #{zcBuzhuIsMake},</if>
- <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME = #{zcBuzhuFilename},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisNewCountryLaw">
- update BIS_NEW_COUNTRY_LAW
- <trim prefix="set" suffixOverrides=",">
- <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART = #{zcBuzhuDepart},</if>
- <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM = #{zcBuzhuFilenum},</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="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="createTime != null">CREATE_TIME = #{createTime},</if>
- <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="visiteNote != null and visiteNote != ''">VISITE_NOTE = #{visiteNote},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="villageNm != null and villageNm != ''">VILLAGE_NM = #{villageNm},</if>
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="telphone != null and telphone != ''">TELPHONE = #{telphone},</if>
- <if test="isPkx != null and isPkx != ''">IS_PKX = #{isPkx},</if>
- <if test="isTelNormal != null and isTelNormal != ''">IS_TEL_NORMAL = #{isTelNormal},</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="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE = #{zcWaterIsMake},</if>
- <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE = #{zcBuzhuIsMake},</if>
- <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME = #{zcBuzhuFilename},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|