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/ApsStandardProcessMapper.xml |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml
index 144bfb7..8fe7b9a 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml
@@ -4,7 +4,7 @@
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.aps.core.mapper.ApsStandardProcessMapper">
     
-    <resultMap type="ApsStandardProcess" id="ApsStandardProcessResult">
+    <resultMap type="com.aps.core.domain.ApsStandardProcess" id="ApsStandardProcessResult">
         <result property="id"    column="id"    />
         <result property="processNumber"    column="process_number"    />
         <result property="processName"    column="process_name"    />
@@ -23,13 +23,14 @@
         <result property="updateTime"    column="update_time"    />
         <result property="modelId"    column="model_id"    />
         <result property="workCalender"    column="work_calender"    />
+        <result property="major"    column="major"    />
     </resultMap>
 
     <sql id="selectApsStandardProcessVo">
-        select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender from aps_standard_process
+        select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender,major from aps_standard_process
     </sql>
 
-    <select id="selectApsStandardProcessList" parameterType="ApsStandardProcess" resultMap="ApsStandardProcessResult">
+    <select id="selectApsStandardProcessList" parameterType="com.aps.core.domain.ApsStandardProcess" resultMap="ApsStandardProcessResult">
         <include refid="selectApsStandardProcessVo"/>
         <where>  
             <if test="processNumber != null  and processNumber != ''"> and process_number = #{processNumber}</if>
@@ -44,6 +45,7 @@
             <if test="workCalenderId != null "> and work_calender_id = #{workCalenderId}</if>
             <if test="modelId != null "> and model_id = #{modelId}</if>
             <if test="workCalender != null  and workCalender != ''"> and work_calender = #{workCalender}</if>
+            <if test="major != null  and major != ''"> and major = #{major}</if>
         </where>
     </select>
     
@@ -52,10 +54,9 @@
         where id = #{id}
     </select>
 
-    <insert id="insertApsStandardProcess" parameterType="ApsStandardProcess">
+    <insert id="insertApsStandardProcess" parameterType="com.aps.core.domain.ApsStandardProcess">
         insert into aps_standard_process
         <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
             <if test="processNumber != null">process_number,</if>
             <if test="processName != null">process_name,</if>
             <if test="resourceGroupName != null">resource_group_name,</if>
@@ -73,9 +74,9 @@
             <if test="updateTime != null">update_time,</if>
             <if test="modelId != null">model_id,</if>
             <if test="workCalender != null">work_calender,</if>
+            <if test="major != null">major,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
             <if test="processNumber != null">#{processNumber},</if>
             <if test="processName != null">#{processName},</if>
             <if test="resourceGroupName != null">#{resourceGroupName},</if>
@@ -93,10 +94,11 @@
             <if test="updateTime != null">#{updateTime},</if>
             <if test="modelId != null">#{modelId},</if>
             <if test="workCalender != null">#{workCalender},</if>
+            <if test="major != null">#{major},</if>
          </trim>
     </insert>
 
-    <update id="updateApsStandardProcess" parameterType="ApsStandardProcess">
+    <update id="updateApsStandardProcess" parameterType="com.aps.core.domain.ApsStandardProcess">
         update aps_standard_process
         <trim prefix="SET" suffixOverrides=",">
             <if test="processNumber != null">process_number = #{processNumber},</if>
@@ -116,6 +118,7 @@
             <if test="updateTime != null">update_time = #{updateTime},</if>
             <if test="modelId != null">model_id = #{modelId},</if>
             <if test="workCalender != null">work_calender = #{workCalender},</if>
+            <if test="major != null">major = #{major},</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3