|
@@ -162,18 +162,18 @@ public class InStoreFormServiceImpl extends BaseServiceImpl<InStoreFormMapper, I
|
|
|
if (vo != null) {
|
|
|
//领用出库
|
|
|
if ((OutStoreTypeEnum.CHUKU_LINGYONG.getValue()).equals(vo.getType())) {
|
|
|
- lyNum = new BigDecimal(lyNum.intValue() + vo.getOutStoreNum().intValue());
|
|
|
+ lyNum = new BigDecimal( vo.getOutStoreNum().intValue());
|
|
|
}
|
|
|
//调拨出库
|
|
|
if ((OutStoreTypeEnum.CHUKU_DIAOBO.getValue()).equals(vo.getType())) {
|
|
|
- dbNum2 = new BigDecimal(dbNum2.intValue() + vo.getOutStoreNum().intValue());
|
|
|
+ dbNum2 = new BigDecimal(vo.getOutStoreNum().intValue());
|
|
|
}
|
|
|
//报废出库
|
|
|
if ((OutStoreTypeEnum.CHUKU_BAOFEI.getValue()).equals(vo.getType())) {
|
|
|
- bfNum = new BigDecimal(bfNum.intValue() + vo.getOutStoreNum().intValue());
|
|
|
+ bfNum = new BigDecimal(vo.getOutStoreNum().intValue());
|
|
|
}
|
|
|
if ((OutStoreTypeEnum.CHUKU_QITA.getValue()).equals(vo.getType()) || (OutStoreTypeEnum.STORE_CHECK.getValue()).equals(vo.getType())) {
|
|
|
- otherNum2 = new BigDecimal(otherNum2.intValue() + vo.getOutStoreNum().intValue());
|
|
|
+ otherNum2 = new BigDecimal(vo.getOutStoreNum().intValue());
|
|
|
}
|
|
|
|
|
|
|
|
@@ -185,18 +185,18 @@ public class InStoreFormServiceImpl extends BaseServiceImpl<InStoreFormMapper, I
|
|
|
System.out.println(vo.getType());
|
|
|
//采购入库
|
|
|
if (InStoreTypeEnum.CAIGOU_RUKU.getValue().equals(vo.getType())) {
|
|
|
- purchaseNum = new BigDecimal(lyNum.intValue() + vo.getInStoreNum().intValue());
|
|
|
+ purchaseNum = new BigDecimal(vo.getInStoreNum().intValue());
|
|
|
}
|
|
|
//闲置入库
|
|
|
if ((InStoreTypeEnum.XIANZHI_RUKU.getValue().equals(vo.getType()))) {
|
|
|
- xzNum = new BigDecimal(xzNum.intValue() + vo.getInStoreNum().intValue());
|
|
|
+ xzNum = new BigDecimal( vo.getInStoreNum().intValue());
|
|
|
}
|
|
|
//调拨入库
|
|
|
if ((InStoreTypeEnum.DIAOBO_RUKU.getValue()).equals(vo.getType())) {
|
|
|
- dbNum = new BigDecimal(bfNum.intValue() + vo.getInStoreNum().intValue());
|
|
|
+ dbNum = new BigDecimal( vo.getInStoreNum().intValue());
|
|
|
}
|
|
|
if ((InStoreTypeEnum.FAYUN_RUKU.getValue()).equals(vo.getType()) || (InStoreTypeEnum.STORE_CHECK.getValue()).equals(vo.getType())) {
|
|
|
- otherNum = new BigDecimal(otherNum.intValue() + vo.getInStoreNum().intValue());
|
|
|
+ otherNum = new BigDecimal( vo.getInStoreNum().intValue());
|
|
|
}
|
|
|
}
|
|
|
|