| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?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.BisInspWagaSafeManageDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage" id="bisInspWagaSafeManageResultMap">
- <result property="copIsAfaporar" column="COP_IS_AFAPORAR"/>
- <result property="isAttdiaacopotscdCo" column="IS_ATTDIAACOPOTSCD_CO"/>
- <result property="isBldGodsaei" column="IS_BLD_GODSAEI"/>
- <result property="isFillGowlar" column="IS_FILL_GOWLAR"/>
- <result property="isStfEp" column="IS_STF_EP"/>
- <result property="isApplyRor" column="IS_APPLY_ROR"/>
- <result property="isStfFcpSafcwhbpip" column="IS_STF_FCP_SAFCWHBPIP"/>
- <result property="isBldDsifsamdr" column="IS_BLD_DSIFSAMDR"/>
- <result property="isRorFcaes" column="IS_ROR_FCAES"/>
- <result property="isCofaatr" column="IS_COFAATR"/>
- <result property="saoiotopbtmhaIsMend" column="SAOIOTOPBTMHA_IS_MEND"/>
- <result property="isBldEmtpgaltu" column="IS_BLD_EMTPGALTU"/>
- <result property="isPutEdtrorsas" column="IS_PUT_EDTRORSAS"/>
- <result property="gahIsCosiatr" column="GAH_IS_COSIATR"/>
- <result property="isApplyCami" column="IS_APPLY_CAMI"/>
- <result property="isUpReg" column="IS_UP_REG"/>
- <result property="isStfTmir" column="IS_STF_TMIR"/>
- <result property="isEnctFallGoms" column="IS_ENCT_FALL_GOMS"/>
- <result property="kpmsOptcIsExp" column="KPMS_OPTC_IS_EXP"/>
- <result property="isStfCop" column="IS_STF_COP"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="ctapInfo" column="CTAP_INFO"/>
- <result property="epafcpIsH" column="EPAFCP_IS_H"/>
- <result property="safeIsH" column="SAFE_IS_H"/>
- <result property="lmSafetyIsCo" column="LM_SAFETY_IS_CO"/>
- <result property="sSafetyIsCo" column="S_SAFETY_IS_CO"/>
- <result property="tofCIs" column="TOF_C_IS"/>
- <result property="restmIsAd" column="RESTM_IS_AD"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isThreeOrFour" column="IS_THREE_OR_FOUR"/>
- </resultMap>
-
- <sql id="table_columns">
- COP_IS_AFAPORAR,
- IS_ATTDIAACOPOTSCD_CO,
- IS_BLD_GODSAEI,
- IS_FILL_GOWLAR,
- IS_STF_EP,
- IS_APPLY_ROR,
- IS_STF_FCP_SAFCWHBPIP,
- IS_BLD_DSIFSAMDR,
- IS_ROR_FCAES,
- IS_COFAATR,
- SAOIOTOPBTMHA_IS_MEND,
- IS_BLD_EMTPGALTU,
- IS_PUT_EDTRORSAS,
- GAH_IS_COSIATR,
- IS_APPLY_CAMI,
- IS_UP_REG,
- IS_STF_TMIR,
- IS_ENCT_FALL_GOMS,
- KPMS_OPTC_IS_EXP,
- IS_STF_COP,
- ID,
- RGSTR_ID,
- CTAP_INFO,
- EPAFCP_IS_H,
- SAFE_IS_H,
- LM_SAFETY_IS_CO,
- S_SAFETY_IS_CO,
- TOF_C_IS,
- RESTM_IS_AD,
- REC_PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- IS_THREE_OR_FOUR
- </sql>
- <sql id="entity_properties">
- #{copIsAfaporar},
- #{isAttdiaacopotscdCo},
- #{isBldGodsaei},
- #{isFillGowlar},
- #{isStfEp},
- #{isApplyRor},
- #{isStfFcpSafcwhbpip},
- #{isBldDsifsamdr},
- #{isRorFcaes},
- #{isCofaatr},
- #{saoiotopbtmhaIsMend},
- #{isBldEmtpgaltu},
- #{isPutEdtrorsas},
- #{gahIsCosiatr},
- #{isApplyCami},
- #{isUpReg},
- #{isStfTmir},
- #{isEnctFallGoms},
- #{kpmsOptcIsExp},
- #{isStfCop},
- #{id},
- #{rgstrId},
- #{ctapInfo},
- #{epafcpIsH},
- #{safeIsH},
- #{lmSafetyIsCo},
- #{sSafetyIsCo},
- #{tofCIs},
- #{restmIsAd},
- #{recPersId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{isThreeOrFour}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="copIsAfaporar != null and copIsAfaporar != ''">and COP_IS_AFAPORAR = #{copIsAfaporar}</if>
- <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">and IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo}</if>
- <if test="isBldGodsaei != null and isBldGodsaei != ''">and IS_BLD_GODSAEI = #{isBldGodsaei}</if>
- <if test="isFillGowlar != null and isFillGowlar != ''">and IS_FILL_GOWLAR = #{isFillGowlar}</if>
- <if test="isStfEp != null and isStfEp != ''">and IS_STF_EP = #{isStfEp}</if>
- <if test="isApplyRor != null and isApplyRor != ''">and IS_APPLY_ROR = #{isApplyRor}</if>
- <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">and IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip}</if>
- <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">and IS_BLD_DSIFSAMDR = #{isBldDsifsamdr}</if>
- <if test="isRorFcaes != null and isRorFcaes != ''">and IS_ROR_FCAES = #{isRorFcaes}</if>
- <if test="isCofaatr != null and isCofaatr != ''">and IS_COFAATR = #{isCofaatr}</if>
- <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">and SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend}</if>
- <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">and IS_BLD_EMTPGALTU = #{isBldEmtpgaltu}</if>
- <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">and IS_PUT_EDTRORSAS = #{isPutEdtrorsas}</if>
- <if test="gahIsCosiatr != null and gahIsCosiatr != ''">and GAH_IS_COSIATR = #{gahIsCosiatr}</if>
- <if test="isApplyCami != null and isApplyCami != ''">and IS_APPLY_CAMI = #{isApplyCami}</if>
- <if test="isUpReg != null and isUpReg != ''">and IS_UP_REG = #{isUpReg}</if>
- <if test="isStfTmir != null and isStfTmir != ''">and IS_STF_TMIR = #{isStfTmir}</if>
- <if test="isEnctFallGoms != null and isEnctFallGoms != ''">and IS_ENCT_FALL_GOMS = #{isEnctFallGoms}</if>
- <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">and KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp}</if>
- <if test="isStfCop != null and isStfCop != ''">and IS_STF_COP = #{isStfCop}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="ctapInfo != null and ctapInfo != ''">and CTAP_INFO = #{ctapInfo}</if>
- <if test="epafcpIsH != null and epafcpIsH != ''">and EPAFCP_IS_H = #{epafcpIsH}</if>
- <if test="safeIsH != null and safeIsH != ''">and SAFE_IS_H = #{safeIsH}</if>
- <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">and LM_SAFETY_IS_CO = #{lmSafetyIsCo}</if>
- <if test="sSafetyIsCo != null and sSafetyIsCo != ''">and S_SAFETY_IS_CO = #{sSafetyIsCo}</if>
- <if test="tofCIs != null and tofCIs != ''">and TOF_C_IS = #{tofCIs}</if>
- <if test="restmIsAd != null and restmIsAd != ''">and RESTM_IS_AD = #{restmIsAd}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</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="isThreeOrFour != null and isThreeOrFour != ''">and IS_THREE_OR_FOUR = #{isThreeOrFour}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWagaSafeManageResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWagaSafeManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWagaSafeManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE
- </select>
- <select id="findList" resultMap="bisInspWagaSafeManageResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
- insert into BIS_INSP_WAGA_SAFE_MANAGE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WAGA_SAFE_MANAGE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
- delete from BIS_INSP_WAGA_SAFE_MANAGE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WAGA_SAFE_MANAGE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
- update BIS_INSP_WAGA_SAFE_MANAGE
- <trim prefix="set" suffixOverrides=",">
- <if test="copIsAfaporar != null and copIsAfaporar != ''">COP_IS_AFAPORAR = #{copIsAfaporar},</if>
- <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo},</if>
- <if test="isBldGodsaei != null and isBldGodsaei != ''">IS_BLD_GODSAEI = #{isBldGodsaei},</if>
- <if test="isFillGowlar != null and isFillGowlar != ''">IS_FILL_GOWLAR = #{isFillGowlar},</if>
- <if test="isStfEp != null and isStfEp != ''">IS_STF_EP = #{isStfEp},</if>
- <if test="isApplyRor != null and isApplyRor != ''">IS_APPLY_ROR = #{isApplyRor},</if>
- <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip},</if>
- <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">IS_BLD_DSIFSAMDR = #{isBldDsifsamdr},</if>
- <if test="isRorFcaes != null and isRorFcaes != ''">IS_ROR_FCAES = #{isRorFcaes},</if>
- <if test="isCofaatr != null and isCofaatr != ''">IS_COFAATR = #{isCofaatr},</if>
- <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend},</if>
- <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">IS_BLD_EMTPGALTU = #{isBldEmtpgaltu},</if>
- <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">IS_PUT_EDTRORSAS = #{isPutEdtrorsas},</if>
- <if test="gahIsCosiatr != null and gahIsCosiatr != ''">GAH_IS_COSIATR = #{gahIsCosiatr},</if>
- <if test="isApplyCami != null and isApplyCami != ''">IS_APPLY_CAMI = #{isApplyCami},</if>
- <if test="isUpReg != null and isUpReg != ''">IS_UP_REG = #{isUpReg},</if>
- <if test="isStfTmir != null and isStfTmir != ''">IS_STF_TMIR = #{isStfTmir},</if>
- <if test="isEnctFallGoms != null and isEnctFallGoms != ''">IS_ENCT_FALL_GOMS = #{isEnctFallGoms},</if>
- <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp},</if>
- <if test="isStfCop != null and isStfCop != ''">IS_STF_COP = #{isStfCop},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapInfo != null and ctapInfo != ''">CTAP_INFO = #{ctapInfo},</if>
- <if test="epafcpIsH != null and epafcpIsH != ''">EPAFCP_IS_H = #{epafcpIsH},</if>
- <if test="safeIsH != null and safeIsH != ''">SAFE_IS_H = #{safeIsH},</if>
- <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">LM_SAFETY_IS_CO = #{lmSafetyIsCo},</if>
- <if test="sSafetyIsCo != null and sSafetyIsCo != ''">S_SAFETY_IS_CO = #{sSafetyIsCo},</if>
- <if test="tofCIs != null and tofCIs != ''">TOF_C_IS = #{tofCIs},</if>
- <if test="restmIsAd != null and restmIsAd != ''">RESTM_IS_AD = #{restmIsAd},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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="isThreeOrFour != null and isThreeOrFour != ''">IS_THREE_OR_FOUR = #{isThreeOrFour},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaSafeManage">
- update BIS_INSP_WAGA_SAFE_MANAGE
- <trim prefix="set" suffixOverrides=",">
- <if test="copIsAfaporar != null and copIsAfaporar != ''">COP_IS_AFAPORAR = #{copIsAfaporar},</if>
- <if test="isAttdiaacopotscdCo != null and isAttdiaacopotscdCo != ''">IS_ATTDIAACOPOTSCD_CO = #{isAttdiaacopotscdCo},</if>
- <if test="isBldGodsaei != null and isBldGodsaei != ''">IS_BLD_GODSAEI = #{isBldGodsaei},</if>
- <if test="isFillGowlar != null and isFillGowlar != ''">IS_FILL_GOWLAR = #{isFillGowlar},</if>
- <if test="isStfEp != null and isStfEp != ''">IS_STF_EP = #{isStfEp},</if>
- <if test="isApplyRor != null and isApplyRor != ''">IS_APPLY_ROR = #{isApplyRor},</if>
- <if test="isStfFcpSafcwhbpip != null and isStfFcpSafcwhbpip != ''">IS_STF_FCP_SAFCWHBPIP = #{isStfFcpSafcwhbpip},</if>
- <if test="isBldDsifsamdr != null and isBldDsifsamdr != ''">IS_BLD_DSIFSAMDR = #{isBldDsifsamdr},</if>
- <if test="isRorFcaes != null and isRorFcaes != ''">IS_ROR_FCAES = #{isRorFcaes},</if>
- <if test="isCofaatr != null and isCofaatr != ''">IS_COFAATR = #{isCofaatr},</if>
- <if test="saoiotopbtmhaIsMend != null and saoiotopbtmhaIsMend != ''">SAOIOTOPBTMHA_IS_MEND = #{saoiotopbtmhaIsMend},</if>
- <if test="isBldEmtpgaltu != null and isBldEmtpgaltu != ''">IS_BLD_EMTPGALTU = #{isBldEmtpgaltu},</if>
- <if test="isPutEdtrorsas != null and isPutEdtrorsas != ''">IS_PUT_EDTRORSAS = #{isPutEdtrorsas},</if>
- <if test="gahIsCosiatr != null and gahIsCosiatr != ''">GAH_IS_COSIATR = #{gahIsCosiatr},</if>
- <if test="isApplyCami != null and isApplyCami != ''">IS_APPLY_CAMI = #{isApplyCami},</if>
- <if test="isUpReg != null and isUpReg != ''">IS_UP_REG = #{isUpReg},</if>
- <if test="isStfTmir != null and isStfTmir != ''">IS_STF_TMIR = #{isStfTmir},</if>
- <if test="isEnctFallGoms != null and isEnctFallGoms != ''">IS_ENCT_FALL_GOMS = #{isEnctFallGoms},</if>
- <if test="kpmsOptcIsExp != null and kpmsOptcIsExp != ''">KPMS_OPTC_IS_EXP = #{kpmsOptcIsExp},</if>
- <if test="isStfCop != null and isStfCop != ''">IS_STF_COP = #{isStfCop},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapInfo != null and ctapInfo != ''">CTAP_INFO = #{ctapInfo},</if>
- <if test="epafcpIsH != null and epafcpIsH != ''">EPAFCP_IS_H = #{epafcpIsH},</if>
- <if test="safeIsH != null and safeIsH != ''">SAFE_IS_H = #{safeIsH},</if>
- <if test="lmSafetyIsCo != null and lmSafetyIsCo != ''">LM_SAFETY_IS_CO = #{lmSafetyIsCo},</if>
- <if test="sSafetyIsCo != null and sSafetyIsCo != ''">S_SAFETY_IS_CO = #{sSafetyIsCo},</if>
- <if test="tofCIs != null and tofCIs != ''">TOF_C_IS = #{tofCIs},</if>
- <if test="restmIsAd != null and restmIsAd != ''">RESTM_IS_AD = #{restmIsAd},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</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="isThreeOrFour != null and isThreeOrFour != ''">IS_THREE_OR_FOUR = #{isThreeOrFour},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|