| | |
| | | String equipmentIds = operationCertificate.getEquipmentIds(); |
| | | Integer currentCycleScore = operationCertificate.getCurrentCycleScore(); |
| | | for (OperationCertificateDetail entity : operationCertificateDetailList) { |
| | | if ("addEquipment".equals(entity.getType())) { |
| | | if ("addEquipment".equals(entity.getType()) && !equipmentIds.contains(entity.getEquipmentId())) { |
| | | equipmentIds = equipmentIds + "," + entity.getEquipmentId(); |
| | | } else if ("deduction".equals(entity.getType())) { |
| | | String deductionItemId = entity.getDeductionItem(); |
| | |
| | | |
| | | } |
| | | operationCertificate.setEquipmentIds(equipmentIds); |
| | | if(currentCycleScore<=0){ |
| | | currentCycleScore=0; |
| | | if (currentCycleScore <= 0) { |
| | | currentCycleScore = 0; |
| | | // 当分数为0时,设置操作证的状态为禁用 |
| | | operationCertificate.setStatus(CommonConstant.STATUS_0); |
| | | } |
| | |
| | | String equipmentIds = operationCertificate.getEquipmentIds(); |
| | | Integer currentCycleScore = operationCertificate.getCurrentCycleScore(); |
| | | for (OperationCertificateDetail entity : operationCertificateDetailList) { |
| | | if ("addEquipment".equals(entity.getType())) { |
| | | if ("addEquipment".equals(entity.getType()) && !equipmentIds.contains(entity.getEquipmentId())) { |
| | | equipmentIds = equipmentIds + "," + entity.getEquipmentId(); |
| | | } else if ("deduction".equals(entity.getType())) { |
| | | String deductionItemId = entity.getDeductionItem(); |
| | |
| | | |
| | | } |
| | | operationCertificate.setEquipmentIds(equipmentIds); |
| | | if(currentCycleScore<=0){ |
| | | currentCycleScore=0; |
| | | if (currentCycleScore <= 0) { |
| | | currentCycleScore = 0; |
| | | // 当分数为0时,设置操作证的状态为禁用 |
| | | operationCertificate.setStatus(CommonConstant.STATUS_0); |
| | | } |