update:
bug修改,float转double精度丢失
This commit is contained in:
parent
b407f99872
commit
74b42527c6
@ -1257,7 +1257,9 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
CreateItem createItem = new CreateItem();
|
CreateItem createItem = new CreateItem();
|
||||||
createItem.setItemCode(e.getIdenCardNum());
|
createItem.setItemCode(e.getIdenCardNum());
|
||||||
createItem.setQuantity(e.getQuantity().intValue());
|
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);
|
createItems.add(createItem);
|
||||||
});
|
});
|
||||||
//apmsCreateSheet.setStoveCode(code);
|
//apmsCreateSheet.setStoveCode(code);
|
||||||
|
Loading…
Reference in New Issue
Block a user