Merge branch 'repair' of http://122.51.230.86:3000/dianliang/lanan-system into repair
# Conflicts: # dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java
This commit is contained in:
commit
6148f263af
@ -74,7 +74,10 @@ public enum RecordTypeEnum {
|
||||
ZFGG("zfgg", "作废工单"),
|
||||
|
||||
/** 删除工单 */
|
||||
SCGG("scgg", "删除工单");
|
||||
SCGG("scgg", "删除工单"),
|
||||
|
||||
/** 内返派工 */
|
||||
NFPG("nfpg", "内返派工");
|
||||
|
||||
/**
|
||||
* code
|
||||
|
@ -961,11 +961,21 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
throw exception0(500, "工单已开始");
|
||||
}
|
||||
repairWorkerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理");
|
||||
//最后记录操作日志--指派施工
|
||||
|
||||
//最后记录操作日志--指派施工--pull下来的逻辑
|
||||
String code = RecordTypeEnum.ZPSG.getCode();
|
||||
String remark ="指派施工";
|
||||
// 获取当前操作人的身份----小李新加的逻辑
|
||||
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, code, remark, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新工单状态(针对开始施工、施工中记录、施工完成)
|
||||
|
@ -34,6 +34,6 @@ public class DlRepairTicketsReqVO extends DlRepairTickets {
|
||||
/** 人员角色code */
|
||||
private String roleCode;
|
||||
|
||||
/** 操作类型默认是指派施工 --zpsg */
|
||||
private String operateCode;
|
||||
/** 图片路径 */
|
||||
private String image;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user