Commit 0ffbc399 by 杨林龙

1.21.0 优化仲利照片查询接口

1 parent 0fee4ed5
......@@ -135,7 +135,7 @@ public class WorkOrderService {
private SyncZhongLiDataComponent syncZhongLiDataComponent;
@Autowired
private RemoteApiUserService remoteUserService;
private RemoteApiUserService remoteApiUserService;
/**
* 新增工单
......@@ -1795,7 +1795,7 @@ public class WorkOrderService {
}
// 根据车辆查询所在组织层级
TenantDto tenantDto = remoteUserService.getTenantByUserId(vehicle.getCreatedBy());
TenantDto tenantDto = remoteApiUserService.getTenantByUserId(vehicle.getCreatedBy());
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!