| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <?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.BisInspWagaDmamInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo" id="bisInspWagaDmamInfoResultMap">
- <result property="isCoarScw" column="IS_COAR_SCW"/>
- <result property="isHirIrs" column="IS_HIR_IRS"/>
- <result property="isIafditTemtdwi" column="IS_IAFDIT_TEMTDWI"/>
- <result property="isPrdRm" column="IS_PRD_RM"/>
- <result property="isMipThopeiee" column="IS_MIP_THOPEIEE"/>
- <result property="isHasSmameaf" column="IS_HAS_SMAMEAF"/>
- <result property="isTcosmacmd" column="IS_TCOSMACMD"/>
- <result property="isSaamdt" column="IS_SAAMDT"/>
- <result property="mosmeafIsArv" column="MOSMEAF_IS_ARV"/>
- <result property="isDlmtSomasop" column="IS_DLMT_SOMASOP"/>
- <result property="somasopIsIc" column="SOMASOP_IS_IC"/>
- <result property="somasopIsAtetsotp" column="SOMASOP_IS_ATETSOTP"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="ctapIsCo" column="CTAP_IS_CO"/>
- <result property="epafcpIsEn" column="EPAFCP_IS_EN"/>
- <result property="safeIsCo" column="SAFE_IS_CO"/>
- <result property="plofmwIsH" column="PLOFMW_IS_H"/>
- <result property="fcemIsRes" column="FCEM_IS_RES"/>
- <result property="somasopIsDe" column="SOMASOP_IS_DE"/>
- <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="somIsDe" column="SOM_IS_DE"/>
- </resultMap>
-
- <sql id="table_columns">
- IS_COAR_SCW,
- IS_HIR_IRS,
- IS_IAFDIT_TEMTDWI,
- IS_PRD_RM,
- IS_MIP_THOPEIEE,
- IS_HAS_SMAMEAF,
- IS_TCOSMACMD,
- IS_SAAMDT,
- MOSMEAF_IS_ARV,
- IS_DLMT_SOMASOP,
- SOMASOP_IS_IC,
- SOMASOP_IS_ATETSOTP,
- ID,
- RGSTR_ID,
- CTAP_IS_CO,
- EPAFCP_IS_EN,
- SAFE_IS_CO,
- PLOFMW_IS_H,
- FCEM_IS_RES,
- SOMASOP_IS_DE,
- REC_PERS_ID,
- INTM,
- UPTM,
- DATA_STAT,
- SOM_IS_DE
- </sql>
- <sql id="entity_properties">
- #{isCoarScw},
- #{isHirIrs},
- #{isIafditTemtdwi},
- #{isPrdRm},
- #{isMipThopeiee},
- #{isHasSmameaf},
- #{isTcosmacmd},
- #{isSaamdt},
- #{mosmeafIsArv},
- #{isDlmtSomasop},
- #{somasopIsIc},
- #{somasopIsAtetsotp},
- #{id},
- #{rgstrId},
- #{ctapIsCo},
- #{epafcpIsEn},
- #{safeIsCo},
- #{plofmwIsH},
- #{fcemIsRes},
- #{somasopIsDe},
- #{recPersId},
- #{intm},
- #{uptm},
- #{dataStat},
- #{somIsDe}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="isCoarScw != null and isCoarScw != ''">and IS_COAR_SCW = #{isCoarScw}</if>
- <if test="isHirIrs != null and isHirIrs != ''">and IS_HIR_IRS = #{isHirIrs}</if>
- <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">and IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi}</if>
- <if test="isPrdRm != null and isPrdRm != ''">and IS_PRD_RM = #{isPrdRm}</if>
- <if test="isMipThopeiee != null and isMipThopeiee != ''">and IS_MIP_THOPEIEE = #{isMipThopeiee}</if>
- <if test="isHasSmameaf != null and isHasSmameaf != ''">and IS_HAS_SMAMEAF = #{isHasSmameaf}</if>
- <if test="isTcosmacmd != null and isTcosmacmd != ''">and IS_TCOSMACMD = #{isTcosmacmd}</if>
- <if test="isSaamdt != null and isSaamdt != ''">and IS_SAAMDT = #{isSaamdt}</if>
- <if test="mosmeafIsArv != null and mosmeafIsArv != ''">and MOSMEAF_IS_ARV = #{mosmeafIsArv}</if>
- <if test="isDlmtSomasop != null and isDlmtSomasop != ''">and IS_DLMT_SOMASOP = #{isDlmtSomasop}</if>
- <if test="somasopIsIc != null and somasopIsIc != ''">and SOMASOP_IS_IC = #{somasopIsIc}</if>
- <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">and SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="ctapIsCo != null and ctapIsCo != ''">and CTAP_IS_CO = #{ctapIsCo}</if>
- <if test="epafcpIsEn != null and epafcpIsEn != ''">and EPAFCP_IS_EN = #{epafcpIsEn}</if>
- <if test="safeIsCo != null and safeIsCo != ''">and SAFE_IS_CO = #{safeIsCo}</if>
- <if test="plofmwIsH != null and plofmwIsH != ''">and PLOFMW_IS_H = #{plofmwIsH}</if>
- <if test="fcemIsRes != null and fcemIsRes != ''">and FCEM_IS_RES = #{fcemIsRes}</if>
- <if test="somasopIsDe != null and somasopIsDe != ''">and SOMASOP_IS_DE = #{somasopIsDe}</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="somIsDe != null and somIsDe != ''">and SOM_IS_DE = #{somIsDe}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWagaDmamInfoResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWagaDmamInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWagaDmamInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO
- </select>
- <select id="findList" resultMap="bisInspWagaDmamInfoResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
- insert into BIS_INSP_WAGA_DMAM_INFO( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WAGA_DMAM_INFO where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
- delete from BIS_INSP_WAGA_DMAM_INFO <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WAGA_DMAM_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
- update BIS_INSP_WAGA_DMAM_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="isCoarScw != null and isHirIrs != ''">IS_COAR_SCW = #{isCoarScw},</if>
- <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
- <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
- <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
- <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
- <if test="isHasSmameaf != null and isHasSmameaf != ''">IS_HAS_SMAMEAF = #{isHasSmameaf},</if>
- <if test="isTcosmacmd != null and isTcosmacmd != ''">IS_TCOSMACMD = #{isTcosmacmd},</if>
- <if test="isSaamdt != null and isSaamdt != ''">IS_SAAMDT = #{isSaamdt},</if>
- <if test="mosmeafIsArv != null and mosmeafIsArv != ''">MOSMEAF_IS_ARV = #{mosmeafIsArv},</if>
- <if test="isDlmtSomasop != null and isDlmtSomasop != ''">IS_DLMT_SOMASOP = #{isDlmtSomasop},</if>
- <if test="somasopIsIc != null and somasopIsIc != ''">SOMASOP_IS_IC = #{somasopIsIc},</if>
- <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapIsCo != null and ctapIsCo != ''">CTAP_IS_CO = #{ctapIsCo},</if>
- <if test="epafcpIsEn != null and epafcpIsEn != ''">EPAFCP_IS_EN = #{epafcpIsEn},</if>
- <if test="safeIsCo != null and safeIsCo != ''">SAFE_IS_CO = #{safeIsCo},</if>
- <if test="plofmwIsH != null and plofmwIsH != ''">PLOFMW_IS_H = #{plofmwIsH},</if>
- <if test="fcemIsRes != null and fcemIsRes != ''">FCEM_IS_RES = #{fcemIsRes},</if>
- <if test="somasopIsDe != null and somasopIsDe != ''">SOMASOP_IS_DE = #{somasopIsDe},</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="somIsDe != null and somIsDe != ''">SOM_IS_DE = #{somIsDe},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaDmamInfo">
- update BIS_INSP_WAGA_DMAM_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="isCoarScw != null and isHirIrs != ''">IS_COAR_SCW = #{isCoarScw},</if>
- <if test="isHirIrs != null and isHirIrs != ''">IS_HIR_IRS = #{isHirIrs},</if>
- <if test="isIafditTemtdwi != null and isIafditTemtdwi != ''">IS_IAFDIT_TEMTDWI = #{isIafditTemtdwi},</if>
- <if test="isPrdRm != null and isPrdRm != ''">IS_PRD_RM = #{isPrdRm},</if>
- <if test="isMipThopeiee != null and isMipThopeiee != ''">IS_MIP_THOPEIEE = #{isMipThopeiee},</if>
- <if test="isHasSmameaf != null and isHasSmameaf != ''">IS_HAS_SMAMEAF = #{isHasSmameaf},</if>
- <if test="isTcosmacmd != null and isTcosmacmd != ''">IS_TCOSMACMD = #{isTcosmacmd},</if>
- <if test="isSaamdt != null and isSaamdt != ''">IS_SAAMDT = #{isSaamdt},</if>
- <if test="mosmeafIsArv != null and mosmeafIsArv != ''">MOSMEAF_IS_ARV = #{mosmeafIsArv},</if>
- <if test="isDlmtSomasop != null and isDlmtSomasop != ''">IS_DLMT_SOMASOP = #{isDlmtSomasop},</if>
- <if test="somasopIsIc != null and somasopIsIc != ''">SOMASOP_IS_IC = #{somasopIsIc},</if>
- <if test="somasopIsAtetsotp != null and somasopIsAtetsotp != ''">SOMASOP_IS_ATETSOTP = #{somasopIsAtetsotp},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="ctapIsCo != null and ctapIsCo != ''">CTAP_IS_CO = #{ctapIsCo},</if>
- <if test="epafcpIsEn != null and epafcpIsEn != ''">EPAFCP_IS_EN = #{epafcpIsEn},</if>
- <if test="safeIsCo != null and safeIsCo != ''">SAFE_IS_CO = #{safeIsCo},</if>
- <if test="plofmwIsH != null and plofmwIsH != ''">PLOFMW_IS_H = #{plofmwIsH},</if>
- <if test="fcemIsRes != null and fcemIsRes != ''">FCEM_IS_RES = #{fcemIsRes},</if>
- <if test="somasopIsDe != null and somasopIsDe != ''">SOMASOP_IS_DE = #{somasopIsDe},</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="somIsDe != null and somIsDe != ''">SOM_IS_DE = #{somIsDe},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|