| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?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.BisInspJspwiuUnitDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit" id="bisInspJspwiuUnitResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="intskName" column="INTSK_NAME"/>
- <result property="intskPers" column="INTSK_PERS"/>
- <result property="intskNo" column="INTSK_NO"/>
- <result property="intskCount" column="INTSK_COUNT"/>
- <result property="intskCntPers" column="INTSK_CNT_PERS"/>
- <result property="appDepPers" column="APP_DEP_PERS"/>
- <result property="isPlanMend" column="IS_PLAN_MEND"/>
- <result property="isAppDsc" column="IS_APP_DSC"/>
- <result property="isAppChk" column="IS_APP_CHK"/>
- <result property="isNormChk" column="IS_NORM_CHK"/>
- <result property="isChkInus" column="IS_CHK_INUS"/>
- <result property="isChkExt" column="IS_CHK_EXT"/>
- <result property="isChkCext" column="IS_CHK_CEXT"/>
- <result property="isChkUse" column="IS_CHK_USE"/>
- <result property="isAppRep" column="IS_APP_REP"/>
- <result property="isSpotChk" column="IS_SPOT_CHK"/>
- <result property="isDepApp" column="IS_DEP_APP"/>
- <result property="lyearCost" column="LYEAR_COST"/>
- <result property="isOverCost" column="IS_OVER_COST"/>
- <result property="isNappPlan" column="IS_NAPP_PLAN"/>
- <result property="isOverYear" column="IS_OVER_YEAR"/>
- <result property="lyearEpt" column="LYEAR_EPT"/>
- <result property="isOver" column="IS_OVER"/>
- <result property="isOusrCost" column="IS_OUSR_COST"/>
- <result property="isDataOnly" column="IS_DATA_ONLY"/>
- <result property="isBldData" column="IS_BLD_DATA"/>
- <result property="isJarNorm" column="IS_JAR_NORM"/>
- <result property="isJarBld" column="IS_JAR_BLD"/>
- <result property="isJarLogo" column="IS_JAR_LOGO"/>
- <result property="isNnormBld" column="IS_NNORM_BLD"/>
- <result property="isNappChk" column="IS_NAPP_CHK"/>
- <result property="isNrunSys" column="IS_NRUN_SYS"/>
- <result property="note" column="NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="state" column="STATE"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- INTSK_NAME,
- INTSK_PERS,
- INTSK_NO,
- INTSK_COUNT,
- INTSK_CNT_PERS,
- APP_DEP_PERS,
- IS_PLAN_MEND,
- IS_APP_DSC,
- IS_APP_CHK,
- IS_NORM_CHK,
- IS_CHK_INUS,
- IS_CHK_EXT,
- IS_CHK_CEXT,
- IS_CHK_USE,
- IS_APP_REP,
- IS_SPOT_CHK,
- IS_DEP_APP,
- LYEAR_COST,
- IS_OVER_COST,
- IS_NAPP_PLAN,
- IS_OVER_YEAR,
- LYEAR_EPT,
- IS_OVER,
- IS_OUSR_COST,
- IS_DATA_ONLY,
- IS_BLD_DATA,
- IS_JAR_NORM,
- IS_JAR_BLD,
- IS_JAR_LOGO,
- IS_NNORM_BLD,
- IS_NAPP_CHK,
- IS_NRUN_SYS,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- STATE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{intskName},
- #{intskPers},
- #{intskNo},
- #{intskCount},
- #{intskCntPers},
- #{appDepPers},
- #{isPlanMend},
- #{isAppDsc},
- #{isAppChk},
- #{isNormChk},
- #{isChkInus},
- #{isChkExt},
- #{isChkCext},
- #{isChkUse},
- #{isAppRep},
- #{isSpotChk},
- #{isDepApp},
- #{lyearCost},
- #{isOverCost},
- #{isNappPlan},
- #{isOverYear},
- #{lyearEpt},
- #{isOver},
- #{isOusrCost},
- #{isDataOnly},
- #{isBldData},
- #{isJarNorm},
- #{isJarBld},
- #{isJarLogo},
- #{isNnormBld},
- #{isNappChk},
- #{isNrunSys},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{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="intskName != null and intskName != ''">and INTSK_NAME = #{intskName}</if>
- <if test="intskPers != null and intskPers != ''">and INTSK_PERS = #{intskPers}</if>
- <if test="intskNo != null and intskNo != ''">and INTSK_NO = #{intskNo}</if>
- <if test="intskCount != null and intskCount != ''">and INTSK_COUNT = #{intskCount}</if>
- <if test="intskCntPers != null and intskCntPers != ''">and INTSK_CNT_PERS = #{intskCntPers}</if>
- <if test="appDepPers != null and appDepPers != ''">and APP_DEP_PERS = #{appDepPers}</if>
- <if test="isPlanMend != null and isPlanMend != ''">and IS_PLAN_MEND = #{isPlanMend}</if>
- <if test="isAppDsc != null and isAppDsc != ''">and IS_APP_DSC = #{isAppDsc}</if>
- <if test="isAppChk != null and isAppChk != ''">and IS_APP_CHK = #{isAppChk}</if>
- <if test="isNormChk != null and isNormChk != ''">and IS_NORM_CHK = #{isNormChk}</if>
- <if test="isChkInus != null and isChkInus != ''">and IS_CHK_INUS = #{isChkInus}</if>
- <if test="isChkExt != null and isChkExt != ''">and IS_CHK_EXT = #{isChkExt}</if>
- <if test="isChkCext != null and isChkCext != ''">and IS_CHK_CEXT = #{isChkCext}</if>
- <if test="isChkUse != null and isChkUse != ''">and IS_CHK_USE = #{isChkUse}</if>
- <if test="isAppRep != null and isAppRep != ''">and IS_APP_REP = #{isAppRep}</if>
- <if test="isSpotChk != null and isSpotChk != ''">and IS_SPOT_CHK = #{isSpotChk}</if>
- <if test="isDepApp != null and isDepApp != ''">and IS_DEP_APP = #{isDepApp}</if>
- <if test="lyearCost != null and lyearCost != ''">and LYEAR_COST = #{lyearCost}</if>
- <if test="isOverCost != null and isOverCost != ''">and IS_OVER_COST = #{isOverCost}</if>
- <if test="isNappPlan != null and isNappPlan != ''">and IS_NAPP_PLAN = #{isNappPlan}</if>
- <if test="isOverYear != null and isOverYear != ''">and IS_OVER_YEAR = #{isOverYear}</if>
- <if test="lyearEpt != null and lyearEpt != ''">and LYEAR_EPT = #{lyearEpt}</if>
- <if test="isOver != null and isOver != ''">and IS_OVER = #{isOver}</if>
- <if test="isOusrCost != null and isOusrCost != ''">and IS_OUSR_COST = #{isOusrCost}</if>
- <if test="isDataOnly != null and isDataOnly != ''">and IS_DATA_ONLY = #{isDataOnly}</if>
- <if test="isBldData != null and isBldData != ''">and IS_BLD_DATA = #{isBldData}</if>
- <if test="isJarNorm != null and isJarNorm != ''">and IS_JAR_NORM = #{isJarNorm}</if>
- <if test="isJarBld != null and isJarBld != ''">and IS_JAR_BLD = #{isJarBld}</if>
- <if test="isJarLogo != null and isJarLogo != ''">and IS_JAR_LOGO = #{isJarLogo}</if>
- <if test="isNnormBld != null and isNnormBld != ''">and IS_NNORM_BLD = #{isNnormBld}</if>
- <if test="isNappChk != null and isNappChk != ''">and IS_NAPP_CHK = #{isNappChk}</if>
- <if test="isNrunSys != null and isNrunSys != ''">and IS_NRUN_SYS = #{isNrunSys}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</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>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspJspwiuUnitResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspJspwiuUnitResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspJspwiuUnitResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT
- </select>
- <select id="findList" resultMap="bisInspJspwiuUnitResultMap">
- select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
- insert into BIS_INSP_JSPWIU_UNIT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU_UNIT set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
- delete from BIS_INSP_JSPWIU_UNIT
- <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_JSPWIU_UNIT set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
- update BIS_INSP_JSPWIU_UNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="intskName != null and intskName != ''">INTSK_NAME = #{intskName},</if>
- <if test="intskPers != null and intskPers != ''">INTSK_PERS = #{intskPers},</if>
- <if test="intskNo != null and intskNo != ''">INTSK_NO = #{intskNo},</if>
- <if test="intskCount != null and intskCount != ''">INTSK_COUNT = #{intskCount},</if>
- <if test="intskCntPers != null and intskCntPers != ''">INTSK_CNT_PERS = #{intskCntPers},</if>
- <if test="appDepPers != null and appDepPers != ''">APP_DEP_PERS = #{appDepPers},</if>
- <if test="isPlanMend != null and isPlanMend != ''">IS_PLAN_MEND = #{isPlanMend},</if>
- <if test="isAppDsc != null and isAppDsc != ''">IS_APP_DSC = #{isAppDsc},</if>
- <if test="isAppChk != null and isAppChk != ''">IS_APP_CHK = #{isAppChk},</if>
- <if test="isNormChk != null and isNormChk != ''">IS_NORM_CHK = #{isNormChk},</if>
- <if test="isChkInus != null and isChkInus != ''">IS_CHK_INUS = #{isChkInus},</if>
- <if test="isChkExt != null and isChkExt != ''">IS_CHK_EXT = #{isChkExt},</if>
- <if test="isChkCext != null and isChkCext != ''">IS_CHK_CEXT = #{isChkCext},</if>
- <if test="isChkUse != null and isChkUse != ''">IS_CHK_USE = #{isChkUse},</if>
- <if test="isAppRep != null and isAppRep != ''">IS_APP_REP = #{isAppRep},</if>
- <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
- <if test="isDepApp != null and isDepApp != ''">IS_DEP_APP = #{isDepApp},</if>
- <if test="lyearCost != null and lyearCost != ''">LYEAR_COST = #{lyearCost},</if>
- <if test="isOverCost != null and isOverCost != ''">IS_OVER_COST = #{isOverCost},</if>
- <if test="isNappPlan != null and isNappPlan != ''">IS_NAPP_PLAN = #{isNappPlan},</if>
- <if test="isOverYear != null and isOverYear != ''">IS_OVER_YEAR = #{isOverYear},</if>
- <if test="lyearEpt != null and lyearEpt != ''">LYEAR_EPT = #{lyearEpt},</if>
- <if test="isOver != null and isOver != ''">IS_OVER = #{isOver},</if>
- <if test="isOusrCost != null and isOusrCost != ''">IS_OUSR_COST = #{isOusrCost},</if>
- <if test="isDataOnly != null and isDataOnly != ''">IS_DATA_ONLY = #{isDataOnly},</if>
- <if test="isBldData != null and isBldData != ''">IS_BLD_DATA = #{isBldData},</if>
- <if test="isJarNorm != null and isJarNorm != ''">IS_JAR_NORM = #{isJarNorm},</if>
- <if test="isJarBld != null and isJarBld != ''">IS_JAR_BLD = #{isJarBld},</if>
- <if test="isJarLogo != null and isJarLogo != ''">IS_JAR_LOGO = #{isJarLogo},</if>
- <if test="isNnormBld != null and isNnormBld != ''">IS_NNORM_BLD = #{isNnormBld},</if>
- <if test="isNappChk != null and isNappChk != ''">IS_NAPP_CHK = #{isNappChk},</if>
- <if test="isNrunSys != null and isNrunSys != ''">IS_NRUN_SYS = #{isNrunSys},</if>
- <if test="note != null and note != ''">NOTE = #{note},</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>
- <if test="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
- update BIS_INSP_JSPWIU_UNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="intskName != null and intskName != ''">INTSK_NAME = #{intskName},</if>
- <if test="intskPers != null and intskPers != ''">INTSK_PERS = #{intskPers},</if>
- <if test="intskNo != null and intskNo != ''">INTSK_NO = #{intskNo},</if>
- <if test="intskCount != null and intskCount != ''">INTSK_COUNT = #{intskCount},</if>
- <if test="intskCntPers != null and intskCntPers != ''">INTSK_CNT_PERS = #{intskCntPers},</if>
- <if test="appDepPers != null and appDepPers != ''">APP_DEP_PERS = #{appDepPers},</if>
- <if test="isPlanMend != null and isPlanMend != ''">IS_PLAN_MEND = #{isPlanMend},</if>
- <if test="isAppDsc != null and isAppDsc != ''">IS_APP_DSC = #{isAppDsc},</if>
- <if test="isAppChk != null and isAppChk != ''">IS_APP_CHK = #{isAppChk},</if>
- <if test="isNormChk != null and isNormChk != ''">IS_NORM_CHK = #{isNormChk},</if>
- <if test="isChkInus != null and isChkInus != ''">IS_CHK_INUS = #{isChkInus},</if>
- <if test="isChkExt != null and isChkExt != ''">IS_CHK_EXT = #{isChkExt},</if>
- <if test="isChkCext != null and isChkCext != ''">IS_CHK_CEXT = #{isChkCext},</if>
- <if test="isChkUse != null and isChkUse != ''">IS_CHK_USE = #{isChkUse},</if>
- <if test="isAppRep != null and isAppRep != ''">IS_APP_REP = #{isAppRep},</if>
- <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
- <if test="isDepApp != null and isDepApp != ''">IS_DEP_APP = #{isDepApp},</if>
- <if test="lyearCost != null and lyearCost != ''">LYEAR_COST = #{lyearCost},</if>
- <if test="isOverCost != null and isOverCost != ''">IS_OVER_COST = #{isOverCost},</if>
- <if test="isNappPlan != null and isNappPlan != ''">IS_NAPP_PLAN = #{isNappPlan},</if>
- <if test="isOverYear != null and isOverYear != ''">IS_OVER_YEAR = #{isOverYear},</if>
- <if test="lyearEpt != null and lyearEpt != ''">LYEAR_EPT = #{lyearEpt},</if>
- <if test="isOver != null and isOver != ''">IS_OVER = #{isOver},</if>
- <if test="isOusrCost != null and isOusrCost != ''">IS_OUSR_COST = #{isOusrCost},</if>
- <if test="isDataOnly != null and isDataOnly != ''">IS_DATA_ONLY = #{isDataOnly},</if>
- <if test="isBldData != null and isBldData != ''">IS_BLD_DATA = #{isBldData},</if>
- <if test="isJarNorm != null and isJarNorm != ''">IS_JAR_NORM = #{isJarNorm},</if>
- <if test="isJarBld != null and isJarBld != ''">IS_JAR_BLD = #{isJarBld},</if>
- <if test="isJarLogo != null and isJarLogo != ''">IS_JAR_LOGO = #{isJarLogo},</if>
- <if test="isNnormBld != null and isNnormBld != ''">IS_NNORM_BLD = #{isNnormBld},</if>
- <if test="isNappChk != null and isNappChk != ''">IS_NAPP_CHK = #{isNappChk},</if>
- <if test="isNrunSys != null and isNrunSys != ''">IS_NRUN_SYS = #{isNrunSys},</if>
- <if test="note != null and note != ''">NOTE = #{note},</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>
- <if test="state != null and state != ''">STATE = #{state},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|