| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?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.BisInspWagaBaseDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaBase" id="bisInspWagaBaseResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="gateAdmOrg" column="GATE_ADM_ORG"/>
- <result property="oeseInfo" column="OESE_INFO"/>
- <result property="ifEffective" column="IF_EFFECTIVE"/>
- <result property="effvCas" column="EFFV_CAS"/>
- <result property="effectiveOth" column="EFFECTIVE_OTH"/>
- <result property="extDamSafeAppr" column="EXT_DAM_SAFE_APPR"/>
- <result property="extDamSafeApprInfo" column="EXT_DAM_SAFE_APPR_INFO"/>
- <result property="prftaofcIsH" column="PRFTAOFC_IS_H"/>
- <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="adCode" column="AD_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- <result property="gateAdmName" column="GATE_ADM_NAME"/>
- <result property="gateFlow" column="GATE_FLOW"/>
- <result property="engScal" column="ENG_SCAL"/>
- <result property="buildStat" column="BUILD_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- AD_CODE,
- AD_NAME,
- AD_FULL_NAME,
- GATE_ADM_NAME,
- GATE_FLOW,
- ENG_SCAL,
- ID,
- RGSTR_ID,
- GATE_ADM_ORG,
- OESE_INFO,
- IF_EFFECTIVE,
- EFFV_CAS,
- EFFECTIVE_OTH,
- EXT_DAM_SAFE_APPR,
- EXT_DAM_SAFE_APPR_INFO,
- PRFTAOFC_IS_H,
- REC_PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- BUILD_STAT
- </sql>
- <sql id="entity_properties">
- #{adCode},
- #{adName},
- #{adFullName},
- #{gateAdmName},
- #{gateFlow},
- #{engScal},
- #{id},
- #{rgstrId},
- #{gateAdmOrg},
- #{oeseInfo},
- #{ifEffective},
- #{effvCas},
- #{effectiveOth},
- #{extDamSafeAppr},
- #{extDamSafeApprInfo},
- #{prftaofcIsH},
- #{recPersId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{buildStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="buildStat != null and buildStat != ''">and BUILD_STAT = #{buildStat}</if>
- <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="gateAdmName != null and gateAdmName != ''">and GATE_ADM_NAME = #{gateAdmName}</if>
- <if test="gateFlow != null and gateFlow != ''">and GATE_FLOW = #{gateFlow}</if>
- <if test="engScal != null and engScal != ''">and ENG_SCAL = #{engScal}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="gateAdmOrg != null and gateAdmOrg != ''">and GATE_ADM_ORG = #{gateAdmOrg}</if>
- <if test="oeseInfo != null and oeseInfo != ''">and OESE_INFO = #{oeseInfo}</if>
- <if test="ifEffective != null and ifEffective != ''">and IF_EFFECTIVE = #{ifEffective}</if>
- <if test="effvCas != null and effvCas != ''">and EFFV_CAS = #{effvCas}</if>
- <if test="effectiveOth != null and effectiveOth != ''">and EFFECTIVE_OTH = #{effectiveOth}</if>
- <if test="extDamSafeAppr != null and extDamSafeAppr != ''">and EXT_DAM_SAFE_APPR = #{extDamSafeAppr}</if>
- <if test="extDamSafeApprInfo != null and extDamSafeApprInfo != ''">and EXT_DAM_SAFE_APPR_INFO = #{extDamSafeApprInfo}</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">and PRFTAOFC_IS_H = #{prftaofcIsH}</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>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWagaBaseResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WAGA_BASE where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWagaBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_BASE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWagaBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_BASE
- </select>
- <select id="findList" resultMap="bisInspWagaBaseResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_BASE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WAGA_BASE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaBase">
- insert into BIS_INSP_WAGA_BASE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WAGA_BASE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaBase">
- delete from BIS_INSP_WAGA_BASE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WAGA_BASE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaBase">
- update BIS_INSP_WAGA_BASE
- <trim prefix="set" suffixOverrides=",">
- <if test="buildStat != null and buildStat != ''">BUILD_STAT = #{buildStat},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="gateAdmName != null and gateAdmName != ''">GATE_ADM_NAME = #{gateAdmName},</if>
- <if test="gateFlow != null and gateFlow != ''">GATE_FLOW = #{gateFlow},</if>
- <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="gateAdmOrg != null and gateAdmOrg != ''">GATE_ADM_ORG = #{gateAdmOrg},</if>
- <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
- <if test="ifEffective != null and ifEffective != ''">IF_EFFECTIVE = #{ifEffective},</if>
- <if test="effvCas != null and effvCas != ''">EFFV_CAS = #{effvCas},</if>
- <if test="effectiveOth != null and effectiveOth != ''">EFFECTIVE_OTH = #{effectiveOth},</if>
- <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
- <if test="extDamSafeApprInfo != null and extDamSafeApprInfo != ''">EXT_DAM_SAFE_APPR_INFO = #{extDamSafeApprInfo},</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">PRFTAOFC_IS_H = #{prftaofcIsH},</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>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaBase">
- update BIS_INSP_WAGA_BASE
- <trim prefix="set" suffixOverrides=",">
- <if test="buildStat != null and buildStat != ''">BUILD_STAT = #{buildStat},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="gateAdmName != null and gateAdmName != ''">GATE_ADM_NAME = #{gateAdmName},</if>
- <if test="gateFlow != null and gateFlow != ''">GATE_FLOW = #{gateFlow},</if>
- <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="gateAdmOrg != null and gateAdmOrg != ''">GATE_ADM_ORG = #{gateAdmOrg},</if>
- <if test="oeseInfo != null and oeseInfo != ''">OESE_INFO = #{oeseInfo},</if>
- <if test="ifEffective != null and ifEffective != ''">IF_EFFECTIVE = #{ifEffective},</if>
- <if test="effvCas != null and effvCas != ''">EFFV_CAS = #{effvCas},</if>
- <if test="effectiveOth != null and effectiveOth != ''">EFFECTIVE_OTH = #{effectiveOth},</if>
- <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
- <if test="extDamSafeApprInfo != null and extDamSafeApprInfo != ''">EXT_DAM_SAFE_APPR_INFO = #{extDamSafeApprInfo},</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">PRFTAOFC_IS_H = #{prftaofcIsH},</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>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- <update id="updateOeseInfo" parameterType="String">
- update BIS_INSP_WAGA_BASE set OESE_INFO = #{oeseStat} where RGSTR_ID = #{rgstrId}
- </update>
- </mapper>
|