| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- <?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.BisBisRdwspRgstrFeeDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee" id="bisBisRdwspRgstrFeeResultMap">
- <result property="id" column="ID"/>
- <result property="regstrId" column="REGSTR_ID"/>
- <result property="prjId" column="PRJ_ID"/>
- <result property="prjNm" column="PRJ_NM"/>
- <result property="prjType" column="PRJ_TYPE"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- <result property="addr" column="ADDR"/>
- <result property="centerX" column="CENTER_X"/>
- <result property="centerY" column="CENTER_Y"/>
- <result property="gdX" column="GD_X"/>
- <result property="gdY" column="GD_Y"/>
- <result property="isFeeMake" column="IS_FEE_MAKE"/>
- <result property="feeRely" column="FEE_RELY"/>
- <result property="feeType" column="FEE_TYPE"/>
- <result property="isJiliangNote" column="IS_JILIANG_NOTE"/>
- <result property="isJiliangType" column="IS_JILIANG_TYPE"/>
- <result property="isJiliangFee" column="IS_JILIANG_FEE"/>
- <result property="isGudingNote" column="IS_GUDING_NOTE"/>
- <result property="isGudingType" column="IS_GUDING_TYPE"/>
- <result property="isGudingFee" column="IS_GUDING_FEE"/>
- <result property="jietiPriceOne" column="JIETI_PRICE_ONE"/>
- <result property="jietiPriceTwo" column="JIETI_PRICE_TWO"/>
- <result property="jietiPriceThree" column="JIETI_PRICE_THREE"/>
- <result property="jietiXianeOne" column="JIETI_XIANE_ONE"/>
- <result property="jietiXianeTwo" column="JIETI_XIANE_TWO"/>
- <result property="jietiXianeThree" column="JIETI_XIANE_THREE"/>
- <result property="gudingPriceTwo" column="GUDING_PRICE_TWO"/>
- <result property="jiliangPriceTwo" column="JILIANG_PRICE_TWO"/>
- <result property="isCalFee" column="IS_CAL_FEE"/>
- <result property="isOverBaseFee" column="IS_OVER_BASE_FEE"/>
- <result property="payFeeProcent" column="PAY_FEE_PROCENT"/>
- <result property="posFaeIsEqp" column="POS_FAE_IS_EQP"/>
- <result property="posFaeIsRun" column="POS_FAE_IS_RUN"/>
- <result property="posRsWsqIsOk" column="POS_RS_WSQ_IS_OK"/>
- <result property="posRsOswIsOk" column="POS_RS_OSW_IS_OK"/>
- <result property="telephone" column="TELEPHONE"/>
- <result property="visitDate" column="VISIT_DATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="status" column="STATUS"/>
- <result property="jiliangPrice" column="JILIANG_PRICE"/>
- <result property="xianEPrice" column="XIAN_E_PRICE"/>
- <result property="gudingPriceDw" column="GUDING_PRICE_DW"/>
- <result property="gudingPrice" column="GUDING_PRICE"/>
- </resultMap>
- <sql id="table_columns">
- GUDING_PRICE_DW,
- GUDING_PRICE,
- XIAN_E_PRICE,
- JILIANG_PRICE,
- ID,
- REGSTR_ID,
- PRJ_ID,
- PRJ_NM,
- PRJ_TYPE,
- AD_CODE,
- AD_NAME,
- AD_FULL_NAME,
- ADDR,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- IS_FEE_MAKE,
- FEE_RELY,
- FEE_TYPE,
- IS_JILIANG_NOTE,
- IS_JILIANG_TYPE,
- IS_JILIANG_FEE,
- IS_GUDING_NOTE,
- IS_GUDING_TYPE,
- IS_GUDING_FEE,
- JIETI_PRICE_ONE,
- JIETI_PRICE_TWO,
- JIETI_PRICE_THREE,
- JIETI_XIANE_ONE,
- JIETI_XIANE_TWO,
- JIETI_XIANE_THREE,
- GUDING_PRICE_TWO,
- JILIANG_PRICE_TWO,
- IS_CAL_FEE,
- IS_OVER_BASE_FEE,
- PAY_FEE_PROCENT,
- POS_FAE_IS_EQP,
- POS_FAE_IS_RUN,
- POS_RS_WSQ_IS_OK,
- POS_RS_OSW_IS_OK,
- TELEPHONE,
- VISIT_DATE,
- PERS_ID,
- REC_PERS,
- INTM,
- UPTM,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{gudingPriceDw},
- #{gudingPrice},
- #{xianEPrice},
- #{jiliangPrice},
- #{id},
- #{regstrId},
- #{prjId},
- #{prjNm},
- #{prjType},
- #{adCode},
- #{adName},
- #{adFullName},
- #{addr},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{isFeeMake},
- #{feeRely},
- #{feeType},
- #{isJiliangNote},
- #{isJiliangType},
- #{isJiliangFee},
- #{isGudingNote},
- #{isGudingType},
- #{isGudingFee},
- #{jietiPriceOne},
- #{jietiPriceTwo},
- #{jietiPriceThree},
- #{jietiXianeOne},
- #{jietiXianeTwo},
- #{jietiXianeThree},
- #{gudingPriceTwo},
- #{jiliangPriceTwo},
- #{isCalFee},
- #{isOverBaseFee},
- #{payFeeProcent},
- #{posFaeIsEqp},
- #{posFaeIsRun},
- #{posRsWsqIsOk},
- #{posRsOswIsOk},
- #{telephone},
- #{visitDate},
- #{persId},
- #{recPers},
- #{intm},
- #{uptm},
- #{status}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="gudingPriceDw != null and gudingPriceDw != ''">and GUDING_PRICE_DW = #{gudingPriceDw}</if>
- <if test="gudingPrice != null and gudingPrice != ''">and GUDING_PRICE = #{gudingPrice}</if>
- <if test="xianEPrice != null and xianEPrice != ''">and XIAN_E_PRICE = #{xianEPrice}</if>
- <if test="jiliangPrice != null and jiliangPrice != ''">and JILIANG_PRICE = #{jiliangPrice}</if>
- <if test="regstrId != null and regstrId != ''">and REGSTR_ID = #{regstrId}</if>
- <if test="prjId != null and prjId != ''">and PRJ_ID = #{prjId}</if>
- <if test="prjNm != null and prjNm != ''">and PRJ_NM = #{prjNm}</if>
- <if test="prjType != null and prjType != ''">and PRJ_TYPE = #{prjType}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="addr != null and addr != ''">and ADDR = #{addr}</if>
- <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
- <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
- <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
- <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
- <if test="isFeeMake != null and isFeeMake != ''">and IS_FEE_MAKE = #{isFeeMake}</if>
- <if test="feeRely != null and feeRely != ''">and FEE_RELY = #{feeRely}</if>
- <if test="feeType != null and feeType != ''">and FEE_TYPE = #{feeType}</if>
- <if test="isJiliangNote != null and isJiliangNote != ''">and IS_JILIANG_NOTE = #{isJiliangNote}</if>
- <if test="isJiliangType != null and isJiliangType != ''">and IS_JILIANG_TYPE = #{isJiliangType}</if>
- <if test="isJiliangFee != null and isJiliangFee != ''">and IS_JILIANG_FEE = #{isJiliangFee}</if>
- <if test="isGudingNote != null and isGudingNote != ''">and IS_GUDING_NOTE = #{isGudingNote}</if>
- <if test="isGudingType != null and isGudingType != ''">and IS_GUDING_TYPE = #{isGudingType}</if>
- <if test="isGudingFee != null and isGudingFee != ''">and IS_GUDING_FEE = #{isGudingFee}</if>
- <if test="jietiPriceOne != null and jietiPriceOne != ''">and JIETI_PRICE_ONE = #{jietiPriceOne}</if>
- <if test="jietiPriceTwo != null and jietiPriceTwo != ''">and JIETI_PRICE_TWO = #{jietiPriceTwo}</if>
- <if test="jietiPriceThree != null and jietiPriceThree != ''">and JIETI_PRICE_THREE = #{jietiPriceThree}</if>
- <if test="jietiXianeOne != null and jietiXianeOne != ''">and JIETI_XIANE_ONE = #{jietiXianeOne}</if>
- <if test="jietiXianeTwo != null and jietiXianeTwo != ''">and JIETI_XIANE_TWO = #{jietiXianeTwo}</if>
- <if test="jietiXianeThree != null and jietiXianeThree != ''">and JIETI_XIANE_THREE = #{jietiXianeThree}</if>
- <if test="gudingPriceTwo != null and gudingPriceTwo != ''">and GUDING_PRICE_TWO = #{gudingPriceTwo}</if>
- <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">and JILIANG_PRICE_TWO = #{jiliangPriceTwo}</if>
- <if test="isCalFee != null and isCalFee != ''">and IS_CAL_FEE = #{isCalFee}</if>
- <if test="isOverBaseFee != null and isOverBaseFee != ''">and IS_OVER_BASE_FEE = #{isOverBaseFee}</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">and PAY_FEE_PROCENT = #{payFeeProcent}</if>
- <if test="posFaeIsEqp != null and posFaeIsEqp != ''">and POS_FAE_IS_EQP = #{posFaeIsEqp}</if>
- <if test="posFaeIsRun != null and posFaeIsRun != ''">and POS_FAE_IS_RUN = #{posFaeIsRun}</if>
- <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">and POS_RS_WSQ_IS_OK = #{posRsWsqIsOk}</if>
- <if test="posRsOswIsOk != null and posRsOswIsOk != ''">and POS_RS_OSW_IS_OK = #{posRsOswIsOk}</if>
- <if test="telephone != null and telephone != ''">and TELEPHONE = #{telephone}</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="recPers != null and recPers != ''">and REC_PERS = #{recPers}</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="bisBisRdwspRgstrFeeResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_BIS_RDWSP_RGSTR_FEE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisBisRdwspRgstrFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_BIS_RDWSP_RGSTR_FEE
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisBisRdwspRgstrFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_BIS_RDWSP_RGSTR_FEE
- </select>
- <select id="findList" resultMap="bisBisRdwspRgstrFeeResultMap">
- select
- <include refid="table_columns"/>
- from BIS_BIS_RDWSP_RGSTR_FEE
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_BIS_RDWSP_RGSTR_FEE
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
- insert into BIS_BIS_RDWSP_RGSTR_FEE(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_BIS_RDWSP_RGSTR_FEE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
- delete from BIS_BIS_RDWSP_RGSTR_FEE
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_BIS_RDWSP_RGSTR_FEE set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee">
- update BIS_BIS_RDWSP_RGSTR_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="gudingPriceDw != null and gudingPriceDw != ''">GUDING_PRICE_DW = #{gudingPriceDw},</if>
- <if test="gudingPrice != null and gudingPrice != ''">GUDING_PRICE = #{gudingPrice},</if>
- <if test="xianEPrice != null and xianEPrice != ''">XIAN_E_PRICE = #{xianEPrice},</if>
- <if test="jiliangPrice != null and jiliangPrice != ''">JILIANG_PRICE = #{jiliangPrice},</if>
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
- <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="addr != null and addr != ''">ADDR = #{addr},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="isFeeMake != null and isFeeMake != ''">IS_FEE_MAKE = #{isFeeMake},</if>
- <if test="feeRely != null and feeRely != ''">FEE_RELY = #{feeRely},</if>
- <if test="feeType != null and feeType != ''">FEE_TYPE = #{feeType},</if>
- <if test="isJiliangNote != null and isJiliangNote != ''">IS_JILIANG_NOTE = #{isJiliangNote},</if>
- <if test="isJiliangType != null and isJiliangType != ''">IS_JILIANG_TYPE = #{isJiliangType},</if>
- <if test="isJiliangFee != null and isJiliangFee != ''">IS_JILIANG_FEE = #{isJiliangFee},</if>
- <if test="isGudingNote != null and isGudingNote != ''">IS_GUDING_NOTE = #{isGudingNote},</if>
- <if test="isGudingType != null and isGudingType != ''">IS_GUDING_TYPE = #{isGudingType},</if>
- <if test="isGudingFee != null and isGudingFee != ''">IS_GUDING_FEE = #{isGudingFee},</if>
- <if test="jietiPriceOne != null and jietiPriceOne != ''">JIETI_PRICE_ONE = #{jietiPriceOne},</if>
- <if test="jietiPriceTwo != null and jietiPriceTwo != ''">JIETI_PRICE_TWO = #{jietiPriceTwo},</if>
- <if test="jietiPriceThree != null and jietiPriceThree != ''">JIETI_PRICE_THREE = #{jietiPriceThree},</if>
- <if test="jietiXianeOne != null and jietiXianeOne != ''">JIETI_XIANE_ONE = #{jietiXianeOne},</if>
- <if test="jietiXianeTwo != null and jietiXianeTwo != ''">JIETI_XIANE_TWO = #{jietiXianeTwo},</if>
- <if test="jietiXianeThree != null and jietiXianeThree != ''">JIETI_XIANE_THREE = #{jietiXianeThree},</if>
- <if test="gudingPriceTwo != null and gudingPriceTwo != ''">GUDING_PRICE_TWO = #{gudingPriceTwo},</if>
- <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">JILIANG_PRICE_TWO = #{jiliangPriceTwo},</if>
- <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
- <if test="isOverBaseFee != null and isOverBaseFee != ''">IS_OVER_BASE_FEE = #{isOverBaseFee},</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
- <if test="posFaeIsEqp != null and posFaeIsEqp != ''">POS_FAE_IS_EQP = #{posFaeIsEqp},</if>
- <if test="posFaeIsRun != null and posFaeIsRun != ''">POS_FAE_IS_RUN = #{posFaeIsRun},</if>
- <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">POS_RS_WSQ_IS_OK = #{posRsWsqIsOk},</if>
- <if test="posRsOswIsOk != null and posRsOswIsOk != ''">POS_RS_OSW_IS_OK = #{posRsOswIsOk},</if>
- <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
- <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</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.BisBisRdwspRgstrFee">
- update BIS_BIS_RDWSP_RGSTR_FEE
- <trim prefix="set" suffixOverrides=",">
- <if test="gudingPriceDw != null and gudingPriceDw != ''">GUDING_PRICE_DW = #{gudingPriceDw},</if>
- <if test="gudingPrice != null and gudingPrice != ''">GUDING_PRICE = #{gudingPrice},</if>
- <if test="xianEPrice != null and xianEPrice != ''">XIAN_E_PRICE = #{xianEPrice},</if>
- <if test="jiliangPrice != null and jiliangPrice != ''">JILIANG_PRICE = #{jiliangPrice},</if>
- <if test="regstrId != null and regstrId != ''">REGSTR_ID = #{regstrId},</if>
- <if test="prjId != null and prjId != ''">PRJ_ID = #{prjId},</if>
- <if test="prjNm != null and prjNm != ''">PRJ_NM = #{prjNm},</if>
- <if test="prjType != null and prjType != ''">PRJ_TYPE = #{prjType},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="addr != null and addr != ''">ADDR = #{addr},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="isFeeMake != null and isFeeMake != ''">IS_FEE_MAKE = #{isFeeMake},</if>
- <if test="feeRely != null and feeRely != ''">FEE_RELY = #{feeRely},</if>
- <if test="feeType != null and feeType != ''">FEE_TYPE = #{feeType},</if>
- <if test="isJiliangNote != null and isJiliangNote != ''">IS_JILIANG_NOTE = #{isJiliangNote},</if>
- <if test="isJiliangType != null and isJiliangType != ''">IS_JILIANG_TYPE = #{isJiliangType},</if>
- <if test="isJiliangFee != null and isJiliangFee != ''">IS_JILIANG_FEE = #{isJiliangFee},</if>
- <if test="isGudingNote != null and isGudingNote != ''">IS_GUDING_NOTE = #{isGudingNote},</if>
- <if test="isGudingType != null and isGudingType != ''">IS_GUDING_TYPE = #{isGudingType},</if>
- <if test="isGudingFee != null and isGudingFee != ''">IS_GUDING_FEE = #{isGudingFee},</if>
- <if test="jietiPriceOne != null and jietiPriceOne != ''">JIETI_PRICE_ONE = #{jietiPriceOne},</if>
- <if test="jietiPriceTwo != null and jietiPriceTwo != ''">JIETI_PRICE_TWO = #{jietiPriceTwo},</if>
- <if test="jietiPriceThree != null and jietiPriceThree != ''">JIETI_PRICE_THREE = #{jietiPriceThree},</if>
- <if test="jietiXianeOne != null and jietiXianeOne != ''">JIETI_XIANE_ONE = #{jietiXianeOne},</if>
- <if test="jietiXianeTwo != null and jietiXianeTwo != ''">JIETI_XIANE_TWO = #{jietiXianeTwo},</if>
- <if test="jietiXianeThree != null and jietiXianeThree != ''">JIETI_XIANE_THREE = #{jietiXianeThree},</if>
- <if test="gudingPriceTwo != null and gudingPriceTwo != ''">GUDING_PRICE_TWO = #{gudingPriceTwo},</if>
- <if test="jiliangPriceTwo != null and jiliangPriceTwo != ''">JILIANG_PRICE_TWO = #{jiliangPriceTwo},</if>
- <if test="isCalFee != null and isCalFee != ''">IS_CAL_FEE = #{isCalFee},</if>
- <if test="isOverBaseFee != null and isOverBaseFee != ''">IS_OVER_BASE_FEE = #{isOverBaseFee},</if>
- <if test="payFeeProcent != null and payFeeProcent != ''">PAY_FEE_PROCENT = #{payFeeProcent},</if>
- <if test="posFaeIsEqp != null and posFaeIsEqp != ''">POS_FAE_IS_EQP = #{posFaeIsEqp},</if>
- <if test="posFaeIsRun != null and posFaeIsRun != ''">POS_FAE_IS_RUN = #{posFaeIsRun},</if>
- <if test="posRsWsqIsOk != null and posRsWsqIsOk != ''">POS_RS_WSQ_IS_OK = #{posRsWsqIsOk},</if>
- <if test="posRsOswIsOk != null and posRsOswIsOk != ''">POS_RS_OSW_IS_OK = #{posRsOswIsOk},</if>
- <if test="telephone != null and telephone != ''">TELEPHONE = #{telephone},</if>
- <if test="visitDate != null and visitDate != ''">VISIT_DATE = #{visitDate},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</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 -->
- <select id="findPageList" resultType="cn.com.goldenwater.dcproj.model.BisInspPblm"
- parameterType="cn.com.goldenwater.dcproj.param.PlbmParam">
- select w.* from (
- select
- j.id as oid,j.obj_id,m.pblm_id,m.obj_type,m.insp_pblm_name,m.insp_pblm_desc,m.pblm_long,m.pblm_lat,s.check_point,
- m.new_vill_name,j.nm,m.vill_type,m.has_vedio,m.quote,m.rec_pers,
- m.regid,j.code as ad_code,ba.ad_full_name,s.sn_num,p.pers_name,
- m.insp_add_desc,m.coll_time,(select l.pnm from bis_insp_all l where l.id=substr(al.id,1,6)) as pnm,
- (select org_nm from bis_insp_org where org_id=substr(al.id,4,3)) as org_nm
- FROM BIS_INSP_PBLM M
- JOIN BIS_INSP_ALL_OBJ J ON M.OBJ_ID=J.OBJ_ID
- JOIN BIS_INSP_ALL AL ON AL.ID=J.ID
- LEFT JOIN OBJ_INSP_PBLMS S ON M.PBLMS_TYPE_ID=S.GUID
- LEFT JOIN BIS_INSP_ALL_RLATION_PERS P ON M.REC_PERS=P.GUID
- LEFT JOIN ATT_AD_X_BASE BA ON J.CODE=BA.AD_CODE
- ) w
- <where>
- obj_type = '37'
- <!-- W.OID in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{presId}
- AND Type='37'
- and (length(id) between 2 and 10))
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{presId}
- AND Type='37'
- and length(id)> 11 )
- )
- ) -->
- <if test="villType !=null and villType !=''">
- and w.vill_type in (${villType})
- </if>
- <if test="objIdes != null and objIdes != ''">and OBJ_ID in (${objIdes})</if>
- <if test="inspPblmName !=null and inspPblmName !=''">and w.insp_pblm_name like '${inspPblmName}%'</if>
- <if test="startTime != null and startTime != ''">and COLL_TIME >= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
- <if test="findTime != null and findTime != ''">and COLL_TIME=STR_TO_DATE(#{findTime},'%Y-%m-%d')</if>
- <if test="endTime != null and endTime != ''">and COLL_TIME < DATE_ADD(STR_TO_DATE(#{endTime},'%Y-%m-%d'), INTERVAL 1 DAY)</if>
- <if test="oides != null and oides != ''">and oid in (${oides})</if>
- <if test="regid !=null and regid !=''">and w.regid=#{regid}</if>
- <if test="recPers !=null and recPers !=''">
- and w.rec_Pers=#{recPers}
- </if>
- <if test="objId !=null and objId !=''">
- and w.obj_id=#{objId}
- </if>
- <if test="groupId !=null and groupId !=''">
- and oid like '${groupId}%'
- </if>
- <if test="adFullName !=null and adFullName !=''">
- and w.AD_FULL_NAMe like '%${adFullName}%'
- </if>
- <if test="persName !=null and persName !=''">
- and w.PERS_NAME like '%${persName}%'
- </if>
- <if test="nm !=null and nm !=''">
- and w.NM like '%${nm}%'
- </if>
- <if test="orgNm !=null and orgNm !=''">
- and w.ORG_NM like '%${orgNm}%'
- </if>
- <if test="hasVedio !=null and hasVedio !=''">
- and w.HAS_VEDIO=#{hasVedio}
- </if>
- <if test="adCode !=null and adCode !=''">
- and w.AD_CODE like '${adCode}%'
- </if>
- </where>
- order by w.AD_CODE
- <if test="orderBy !=null and orderBy !=''">
- ,${orderBy}
- </if>
- </select>
- </mapper>
|