灌溉用水记录权限问题
This commit is contained in:
parent
0d94b57861
commit
4c17a1c416
@ -42,7 +42,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 查询灌溉记录列表
|
* 查询灌溉记录列表
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:list')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@ApiOperation("查询灌溉记录列表")
|
@ApiOperation("查询灌溉记录列表")
|
||||||
public TableDataInfo list(UserIrrigationRecord userIrrigationRecord)
|
public TableDataInfo list(UserIrrigationRecord userIrrigationRecord)
|
||||||
@ -55,7 +55,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 获取用户灌溉记录详细信息列表
|
* 获取用户灌溉记录详细信息列表
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:query')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:query')")
|
||||||
@GetMapping(value = "/list/{cardNumber}")
|
@GetMapping(value = "/list/{cardNumber}")
|
||||||
@ApiOperation("获取灌溉记录详细信息")
|
@ApiOperation("获取灌溉记录详细信息")
|
||||||
public AjaxResult getInfo(@PathVariable("cardNumber") String cardNumber)
|
public AjaxResult getInfo(@PathVariable("cardNumber") String cardNumber)
|
||||||
@ -66,7 +66,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 获取用户灌溉记录展示详细信息列表
|
* 获取用户灌溉记录展示详细信息列表
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:list')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:list')")
|
||||||
@GetMapping("/list/show")
|
@GetMapping("/list/show")
|
||||||
@ApiOperation("查询灌溉记录列表")
|
@ApiOperation("查询灌溉记录列表")
|
||||||
public TableDataInfo Showlist(UserIrrigationRecord userIrrigationRecord)
|
public TableDataInfo Showlist(UserIrrigationRecord userIrrigationRecord)
|
||||||
@ -94,7 +94,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
* 导出灌溉记录列表
|
* 导出灌溉记录列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("导出灌溉记录列表")
|
@ApiOperation("导出灌溉记录列表")
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:export')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:export')")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, UserIrrigationRecord userIrrigationRecord)
|
public void export(HttpServletResponse response, UserIrrigationRecord userIrrigationRecord)
|
||||||
{
|
{
|
||||||
@ -106,7 +106,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 获取灌溉记录详细信息
|
* 获取灌溉记录详细信息
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:query')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
@ApiOperation("获取灌溉记录详细信息")
|
@ApiOperation("获取灌溉记录详细信息")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
@ -117,7 +117,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 新增灌溉记录
|
* 新增灌溉记录
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:add')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:add')")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("新增灌溉记录")
|
@ApiOperation("新增灌溉记录")
|
||||||
public AjaxResult add(@RequestBody UserIrrigationRecord userIrrigationRecord)
|
public AjaxResult add(@RequestBody UserIrrigationRecord userIrrigationRecord)
|
||||||
@ -128,7 +128,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 修改灌溉记录
|
* 修改灌溉记录
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:edit')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:edit')")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@ApiOperation("修改灌溉记录")
|
@ApiOperation("修改灌溉记录")
|
||||||
public AjaxResult edit(@RequestBody UserIrrigationRecord userIrrigationRecord)
|
public AjaxResult edit(@RequestBody UserIrrigationRecord userIrrigationRecord)
|
||||||
@ -139,7 +139,7 @@ public class UserIrrigationRecordController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 删除灌溉记录
|
* 删除灌溉记录
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('rechargecard:record:remove')")
|
// @PreAuthorize("@ss.hasPermi('rechargecard:record:remove')")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
@ApiOperation("删除灌溉记录")
|
@ApiOperation("删除灌溉记录")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user