Commit 1d355d06 by yangll

新增工单时 增加根组织参数

1 parent acd243cb
......@@ -88,6 +88,9 @@ public class WorkOrderService {
@Autowired
private RemoteDeviceService remoteDeviceService;
@Autowired
private OrganizationApiService organizationApiService;
public PageInfo<WorkOrderDTO> search(WorkOrderSearch search) {
if (search.getOrgId() != null) {
......@@ -259,6 +262,8 @@ public class WorkOrderService {
}
}
installWorkOrderBO.setCreatedBy(ShieldContextHolder.getUserId());
// 获取根组织名
installWorkOrderBO.setRootOrg(ShieldContextHolder.getTenant().getTenantName());
R<List<String>> longR = workOrderClient.create(installWorkOrderBO);
if (longR.isSuccess()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!