|
@@ -122,8 +122,12 @@ public class OyeResultServiceImpl implements IOyeResultService {
|
|
|
OyeInboundResults.add(oyeInboundResult);
|
|
|
}
|
|
|
oyeInboundResultMapper.batchInsert(OyeInboundResults);
|
|
|
- oyeRealtimeInventoryMapper.batchInsert(oyeRealtimeInventoriesInsert);
|
|
|
- oyeRealtimeInventoryMapper.batchUpdate(oyeRealtimeInventoriesUpdate);
|
|
|
+ if (oyeRealtimeInventoriesInsert.size() > 0) {
|
|
|
+ oyeRealtimeInventoryMapper.batchInsert(oyeRealtimeInventoriesInsert);
|
|
|
+ }
|
|
|
+ if (oyeRealtimeInventoriesUpdate.size() > 0) {
|
|
|
+ oyeRealtimeInventoryMapper.batchUpdate(oyeRealtimeInventoriesUpdate);
|
|
|
+ }
|
|
|
return "入库成功";
|
|
|
}
|
|
|
|
|
@@ -257,6 +261,7 @@ public class OyeResultServiceImpl implements IOyeResultService {
|
|
|
BigDecimal weightBatchId = tmstruckWeightBatchMapper.weightBatchID();
|
|
|
tmstruckWeightBatch.setId(weightBatchId);
|
|
|
tmstruckWeightBatch.setBatchNetWeight(DataChange.dataToBigDecimal(map.get("netWeight")));
|
|
|
+ tmstruckWeightBatch.setBatchGrossWeightTime(new Date());
|
|
|
tmstruckWeightBatch.setBatchRemark("出库生成批次");
|
|
|
return tmstruckWeightBatch;
|
|
|
}
|