From 31f9aa0f3d10b10223f095de42fe009087df309d Mon Sep 17 00:00:00 2001
From: yuqh <123456>
Date: Fri, 25 Apr 2025 11:08:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=90=89=E5=AE=A2=E4=BA=91?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goodsdocin/entity/GoodsdocInDetailEntity.xml | 10 ++++++----
.../goodsdocin/entity/GoodsdocInEntity.xml | 12 ++++++------
.../service/impl/GoodsdocInServiceImpl.java | 15 +++++++++++++--
.../service/impl/DeliveryOrderServiceImpl.java | 1 -
4 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInDetailEntity.xml b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInDetailEntity.xml
index 45e10d50..fb61e51c 100644
--- a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInDetailEntity.xml
+++ b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInDetailEntity.xml
@@ -143,16 +143,18 @@
diff --git a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInEntity.xml b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInEntity.xml
index eda8f4f8..85716647 100644
--- a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInEntity.xml
+++ b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/entity/GoodsdocInEntity.xml
@@ -171,7 +171,7 @@
where warehouseName = '退货仓'
and state is null
and goodsdocNo in (
-
+
#{item.goodsdocNo},
@@ -446,13 +446,13 @@
update jeck_goodsdocin set
- #{state} ,
- #{u8BillCode}
+ state= #{state} ,
+ u8BillCode=#{u8BillCode}
- where recId in (
-
+ where goodsdocNo in (
+
- #{recId},
+ #{item.goodsdocNo},
)
diff --git a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/service/impl/GoodsdocInServiceImpl.java b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/service/impl/GoodsdocInServiceImpl.java
index 8989bc07..49df4fd0 100644
--- a/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/service/impl/GoodsdocInServiceImpl.java
+++ b/service/src/main/java/com/hzya/frame/Jackyun/goodsdocin/service/impl/GoodsdocInServiceImpl.java
@@ -208,7 +208,10 @@ public class GoodsdocInServiceImpl extends BaseService
U8ResultEntity u8ResultOut =saleOutService.addSaleOutT(saleOut);
if(!u8ResultOut.issuccess()){
goodsdocInEntity.setState("N");
+ }else{
+ goodsdocInEntity.setState("Y");
}
+ goodsdocInEntity.setGroupList(goodsdocInEntityList);
goodsdocInDao.updateGoodsdocIn(goodsdocInEntity);
}
}
@@ -229,17 +232,22 @@ public class GoodsdocInServiceImpl extends BaseService
jsonObject.put("billid", "123");
JSONObject head = new JSONObject();
head.put("cbuscode", goodsdocInEntity.getU8BillCode());//发货单号
- head.put("cdepcode", "普通销售");//部门编码
+ head.put("cdepcode", "00702");//todo 部门编码
head.put("cmaker", "吉客云入库单自动生成");//创建人
head.put("crdcode", "203");//入库类别编码
- head.put("cdepcode", "01001");//仓库编码 todo 正式需要切换为04009
+ head.put("cwhcode", "01001");//仓库编码 todo 正式需要切换为04009
head.put("ddate", "2024-12-31");//销售类型
+ // head.put("ccuscode", "99999994");//todo 正式需要切换未这个客户
+ head.put("ccuscode", "01010918");//客户
jsonObject.put("head",head);
JSONArray body = new JSONArray();
int i = 0;
if(CollectionUtils.isNotEmpty(goodsdocInDetailEntityList)){
for(GoodsdocInDetailEntity item : goodsdocInDetailEntityList){
i++;
+ if("501010323".equals(item.getGoodsNo())){
+ continue;
+ }
JSONObject details = new JSONObject();
details.put("cbdlcode",goodsdocInEntity.getU8BillCode());//发货单号
details.put("cdblrowno", i);//行号
@@ -258,9 +266,12 @@ public class GoodsdocInServiceImpl extends BaseService
jsonObject.put("billid", "123");
JSONObject head = new JSONObject();
head.put("brdflag", "1");//发货0,退货1
+ head.put("breturnflag", "1");//发货0,退货1
head.put("cbustype", "普通销售");//
head.put("cdepcode", "00702");//销售部门
head.put("cmaker", "吉客云入库单自动生成");//创建人
+// head.put("ccuscode", "99999994");//todo 正式需要切换未这个客户
+ head.put("ccuscode", "01010918");//客户
head.put("cstcode", "11");//销售类型
head.put("ddate", "2024-12-31");//销售类型
jsonObject.put("head",head);
diff --git a/service/src/main/java/com/hzya/frame/u8/delivery/service/impl/DeliveryOrderServiceImpl.java b/service/src/main/java/com/hzya/frame/u8/delivery/service/impl/DeliveryOrderServiceImpl.java
index 7e3ee64c..5d2d3427 100644
--- a/service/src/main/java/com/hzya/frame/u8/delivery/service/impl/DeliveryOrderServiceImpl.java
+++ b/service/src/main/java/com/hzya/frame/u8/delivery/service/impl/DeliveryOrderServiceImpl.java
@@ -872,7 +872,6 @@ public class DeliveryOrderServiceImpl extends BaseService