From 74b42527c6efca6f55a871a5ca38c2ea80a061fb Mon Sep 17 00:00:00 2001 From: lgh Date: Mon, 21 Nov 2022 09:16:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update:=20bug=E4=BF=AE=E6=94=B9=EF=BC=8Cflo?= =?UTF-8?q?at=E8=BD=ACdouble=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mt/wms/empty/task/AsynRunTaskService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java index e0f1047..5ec9e47 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java @@ -1257,7 +1257,9 @@ public class AsynRunTaskService extends BaseService { CreateItem createItem = new CreateItem(); createItem.setItemCode(e.getIdenCardNum()); createItem.setQuantity(e.getQuantity().intValue()); - createItem.setWeight(e.getWeight().doubleValue()); + //防止float转doule精度丢失 + BigDecimal b=new BigDecimal(String.valueOf(e.getWeight())); + createItem.setWeight(b.doubleValue()); createItems.add(createItem); }); //apmsCreateSheet.setStoveCode(code); From 5582a6929ce3a81bfc479e72cf7857c53ef11ef0 Mon Sep 17 00:00:00 2001 From: lgh Date: Mon, 21 Nov 2022 15:49:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update:=20=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=BF=A1=E6=81=AF=E7=BC=BA=E5=A4=B1=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java index 37498f0..4799308 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java @@ -199,6 +199,11 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService currTaskInfoVo.setNowStep(nowStep); currTaskInfoVo.setAutoExeTaskId(currTask.getAutoExeTaskId()); }else { + List currTaskVos=new ArrayList<>(); + CurrTaskVo currTaskVo=CurrTaskVo.builder().build(); + BeanUtils.copyProperties(currTask,currTaskVo); + currTaskVos.add(currTaskVo); + currTaskInfoVo.setCurrTaskVoList(currTaskVos); currTaskInfoVo.setAllStep(currTask.getTargetPosition()); if (currTask.getStatus()==1){ currTaskInfoVo.setNowStep(currTask.getTargetPosition());