From dadf503b15f3423980ad2bc17d23ea1a444aca10 Mon Sep 17 00:00:00 2001
From: huangjiayang <5265313@qq.com>
Date: 星期三, 14 五月 2025 17:48:00 +0800
Subject: [PATCH] 【UPDATE】修改mapper适配mybatis-plus
---
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessShopStatMapper.xml | 32 ++++++++++++++++++++++++--------
1 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessShopStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessShopStatMapper.xml
index 3292fc1..8951097 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessShopStatMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessShopStatMapper.xml
@@ -4,7 +4,7 @@
"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" />
@@ -16,13 +16,18 @@
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
+ <result property="processNumber" column="process_number" />
+ <result property="workCenter" column="work_center" />
+
</resultMap>
<sql id="selectApsPlateProcessShopStatVo">
- select id, doc_no, shop_code, shop_name, plan_start_date, plan_end_date, del_flag, create_by, create_time, update_by, update_time from aps_plate_process_shop_stat
+ select id, doc_no, shop_code, shop_name, plan_start_date, plan_end_date, del_flag, create_by, create_time, update_by, update_time,
+ process_number,work_center
+ 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>
@@ -30,7 +35,10 @@
<if test="shopName != null and shopName != ''"> and shop_name = #{shopName}</if>
<if test="planStartDate != null and planStartDate != ''"> and plan_start_date = #{planStartDate}</if>
<if test="planEndDate != null and planEndDate != ''"> and plan_end_date = #{planEndDate}</if>
- and del_flag='0'
+
+ <if test="processNumber != null and processNumber != ''"> and process_number = #{processNumber}</if>
+ <if test="workCenter != null and workCenter != ''"> and work_center = #{workCenter}</if>
+ and del_flag='0'
</where>
</select>
@@ -39,7 +47,7 @@
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>
@@ -52,6 +60,8 @@
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
+ <if test="processNumber != null">process_number,</if>
+ <if test="workCenter != null">work_center,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="docNo != null">#{docNo},</if>
@@ -64,10 +74,12 @@
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
+ <if test="processNumber != null">#{processNumber},</if>
+ <if test="workCenter != null">#{workCenter},</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>
@@ -100,7 +112,9 @@
<insert id="batchInsert" parameterType="java.util.List">
insert into aps_plate_process_shop_stat
- (doc_no, shop_code, shop_name, plan_start_date, plan_end_date, del_flag, create_by, create_time)
+ (doc_no, shop_code, shop_name, plan_start_date, plan_end_date, del_flag, create_by, create_time,
+ process_number, work_center
+ )
values
<foreach collection="list" item="item" separator=",">
(
@@ -111,7 +125,9 @@
#{item.planEndDate},
#{item.delFlag},
#{item.createBy},
- #{item.createTime}
+ #{item.createTime},
+ #{item.processNumber},
+ #{item.workCenter}
)
</foreach>
</insert>
--
Gitblit v1.9.3