Commit 5eb95392 by huangjinxin

fix:指派订单返回

1 parent 8c3bdf96
...@@ -373,8 +373,9 @@ public class DispatchServiceImpl implements DispatchService { ...@@ -373,8 +373,9 @@ public class DispatchServiceImpl implements DispatchService {
if (CollectionUtils.isNotEmpty(errorList)) { if (CollectionUtils.isNotEmpty(errorList)) {
String msg = errorList.size() > 3 ? String.join(",", errorList.subList(0, 3)) + "..." : String.join(",", errorList); String msg = errorList.size() > 3 ? String.join(",", errorList.subList(0, 3)) + "..." : String.join(",", errorList);
resultList.add(String.format(StatusCodeEnum.ENGINEER_IS_LEAVE_TIME.getDesc(), msg, engineer.getName())); resultList.add(String.format(StatusCodeEnum.ENGINEER_IS_LEAVE_TIME.getDesc(), msg, engineer.getName()));
return Result.failed(CollectionUtils.isNotEmpty(resultList) ? String.join(",", resultList) : null);
} }
return Result.success(CollectionUtils.isNotEmpty(resultList) ? String.join(",", resultList) : null); return Result.success();
} }
@Override @Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!