|
|
@@ -688,12 +688,9 @@ public class RepairApplicationFormServiceImpl
|
|
|
if (sbInfo == null) {
|
|
|
throw new BusinessException("设备不存在,无法接收");
|
|
|
}
|
|
|
- if (sbInfo.getRepairUser() == null) {
|
|
|
- throw new BusinessException("设备的第一维修人未设置,无法接受任务");
|
|
|
- }
|
|
|
- if (sbInfo.getRepairUserSecond() == null) {
|
|
|
- throw new BusinessException("设备的第二维修人未设置,无法接受任务");
|
|
|
- }
|
|
|
+ // 设备第一/第二维修人不再作为接收的强制校验:
|
|
|
+ // 报修派单走工单列表派工/转派,保养任务执行人在保养标准侧单独设置,超时提醒已有容错处理,
|
|
|
+ // 设备未绑定维修人时不应阻断接单
|
|
|
if (!SecurityUtils.isRole(SysRoleCodeEnum.MM.name())
|
|
|
&& !SecurityUtils.isRole(SysRoleCodeEnum.Maintenance.name())) {
|
|
|
throw new BusinessException("您不是维修人或维修主管,无法接受任务");
|