|
@@ -680,6 +680,10 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void verifyBigRepair(RepairApplicationFormDTO model) {
|
|
public void verifyBigRepair(RepairApplicationFormDTO model) {
|
|
|
|
+ String roles = getCurrentRoles();
|
|
|
|
+ if(!roles.contains(SysRoleCodeEnum.PRODUCE_VERIFY_USERS.name())){
|
|
|
|
+ throw new DeniedException("对不起,您不具有权限");
|
|
|
|
+ }
|
|
RepairApplicationForm form = repairApplicationFormMapper.selectByPrimaryKey(model.getId());
|
|
RepairApplicationForm form = repairApplicationFormMapper.selectByPrimaryKey(model.getId());
|
|
if(StringUtils.isBlank(form.getDispatchUserId())){
|
|
if(StringUtils.isBlank(form.getDispatchUserId())){
|
|
throw new DeniedException("所属工程师不能为空");
|
|
throw new DeniedException("所属工程师不能为空");
|
|
@@ -693,6 +697,7 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
|
|
updForm.setLevel(RepairApplicationFormLevelEnum.MRO.getValue());
|
|
updForm.setLevel(RepairApplicationFormLevelEnum.MRO.getValue());
|
|
type = CommonConstants.CALL_REPAIR_FINISH;
|
|
type = CommonConstants.CALL_REPAIR_FINISH;
|
|
}
|
|
}
|
|
|
|
+ repairApplicationFormMapper.updateByPrimaryKeySelective(updForm);
|
|
// 审核记录
|
|
// 审核记录
|
|
addRepairVerifyRecord(model,model.getVerifyStatus(),CommonConstants.TYPE_MOR_VERIFY);
|
|
addRepairVerifyRecord(model,model.getVerifyStatus(),CommonConstants.TYPE_MOR_VERIFY);
|
|
// 通知工程师
|
|
// 通知工程师
|