查询项目信息接口,完善接口逻辑逻辑等
This commit is contained in:
@ -28,6 +28,7 @@ import static java.util.stream.Collectors.toList;
|
||||
@RestController
|
||||
@RequestMapping("/gis/groups")
|
||||
@Api(tags = "组")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:groups')")
|
||||
public class GGroupsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
@ -36,7 +37,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 查询组树状结构列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询组列表")
|
||||
public AjaxResult list(GGroups gGroups)
|
||||
@ -46,7 +46,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 查询组带叶子节点树状列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:list')")
|
||||
@GetMapping("/list-with-leaf")
|
||||
@ApiOperation("查询组带叶子节点树状列表")
|
||||
public AjaxResult listWithLeaf(GGroups gGroups){
|
||||
@ -57,7 +56,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 查询组下面的直属站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:listSite')")
|
||||
@GetMapping("/list-site")
|
||||
@ApiOperation("查询组下面的直属站点")
|
||||
public TableDataInfo listSite(GGroups gGroups)
|
||||
@ -71,7 +69,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 获取组的标签(类别)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:list')")
|
||||
@GetMapping("/list-label")
|
||||
@ApiOperation("获取组的标签(类别)")
|
||||
public AjaxResult listLabel() {
|
||||
@ -92,7 +89,6 @@ public class GGroupsController extends BaseController
|
||||
* 导出组列表
|
||||
*/
|
||||
@ApiOperation("导出组列表")
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GGroups gGroups)
|
||||
{
|
||||
@ -104,7 +100,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 获取组详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取组详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -115,7 +110,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 新增组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增组")
|
||||
public AjaxResult add(@RequestBody GGroups gGroups)
|
||||
@ -126,7 +120,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 修改组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改组")
|
||||
public AjaxResult edit(@RequestBody GGroups gGroups)
|
||||
@ -137,7 +130,6 @@ public class GGroupsController extends BaseController
|
||||
/**
|
||||
* 删除组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:groups:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除组")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -38,6 +38,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
@RestController
|
||||
@RequestMapping("/gis/legend")
|
||||
@Api(tags = "图例")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend')")
|
||||
public class GLegendController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
@ -46,7 +47,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 查询/搜索图例列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询图例列表")
|
||||
public TableDataInfo list(GLegend gLegend)
|
||||
@ -60,7 +60,6 @@ public class GLegendController extends BaseController
|
||||
* 导出图例列表
|
||||
*/
|
||||
@ApiOperation("导出图例列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GLegend gLegend)
|
||||
{
|
||||
@ -72,7 +71,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 获取图例详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取图例详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -83,7 +81,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 新增图例
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增图例")
|
||||
public AjaxResult add(@RequestBody GLegend gLegend)
|
||||
@ -94,7 +91,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 修改图例
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改图例")
|
||||
public AjaxResult edit(@RequestBody GLegend gLegend)
|
||||
@ -105,7 +101,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 删除图例
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除图例")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
@ -116,7 +111,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
* 获取图例按照类别划分列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:legend:list')")
|
||||
@GetMapping("/category-list")
|
||||
@ApiOperation("获取图例按照类别划分列表")
|
||||
public AjaxResult listByCategory(GLegend gLegend){
|
||||
@ -126,7 +120,6 @@ public class GLegendController extends BaseController
|
||||
/**
|
||||
*获取图例的类别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:type:category')")
|
||||
@GetMapping(value = "/category/list")
|
||||
@ApiOperation("获取图例的类别列表")
|
||||
public AjaxResult typeList()
|
||||
|
@ -32,6 +32,7 @@ import com.fastbee.common.core.page.TableDataInfo;
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/gis/site/info")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:groups')")
|
||||
@Api(tags = "站点基础信息")
|
||||
public class GSiteInfoController extends BaseController
|
||||
{
|
||||
@ -41,7 +42,6 @@ public class GSiteInfoController extends BaseController
|
||||
/**
|
||||
* 查询站点基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询站点基础信息列表")
|
||||
public TableDataInfo list(GSiteInfo gSiteInfo)
|
||||
@ -55,7 +55,6 @@ public class GSiteInfoController extends BaseController
|
||||
* 导出站点基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出站点基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GSiteInfo gSiteInfo)
|
||||
{
|
||||
@ -67,7 +66,6 @@ public class GSiteInfoController extends BaseController
|
||||
/**
|
||||
* 获取站点基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
|
||||
@GetMapping(value = "/{siteId}")
|
||||
@ApiOperation("获取站点基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("siteId") Long siteId)
|
||||
@ -78,7 +76,6 @@ public class GSiteInfoController extends BaseController
|
||||
/**
|
||||
* 新增站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增站点基础信息")
|
||||
public AjaxResult add(@RequestBody GSiteInfo gSiteInfo)
|
||||
@ -89,7 +86,6 @@ public class GSiteInfoController extends BaseController
|
||||
/**
|
||||
* 修改站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改站点基础信息")
|
||||
public AjaxResult edit(@RequestBody GSiteInfo gSiteInfo)
|
||||
@ -100,7 +96,6 @@ public class GSiteInfoController extends BaseController
|
||||
/**
|
||||
* 删除站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除站点基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -37,6 +37,7 @@ import com.fastbee.common.core.page.TableDataInfo;
|
||||
@RestController
|
||||
@RequestMapping("/gis/sites")
|
||||
@Api(tags = "站点")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:groups')")
|
||||
public class GSitesController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
@ -45,7 +46,7 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 查询/搜索站点列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:list')")
|
||||
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询站点列表")
|
||||
public TableDataInfo list(GSitesSelectDto gSites)
|
||||
@ -58,7 +59,7 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 站点关联组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:relate')")
|
||||
|
||||
@PostMapping("/relate")
|
||||
@ApiOperation("站点关联组")
|
||||
public AjaxResult relate(@RequestBody GGroupSiteRelateDto gGroupSiteRelateDto){
|
||||
@ -81,7 +82,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 获取站点详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取站点详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -92,7 +92,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 新增站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增站点")
|
||||
public AjaxResult add(@RequestBody GGroupSiteDto gGroupSiteDto)
|
||||
@ -103,7 +102,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 修改站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改站点")
|
||||
public AjaxResult edit(@RequestBody GSitesEditDto gSitesEditDto)
|
||||
@ -114,7 +112,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 根据id删除站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:remove')")
|
||||
@DeleteMapping("/{id}")
|
||||
@ApiOperation("根据id删除站点")
|
||||
public AjaxResult remove(@PathVariable Long id){
|
||||
@ -125,7 +122,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 删除站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:remove')")
|
||||
@DeleteMapping("/batch/{ids}")
|
||||
@ApiOperation("删除站点")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
@ -136,7 +132,6 @@ public class GSitesController extends BaseController
|
||||
/**
|
||||
* 搜索站点
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:search')")
|
||||
@GetMapping("/search")
|
||||
@ApiOperation("搜索站点")
|
||||
public TableDataInfo search(GSites gSites){
|
||||
|
@ -50,6 +50,16 @@ public class ProjectController extends BaseController
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取项目信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('iot:project:query')")
|
||||
@GetMapping("/info/{userId}")
|
||||
@ApiOperation("获取项目信息")
|
||||
public AjaxResult getProjectInfo(@PathVariable("userId") Long userId){
|
||||
return success(projectService.selectProjectByUserId(userId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出项目列表
|
||||
*/
|
||||
|
Reference in New Issue
Block a user