| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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.BisInspWagaMrsCiDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWagaMrsCi" id="bisInspWagaMrsCiResultMap">
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="wmbpIsC" column="WMBP_IS_C"/>
- <result property="pssIsH" column="PSS_IS_H"/>
- <result property="pssIsC" column="PSS_IS_C"/>
- <result property="prftaofcIsH" column="PRFTAOFC_IS_H"/>
- <result property="prftaofcInfo" column="PRFTAOFC_INFO"/>
- <result property="befpIsFip" column="BEFP_IS_FIP"/>
- <result property="pmameIsFip" column="PMAME_IS_FIP"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="reverOrg" column="REVER_ORG"/>
- <result property="reverOrgName" column="REVER_ORG_NAME"/>
- </resultMap>
- <sql id="table_columns">
- UPTM,
- DATA_STAT,
- ID,
- RGSTR_ID,
- WMBP_IS_C,
- PSS_IS_H,
- PSS_IS_C,
- PRFTAOFC_IS_H,
- PRFTAOFC_INFO,
- BEFP_IS_FIP,
- PMAME_IS_FIP,
- REC_PERS_ID,
- INTM,REVER_ORG,REVER_ORG_NAME
- </sql>
- <sql id="entity_properties">
- #{uptm},
- #{dataStat},
- #{id},
- #{rgstrId},
- #{wmbpIsC},
- #{pssIsH},
- #{pssIsC},
- #{prftaofcIsH},
- #{prftaofcInfo},
- #{befpIsFip},
- #{pmameIsFip},
- #{recPersId},
- #{intm},#{reverOrg},#{reverOrgName}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="wmbpIsC != null and wmbpIsC != ''">and WMBP_IS_C = #{wmbpIsC}</if>
- <if test="pssIsH != null and pssIsH != ''">and PSS_IS_H = #{pssIsH}</if>
- <if test="pssIsC != null and pssIsC != ''">and PSS_IS_C = #{pssIsC}</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">and PRFTAOFC_IS_H = #{prftaofcIsH}</if>
- <if test="prftaofcInfo != null and prftaofcInfo != ''">and PRFTAOFC_INFO = #{prftaofcInfo}</if>
- <if test="befpIsFip != null and befpIsFip != ''">and BEFP_IS_FIP = #{befpIsFip}</if>
- <if test="pmameIsFip != null and pmameIsFip != ''">and PMAME_IS_FIP = #{pmameIsFip}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="reverOrg != null and reverOrg != ''">and rever_Org = #{reverOrg}</if>
- <if test="reverOrgName != null and reverOrgName != ''">and rever_Org_Name = #{reverOrgName}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWagaMrsCiResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WAGA_MRS_CI where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWagaMrsCiResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WAGA_MRS_CI
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWagaMrsCiResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WAGA_MRS_CI
- </select>
- <select id="findList" resultMap="bisInspWagaMrsCiResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WAGA_MRS_CI
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WAGA_MRS_CI
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaMrsCi">
- insert into BIS_INSP_WAGA_MRS_CI(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WAGA_MRS_CI where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaMrsCi">
- delete from BIS_INSP_WAGA_MRS_CI
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WAGA_MRS_CI set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaMrsCi">
- update BIS_INSP_WAGA_MRS_CI
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wmbpIsC != null and wmbpIsC != ''">WMBP_IS_C = #{wmbpIsC},</if>
- <if test="pssIsH != null and pssIsH != ''">PSS_IS_H = #{pssIsH},</if>
- <if test="pssIsC != null and pssIsC != ''">PSS_IS_C = #{pssIsC},</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">PRFTAOFC_IS_H = #{prftaofcIsH},</if>
- <if test="prftaofcInfo != null and prftaofcInfo != ''">PRFTAOFC_INFO = #{prftaofcInfo},</if>
- <if test="befpIsFip != null and befpIsFip != ''">BEFP_IS_FIP = #{befpIsFip},</if>
- <if test="pmameIsFip != null and pmameIsFip != ''">PMAME_IS_FIP = #{pmameIsFip},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="reverOrg != null and reverOrg != ''">rever_Org = #{reverOrg},</if>
- <if test="reverOrgName != null and reverOrgName != ''">rever_Org_Name = #{reverOrgName},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWagaMrsCi">
- update BIS_INSP_WAGA_MRS_CI
- <trim prefix="set" suffixOverrides=",">
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wmbpIsC != null and wmbpIsC != ''">WMBP_IS_C = #{wmbpIsC},</if>
- <if test="pssIsH != null and pssIsH != ''">PSS_IS_H = #{pssIsH},</if>
- <if test="pssIsC != null and pssIsC != ''">PSS_IS_C = #{pssIsC},</if>
- <if test="prftaofcIsH != null and prftaofcIsH != ''">PRFTAOFC_IS_H = #{prftaofcIsH},</if>
- <if test="prftaofcInfo != null and prftaofcInfo != ''">PRFTAOFC_INFO = #{prftaofcInfo},</if>
- <if test="befpIsFip != null and befpIsFip != ''">BEFP_IS_FIP = #{befpIsFip},</if>
- <if test="pmameIsFip != null and pmameIsFip != ''">PMAME_IS_FIP = #{pmameIsFip},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="reverOrg != null and reverOrg != ''">rever_Org = #{reverOrg},</if>
- <if test="reverOrgName != null and reverOrgName != ''">rever_Org_Name = #{reverOrgName},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|