| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?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.BisZhejiangCountryFeeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee" id="bisZhejiangCountryFeeResultMap">
- <result property="cwsCode" column="CWS_CODE"/>
- <result property="projectNm" column="PROJECT_NM"/>
- <result property="projectLogo" column="PROJECT_LOGO"/>
- <result property="projectNote" column="PROJECT_NOTE"/>
- <result property="projectDesc" column="PROJECT_DESC"/>
- <result property="projectType" column="PROJECT_TYPE"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="finishTime" column="FINISH_TIME"/>
- <result property="isCalFee" column="IS_CAL_FEE"/>
- <result property="fee" column="FEE"/>
- <result property="isKnowFeeProcent" column="IS_KNOW_FEE_PROCENT"/>
- <result property="payFeeProcent" column="PAY_FEE_PROCENT"/>
- <result property="isOwnCleanTool" column="IS_OWN_CLEAN_TOOL"/>
- <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="isDisinfNormal" column="IS_DISINF_NORMAL"/>
- <result property="waterQuaHaveNote" column="WATER_QUA_HAVE_NOTE"/>
- <result property="waterCheckCount" column="WATER_CHECK_COUNT"/>
- <result property="telephone" column="TELEPHONE"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- <result property="lgtd" column="LGTD"/>
- <result property="lttd" column="LTTD"/>
- <result property="lgtdpc" column="LGTDPC"/>
- <result property="lttdpc" column="LTTDPC"/>
- <result property="projectThreePerson" column="PROJECT_THREE_PERSON"/>
- <result property="projectPerson" column="PROJECT_PERSON"/>
- <result property="weihuPerson" column="WEIHU_PERSON"/>
- <result property="biaozhunCreate" column="BIAOZHUN_CREATE"/>
- <result property="personStatify" column="PERSON_STATIFY"/>
- <result property="note" column="NOTE"/>
- <result property="location" column="location"/>
- </resultMap>
-
- <sql id="table_columns">
- location,
- CWS_CODE,
- PROJECT_NM,
- PROJECT_LOGO,
- PROJECT_NOTE,
- PROJECT_DESC,
- PROJECT_TYPE,
- ID,
- RGSTR_ID,
- AD_CODE,
- FINISH_TIME,
- IS_CAL_FEE,
- FEE,
- IS_KNOW_FEE_PROCENT,
- PAY_FEE_PROCENT,
- IS_OWN_CLEAN_TOOL,
- VISIT_DATE,
- PERS_ID,
- REC_PERS2,
- CREATE_TIME,
- UPDATE_TIME,
- STATUS,
- IS_DISINF_NORMAL,
- WATER_QUA_HAVE_NOTE,
- WATER_CHECK_COUNT,
- TELEPHONE,
- AD_FULL_NAME,
- LGTD,
- LTTD,
- LGTDPC,
- LTTDPC,
- PROJECT_THREE_PERSON,
- PROJECT_PERSON,
- WEIHU_PERSON,
- BIAOZHUN_CREATE,
- PERSON_STATIFY,
- NOTE
- </sql>
- <sql id="entity_properties">
- #{location},
- #{cwsCode},
- #{projectNm},
- #{projectLogo},
- #{projectNote},
- #{projectDesc},
- #{projectType},
- #{id},
- #{rgstrId},
- #{adCode},
- #{finishTime},
- #{isCalFee},
- #{fee},
- #{isKnowFeeProcent},
- #{payFeeProcent},
- #{isOwnCleanTool},
- #{visitDate},
- #{persId},
- #{recPers2},
- #{createTime},
- #{updateTime},
- #{status},
- #{isDisinfNormal},
- #{waterQuaHaveNote},
- #{waterCheckCount},
- #{telephone},
- #{adFullName},
- #{lgtd},
- #{lttd},
- #{lgtdpc},
- #{lttdpc},
- #{projectThreePerson},
- #{projectPerson},
- #{weihuPerson},
- #{biaozhunCreate},
- #{personStatify},
- #{note}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="location != null and location != ''">and location = #{location}</if>
- <if test="cwsCode != null and cwsCode != ''">and CWS_CODE = #{cwsCode}</if>
- <if test="projectLogo != null and projectLogo != ''">and PROJECT_LOGO = #{projectLogo}</if>
- <if test="projectNote != null and projectNote != ''">and PROJECT_NOTE = #{projectNote}</if>
- <if test="projectDesc != null and projectDesc != ''">and PROJECT_DESC = #{projectDesc}</if>
- <if test="projectType != null and projectType != ''">and PROJECT_TYPE = #{projectType}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="finishTime != null and finishTime != ''">and FINISH_TIME = #{finishTime}</if>
- <if test="isCalFee != null and isCalFee != ''">and IS_CAL_FEE = #{isCalFee}</if>
- <if test="fee != null and fee != ''">and FEE = #{fee}</if>
- <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">and IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent}</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">and PAY_FEE_PROCENT = #{payFeeProcent}</if>
- <if test="isOwnCleanTool != null and isOwnCleanTool != ''">and IS_OWN_CLEAN_TOOL = #{isOwnCleanTool}</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="isDisinfNormal != null and isDisinfNormal != ''">and IS_DISINF_NORMAL = #{isDisinfNormal}</if>
- <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">and WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote}</if>
- <if test="waterCheckCount != null and waterCheckCount != ''">and WATER_CHECK_COUNT = #{waterCheckCount}</if>
- <if test="telephone != null and telephone != ''">and TELEPHONE = #{telephone}</if>
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="lgtd != null and lgtd != ''">and LGTD = #{lgtd}</if>
- <if test="lttd != null and lttd != ''">and LTTD = #{lttd}</if>
- <if test="lgtdpc != null and lgtdpc != ''">and LGTDPC = #{lgtdpc}</if>
- <if test="lttdpc != null and lttdpc != ''">and LTTDPC = #{lttdpc}</if>
- <if test="projectThreePerson != null and projectThreePerson != ''">and PROJECT_THREE_PERSON = #{projectThreePerson}</if>
- <if test="projectPerson != null and projectPerson != ''">and PROJECT_PERSON = #{projectPerson}</if>
- <if test="weihuPerson != null and weihuPerson != ''">and WEIHU_PERSON = #{weihuPerson}</if>
- <if test="biaozhunCreate != null and biaozhunCreate != ''">and BIAOZHUN_CREATE = #{biaozhunCreate}</if>
- <if test="personStatify != null and personStatify != ''">and PERSON_STATIFY = #{personStatify}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisZhejiangCountryFeeResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisZhejiangCountryFeeResultMap">
- select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisZhejiangCountryFeeResultMap">
- select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE
- </select>
- <select id="findList" resultMap="bisZhejiangCountryFeeResultMap">
- select <include refid="table_columns" /> from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
- insert into BIS_ZHEJIANG_COUNTRY_FEE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_ZHEJIANG_COUNTRY_FEE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
- delete from BIS_ZHEJIANG_COUNTRY_FEE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_ZHEJIANG_COUNTRY_FEE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
- update BIS_ZHEJIANG_COUNTRY_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="location != null and location != ''"> location = #{location},</if>
- <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
- <if test="projectLogo != null and projectLogo != ''">PROJECT_LOGO = #{projectLogo},</if>
- <if test="projectNote != null and projectNote != ''">PROJECT_NOTE = #{projectNote},</if>
- <if test="projectDesc != null and projectDesc != ''">PROJECT_DESC = #{projectDesc},</if>
- <if test="projectType != null and projectType != ''">PROJECT_TYPE = #{projectType},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="finishTime != null and finishTime != ''">FINISH_TIME = #{finishTime},</if>
- <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
- <if test="fee != null and fee != ''">FEE = #{fee},</if>
- <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent},</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
- <if test="isOwnCleanTool != null and isOwnCleanTool != ''">IS_OWN_CLEAN_TOOL = #{isOwnCleanTool},</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="isDisinfNormal != null and isDisinfNormal != ''">IS_DISINF_NORMAL = #{isDisinfNormal},</if>
- <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote},</if>
- <if test="waterCheckCount != null and waterCheckCount != ''">WATER_CHECK_COUNT = #{waterCheckCount},</if>
- <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
- <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
- <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
- <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
- <if test="projectThreePerson != null and projectThreePerson != ''">PROJECT_THREE_PERSON = #{projectThreePerson},</if>
- <if test="projectPerson != null and projectPerson != ''">PROJECT_PERSON = #{projectPerson},</if>
- <if test="weihuPerson != null and weihuPerson != ''">WEIHU_PERSON = #{weihuPerson},</if>
- <if test="biaozhunCreate != null and biaozhunCreate != ''">BIAOZHUN_CREATE = #{biaozhunCreate},</if>
- <if test="personStatify != null and personStatify != ''">PERSON_STATIFY = #{personStatify},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisZhejiangCountryFee">
- update BIS_ZHEJIANG_COUNTRY_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="location != null and location != ''"> location = #{location},</if>
- <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
- <if test="projectLogo != null and projectLogo != ''">PROJECT_LOGO = #{projectLogo},</if>
- <if test="projectNote != null and projectNote != ''">PROJECT_NOTE = #{projectNote},</if>
- <if test="projectDesc != null and projectDesc != ''">PROJECT_DESC = #{projectDesc},</if>
- <if test="projectType != null and projectType != ''">PROJECT_TYPE = #{projectType},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="finishTime != null and finishTime != ''">FINISH_TIME = #{finishTime},</if>
- <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
- <if test="fee != null and fee != ''">FEE = #{fee},</if>
- <if test="isKnowFeeProcent != null and isKnowFeeProcent != ''">IS_KNOW_FEE_PROCENT = #{isKnowFeeProcent},</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
- <if test="isOwnCleanTool != null and isOwnCleanTool != ''">IS_OWN_CLEAN_TOOL = #{isOwnCleanTool},</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="isDisinfNormal != null and isDisinfNormal != ''">IS_DISINF_NORMAL = #{isDisinfNormal},</if>
- <if test="waterQuaHaveNote != null and waterQuaHaveNote != ''">WATER_QUA_HAVE_NOTE = #{waterQuaHaveNote},</if>
- <if test="waterCheckCount != null and waterCheckCount != ''">WATER_CHECK_COUNT = #{waterCheckCount},</if>
- <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
- <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
- <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
- <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
- <if test="projectThreePerson != null and projectThreePerson != ''">PROJECT_THREE_PERSON = #{projectThreePerson},</if>
- <if test="projectPerson != null and projectPerson != ''">PROJECT_PERSON = #{projectPerson},</if>
- <if test="weihuPerson != null and weihuPerson != ''">WEIHU_PERSON = #{weihuPerson},</if>
- <if test="biaozhunCreate != null and biaozhunCreate != ''">BIAOZHUN_CREATE = #{biaozhunCreate},</if>
- <if test="personStatify != null and personStatify != ''">PERSON_STATIFY = #{personStatify},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|