修改每日统计
This commit is contained in:
parent
30bcd96482
commit
6612fee28c
@ -95,27 +95,33 @@ public class FactoryDataJob {
|
||||
// 插入 打包线以外数据
|
||||
for (FactoryDataInfoRespVO infoRespVO : infoRespVOS) {
|
||||
|
||||
// 插入出库数据
|
||||
FactoryDataDO outDO = new FactoryDataDO();
|
||||
if (infoRespVO.getOutNum() != null) {
|
||||
|
||||
outDO.setFactoryId(infoRespVO.getFactoryId());
|
||||
outDO.setDate(infoRespVO.getDate());
|
||||
outDO.setDataType(1);
|
||||
outDO.setTotalNum(infoRespVO.getOutNum());
|
||||
outDO.setDamageNum(infoRespVO.getOutDamageNum());
|
||||
// 插入出库数据
|
||||
FactoryDataDO outDO = new FactoryDataDO();
|
||||
|
||||
outFactoryDataDOs.add(outDO);
|
||||
outDO.setFactoryId(infoRespVO.getFactoryId());
|
||||
outDO.setDate(infoRespVO.getDate());
|
||||
outDO.setDataType(1);
|
||||
outDO.setTotalNum(infoRespVO.getOutNum());
|
||||
outDO.setDamageNum(infoRespVO.getOutDamageNum());
|
||||
|
||||
outFactoryDataDOs.add(outDO);
|
||||
}
|
||||
|
||||
// 插入入库数据
|
||||
FactoryDataDO inDO = new FactoryDataDO();
|
||||
if (infoRespVO.getInNum() != null) {
|
||||
|
||||
inDO.setFactoryId(infoRespVO.getFactoryId());
|
||||
inDO.setDate(infoRespVO.getDate());
|
||||
inDO.setDataType(2);
|
||||
inDO.setTotalNum(infoRespVO.getInNum());
|
||||
inDO.setDamageNum(infoRespVO.getInDamageNum());
|
||||
FactoryDataDO inDO = new FactoryDataDO();
|
||||
|
||||
outFactoryDataDOs.add(inDO);
|
||||
inDO.setFactoryId(infoRespVO.getFactoryId());
|
||||
inDO.setDate(infoRespVO.getDate());
|
||||
inDO.setDataType(2);
|
||||
inDO.setTotalNum(infoRespVO.getInNum());
|
||||
inDO.setDamageNum(infoRespVO.getInDamageNum());
|
||||
|
||||
outFactoryDataDOs.add(inDO);
|
||||
}
|
||||
}
|
||||
|
||||
// 插入
|
||||
|
Loading…
Reference in New Issue
Block a user