From b192b2f041eff93bb084bf70877af88ae0667dec Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期四, 17 四月 2025 17:52:42 +0800
Subject: [PATCH] [update]工单同步类 补充 process_status 字段

---
 aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml
index 1c37d2c..d8a6f91 100644
--- a/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml
+++ b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml
@@ -38,7 +38,11 @@
     </resultMap>
 
     <sql id="selectApsWorkOrderJobVo">
-        select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, del_flag, create_by, create_time, update_by, update_time from aps_work_order_job
+        select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type,
+               doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center,
+               dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index,
+               del_flag, create_by, create_time, update_by, update_time , process_status,org_code
+        from aps_work_order_job
     </sql>
 
     <select id="selectApsWorkOrderJobList" parameterType="ApsWorkOrderJob" resultMap="ApsWorkOrderJobResult">
@@ -68,6 +72,8 @@
             <if test="org != null  and org != ''"> and org = #{org}</if>
             <if test="pageNum != null "> and page_num = #{pageNum}</if>
             <if test="pageIndex != null "> and page_index = #{pageIndex}</if>
+            <if test="orgCode != null  and orgCode != ''"> and org_code = #{orgCode}</if>
+            <if test="processStatus != null  and processStatus != ''"> and process_status = #{processStatus}</if>
             <if test="delFlag != null  and delFlag != ''"> and del_flag = #{delFlag}</if>
         </where>
     </select>
@@ -109,6 +115,8 @@
             <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
+            <if test="orgCode != null">org_code,</if>
+            <if test="processStatus != null">process_status,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="orderId != null">#{orderId},</if>
@@ -140,6 +148,8 @@
             <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
+            <if test="orgCode != null">#{orgCode},</if>
+            <if test="processStatus != null">#{processStatus},</if>
          </trim>
     </insert>
 
@@ -221,7 +231,9 @@
             create_by,
             create_time,
             update_by,
-            update_time
+            update_time,
+            org_code,
+            process_status
         </trim>
         values
         <foreach collection="list" item="job" separator=",">
@@ -254,7 +266,9 @@
             #{job.createBy},
             #{job.createTime},
             #{job.updateBy},
-            #{job.updateTime}
+            #{job.updateTime},
+            #{job.orgCode},
+            #{job.processStatus}
             )
         </foreach>
     </insert>

--
Gitblit v1.9.3