bug修改,float转double精度丢失
This commit is contained in:
lgh 2022-11-21 09:16:26 +08:00
부모 b407f99872
커밋 74b42527c6

파일 보기

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