| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?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.BisInspFundFinaDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFundFina" id="bisInspFundFinaResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isPeopStipuliate" column="IS_PEOP_STIPULIATE"/>
- <result property="isTellerStipuliate" column="IS_TELLER_STIPULIATE"/>
- <result property="isBuildManage" column="IS_BUILD_MANAGE"/>
- <result property="isImpleSystem" column="IS_IMPLE_SYSTEM"/>
- <result property="isSystemComp" column="IS_SYSTEM_COMP"/>
- <result property="isForgeReport" column="IS_FORGE_REPORT"/>
- <result property="isAlterProof" column="IS_ALTER_PROOF"/>
- <result property="isTimelyCollect" column="IS_TIMELY_COLLECT"/>
- <result property="isProofStipuliate" column="IS_PROOF_STIPULIATE"/>
- <result property="isBillManage" column="IS_BILL_MANAGE"/>
- <result property="isBillComp" column="IS_BILL_COMP"/>
- <result property="isSaveFile" column="IS_SAVE_FILE"/>
- <result property="isReportSign" column="IS_REPORT_SIGN"/>
- <result property="isPeopTakeover" column="IS_PEOP_TAKEOVER"/>
- <result property="isWriteStipuliate" column="IS_WRITE_STIPULIATE"/>
- <result property="isSealManage" column="IS_SEAL_MANAGE"/>
- <result property="isPblmReform" column="IS_PBLM_REFORM"/>
- <result property="isPriceAccura" column="IS_PRICE_ACCURA"/>
- <result property="isProcdComp" column="IS_PROCD_COMP"/>
- <result property="isWriteComp" column="IS_WRITE_COMP"/>
- <result property="isViolateStipuliate" column="IS_VIOLATE_STIPULIATE"/>
- <result property="state" column="STATE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_PEOP_STIPULIATE,
- IS_TELLER_STIPULIATE,
- IS_BUILD_MANAGE,
- IS_IMPLE_SYSTEM,
- IS_SYSTEM_COMP,
- IS_FORGE_REPORT,
- IS_ALTER_PROOF,
- IS_TIMELY_COLLECT,
- IS_PROOF_STIPULIATE,
- IS_BILL_MANAGE,
- IS_BILL_COMP,
- IS_SAVE_FILE,
- IS_REPORT_SIGN,
- IS_PEOP_TAKEOVER,
- IS_WRITE_STIPULIATE,
- IS_SEAL_MANAGE,
- IS_PBLM_REFORM,
- IS_PRICE_ACCURA,
- IS_PROCD_COMP,
- IS_WRITE_COMP,
- IS_VIOLATE_STIPULIATE,
- STATE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isPeopStipuliate},
- #{isTellerStipuliate},
- #{isBuildManage},
- #{isImpleSystem},
- #{isSystemComp},
- #{isForgeReport},
- #{isAlterProof},
- #{isTimelyCollect},
- #{isProofStipuliate},
- #{isBillManage},
- #{isBillComp},
- #{isSaveFile},
- #{isReportSign},
- #{isPeopTakeover},
- #{isWriteStipuliate},
- #{isSealManage},
- #{isPblmReform},
- #{isPriceAccura},
- #{isProcdComp},
- #{isWriteComp},
- #{isViolateStipuliate},
- #{state},
- #{persId},
- #{intm},
- #{uptm},
- #{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="isPeopStipuliate != null and isPeopStipuliate != ''">and IS_PEOP_STIPULIATE = #{isPeopStipuliate}</if>
- <if test="isTellerStipuliate != null and isTellerStipuliate != ''">and IS_TELLER_STIPULIATE = #{isTellerStipuliate}</if>
- <if test="isBuildManage != null and isBuildManage != ''">and IS_BUILD_MANAGE = #{isBuildManage}</if>
- <if test="isImpleSystem != null and isImpleSystem != ''">and IS_IMPLE_SYSTEM = #{isImpleSystem}</if>
- <if test="isSystemComp != null and isSystemComp != ''">and IS_SYSTEM_COMP = #{isSystemComp}</if>
- <if test="isForgeReport != null and isForgeReport != ''">and IS_FORGE_REPORT = #{isForgeReport}</if>
- <if test="isAlterProof != null and isAlterProof != ''">and IS_ALTER_PROOF = #{isAlterProof}</if>
- <if test="isTimelyCollect != null and isTimelyCollect != ''">and IS_TIMELY_COLLECT = #{isTimelyCollect}</if>
- <if test="isProofStipuliate != null and isProofStipuliate != ''">and IS_PROOF_STIPULIATE = #{isProofStipuliate}</if>
- <if test="isBillManage != null and isBillManage != ''">and IS_BILL_MANAGE = #{isBillManage}</if>
- <if test="isBillComp != null and isBillComp != ''">and IS_BILL_COMP = #{isBillComp}</if>
- <if test="isSaveFile != null and isSaveFile != ''">and IS_SAVE_FILE = #{isSaveFile}</if>
- <if test="isReportSign != null and isReportSign != ''">and IS_REPORT_SIGN = #{isReportSign}</if>
- <if test="isPeopTakeover != null and isPeopTakeover != ''">and IS_PEOP_TAKEOVER = #{isPeopTakeover}</if>
- <if test="isWriteStipuliate != null and isWriteStipuliate != ''">and IS_WRITE_STIPULIATE = #{isWriteStipuliate}</if>
- <if test="isSealManage != null and isSealManage != ''">and IS_SEAL_MANAGE = #{isSealManage}</if>
- <if test="isPblmReform != null and isPblmReform != ''">and IS_PBLM_REFORM = #{isPblmReform}</if>
- <if test="isPriceAccura != null and isPriceAccura != ''">and IS_PRICE_ACCURA = #{isPriceAccura}</if>
- <if test="isProcdComp != null and isProcdComp != ''">and IS_PROCD_COMP = #{isProcdComp}</if>
- <if test="isWriteComp != null and isWriteComp != ''">and IS_WRITE_COMP = #{isWriteComp}</if>
- <if test="isViolateStipuliate != null and isViolateStipuliate != ''">and IS_VIOLATE_STIPULIATE = #{isViolateStipuliate}</if>
- <if test="state != null and state != ''">and STATE = #{state}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspFundFinaResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_FUND_FINA where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspFundFinaResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FUND_FINA <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspFundFinaResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FUND_FINA
- </select>
- <select id="findList" resultMap="bisInspFundFinaResultMap">
- select <include refid="table_columns" /> from BIS_INSP_FUND_FINA <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_FUND_FINA <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
- insert into BIS_INSP_FUND_FINA( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_FUND_FINA set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
- delete from BIS_INSP_FUND_FINA <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_FUND_FINA set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
- update BIS_INSP_FUND_FINA
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isPeopStipuliate != null and isPeopStipuliate != ''">IS_PEOP_STIPULIATE = #{isPeopStipuliate},</if>
- <if test="isTellerStipuliate != null and isTellerStipuliate != ''">IS_TELLER_STIPULIATE = #{isTellerStipuliate},</if>
- <if test="isBuildManage != null and isBuildManage != ''">IS_BUILD_MANAGE = #{isBuildManage},</if>
- <if test="isImpleSystem != null and isImpleSystem != ''">IS_IMPLE_SYSTEM = #{isImpleSystem},</if>
- <if test="isSystemComp != null and isSystemComp != ''">IS_SYSTEM_COMP = #{isSystemComp},</if>
- <if test="isForgeReport != null and isForgeReport != ''">IS_FORGE_REPORT = #{isForgeReport},</if>
- <if test="isAlterProof != null and isAlterProof != ''">IS_ALTER_PROOF = #{isAlterProof},</if>
- <if test="isTimelyCollect != null and isTimelyCollect != ''">IS_TIMELY_COLLECT = #{isTimelyCollect},</if>
- <if test="isProofStipuliate != null and isProofStipuliate != ''">IS_PROOF_STIPULIATE = #{isProofStipuliate},</if>
- <if test="isBillManage != null and isBillManage != ''">IS_BILL_MANAGE = #{isBillManage},</if>
- <if test="isBillComp != null and isBillComp != ''">IS_BILL_COMP = #{isBillComp},</if>
- <if test="isSaveFile != null and isSaveFile != ''">IS_SAVE_FILE = #{isSaveFile},</if>
- <if test="isReportSign != null and isReportSign != ''">IS_REPORT_SIGN = #{isReportSign},</if>
- <if test="isPeopTakeover != null and isPeopTakeover != ''">IS_PEOP_TAKEOVER = #{isPeopTakeover},</if>
- <if test="isWriteStipuliate != null and isWriteStipuliate != ''">IS_WRITE_STIPULIATE = #{isWriteStipuliate},</if>
- <if test="isSealManage != null and isSealManage != ''">IS_SEAL_MANAGE = #{isSealManage},</if>
- <if test="isPblmReform != null and isPblmReform != ''">IS_PBLM_REFORM = #{isPblmReform},</if>
- <if test="isPriceAccura != null and isPriceAccura != ''">IS_PRICE_ACCURA = #{isPriceAccura},</if>
- <if test="isProcdComp != null and isProcdComp != ''">IS_PROCD_COMP = #{isProcdComp},</if>
- <if test="isWriteComp != null and isWriteComp != ''">IS_WRITE_COMP = #{isWriteComp},</if>
- <if test="isViolateStipuliate != null and isViolateStipuliate != ''">IS_VIOLATE_STIPULIATE = #{isViolateStipuliate},</if>
- <if test="state != null and state != ''">STATE = #{state},</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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFundFina">
- update BIS_INSP_FUND_FINA
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isPeopStipuliate != null and isPeopStipuliate != ''">IS_PEOP_STIPULIATE = #{isPeopStipuliate},</if>
- <if test="isTellerStipuliate != null and isTellerStipuliate != ''">IS_TELLER_STIPULIATE = #{isTellerStipuliate},</if>
- <if test="isBuildManage != null and isBuildManage != ''">IS_BUILD_MANAGE = #{isBuildManage},</if>
- <if test="isImpleSystem != null and isImpleSystem != ''">IS_IMPLE_SYSTEM = #{isImpleSystem},</if>
- <if test="isSystemComp != null and isSystemComp != ''">IS_SYSTEM_COMP = #{isSystemComp},</if>
- <if test="isForgeReport != null and isForgeReport != ''">IS_FORGE_REPORT = #{isForgeReport},</if>
- <if test="isAlterProof != null and isAlterProof != ''">IS_ALTER_PROOF = #{isAlterProof},</if>
- <if test="isTimelyCollect != null and isTimelyCollect != ''">IS_TIMELY_COLLECT = #{isTimelyCollect},</if>
- <if test="isProofStipuliate != null and isProofStipuliate != ''">IS_PROOF_STIPULIATE = #{isProofStipuliate},</if>
- <if test="isBillManage != null and isBillManage != ''">IS_BILL_MANAGE = #{isBillManage},</if>
- <if test="isBillComp != null and isBillComp != ''">IS_BILL_COMP = #{isBillComp},</if>
- <if test="isSaveFile != null and isSaveFile != ''">IS_SAVE_FILE = #{isSaveFile},</if>
- <if test="isReportSign != null and isReportSign != ''">IS_REPORT_SIGN = #{isReportSign},</if>
- <if test="isPeopTakeover != null and isPeopTakeover != ''">IS_PEOP_TAKEOVER = #{isPeopTakeover},</if>
- <if test="isWriteStipuliate != null and isWriteStipuliate != ''">IS_WRITE_STIPULIATE = #{isWriteStipuliate},</if>
- <if test="isSealManage != null and isSealManage != ''">IS_SEAL_MANAGE = #{isSealManage},</if>
- <if test="isPblmReform != null and isPblmReform != ''">IS_PBLM_REFORM = #{isPblmReform},</if>
- <if test="isPriceAccura != null and isPriceAccura != ''">IS_PRICE_ACCURA = #{isPriceAccura},</if>
- <if test="isProcdComp != null and isProcdComp != ''">IS_PROCD_COMP = #{isProcdComp},</if>
- <if test="isWriteComp != null and isWriteComp != ''">IS_WRITE_COMP = #{isWriteComp},</if>
- <if test="isViolateStipuliate != null and isViolateStipuliate != ''">IS_VIOLATE_STIPULIATE = #{isViolateStipuliate},</if>
- <if test="state != null and state != ''">STATE = #{state},</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>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|