From c24fc66a6965dcabd8e69b63cfdf49b5dfba3030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Wed, 26 Nov 2025 18:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=20=E7=94=B3=E8=AF=B7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/notify/entity/SOIssueNotifyOrderList.java | 7 +++++++ src/main/resources/mapper/customer/ShipmentIssueMapper.xml | 4 +++- src/main/resources/mapper/notify/IssureNotifyMapper.xml | 5 +++-- src/main/resources/mapper/notify/NewIssureMapper.xml | 5 ++--- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gaotao/modules/notify/entity/SOIssueNotifyOrderList.java b/src/main/java/com/gaotao/modules/notify/entity/SOIssueNotifyOrderList.java index a1c3cce..8df3b81 100644 --- a/src/main/java/com/gaotao/modules/notify/entity/SOIssueNotifyOrderList.java +++ b/src/main/java/com/gaotao/modules/notify/entity/SOIssueNotifyOrderList.java @@ -1,5 +1,6 @@ package com.gaotao.modules.notify.entity; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; @@ -73,6 +74,12 @@ public class SOIssueNotifyOrderList implements Serializable { * 订单类型(shoporder/customer等)- rqrq */ private String orderType; + + /** + * 配送区域描述(通过production_area关联area表获取的area_desc,非数据库字段)- rqrq + */ + @TableField(exist = false) + private String areaDesc; } diff --git a/src/main/resources/mapper/customer/ShipmentIssueMapper.xml b/src/main/resources/mapper/customer/ShipmentIssueMapper.xml index 87cf759..a81d103 100644 --- a/src/main/resources/mapper/customer/ShipmentIssueMapper.xml +++ b/src/main/resources/mapper/customer/ShipmentIssueMapper.xml @@ -11,10 +11,12 @@ where a.site=#{site} and a.username=#{username} and a.status='UNISSUE' and a.order_type='shipment' order by a.entered_date desc + select a.notify_no,a.site,a.item_no,a.fgpart_no,a.soorder_no,a.ops_item_no,a.seq_no,a.issure_qty,a.out_work_order_flag,a.location_no,a.need_date - ,a.release_no,a.sequence_no,a.order_type + ,a.release_no,a.sequence_no,a.order_type,a.push_wms_flag,a.transport_flag,a.production_area,ar.area_desc as areaDesc from SOIssueNotifyOrderList a + LEFT JOIN area ar ON a.production_area = ar.area_id where a.site=#{site} and a.notify_no=#{notifyNo} diff --git a/src/main/resources/mapper/notify/NewIssureMapper.xml b/src/main/resources/mapper/notify/NewIssureMapper.xml index ee44f59..55e2ce8 100644 --- a/src/main/resources/mapper/notify/NewIssureMapper.xml +++ b/src/main/resources/mapper/notify/NewIssureMapper.xml @@ -82,7 +82,7 @@ b.area_desc as areaDesc from SOIssueNotifyOrderList a left join area b on a.production_area = b.area_id - where a.notify_no=#{notifyNo} and a.site=#{site} and a.order_type='shoporder' + where a.notify_no=#{notifyNo} and a.site=#{site} order by a.item_no @@ -359,7 +359,7 @@ AND unit_id = #{serialNo} - +