Commit 7aae2545 by 杨林龙

1.21.0 优化仲利照片查询接口

1 parent bb6d721d
......@@ -1796,7 +1796,7 @@ public class WorkOrderService {
// 根据车辆查询所在组织层级
TenantDto tenantDto = remoteUserService.getTenantByUserId(vehicle.getCreatedBy());
if (!Objects.equals(imagesBO.getOrderSource(), Pinyin.getPinYinHeadChar(tenantDto.getTenantName()))) {
if (Objects.isNull(tenantDto) || !Objects.equals(imagesBO.getOrderSource(), Pinyin.getPinYinHeadChar(tenantDto.getTenantName()))) {
log.info("工单{}对应的车辆不是{}的车辆", imagesBO.getBizWorkOrderNo(), imagesBO.getOrderSource());
throw new StdInterfaceException("656565", String.format("工单%s对应的车辆不是%s的车辆", imagesBO.getBizWorkOrderNo(), imagesBO.getOrderSource()));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!