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} - +