新增根据行政区划代码查询项目列表接口。

This commit is contained in:
mi9688
2024-12-11 16:59:20 +08:00
parent 679b651706
commit 73042e17af
6 changed files with 77 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.fastbee.common.exception.ServiceException;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;

View File

@ -133,7 +133,6 @@ public class ProjectController extends BaseController
}
/**
* 查询项目管理机构的当前管理的行政区划树状列表
*/
@ -150,4 +149,13 @@ public class ProjectController extends BaseController
public AjaxResult getProjectAreaTreeTop(@Param("projectId") Long deptId,@Param("startLevel") Integer startLevel){
return success(projectService.getProjectAreaTreeAll(deptId, startLevel));
}
/**
* 根据行政区划信息查询项目列表
*/
@GetMapping("/projectListByArea")
@ApiOperation("根据行政区划信息查询项目列表")
public AjaxResult getProjectListByArea(@Param("areaCode") Long areaCode){
return success(projectService.getProjectListByArea(areaCode));
}
}