| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <?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.TacPawpBstocmCpssDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBstocmCpss" id="tacPawpBstocmCpssResultMap">
- <result property="id" column="ID"/>
- <result property="cpssId" column="CPSS_ID"/>
- <result property="spvsnUnit" column="SPVSN_UNIT"/>
- <result property="unitNames" column="unit_Names"/>
- <result property="sSpvsnOrg" column="S_SPVSN_ORG"/>
- <result property="supvsSum" column="SUPVS_SUM"/>
- <result property="drctNum" column="DRCT_NUM"/>
- <result property="dptDrctNum" column="DPT_DRCT_NUM"/>
- <result property="spvsNgnerNum" column="SPVS_NGNER_NUM"/>
- <result property="inspctNum" column="INSPCT_NUM"/>
- <result property="othNum" column="OTH_NUM"/>
- <result property="spwacodNum" column="SPWACOD_NUM"/>
- <result property="spwacodDuty" column="SPWACOD_DUTY"/>
- <result property="wprIsFmlt" column="WPR_IS_FMLT"/>
- <result property="wprIsCmplnc" column="WPR_IS_CMPLNC"/>
- <result property="swsIsFmlt" column="SWS_IS_FMLT"/>
- <result property="swsIsCmplnc" column="SWS_IS_CMPLNC"/>
- <result property="spvsnPlFmlt" column="SPVSN_PL_FMLT"/>
- <result property="spvsnPlCmplnc" column="SPVSN_PL_CMPLNC"/>
- <result property="sedrIsPrpre" column="SEDR_IS_PRPRE"/>
- <result property="sedrIsCmplnc" column="SEDR_IS_CMPLNC"/>
- <result property="spvsnLogIsFill" column="SPVSN_LOG_IS_FILL"/>
- <result property="spvsnLogIsCmplnc" column="SPVSN_LOG_IS_CMPLNC"/>
- <result property="ssrIsFill" column="SSR_IS_FILL"/>
- <result property="ssrIsCmplnc" column="SSR_IS_CMPLNC"/>
- <result property="tsmrIsPrpre" column="TSMR_IS_PRPRE"/>
- <result property="tsmrIsCmplnc" column="TSMR_IS_CMPLNC"/>
- <result property="spvsnMtIsHold" column="SPVSN_MT_IS_HOLD"/>
- <result property="spvsnMtIsCmplnc" column="SPVSN_MT_IS_CMPLNC"/>
- <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="unitNames" column="unit_Names"/>
- <result property="sctnId" column="SCTN_ID"/>
- <result property="sn" column="SN"/>
- <result property="spvsnSctn" column="SPVSN_SCTN"/>
- </resultMap>
- <sql id="table_columns">
- ID,SPVSN_SCTN,
- CPSS_ID,
- SPVSN_UNIT,
- S_SPVSN_ORG,
- SUPVS_SUM,
- DRCT_NUM,
- DPT_DRCT_NUM,
- SPVS_NGNER_NUM,
- INSPCT_NUM,
- OTH_NUM,
- SPWACOD_NUM,
- SPWACOD_DUTY,
- WPR_IS_FMLT,
- WPR_IS_CMPLNC,
- SWS_IS_FMLT,
- SWS_IS_CMPLNC,
- SPVSN_PL_FMLT,
- SPVSN_PL_CMPLNC,
- SEDR_IS_PRPRE,
- SEDR_IS_CMPLNC,
- SPVSN_LOG_IS_FILL,
- SPVSN_LOG_IS_CMPLNC,
- SSR_IS_FILL,
- SSR_IS_CMPLNC,
- TSMR_IS_PRPRE,
- TSMR_IS_CMPLNC,
- SPVSN_MT_IS_HOLD,
- SPVSN_MT_IS_CMPLNC,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,unit_Names,SCTN_ID,SN
- </sql>
- <sql id="entity_properties">
- #{id},#{spvsnSctn},
- #{cpssId},
- #{spvsnUnit},
- #{sSpvsnOrg},
- #{supvsSum},
- #{drctNum},
- #{dptDrctNum},
- #{spvsNgnerNum},
- #{inspctNum},
- #{othNum},
- #{spwacodNum},
- #{spwacodDuty},
- #{wprIsFmlt},
- #{wprIsCmplnc},
- #{swsIsFmlt},
- #{swsIsCmplnc},
- #{spvsnPlFmlt},
- #{spvsnPlCmplnc},
- #{sedrIsPrpre},
- #{sedrIsCmplnc},
- #{spvsnLogIsFill},
- #{spvsnLogIsCmplnc},
- #{ssrIsFill},
- #{ssrIsCmplnc},
- #{tsmrIsPrpre},
- #{tsmrIsCmplnc},
- #{spvsnMtIsHold},
- #{spvsnMtIsCmplnc},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{dataStat},#{unitNames},#{sctnId},#{sn}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="cpssId != null and cpssId != ''">and cpss_Id = #{cpssId}</if>
- <if test="spvsnSctn != null and spvsnSctn != ''">and spvsn_Sctn = #{spvsnSctn}</if>
- <if test="spvsnUnit != null and spvsnUnit != ''">and SPVSN_UNIT like '%${spvsnUnit}%'</if>
- <if test="sSpvsnOrg != null and sSpvsnOrg != ''">and S_SPVSN_ORG like '%${sSpvsnOrg}%'</if>
- <if test="supvsSum != null and supvsSum != ''">and SUPVS_SUM = #{supvsSum}</if>
- <if test="drctNum != null and drctNum != ''">and DRCT_NUM = #{drctNum}</if>
- <if test="dptDrctNum != null and dptDrctNum != ''">and DPT_DRCT_NUM = #{dptDrctNum}</if>
- <if test="spvsNgnerNum != null and spvsNgnerNum != ''">and SPVS_NGNER_NUM = #{spvsNgnerNum}</if>
- <if test="inspctNum != null and inspctNum != ''">and INSPCT_NUM = #{inspctNum}</if>
- <if test="othNum != null and othNum != ''">and OTH_NUM = #{othNum}</if>
- <if test="spwacodNum != null and spwacodNum != ''">and SPWACOD_NUM = #{spwacodNum}</if>
- <if test="spwacodDuty != null and spwacodDuty != ''">and SPWACOD_DUTY = #{spwacodDuty}</if>
- <if test="wprIsFmlt != null and wprIsFmlt != ''">and WPR_IS_FMLT = #{wprIsFmlt}</if>
- <if test="wprIsCmplnc != null and wprIsCmplnc != ''">and WPR_IS_CMPLNC = #{wprIsCmplnc}</if>
- <if test="swsIsFmlt != null and swsIsFmlt != ''">and SWS_IS_FMLT = #{swsIsFmlt}</if>
- <if test="swsIsCmplnc != null and swsIsCmplnc != ''">and SWS_IS_CMPLNC = #{swsIsCmplnc}</if>
- <if test="spvsnPlFmlt != null and spvsnPlFmlt != ''">and SPVSN_PL_FMLT = #{spvsnPlFmlt}</if>
- <if test="spvsnPlCmplnc != null and spvsnPlCmplnc != ''">and SPVSN_PL_CMPLNC = #{spvsnPlCmplnc}</if>
- <if test="sedrIsPrpre != null and sedrIsPrpre != ''">and SEDR_IS_PRPRE = #{sedrIsPrpre}</if>
- <if test="sedrIsCmplnc != null and sedrIsCmplnc != ''">and SEDR_IS_CMPLNC = #{sedrIsCmplnc}</if>
- <if test="spvsnLogIsFill != null and spvsnLogIsFill != ''">and SPVSN_LOG_IS_FILL = #{spvsnLogIsFill}</if>
- <if test="spvsnLogIsCmplnc != null and spvsnLogIsCmplnc != ''">and SPVSN_LOG_IS_CMPLNC =
- #{spvsnLogIsCmplnc}
- </if>
- <if test="ssrIsFill != null and ssrIsFill != ''">and SSR_IS_FILL = #{ssrIsFill}</if>
- <if test="ssrIsCmplnc != null and ssrIsCmplnc != ''">and SSR_IS_CMPLNC = #{ssrIsCmplnc}</if>
- <if test="tsmrIsPrpre != null and tsmrIsPrpre != ''">and TSMR_IS_PRPRE = #{tsmrIsPrpre}</if>
- <if test="tsmrIsCmplnc != null and tsmrIsCmplnc != ''">and TSMR_IS_CMPLNC = #{tsmrIsCmplnc}</if>
- <if test="spvsnMtIsHold != null and spvsnMtIsHold != ''">and SPVSN_MT_IS_HOLD = #{spvsnMtIsHold}</if>
- <if test="spvsnMtIsCmplnc != null and spvsnMtIsCmplnc != ''">and SPVSN_MT_IS_CMPLNC = #{spvsnMtIsCmplnc}
- </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="unitNames != null and unitNames != ''">and unit_Names like '%${unitNames}%'</if>
- <if test="sctnId != null and sctnId != ''">and sctnId = #{sctnId}</if>
- <if test="sn != null">and SN = #{sn}</if>
- </trim>
- </sql>
- <select id="get" resultMap="tacPawpBstocmCpssResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_CPSS where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpBstocmCpssResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_CPSS
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpBstocmCpssResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_CPSS
- </select>
- <select id="findList" resultMap="tacPawpBstocmCpssResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_CPSS
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_BSTOCM_CPSS
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmCpss">
- insert into TAC_PAWP_BSTOCM_CPSS(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_BSTOCM_CPSS where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmCpss">
- delete from TAC_PAWP_BSTOCM_CPSS
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_BSTOCM_CPSS set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmCpss">
- update TAC_PAWP_BSTOCM_CPSS
- <trim prefix="set" suffixOverrides=",">
- <if test="cpssId != null and cpssId != ''">cpss_Id = #{cpssId},</if>
- <if test="spvsnUnit != null and spvsnUnit != ''">SPVSN_UNIT = #{spvsnUnit},</if>
- <if test="unitNames != null and unitNames != ''">unit_Names = #{unitNames},</if>
- <if test="sSpvsnOrg != null and sSpvsnOrg != ''">S_SPVSN_ORG = #{sSpvsnOrg},</if>
- <if test="spvsnSctn != null and spvsnSctn != ''">spvsn_Sctn = #{spvsnSctn},</if>
- <if test="supvsSum != null">SUPVS_SUM = #{supvsSum},</if>
- <if test="drctNum != null">DRCT_NUM = #{drctNum},</if>
- <if test="dptDrctNum != null">DPT_DRCT_NUM = #{dptDrctNum},</if>
- <if test="spvsNgnerNum != null">SPVS_NGNER_NUM = #{spvsNgnerNum},</if>
- <if test="inspctNum != null">INSPCT_NUM = #{inspctNum},</if>
- <if test="othNum != null">OTH_NUM = #{othNum},</if>
- <if test="spwacodNum != null">SPWACOD_NUM = #{spwacodNum},</if>
- <if test="spwacodDuty != null">SPWACOD_DUTY = #{spwacodDuty},</if>
- <if test="wprIsFmlt != null and wprIsFmlt != ''">WPR_IS_FMLT = #{wprIsFmlt},</if>
- <if test="wprIsCmplnc != null and wprIsCmplnc != ''">WPR_IS_CMPLNC = #{wprIsCmplnc},</if>
- <if test="swsIsFmlt != null and swsIsFmlt != ''">SWS_IS_FMLT = #{swsIsFmlt},</if>
- <if test="swsIsCmplnc != null and swsIsCmplnc != ''">SWS_IS_CMPLNC = #{swsIsCmplnc},</if>
- <if test="spvsnPlFmlt != null and spvsnPlFmlt != ''">SPVSN_PL_FMLT = #{spvsnPlFmlt},</if>
- <if test="spvsnPlCmplnc != null and spvsnPlCmplnc != ''">SPVSN_PL_CMPLNC = #{spvsnPlCmplnc},</if>
- <if test="sedrIsPrpre != null and sedrIsPrpre != ''">SEDR_IS_PRPRE = #{sedrIsPrpre},</if>
- <if test="sedrIsCmplnc != null and sedrIsCmplnc != ''">SEDR_IS_CMPLNC = #{sedrIsCmplnc},</if>
- <if test="spvsnLogIsFill != null and spvsnLogIsFill != ''">SPVSN_LOG_IS_FILL = #{spvsnLogIsFill},</if>
- <if test="spvsnLogIsCmplnc != null and spvsnLogIsCmplnc != ''">SPVSN_LOG_IS_CMPLNC = #{spvsnLogIsCmplnc},
- </if>
- <if test="ssrIsFill != null and ssrIsFill != ''">SSR_IS_FILL = #{ssrIsFill},</if>
- <if test="ssrIsCmplnc != null and ssrIsCmplnc != ''">SSR_IS_CMPLNC = #{ssrIsCmplnc},</if>
- <if test="tsmrIsPrpre != null and tsmrIsPrpre != ''">TSMR_IS_PRPRE = #{tsmrIsPrpre},</if>
- <if test="tsmrIsCmplnc != null and tsmrIsCmplnc != ''">TSMR_IS_CMPLNC = #{tsmrIsCmplnc},</if>
- <if test="spvsnMtIsHold != null and spvsnMtIsHold != ''">SPVSN_MT_IS_HOLD = #{spvsnMtIsHold},</if>
- <if test="spvsnMtIsCmplnc != null and spvsnMtIsCmplnc != ''">SPVSN_MT_IS_CMPLNC = #{spvsnMtIsCmplnc},</if>
- <if test="note != null">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="sctnId != null">SCTN_ID = #{sctnId},</if>
- <if test="sn != null">SN = #{sn},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmCpss">
- update TAC_PAWP_BSTOCM_CPSS
- <trim prefix="set" suffixOverrides=",">
- <if test="cpssId != null and cpssId != ''">cpss_Id = #{cpssId},</if>
- <if test="spvsnUnit != null and spvsnUnit != ''">SPVSN_UNIT = #{spvsnUnit},</if>
- <if test="unitNames != null and unitNames != ''">unit_Names = #{unitNames},</if>
- <if test="sSpvsnOrg != null and sSpvsnOrg != ''">S_SPVSN_ORG = #{sSpvsnOrg},</if>
- <if test="spvsnSctn != null and spvsnSctn != ''">spvsn_Sctn = #{spvsnSctn},</if>
- <if test="supvsSum != null">SUPVS_SUM = #{supvsSum},</if>
- <if test="drctNum != null">DRCT_NUM = #{drctNum},</if>
- <if test="dptDrctNum != null">DPT_DRCT_NUM = #{dptDrctNum},</if>
- <if test="spvsNgnerNum != null">SPVS_NGNER_NUM = #{spvsNgnerNum},</if>
- <if test="inspctNum != null">INSPCT_NUM = #{inspctNum},</if>
- <if test="othNum != null">OTH_NUM = #{othNum},</if>
- <if test="spwacodNum != null">SPWACOD_NUM = #{spwacodNum},</if>
- <if test="spwacodDuty != null">SPWACOD_DUTY = #{spwacodDuty},</if>
- <if test="wprIsFmlt != null and wprIsFmlt != ''">WPR_IS_FMLT = #{wprIsFmlt},</if>
- <if test="wprIsCmplnc != null and wprIsCmplnc != ''">WPR_IS_CMPLNC = #{wprIsCmplnc},</if>
- <if test="swsIsFmlt != null and swsIsFmlt != ''">SWS_IS_FMLT = #{swsIsFmlt},</if>
- <if test="swsIsCmplnc != null and swsIsCmplnc != ''">SWS_IS_CMPLNC = #{swsIsCmplnc},</if>
- <if test="spvsnPlFmlt != null and spvsnPlFmlt != ''">SPVSN_PL_FMLT = #{spvsnPlFmlt},</if>
- <if test="spvsnPlCmplnc != null and spvsnPlCmplnc != ''">SPVSN_PL_CMPLNC = #{spvsnPlCmplnc},</if>
- <if test="sedrIsPrpre != null and sedrIsPrpre != ''">SEDR_IS_PRPRE = #{sedrIsPrpre},</if>
- <if test="sedrIsCmplnc != null and sedrIsCmplnc != ''">SEDR_IS_CMPLNC = #{sedrIsCmplnc},</if>
- <if test="spvsnLogIsFill != null and spvsnLogIsFill != ''">SPVSN_LOG_IS_FILL = #{spvsnLogIsFill},</if>
- <if test="spvsnLogIsCmplnc != null and spvsnLogIsCmplnc != ''">SPVSN_LOG_IS_CMPLNC = #{spvsnLogIsCmplnc},
- </if>
- <if test="ssrIsFill != null and ssrIsFill != ''">SSR_IS_FILL = #{ssrIsFill},</if>
- <if test="ssrIsCmplnc != null and ssrIsCmplnc != ''">SSR_IS_CMPLNC = #{ssrIsCmplnc},</if>
- <if test="tsmrIsPrpre != null and tsmrIsPrpre != ''">TSMR_IS_PRPRE = #{tsmrIsPrpre},</if>
- <if test="tsmrIsCmplnc != null and tsmrIsCmplnc != ''">TSMR_IS_CMPLNC = #{tsmrIsCmplnc},</if>
- <if test="spvsnMtIsHold != null and spvsnMtIsHold != ''">SPVSN_MT_IS_HOLD = #{spvsnMtIsHold},</if>
- <if test="spvsnMtIsCmplnc != null and spvsnMtIsCmplnc != ''">SPVSN_MT_IS_CMPLNC = #{spvsnMtIsCmplnc},</if>
- <if test="note != null">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="sctnId != null">SCTN_ID = #{sctnId},</if>
- <if test="sn != null">SN = #{sn},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|