Commit 5a1aea34 authored by yf's avatar yf

修改联动接口问题

parent 70fd1fae
......@@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletResponse;
import com.censoft.censoftrongtong.domain.LawList;
import com.censoft.censoftrongtong.service.ILawListService;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
......
......@@ -658,8 +658,8 @@ public class RiskPlanAppController extends BaseController {
/**
*返回责单位列表
*/
@GetMapping("/inherent/getResponsibilityUnits/{unitName}")
public R<List<RiskPlanInherentList>> getResponsibilityUnits(@PathVariable String unitName) {
@GetMapping("/inherent/getResponsibilityUnits")
public R<List<RiskPlanInherentList>> getResponsibilityUnits(String unitName,String projectId) {
QueryWrapper<RiskPlanInherentList> queryWrapper = new QueryWrapper<>();
queryWrapper.select("measures_dept_name").like("measures_dept_name",unitName).isNotNull("measures_dept_name").groupBy("measures_dept_name");
List<RiskPlanInherentList> list=riskPlanInherentListService.list(queryWrapper);
......@@ -669,8 +669,8 @@ public class RiskPlanAppController extends BaseController {
/**
*返回责单位列表
*/
@GetMapping("/inherent/getResponsibilityPersons/{personName}")
public R<List<RiskPlanInherentList>> getResponsibilityPersons(@PathVariable String personName) {
@GetMapping("/inherent/getResponsibilityPersons")
public R<List<RiskPlanInherentList>> getResponsibilityPersons(String personName,String projectId) {
QueryWrapper<RiskPlanInherentList> queryWrapper = new QueryWrapper<>();
queryWrapper.select("measures_user_name","measures_user_phone").like("measures_user_name",personName).isNotNull("measures_user_name").groupBy("measures_user_name");
List<RiskPlanInherentList> list=riskPlanInherentListService.list(queryWrapper);
......
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