| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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.BisInspDrdmpItemDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspDrdmpItem" id="bisInspDrdmpItemResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="isSafLaws" column="IS_SAF_LAWS"/>
- <result property="isSafPut" column="IS_SAF_PUT"/>
- <result property="isMakRule" column="IS_MAK_RULE"/>
- <result property="isMeetOrg" column="IS_MEET_ORG"/>
- <result property="isDutList" column="IS_DUT_LIST"/>
- <result property="isBudDut" column="IS_BUD_DUT"/>
- <result property="isSureOrg" column="IS_SURE_ORG"/>
- <result property="isGuidResu" column="IS_GUID_RESU"/>
- <result property="isOrgEva" column="IS_ORG_EVA"/>
- <result property="isSafAnaly" column="IS_SAF_ANALY"/>
- <result property="isMakSafPlan" column="IS_MAK_SAF_PLAN"/>
- <result property="isPlanChk" column="IS_PLAN_CHK"/>
- <result property="isMakSaf" column="IS_MAK_SAF"/>
- <result property="isDanImp" column="IS_DAN_IMP"/>
- <result property="isLowMon" column="IS_LOW_MON"/>
- <result property="isSafCopy" column="IS_SAF_COPY"/>
- <result property="isSafStnd" column="IS_SAF_STND"/>
- <result property="isBudDang" column="IS_BUD_DANG"/>
- <result property="isWageTrain" column="IS_WAGE_TRAIN"/>
- <result property="isDutyChk" column="IS_DUTY_CHK"/>
- <result property="isAccpRept" column="IS_ACCP_REPT"/>
- <result property="isDataBlaw" column="IS_DATA_BLAW"/>
- <result property="isBudPlan" column="IS_BUD_PLAN"/>
- <result property="isOrgPlan" column="IS_ORG_PLAN"/>
- <result property="isSendSaf" column="IS_SEND_SAF"/>
- <result property="isMangLook" column="IS_MANG_LOOK"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- IS_SAF_LAWS,
- IS_SAF_PUT,
- IS_MAK_RULE,
- IS_MEET_ORG,
- IS_DUT_LIST,
- IS_BUD_DUT,
- IS_SURE_ORG,
- IS_GUID_RESU,
- IS_ORG_EVA,
- IS_SAF_ANALY,
- IS_MAK_SAF_PLAN,
- IS_PLAN_CHK,
- IS_MAK_SAF,
- IS_DAN_IMP,
- IS_LOW_MON,
- IS_SAF_COPY,
- IS_SAF_STND,
- IS_BUD_DANG,
- IS_WAGE_TRAIN,
- IS_DUTY_CHK,
- IS_ACCP_REPT,
- IS_DATA_BLAW,
- IS_BUD_PLAN,
- IS_ORG_PLAN,
- IS_SEND_SAF,
- IS_MANG_LOOK,
- PERS_ID,
- INTM,
- UPTM,
- STATE,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{isSafLaws},
- #{isSafPut},
- #{isMakRule},
- #{isMeetOrg},
- #{isDutList},
- #{isBudDut},
- #{isSureOrg},
- #{isGuidResu},
- #{isOrgEva},
- #{isSafAnaly},
- #{isMakSafPlan},
- #{isPlanChk},
- #{isMakSaf},
- #{isDanImp},
- #{isLowMon},
- #{isSafCopy},
- #{isSafStnd},
- #{isBudDang},
- #{isWageTrain},
- #{isDutyChk},
- #{isAccpRept},
- #{isDataBlaw},
- #{isBudPlan},
- #{isOrgPlan},
- #{isSendSaf},
- #{isMangLook},
- #{persId},
- #{intm},
- #{uptm},
- #{state},
- #{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="isSafLaws != null and isSafLaws != ''">and IS_SAF_LAWS = #{isSafLaws}</if>
- <if test="isSafPut != null and isSafPut != ''">and IS_SAF_PUT = #{isSafPut}</if>
- <if test="isMakRule != null and isMakRule != ''">and IS_MAK_RULE = #{isMakRule}</if>
- <if test="isMeetOrg != null and isMeetOrg != ''">and IS_MEET_ORG = #{isMeetOrg}</if>
- <if test="isDutList != null and isDutList != ''">and IS_DUT_LIST = #{isDutList}</if>
- <if test="isBudDut != null and isBudDut != ''">and IS_BUD_DUT = #{isBudDut}</if>
- <if test="isSureOrg != null and isSureOrg != ''">and IS_SURE_ORG = #{isSureOrg}</if>
- <if test="isGuidResu != null and isGuidResu != ''">and IS_GUID_RESU = #{isGuidResu}</if>
- <if test="isOrgEva != null and isOrgEva != ''">and IS_ORG_EVA = #{isOrgEva}</if>
- <if test="isSafAnaly != null and isSafAnaly != ''">and IS_SAF_ANALY = #{isSafAnaly}</if>
- <if test="isMakSafPlan != null and isMakSafPlan != ''">and IS_MAK_SAF_PLAN = #{isMakSafPlan}</if>
- <if test="isPlanChk != null and isPlanChk != ''">and IS_PLAN_CHK = #{isPlanChk}</if>
- <if test="isMakSaf != null and isMakSaf != ''">and IS_MAK_SAF = #{isMakSaf}</if>
- <if test="isDanImp != null and isDanImp != ''">and IS_DAN_IMP = #{isDanImp}</if>
- <if test="isLowMon != null and isLowMon != ''">and IS_LOW_MON = #{isLowMon}</if>
- <if test="isSafCopy != null and isSafCopy != ''">and IS_SAF_COPY = #{isSafCopy}</if>
- <if test="isSafStnd != null and isSafStnd != ''">and IS_SAF_STND = #{isSafStnd}</if>
- <if test="isBudDang != null and isBudDang != ''">and IS_BUD_DANG = #{isBudDang}</if>
- <if test="isWageTrain != null and isWageTrain != ''">and IS_WAGE_TRAIN = #{isWageTrain}</if>
- <if test="isDutyChk != null and isDutyChk != ''">and IS_DUTY_CHK = #{isDutyChk}</if>
- <if test="isAccpRept != null and isAccpRept != ''">and IS_ACCP_REPT = #{isAccpRept}</if>
- <if test="isDataBlaw != null and isDataBlaw != ''">and IS_DATA_BLAW = #{isDataBlaw}</if>
- <if test="isBudPlan != null and isBudPlan != ''">and IS_BUD_PLAN = #{isBudPlan}</if>
- <if test="isOrgPlan != null and isOrgPlan != ''">and IS_ORG_PLAN = #{isOrgPlan}</if>
- <if test="isSendSaf != null and isSendSaf != ''">and IS_SEND_SAF = #{isSendSaf}</if>
- <if test="isMangLook != null and isMangLook != ''">and IS_MANG_LOOK = #{isMangLook}</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="state != null and state != ''">and STATE = #{state}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspDrdmpItemResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_DRDMP_ITEM where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspDrdmpItemResultMap">
- select <include refid="table_columns" /> from BIS_INSP_DRDMP_ITEM <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspDrdmpItemResultMap">
- select <include refid="table_columns" /> from BIS_INSP_DRDMP_ITEM
- </select>
- <select id="findList" resultMap="bisInspDrdmpItemResultMap">
- select <include refid="table_columns" /> from BIS_INSP_DRDMP_ITEM <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_DRDMP_ITEM <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspDrdmpItem">
- insert into BIS_INSP_DRDMP_ITEM( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_DRDMP_ITEM set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspDrdmpItem">
- update BIS_INSP_DRDMP_ITEM set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_DRDMP_ITEM set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspDrdmpItem">
- update BIS_INSP_DRDMP_ITEM
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isSafLaws != null and isSafLaws != ''">IS_SAF_LAWS = #{isSafLaws},</if>
- <if test="isSafPut != null and isSafPut != ''">IS_SAF_PUT = #{isSafPut},</if>
- <if test="isMakRule != null and isMakRule != ''">IS_MAK_RULE = #{isMakRule},</if>
- <if test="isMeetOrg != null and isMeetOrg != ''">IS_MEET_ORG = #{isMeetOrg},</if>
- <if test="isDutList != null and isDutList != ''">IS_DUT_LIST = #{isDutList},</if>
- <if test="isBudDut != null and isBudDut != ''">IS_BUD_DUT = #{isBudDut},</if>
- <if test="isSureOrg != null and isSureOrg != ''">IS_SURE_ORG = #{isSureOrg},</if>
- <if test="isGuidResu != null and isGuidResu != ''">IS_GUID_RESU = #{isGuidResu},</if>
- <if test="isOrgEva != null and isOrgEva != ''">IS_ORG_EVA = #{isOrgEva},</if>
- <if test="isSafAnaly != null and isSafAnaly != ''">IS_SAF_ANALY = #{isSafAnaly},</if>
- <if test="isMakSafPlan != null and isMakSafPlan != ''">IS_MAK_SAF_PLAN = #{isMakSafPlan},</if>
- <if test="isPlanChk != null and isPlanChk != ''">IS_PLAN_CHK = #{isPlanChk},</if>
- <if test="isMakSaf != null and isMakSaf != ''">IS_MAK_SAF = #{isMakSaf},</if>
- <if test="isDanImp != null and isDanImp != ''">IS_DAN_IMP = #{isDanImp},</if>
- <if test="isLowMon != null and isLowMon != ''">IS_LOW_MON = #{isLowMon},</if>
- <if test="isSafCopy != null and isSafCopy != ''">IS_SAF_COPY = #{isSafCopy},</if>
- <if test="isSafStnd != null and isSafStnd != ''">IS_SAF_STND = #{isSafStnd},</if>
- <if test="isBudDang != null and isBudDang != ''">IS_BUD_DANG = #{isBudDang},</if>
- <if test="isWageTrain != null and isWageTrain != ''">IS_WAGE_TRAIN = #{isWageTrain},</if>
- <if test="isDutyChk != null and isDutyChk != ''">IS_DUTY_CHK = #{isDutyChk},</if>
- <if test="isAccpRept != null and isAccpRept != ''">IS_ACCP_REPT = #{isAccpRept},</if>
- <if test="isDataBlaw != null and isDataBlaw != ''">IS_DATA_BLAW = #{isDataBlaw},</if>
- <if test="isBudPlan != null and isBudPlan != ''">IS_BUD_PLAN = #{isBudPlan},</if>
- <if test="isOrgPlan != null and isOrgPlan != ''">IS_ORG_PLAN = #{isOrgPlan},</if>
- <if test="isSendSaf != null and isSendSaf != ''">IS_SEND_SAF = #{isSendSaf},</if>
- <if test="isMangLook != null and isMangLook != ''">IS_MANG_LOOK = #{isMangLook},</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="state != null and state != ''">STATE = #{state},</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.BisInspDrdmpItem">
- update BIS_INSP_DRDMP_ITEM
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="isSafLaws != null and isSafLaws != ''">IS_SAF_LAWS = #{isSafLaws},</if>
- <if test="isSafPut != null and isSafPut != ''">IS_SAF_PUT = #{isSafPut},</if>
- <if test="isMakRule != null and isMakRule != ''">IS_MAK_RULE = #{isMakRule},</if>
- <if test="isMeetOrg != null and isMeetOrg != ''">IS_MEET_ORG = #{isMeetOrg},</if>
- <if test="isDutList != null and isDutList != ''">IS_DUT_LIST = #{isDutList},</if>
- <if test="isBudDut != null and isBudDut != ''">IS_BUD_DUT = #{isBudDut},</if>
- <if test="isSureOrg != null and isSureOrg != ''">IS_SURE_ORG = #{isSureOrg},</if>
- <if test="isGuidResu != null and isGuidResu != ''">IS_GUID_RESU = #{isGuidResu},</if>
- <if test="isOrgEva != null and isOrgEva != ''">IS_ORG_EVA = #{isOrgEva},</if>
- <if test="isSafAnaly != null and isSafAnaly != ''">IS_SAF_ANALY = #{isSafAnaly},</if>
- <if test="isMakSafPlan != null and isMakSafPlan != ''">IS_MAK_SAF_PLAN = #{isMakSafPlan},</if>
- <if test="isPlanChk != null and isPlanChk != ''">IS_PLAN_CHK = #{isPlanChk},</if>
- <if test="isMakSaf != null and isMakSaf != ''">IS_MAK_SAF = #{isMakSaf},</if>
- <if test="isDanImp != null and isDanImp != ''">IS_DAN_IMP = #{isDanImp},</if>
- <if test="isLowMon != null and isLowMon != ''">IS_LOW_MON = #{isLowMon},</if>
- <if test="isSafCopy != null and isSafCopy != ''">IS_SAF_COPY = #{isSafCopy},</if>
- <if test="isSafStnd != null and isSafStnd != ''">IS_SAF_STND = #{isSafStnd},</if>
- <if test="isBudDang != null and isBudDang != ''">IS_BUD_DANG = #{isBudDang},</if>
- <if test="isWageTrain != null and isWageTrain != ''">IS_WAGE_TRAIN = #{isWageTrain},</if>
- <if test="isDutyChk != null and isDutyChk != ''">IS_DUTY_CHK = #{isDutyChk},</if>
- <if test="isAccpRept != null and isAccpRept != ''">IS_ACCP_REPT = #{isAccpRept},</if>
- <if test="isDataBlaw != null and isDataBlaw != ''">IS_DATA_BLAW = #{isDataBlaw},</if>
- <if test="isBudPlan != null and isBudPlan != ''">IS_BUD_PLAN = #{isBudPlan},</if>
- <if test="isOrgPlan != null and isOrgPlan != ''">IS_ORG_PLAN = #{isOrgPlan},</if>
- <if test="isSendSaf != null and isSendSaf != ''">IS_SEND_SAF = #{isSendSaf},</if>
- <if test="isMangLook != null and isMangLook != ''">IS_MANG_LOOK = #{isMangLook},</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="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|