| | |
| | | List<ProductionMachineRecord> productionMachineRecords = productionMachineRecordMapper.selectList(Wrappers.<ProductionMachineRecord>lambdaQuery().eq(ProductionMachineRecord::getWorkOrderId, productionProductMain.getWorkOrderId())); |
| | | if (ObjectUtils.isNotEmpty(productionMachineRecords)) { |
| | | for (ProductionMachineRecord productionMachineRecord : productionMachineRecords) { |
| | | //说明已经添加过了,不添加了 |
| | | if (productionMachineRecord.getReportStatus()) { |
| | | continue; |
| | | } |
| | | for (String s : productionMachineRecord.getOperatorId().split(",")) { |
| | | Long minutes = 0L; |
| | | if (productionMachineRecord.getMachineStartTime() != null) { |
| | |
| | | .build(); |
| | | salesLedgerProductionAccountingMapper.insert(salesLedgerProductionAccounting); |
| | | } |
| | | |
| | | productionMachineRecord.setReportStatus(true); |
| | | productionMachineRecordMapper.updateById(productionMachineRecord); |
| | | } |
| | | } |
| | | } |