修改重新派工逻辑

This commit is contained in:
xiaofajia 2024-11-05 10:37:01 +08:00
parent 38395104a8
commit 3f45d05344
3 changed files with 17 additions and 3 deletions

View File

@ -70,7 +70,10 @@ public enum RecordTypeEnum {
ZFGG("zfgg", "作废工单"), ZFGG("zfgg", "作废工单"),
/** 删除工单 */ /** 删除工单 */
SCGG("scgg", "删除工单"); SCGG("scgg", "删除工单"),
/** 内返派工 */
NFPG("nfpg", "内返派工");
/** /**
* code * code

View File

@ -962,8 +962,16 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
throw exception0(500, "工单已开始"); throw exception0(500, "工单已开始");
} }
repairWorkerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理"); repairWorkerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理");
//最后记录操作日志--指派施工 // 获取当前操作人的身份
repairRecordsService.saveRepairRecord(reqVO.getId(), null, RecordTypeEnum.ZPSG.getCode(), "指派施工", null); String userRole = getUserRole();
// 总检
if (userRole.equals(RepairRoleEnum.INSPECTION.getCode())){
repairRecordsService.saveRepairRecord(reqVO.getId(), null, RecordTypeEnum.NFPG.getCode(), reqVO.getRemark(), reqVO.getImage());
}else {
// 其他
//最后记录操作日志--指派施工
repairRecordsService.saveRepairRecord(reqVO.getId(), null, RecordTypeEnum.ZPSG.getCode(), "指派施工", null);
}
} }
/** /**

View File

@ -33,4 +33,7 @@ public class DlRepairTicketsReqVO extends DlRepairTickets {
/** 人员角色code */ /** 人员角色code */
private String roleCode; private String roleCode;
/** 图片路径 */
private String image;
} }