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);