维修工单及项目生命周期记录完善
This commit is contained in:
parent
9c5c3343d4
commit
a46846134d
@ -137,12 +137,12 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
@Resource
|
@Resource
|
||||||
@Lazy
|
@Lazy
|
||||||
private RepairWorkerService repairWorkerService;
|
private RepairWorkerService repairWorkerService;
|
||||||
@Resource
|
|
||||||
private RepairWorkerService workerService;
|
|
||||||
@Resource
|
@Resource
|
||||||
@Lazy
|
@Lazy
|
||||||
private RepairRecordsService recordsService;
|
private RepairRecordsService recordsService;
|
||||||
@Autowired
|
|
||||||
|
@Resource
|
||||||
private RepairRecordsService repairRecordsService;
|
private RepairRecordsService repairRecordsService;
|
||||||
|
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
repairTicketsReqVO.setAdviserId(String.valueOf(SecurityFrameworkUtils.getLoginUserId()));
|
repairTicketsReqVO.setAdviserId(String.valueOf(SecurityFrameworkUtils.getLoginUserId()));
|
||||||
} else if (userRoleCode.equals(RepairRoleEnum.REPAIR_STAFF.getCode())) {
|
} else if (userRoleCode.equals(RepairRoleEnum.REPAIR_STAFF.getCode())) {
|
||||||
//维修工,进一步判断是否是班组长
|
//维修工,进一步判断是否是班组长
|
||||||
boolean ifLeader = workerService.getIfLeader();
|
boolean ifLeader = repairWorkerService.getIfLeader();
|
||||||
if (ifLeader) {
|
if (ifLeader) {
|
||||||
//班组长,看本班组所有数据
|
//班组长,看本班组所有数据
|
||||||
RepairWorker one = repairWorkerService.getOne(new LambdaQueryWrapper<RepairWorker>().eq(RepairWorker::getUserId, SecurityFrameworkUtils.getLoginUserId()));
|
RepairWorker one = repairWorkerService.getOne(new LambdaQueryWrapper<RepairWorker>().eq(RepairWorker::getUserId, SecurityFrameworkUtils.getLoginUserId()));
|
||||||
@ -544,7 +544,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
if (update != 1) {
|
if (update != 1) {
|
||||||
throw exception0(500, "工单已开始");
|
throw exception0(500, "工单已开始");
|
||||||
}
|
}
|
||||||
workerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理");
|
repairWorkerService.sentMessage(reqVO.getNowRepairId(), "您有新的工单要处理");
|
||||||
//最后记录操作日志--指派施工
|
//最后记录操作日志--指派施工
|
||||||
repairRecordsService.saveRepairRecord(reqVO.getId(), null, RecordTypeEnum.ZPSG.getCode(), "指派施工", null);
|
repairRecordsService.saveRepairRecord(reqVO.getId(), null, RecordTypeEnum.ZPSG.getCode(), "指派施工", null);
|
||||||
}
|
}
|
||||||
|
@ -83,10 +83,10 @@ public class DlTicketWaresServiceImpl extends ServiceImpl<DlTicketWaresMapper, D
|
|||||||
private RepairWaresService repairWaresService;
|
private RepairWaresService repairWaresService;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private RepairWorkerService workerService;
|
|
||||||
@Autowired
|
|
||||||
@Lazy
|
@Lazy
|
||||||
private DlRepairSoMapper dlRepairSoMapper;
|
private DlRepairSoMapper dlRepairSoMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
@Lazy
|
@Lazy
|
||||||
private RoleApi roleApi;
|
private RoleApi roleApi;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user