水闸、灌区、泵站基本信息管理
This commit is contained in:
@ -41,7 +41,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
/**
|
||||
* 查询灌区基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询灌区基础信息列表")
|
||||
public TableDataInfo list(GSiteIrrigateInfo gSiteIrrigateInfo)
|
||||
@ -55,7 +55,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
* 导出灌区基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出灌区基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GSiteIrrigateInfo gSiteIrrigateInfo)
|
||||
{
|
||||
@ -67,7 +67,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
/**
|
||||
* 获取灌区基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取灌区基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -78,7 +78,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
/**
|
||||
* 新增灌区基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增灌区基础信息")
|
||||
public AjaxResult add(@RequestBody GSiteIrrigateInfo gSiteIrrigateInfo)
|
||||
@ -89,7 +89,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
/**
|
||||
* 修改灌区基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改灌区基础信息")
|
||||
public AjaxResult edit(@RequestBody GSiteIrrigateInfo gSiteIrrigateInfo)
|
||||
@ -100,7 +100,7 @@ public class GSiteIrrigateInfoController extends BaseController
|
||||
/**
|
||||
* 删除灌区基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除灌区基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -41,7 +41,7 @@ public class GSitePumpInfoController extends BaseController
|
||||
/**
|
||||
* 查询泵站信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询泵站信息列表")
|
||||
public TableDataInfo list(GSitePumpInfo gSitePumpInfo)
|
||||
@ -67,7 +67,7 @@ public class GSitePumpInfoController extends BaseController
|
||||
/**
|
||||
* 获取泵站信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取泵站信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -78,7 +78,7 @@ public class GSitePumpInfoController extends BaseController
|
||||
/**
|
||||
* 新增泵站信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增泵站信息")
|
||||
public AjaxResult add(@RequestBody GSitePumpInfo gSitePumpInfo)
|
||||
@ -89,7 +89,7 @@ public class GSitePumpInfoController extends BaseController
|
||||
/**
|
||||
* 修改泵站信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改泵站信息")
|
||||
public AjaxResult edit(@RequestBody GSitePumpInfo gSitePumpInfo)
|
||||
@ -100,7 +100,7 @@ public class GSitePumpInfoController extends BaseController
|
||||
/**
|
||||
* 删除泵站信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除泵站信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -41,7 +41,7 @@ public class GSiteReservoirInfoController extends BaseController
|
||||
/**
|
||||
* 查询水库站点基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询水库站点基础信息列表")
|
||||
public TableDataInfo list(GSiteReservoirInfo gSiteReservoirInfo)
|
||||
@ -55,7 +55,7 @@ public class GSiteReservoirInfoController extends BaseController
|
||||
* 导出水库站点基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出水库站点基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GSiteReservoirInfo gSiteReservoirInfo)
|
||||
{
|
||||
@ -78,7 +78,7 @@ public class GSiteReservoirInfoController extends BaseController
|
||||
/**
|
||||
* 新增水库站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增水库站点基础信息")
|
||||
public AjaxResult add(@RequestBody GSiteReservoirInfo gSiteReservoirInfo)
|
||||
@ -89,7 +89,7 @@ public class GSiteReservoirInfoController extends BaseController
|
||||
/**
|
||||
* 修改水库站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改水库站点基础信息")
|
||||
public AjaxResult edit(@RequestBody GSiteReservoirInfo gSiteReservoirInfo)
|
||||
@ -100,7 +100,7 @@ public class GSiteReservoirInfoController extends BaseController
|
||||
/**
|
||||
* 删除水库站点基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除水库站点基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -39,7 +39,7 @@ public class GSiteRiverInfoController extends BaseController
|
||||
/**
|
||||
* 查询河流基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询河流基础信息列表")
|
||||
public TableDataInfo list(GSiteRiverInfo gSiteRiverInfo)
|
||||
|
@ -41,7 +41,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
/**
|
||||
* 查询水闸基本信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
//@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询水闸基本信息列表")
|
||||
public TableDataInfo list(GSiteSluiceInfo gSiteSluiceInfo)
|
||||
@ -55,7 +55,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
* 导出水闸基本信息列表
|
||||
*/
|
||||
@ApiOperation("导出水闸基本信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GSiteSluiceInfo gSiteSluiceInfo)
|
||||
{
|
||||
@ -74,7 +74,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
{
|
||||
return success(gSiteSluiceInfoService.selectGSiteSluiceInfoById(id));
|
||||
}*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:siteId')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:siteId')")
|
||||
@GetMapping(value = "/{siteId}")
|
||||
@ApiOperation("获取水闸基本信息详细信息")
|
||||
public AjaxResult getsiteIdInfo(@PathVariable("siteId") Long siteId)
|
||||
@ -85,7 +85,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
/**
|
||||
* 新增水闸基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增水闸基本信息")
|
||||
public AjaxResult add(@RequestBody GSiteSluiceInfo gSiteSluiceInfo)
|
||||
@ -96,7 +96,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
/**
|
||||
* 修改水闸基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改水闸基本信息")
|
||||
public AjaxResult edit(@RequestBody GSiteSluiceInfo gSiteSluiceInfo)
|
||||
@ -107,7 +107,7 @@ public class GSiteSluiceInfoController extends BaseController
|
||||
/**
|
||||
* 删除水闸基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除水闸基本信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -35,7 +35,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
@RestController
|
||||
@RequestMapping("/gis/sites")
|
||||
@Api(tags = "站点")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:groups')")
|
||||
//@PreAuthorize("@ss.hasPermi('ggroup:groups')")
|
||||
public class GSitesController extends BaseController
|
||||
{
|
||||
|
||||
@ -71,7 +71,7 @@ public class GSitesController extends BaseController
|
||||
* 导出站点列表
|
||||
*/
|
||||
@ApiOperation("导出站点列表")
|
||||
@PreAuthorize("@ss.hasPermi('ggroup:sites:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('ggroup:sites:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GSitesSelectDto gSites)
|
||||
{
|
||||
@ -142,6 +142,14 @@ public class GSitesController extends BaseController
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点已设备关联列表
|
||||
*/
|
||||
@GetMapping("/device-linked")
|
||||
@ApiOperation("已关联设备")
|
||||
public AjaxResult deviceLinked(){
|
||||
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user