| | |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog; |
| | | import org.jeecg.modules.eam.constant.AssetStatusEnum; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.EquipmentOperationTagEnum; |
| | | import org.jeecg.modules.eam.constant.EquipmentSealUpStatusEnum; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamEquipmentSealUp; |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @EquipmentHistoryLog(operationTag = EquipmentOperationTagEnum.SEAL_UP, businessTable = "eam_equipment_seal_up") |
| | | public EamEquipmentSealUp approval(EamEquipmentSealUpRequest request) { |
| | | EamEquipmentSealUp entity = equipmentSealUpMapper.selectById(request.getId()); |
| | | if (entity == null) { |
| | |
| | | values.put("NextAssignee", userApprovalList); |
| | | } else { |
| | | //设置entity |
| | | entity.setSealStatus(EquipmentSealUpStatusEnum.WAIT_SUBMIT.name()); |
| | | entity.setSealStatus(EquipmentSealUpStatusEnum.COMPLETE.name()); |
| | | // 修改设备状态 |
| | | equipment.setAssetStatus(AssetStatusEnum.NORMAL.name()); |
| | | eamEquipmentService.updateById(equipment); |