Commit 5ff39dc1 authored by wangqiang's avatar wangqiang

修改fegin接口

parent e51f75ca
......@@ -31,8 +31,7 @@ public class ExtDistributeRecordController<V extends ExtDistributeRecordVO, S ex
@Autowired
private ExtDistributeRecordService distributeRecordService;
@Autowired
private AutoTaskService autoTaskService;
/**
* 收发记录接口
......@@ -57,8 +56,7 @@ public class ExtDistributeRecordController<V extends ExtDistributeRecordVO, S ex
@ApiOperation("通过用户id和code查询组织")
@GetMapping("/searchOrgByUserId")
public ApiResult searchOrgByUserId(@RequestParam("userId") Long userId, @RequestParam("code") String code) {
List<DxOrganizationVO> organizationVOS = autoTaskService.searchOrgNameByUserId(userId, code);
return ApiResult.ok(organizationVOS, "查询成功");
return ApiResult.ok(distributeRecordService.searchOrgNameByUserId(userId, code), "查询成功");
}
}
......
package com.yonde.dcs.plan.core.service.impl;
import com.yonde.dcs.plan.common.vo.ExtDisReocredLinkVO;
import com.yonde.dcs.plan.core.service.AutoTaskService;
import com.yonde.dcs.plan.core.service.ExtDisReocredLinkService;
import com.yonde.dex.basedata.data.search.SearchItem;
import com.yonde.dex.basedata.data.search.SearchItems;
import com.yonde.dex.basedata.data.search.SearchQueryCondition;
import com.yonde.dex.basedata.entity.data.DxPageImpl;
import com.yonde.dex.user.common.vo.DxOrganizationVO;
import org.springframework.stereotype.Service;
import io.swagger.annotations.ApiOperation;
......@@ -41,6 +43,9 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
@Autowired
private ExtDisReocredLinkService disRecordLink;
@Autowired
private AutoTaskService autoTaskService;
@Override
public List<ExtDistributeRecordVO> getDisRecord(Long id) {
//通过id查询分发记录Link
......@@ -52,6 +57,8 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
return list;
}
/**
* 通过id查询分发记录Link
*
......@@ -71,6 +78,11 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
return null;
}
@Override
public List<DxOrganizationVO> searchOrgNameByUserId(Long userId, String code) {
return autoTaskService.searchOrgNameByUserId(userId, code);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment