| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- <?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.BisInspFjwtenfKeyDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey" id="bisInspFjwtenfKeyResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isImpXjp" column="IS_IMP_XJP"/>
- <result property="isAskBlack" column="IS_ASK_BLACK"/>
- <result property="isPblmGov" column="IS_PBLM_GOV"/>
- <result property="isPubBook" column="IS_PUB_BOOK"/>
- <result property="isMakSys" column="IS_MAK_SYS"/>
- <result property="isChkPers" column="IS_CHK_PERS"/>
- <result property="isPubOut" column="IS_PUB_OUT"/>
- <result property="isImageSys" column="IS_IMAGE_SYS"/>
- <result property="isMakOrg" column="IS_MAK_ORG"/>
- <result property="isPubList" column="IS_PUB_LIST"/>
- <result property="isSysStudy" column="IS_SYS_STUDY"/>
- <result property="isDistReg" column="IS_DIST_REG"/>
- <result property="isPblmHndl" column="IS_PBLM_HNDL"/>
- <result property="isPenalHndl" column="IS_PENAL_HNDL"/>
- <result property="isAbusePower" column="IS_ABUSE_POWER"/>
- <result property="isServiceLaw" column="IS_SERVICE_LAW"/>
- <result property="isThreeErr" column="IS_THREE_ERR"/>
- <result property="isCostPlan" column="IS_COST_PLAN"/>
- <result property="isEqpMgn" column="IS_EQP_MGN"/>
- <result property="isChkCrd" column="IS_CHK_CRD"/>
- <result property="isOrgTrn" column="IS_ORG_TRN"/>
- <result property="isRiverChk" column="IS_RIVER_CHK"/>
- <result property="isDepSys" column="IS_DEP_SYS"/>
- <result property="isChkUnion" column="IS_CHK_UNION"/>
- <result property="isRankGud" column="IS_RANK_GUD"/>
- <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"/>
- <result property="state" column="STATE"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_IMP_XJP,
- IS_ASK_BLACK,
- IS_PBLM_GOV,
- IS_PUB_BOOK,
- IS_MAK_SYS,
- IS_CHK_PERS,
- IS_PUB_OUT,
- IS_IMAGE_SYS,
- IS_MAK_ORG,
- IS_PUB_LIST,
- IS_SYS_STUDY,
- IS_DIST_REG,
- IS_PBLM_HNDL,
- IS_PENAL_HNDL,
- IS_ABUSE_POWER,
- IS_SERVICE_LAW,
- IS_THREE_ERR,
- IS_COST_PLAN,
- IS_EQP_MGN,
- IS_CHK_CRD,
- IS_ORG_TRN,
- IS_RIVER_CHK,
- IS_DEP_SYS,
- IS_CHK_UNION,
- IS_RANK_GUD,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isImpXjp},
- #{isAskBlack},
- #{isPblmGov},
- #{isPubBook},
- #{isMakSys},
- #{isChkPers},
- #{isPubOut},
- #{isImageSys},
- #{isMakOrg},
- #{isPubList},
- #{isSysStudy},
- #{isDistReg},
- #{isPblmHndl},
- #{isPenalHndl},
- #{isAbusePower},
- #{isServiceLaw},
- #{isThreeErr},
- #{isCostPlan},
- #{isEqpMgn},
- #{isChkCrd},
- #{isOrgTrn},
- #{isRiverChk},
- #{isDepSys},
- #{isChkUnion},
- #{isRankGud},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{state}
- </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="isImpXjp != null and isImpXjp != ''">
- and IS_IMP_XJP = #{isImpXjp}
- </if>
- <if test="isAskBlack != null and isAskBlack != ''">
- and IS_ASK_BLACK = #{isAskBlack}
- </if>
- <if test="isPblmGov != null and isPblmGov != ''">
- and IS_PBLM_GOV = #{isPblmGov}
- </if>
- <if test="isPubBook != null and isPubBook != ''">
- and IS_PUB_BOOK = #{isPubBook}
- </if>
- <if test="isMakSys != null and isMakSys != ''">
- and IS_MAK_SYS = #{isMakSys}
- </if>
- <if test="isChkPers != null and isChkPers != ''">
- and IS_CHK_PERS = #{isChkPers}
- </if>
- <if test="isPubOut != null and isPubOut != ''">
- and IS_PUB_OUT = #{isPubOut}
- </if>
- <if test="isImageSys != null and isImageSys != ''">
- and IS_IMAGE_SYS = #{isImageSys}
- </if>
- <if test="isMakOrg != null and isMakOrg != ''">
- and IS_MAK_ORG = #{isMakOrg}
- </if>
- <if test="isPubList != null and isPubList != ''">
- and IS_PUB_LIST = #{isPubList}
- </if>
- <if test="isSysStudy != null and isSysStudy != ''">
- and IS_SYS_STUDY = #{isSysStudy}
- </if>
- <if test="isDistReg != null and isDistReg != ''">
- and IS_DIST_REG = #{isDistReg}
- </if>
- <if test="isPblmHndl != null and isPblmHndl != ''">
- and IS_PBLM_HNDL = #{isPblmHndl}
- </if>
- <if test="isPenalHndl != null and isPenalHndl != ''">
- and IS_PENAL_HNDL = #{isPenalHndl}
- </if>
- <if test="isAbusePower != null and isAbusePower != ''">
- and IS_ABUSE_POWER = #{isAbusePower}
- </if>
- <if test="isServiceLaw != null and isServiceLaw != ''">
- and IS_SERVICE_LAW = #{isServiceLaw}
- </if>
- <if test="isThreeErr != null and isThreeErr != ''">
- and IS_THREE_ERR = #{isThreeErr}
- </if>
- <if test="isCostPlan != null and isCostPlan != ''">
- and IS_COST_PLAN = #{isCostPlan}
- </if>
- <if test="isEqpMgn != null and isEqpMgn != ''">
- and IS_EQP_MGN = #{isEqpMgn}
- </if>
- <if test="isChkCrd != null and isChkCrd != ''">
- and IS_CHK_CRD = #{isChkCrd}
- </if>
- <if test="isOrgTrn != null and isOrgTrn != ''">
- and IS_ORG_TRN = #{isOrgTrn}
- </if>
- <if test="isRiverChk != null and isRiverChk != ''">
- and IS_RIVER_CHK = #{isRiverChk}
- </if>
- <if test="isDepSys != null and isDepSys != ''">
- and IS_DEP_SYS = #{isDepSys}
- </if>
- <if test="isChkUnion != null and isChkUnion != ''">
- and IS_CHK_UNION = #{isChkUnion}
- </if>
- <if test="isRankGud != null and isRankGud != ''">
- and IS_RANK_GUD = #{isRankGud}
- </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>
- <if test="state != null and state != ''">
- and STATE = #{state}
- </if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspFjwtenfKeyResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_FJWTENF_KEY where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspFjwtenfKeyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_FJWTENF_KEY
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspFjwtenfKeyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_FJWTENF_KEY
- </select>
- <select id="findList" resultMap="bisInspFjwtenfKeyResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_FJWTENF_KEY
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_FJWTENF_KEY
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
- insert into BIS_INSP_FJWTENF_KEY(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_FJWTENF_KEY set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
- update BIS_INSP_FJWTENF_KEY set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_FJWTENF_KEY set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
- update BIS_INSP_FJWTENF_KEY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isImpXjp != null and isImpXjp != ''">IS_IMP_XJP
- = #{isImpXjp},
- </if>
- <if test="isAskBlack != null and isAskBlack != ''">IS_ASK_BLACK
- = #{isAskBlack},
- </if>
- <if test="isPblmGov != null and isPblmGov != ''">IS_PBLM_GOV
- = #{isPblmGov},
- </if>
- <if test="isPubBook != null and isPubBook != ''">IS_PUB_BOOK
- = #{isPubBook},
- </if>
- <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
- = #{isMakSys},
- </if>
- <if test="isChkPers != null and isChkPers != ''">IS_CHK_PERS
- = #{isChkPers},
- </if>
- <if test="isPubOut != null and isPubOut != ''">IS_PUB_OUT
- = #{isPubOut},
- </if>
- <if test="isImageSys != null and isImageSys != ''">IS_IMAGE_SYS
- = #{isImageSys},
- </if>
- <if test="isMakOrg != null and isMakOrg != ''">IS_MAK_ORG
- = #{isMakOrg},
- </if>
- <if test="isPubList != null and isPubList != ''">IS_PUB_LIST
- = #{isPubList},
- </if>
- <if test="isSysStudy != null and isSysStudy != ''">IS_SYS_STUDY
- = #{isSysStudy},
- </if>
- <if test="isDistReg != null and isDistReg != ''">IS_DIST_REG
- = #{isDistReg},
- </if>
- <if test="isPblmHndl != null and isPblmHndl != ''">IS_PBLM_HNDL
- = #{isPblmHndl},
- </if>
- <if test="isPenalHndl != null and isPenalHndl != ''">IS_PENAL_HNDL
- = #{isPenalHndl},
- </if>
- <if test="isAbusePower != null and isAbusePower != ''">IS_ABUSE_POWER
- = #{isAbusePower},
- </if>
- <if test="isServiceLaw != null and isServiceLaw != ''">IS_SERVICE_LAW
- = #{isServiceLaw},
- </if>
- <if test="isThreeErr != null and isThreeErr != ''">IS_THREE_ERR
- = #{isThreeErr},
- </if>
- <if test="isCostPlan != null and isCostPlan != ''">IS_COST_PLAN
- = #{isCostPlan},
- </if>
- <if test="isEqpMgn != null and isEqpMgn != ''">IS_EQP_MGN
- = #{isEqpMgn},
- </if>
- <if test="isChkCrd != null and isChkCrd != ''">IS_CHK_CRD
- = #{isChkCrd},
- </if>
- <if test="isOrgTrn != null and isOrgTrn != ''">IS_ORG_TRN
- = #{isOrgTrn},
- </if>
- <if test="isRiverChk != null and isRiverChk != ''">IS_RIVER_CHK
- = #{isRiverChk},
- </if>
- <if test="isDepSys != null and isDepSys != ''">IS_DEP_SYS
- = #{isDepSys},
- </if>
- <if test="isChkUnion != null and isChkUnion != ''">IS_CHK_UNION
- = #{isChkUnion},
- </if>
- <if test="isRankGud != null and isRankGud != ''">IS_RANK_GUD
- = #{isRankGud},
- </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>
- <if test="state != null and state != ''">STATE
- = #{state},
- </if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
- update BIS_INSP_FJWTENF_KEY
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
- = #{rgstrId},
- </if>
- <if test="isImpXjp != null and isImpXjp != ''">IS_IMP_XJP
- = #{isImpXjp},
- </if>
- <if test="isAskBlack != null and isAskBlack != ''">IS_ASK_BLACK
- = #{isAskBlack},
- </if>
- <if test="isPblmGov != null and isPblmGov != ''">IS_PBLM_GOV
- = #{isPblmGov},
- </if>
- <if test="isPubBook != null and isPubBook != ''">IS_PUB_BOOK
- = #{isPubBook},
- </if>
- <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
- = #{isMakSys},
- </if>
- <if test="isChkPers != null and isChkPers != ''">IS_CHK_PERS
- = #{isChkPers},
- </if>
- <if test="isPubOut != null and isPubOut != ''">IS_PUB_OUT
- = #{isPubOut},
- </if>
- <if test="isImageSys != null and isImageSys != ''">IS_IMAGE_SYS
- = #{isImageSys},
- </if>
- <if test="isMakOrg != null and isMakOrg != ''">IS_MAK_ORG
- = #{isMakOrg},
- </if>
- <if test="isPubList != null and isPubList != ''">IS_PUB_LIST
- = #{isPubList},
- </if>
- <if test="isSysStudy != null and isSysStudy != ''">IS_SYS_STUDY
- = #{isSysStudy},
- </if>
- <if test="isDistReg != null and isDistReg != ''">IS_DIST_REG
- = #{isDistReg},
- </if>
- <if test="isPblmHndl != null and isPblmHndl != ''">IS_PBLM_HNDL
- = #{isPblmHndl},
- </if>
- <if test="isPenalHndl != null and isPenalHndl != ''">IS_PENAL_HNDL
- = #{isPenalHndl},
- </if>
- <if test="isAbusePower != null and isAbusePower != ''">IS_ABUSE_POWER
- = #{isAbusePower},
- </if>
- <if test="isServiceLaw != null and isServiceLaw != ''">IS_SERVICE_LAW
- = #{isServiceLaw},
- </if>
- <if test="isThreeErr != null and isThreeErr != ''">IS_THREE_ERR
- = #{isThreeErr},
- </if>
- <if test="isCostPlan != null and isCostPlan != ''">IS_COST_PLAN
- = #{isCostPlan},
- </if>
- <if test="isEqpMgn != null and isEqpMgn != ''">IS_EQP_MGN
- = #{isEqpMgn},
- </if>
- <if test="isChkCrd != null and isChkCrd != ''">IS_CHK_CRD
- = #{isChkCrd},
- </if>
- <if test="isOrgTrn != null and isOrgTrn != ''">IS_ORG_TRN
- = #{isOrgTrn},
- </if>
- <if test="isRiverChk != null and isRiverChk != ''">IS_RIVER_CHK
- = #{isRiverChk},
- </if>
- <if test="isDepSys != null and isDepSys != ''">IS_DEP_SYS
- = #{isDepSys},
- </if>
- <if test="isChkUnion != null and isChkUnion != ''">IS_CHK_UNION
- = #{isChkUnion},
- </if>
- <if test="isRankGud != null and isRankGud != ''">IS_RANK_GUD
- = #{isRankGud},
- </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>
- <if test="state != null and state != ''">STATE
- = #{state},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|