查询站点和组树状列表接口按行政区过滤逻辑,行政区接口逻辑完善等
This commit is contained in:
@ -46,9 +46,9 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 查询组带叶子节点树状列表
|
||||
*/
|
||||
@GetMapping("/list-with-leaf")
|
||||
@PostMapping("/list-with-leaf")
|
||||
@ApiOperation("查询组带叶子节点树状列表")
|
||||
public AjaxResult listWithLeaf(GGroups gGroups){
|
||||
public AjaxResult listWithLeaf(@RequestBody GGroups gGroups){
|
||||
return success(gGroupsService.selectGGroupsAndSitesList(gGroups));
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,7 @@ import com.fastbee.project.domain.Project;
|
||||
import com.fastbee.project.service.IProjectService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@ -143,9 +144,9 @@ public class ProjectController extends BaseController
|
||||
/**
|
||||
* 查询项目的行政区划树状列表
|
||||
*/
|
||||
@GetMapping("/areaTree/{projectId}/{startLevel}")
|
||||
@GetMapping("/areaTree")
|
||||
@ApiOperation("查询项目的行政区划树状列表")
|
||||
public AjaxResult getProjectAreaTree(@PathVariable("projectId") Long projectId, @PathVariable("startLevel") Integer startLevel){
|
||||
public AjaxResult getProjectAreaTree(@Param("projectId") Long projectId,@Param("startLevel") Integer startLevel){
|
||||
return success(projectService.getProjectAreaTree(projectId, startLevel));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user