修改重新派工逻辑
This commit is contained in:
parent
38395104a8
commit
3f45d05344
@ -70,7 +70,10 @@ public enum RecordTypeEnum {
|
||||
ZFGG("zfgg", "作废工单"),
|
||||
|
||||
/** 删除工单 */
|
||||
SCGG("scgg", "删除工单");
|
||||
SCGG("scgg", "删除工单"),
|
||||
|
||||
/** 内返派工 */
|
||||
NFPG("nfpg", "内返派工");
|
||||
|
||||
/**
|
||||
* code
|
||||
|
@ -962,9 +962,17 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
throw exception0(500, "工单已开始");
|
||||
}
|
||||
repairWorkerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理");
|
||||
// 获取当前操作人的身份
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新工单状态(针对开始施工、施工中记录、施工完成)
|
||||
|
@ -33,4 +33,7 @@ public class DlRepairTicketsReqVO extends DlRepairTickets {
|
||||
|
||||
/** 人员角色code */
|
||||
private String roleCode;
|
||||
|
||||
/** 图片路径 */
|
||||
private String image;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user