|
|
|
@ -478,7 +478,7 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
int sizeLength = size.length;
|
|
|
|
|
BigDecimal length = new BigDecimal(size[sizeLength-1]);
|
|
|
|
|
BigDecimal width = new BigDecimal(size[sizeLength-2]);
|
|
|
|
|
BigDecimal sizeReqQty = length.multiply(width).multiply(reqQty);
|
|
|
|
|
BigDecimal sizeReqQty = length.multiply(width).multiply(reqQty).divide(new BigDecimal(1000000));
|
|
|
|
|
callItem.setSizeReqQty(sizeReqQty);
|
|
|
|
|
|
|
|
|
|
//按物料汇总需求数量
|
|
|
|
@ -495,7 +495,7 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
if (size != null && size.length >= 1) {
|
|
|
|
|
int sizeLength = size.length;
|
|
|
|
|
BigDecimal length = new BigDecimal(size[sizeLength-1]);
|
|
|
|
|
BigDecimal sizeReqQty = length.multiply(reqQty);
|
|
|
|
|
BigDecimal sizeReqQty = length.multiply(reqQty).divide(new BigDecimal(1000));
|
|
|
|
|
callItem.setSizeReqQty(sizeReqQty);
|
|
|
|
|
|
|
|
|
|
//按物料汇总需求数量
|
|
|
|
|