| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <?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.TacPawpBstocmPlprsDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacPawpBstocmPlprs" id="tacPawpBstocmPlprsResultMap">
- <result property="id" column="ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="unitName" column="UNIT_NAME"/>
- <result property="legalName" column="LEGAL_NAME"/>
- <result property="techLead" column="TECH_LEAD"/>
- <result property="isPor" column="IS_POR"/>
- <result property="isClearIoapr" column="IS_CLEAR_IOAPR"/>
- <result property="domms" column="DOMMS"/>
- <result property="isHandQcp" column="IS_HAND_QCP"/>
- <result property="isHandFpfc" column="IS_HAND_FPFC"/>
- <result property="isSetPapor" column="IS_SET_PAPOR"/>
- <result property="isStart" column="IS_START"/>
- <result property="stTm" column="ST_TM"/>
- <result property="remark" column="REMARK"/>
- <result property="note" column="NOTE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
- <sql id="table_columns">
- ID,
- RGSTR_ID,
- UNIT_NAME,
- LEGAL_NAME,
- TECH_LEAD,
- IS_POR,
- IS_CLEAR_IOAPR,
- DOMMS,
- IS_HAND_QCP,
- IS_HAND_FPFC,
- IS_SET_PAPOR,
- IS_START,
- ST_TM,
- REMARK,
- NOTE,
- PERS_ID,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{rgstrId},
- #{unitName},
- #{legalName},
- #{techLead},
- #{isPor},
- #{isClearIoapr},
- #{domms},
- #{isHandQcp},
- #{isHandFpfc},
- #{isSetPapor},
- #{isStart},
- #{stTm},
- #{remark},
- #{note},
- #{persId},
- #{intm},
- #{uptm},
- #{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="unitName != null and unitName != ''">and UNIT_NAME like '%${unitName}%'</if>
- <if test="legalName != null and legalName != ''">and LEGAL_NAME like '%${legalName}%'</if>
- <if test="techLead != null and techLead != ''">and TECH_LEAD like '%${techLead}%'</if>
- <if test="isPor != null and isPor != ''">and IS_POR = #{isPor}</if>
- <if test="isClearIoapr != null and isClearIoapr != ''">and IS_CLEAR_IOAPR = #{isClearIoapr}</if>
- <if test="domms != null and domms != ''">and DOMMS = #{domms}</if>
- <if test="isHandQcp != null and isHandQcp != ''">and IS_HAND_QCP = #{isHandQcp}</if>
- <if test="isHandFpfc != null and isHandFpfc != ''">and IS_HAND_FPFC = #{isHandFpfc}</if>
- <if test="isSetPapor != null and isSetPapor != ''">and IS_SET_PAPOR = #{isSetPapor}</if>
- <if test="isStart != null and isStart != ''">and IS_START = #{isStart}</if>
- <if test="stTm != null">and ST_TM = #{stTm}</if>
- <if test="remark != null and remark != ''">and REMARK like '%${remark}%'</if>
- <if test="note != null and note != ''">and NOTE = #{note}</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="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- </trim>
- </sql>
- <select id="get" resultMap="tacPawpBstocmPlprsResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_PLPRS where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacPawpBstocmPlprsResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_PLPRS
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacPawpBstocmPlprsResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_PLPRS
- </select>
- <select id="findList" resultMap="tacPawpBstocmPlprsResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PAWP_BSTOCM_PLPRS
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PAWP_BSTOCM_PLPRS
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmPlprs">
- insert into TAC_PAWP_BSTOCM_PLPRS(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from TAC_PAWP_BSTOCM_PLPRS where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmPlprs">
- delete from TAC_PAWP_BSTOCM_PLPRS
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PAWP_BSTOCM_PLPRS set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmPlprs">
- update TAC_PAWP_BSTOCM_PLPRS
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="unitName != null">UNIT_NAME = #{unitName},</if>
- <if test="legalName != null">LEGAL_NAME = #{legalName},</if>
- <if test="techLead != null">TECH_LEAD = #{techLead},</if>
- <if test="isPor != null and isPor != ''">IS_POR = #{isPor},</if>
- <if test="isClearIoapr != null and isClearIoapr != ''">IS_CLEAR_IOAPR = #{isClearIoapr},</if>
- <if test="domms != null and domms != ''">DOMMS = #{domms},</if>
- <if test="isHandQcp != null and isHandQcp != ''">IS_HAND_QCP = #{isHandQcp},</if>
- <if test="isHandFpfc != null and isHandFpfc != ''">IS_HAND_FPFC = #{isHandFpfc},</if>
- <if test="isSetPapor != null and isSetPapor != ''">IS_SET_PAPOR = #{isSetPapor},</if>
- <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
- <if test="stTm != null">ST_TM = #{stTm},</if>
- <if test="remark != null">REMARK = #{remark},</if>
- <if test="note != null">NOTE = #{note},</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="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacPawpBstocmPlprs">
- update TAC_PAWP_BSTOCM_PLPRS
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="unitName != null">UNIT_NAME = #{unitName},</if>
- <if test="legalName != null">LEGAL_NAME = #{legalName},</if>
- <if test="techLead != null">TECH_LEAD = #{techLead},</if>
- <if test="isPor != null and isPor != ''">IS_POR = #{isPor},</if>
- <if test="isClearIoapr != null and isClearIoapr != ''">IS_CLEAR_IOAPR = #{isClearIoapr},</if>
- <if test="domms != null and domms != ''">DOMMS = #{domms},</if>
- <if test="isHandQcp != null and isHandQcp != ''">IS_HAND_QCP = #{isHandQcp},</if>
- <if test="isHandFpfc != null and isHandFpfc != ''">IS_HAND_FPFC = #{isHandFpfc},</if>
- <if test="isSetPapor != null and isSetPapor != ''">IS_SET_PAPOR = #{isSetPapor},</if>
- <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
- <if test="stTm != null">ST_TM = #{stTm},</if>
- <if test="remark != null">REMARK = #{remark},</if>
- <if test="note != null">NOTE = #{note},</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="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|