修改所有用到工单号to车牌号
This commit is contained in:
parent
6de3b73fc2
commit
ce90f714e2
@ -1052,7 +1052,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
施工完成又分四种情况:阶段完成、完成并移交下一班组、完成并移交总检、完成工单,其中部分完成同开始施工、施工中的记录上传一致,只上传,不改变
|
施工完成又分四种情况:阶段完成、完成并移交下一班组、完成并移交总检、完成工单,其中部分完成同开始施工、施工中的记录上传一致,只上传,不改变
|
||||||
*/
|
*/
|
||||||
// 消息生成
|
// 消息生成
|
||||||
String message = createMessage(tickets.getNowRepairName(), tickets.getTicketNo(), titem.getItemName(), respVO.getRecordType(), respVO.getFinishType(), respVO.getNextName());
|
String message = createMessage(tickets.getNowRepairName(), tickets.getCarNo(), titem.getItemName(), respVO.getRecordType(), respVO.getFinishType(), respVO.getNextName());
|
||||||
// 通知服务顾问
|
// 通知服务顾问
|
||||||
// 如果员工完成了订单
|
// 如果员工完成了订单
|
||||||
if (RecordTypeEnum.SGWCZJ.getCode().equals(respVO.getRecordType()) && "03".equals(respVO.getFinishType())) {
|
if (RecordTypeEnum.SGWCZJ.getCode().equals(respVO.getRecordType()) && "03".equals(respVO.getFinishType())) {
|
||||||
@ -1116,14 +1116,14 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
// 开始施工
|
// 开始施工
|
||||||
case "kssg":
|
case "kssg":
|
||||||
return result + "开始施工工单:" + no + "中" + projectName + "项目";
|
return result + "开始施工车牌为:" + no + "工单中" + projectName + "项目";
|
||||||
// 施工记录
|
// 施工记录
|
||||||
case "sgz":
|
case "sgz":
|
||||||
return result + "上传了工单:" + no + "中" + projectName + "项目的维修记录";
|
return result + "上传了车牌为:" + no + "工单中" + projectName + "项目的维修记录";
|
||||||
// 施工完成
|
// 施工完成
|
||||||
case "sgwczj":
|
case "sgwczj":
|
||||||
if (ObjectUtil.isNotEmpty(finishType)) {
|
if (ObjectUtil.isNotEmpty(finishType)) {
|
||||||
result = result + "完成了工单:" + no + "中" + projectName + "项目";
|
result = result + "完成了车牌为:" + no + "工单中" + projectName + "项目";
|
||||||
switch (finishType) {
|
switch (finishType) {
|
||||||
// 完成并移交下一班组
|
// 完成并移交下一班组
|
||||||
case "01":
|
case "01":
|
||||||
@ -1138,7 +1138,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
return "异常消息";
|
return "异常消息";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return result + "部分完成了工单:" + no + "中" + projectName + "项目";
|
return result + "部分完成了车牌为:" + no + "工单中" + projectName + "项目";
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return "异常消息";
|
return "异常消息";
|
||||||
@ -1554,7 +1554,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
if (!flag) {
|
if (!flag) {
|
||||||
// 通知总检,让其手动操作
|
// 通知总检,让其手动操作
|
||||||
ids.forEach(id -> {
|
ids.forEach(id -> {
|
||||||
repairWorkerService.sentMessage(id, "待总检工单:" + item.getTicketNo() + "已经超时,但无法自动总检,请手动处理");
|
repairWorkerService.sentMessage(id, "待总检车牌为:" + item.getCarNo() + "工单已经超时,但无法自动总检,请手动处理");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return flag;
|
return flag;
|
||||||
@ -1576,7 +1576,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
result.forEach(item -> {
|
result.forEach(item -> {
|
||||||
repairWorkerService.sentMessage(Long.valueOf(item.getAdviserId()), "您有新的工单可以出厂检验");
|
repairWorkerService.sentMessage(Long.valueOf(item.getAdviserId()), "您有新的工单可以出厂检验");
|
||||||
ids.forEach(id -> {
|
ids.forEach(id -> {
|
||||||
repairWorkerService.sentMessage(id, "工单:" + item.getTicketNo() + "已由系统自动总检并移交服务顾问");
|
repairWorkerService.sentMessage(id, "车牌为:" + item.getCarNo() + "工单已由系统自动总检并移交服务顾问");
|
||||||
});
|
});
|
||||||
// 记录日志
|
// 记录日志
|
||||||
repairRecordsService.saveRepairRecord(item.getId(), null, RecordTypeEnum.ZJ.getCode(), "该工单由系统自动总检完成", null);
|
repairRecordsService.saveRepairRecord(item.getId(), null, RecordTypeEnum.ZJ.getCode(), "该工单由系统自动总检完成", null);
|
||||||
|
Loading…
Reference in New Issue
Block a user