From 4a0d942d3e8eeff1b9863465840fe9d57e4129ae Mon Sep 17 00:00:00 2001 From: hongtianzai Date: Tue, 25 Jan 2022 16:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/service/udplat/impl/UdplatGoodsServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api-admin/src/main/java/com/glxp/udidl/admin/service/udplat/impl/UdplatGoodsServiceImpl.java b/api-admin/src/main/java/com/glxp/udidl/admin/service/udplat/impl/UdplatGoodsServiceImpl.java index 6aaad88..8a44eb1 100644 --- a/api-admin/src/main/java/com/glxp/udidl/admin/service/udplat/impl/UdplatGoodsServiceImpl.java +++ b/api-admin/src/main/java/com/glxp/udidl/admin/service/udplat/impl/UdplatGoodsServiceImpl.java @@ -105,7 +105,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService { if(goodId == null || goodId.isEmpty()) continue; UdplatGoods goods = udplatGoodsMapper.selectByGoodId(goodId); - HospitalGoodsToUdplatGoods(item,goods); + goods = HospitalGoodsToUdplatGoods(item,goods); if(goods.getId()>0){ goods.setUpdateTime(new Date()); udplatGoodsMapper.update(goods); @@ -141,7 +141,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService { } return count; } - private void HospitalGoodsToUdplatGoods(HospitalGoods hospitalGoods, UdplatGoods udplatGoods){ + private UdplatGoods HospitalGoodsToUdplatGoods(HospitalGoods hospitalGoods, UdplatGoods udplatGoods){ if(udplatGoods == null){ udplatGoods = new UdplatGoods(); udplatGoods.setId(0L); @@ -161,6 +161,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService { udplatGoods.setChangedContent(hospitalGoods.getChangedContent()); udplatGoods.setChangedTime(hospitalGoods.getChangedTime()); udplatGoods.setMedicalCode(hospitalGoods.getMedicalCode()); + return udplatGoods; } private UdplatGoods DeliveryGoodsToUdplatGoods(DeliveryGoods deliveryGoods, UdplatGoods udplatGoods){ if(udplatGoods == null)