| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsPlateProcessShopStatMapper"> |
| | | |
| | | <resultMap type="ApsPlateProcessShopStat" id="ApsPlateProcessShopStatResult"> |
| | | <resultMap type="com.aps.core.domain.ApsPlateProcessShopStat" id="ApsPlateProcessShopStatResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="docNo" column="doc_no" /> |
| | | <result property="shopCode" column="shop_code" /> |
| | |
| | | from aps_plate_process_shop_stat |
| | | </sql> |
| | | |
| | | <select id="selectApsPlateProcessShopStatList" parameterType="ApsPlateProcessShopStat" resultMap="ApsPlateProcessShopStatResult"> |
| | | <select id="selectApsPlateProcessShopStatList" parameterType="com.aps.core.domain.ApsPlateProcessShopStat" resultMap="ApsPlateProcessShopStatResult"> |
| | | <include refid="selectApsPlateProcessShopStatVo"/> |
| | | <where> |
| | | <if test="docNo != null and docNo != ''"> and doc_no = #{docNo}</if> |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsPlateProcessShopStat" parameterType="ApsPlateProcessShopStat" useGeneratedKeys="true" keyProperty="id"> |
| | | <insert id="insertApsPlateProcessShopStat" parameterType="com.aps.core.domain.ApsPlateProcessShopStat" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into aps_plate_process_shop_stat |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="docNo != null">doc_no,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsPlateProcessShopStat" parameterType="ApsPlateProcessShopStat"> |
| | | <update id="updateApsPlateProcessShopStat" parameterType="com.aps.core.domain.ApsPlateProcessShopStat"> |
| | | update aps_plate_process_shop_stat |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="docNo != null">doc_no = #{docNo},</if> |