|
@@ -153,7 +153,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 查询检查计划列表
|
|
* 查询检查计划列表
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:list')")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(TPsPatrolPlan tPsPatrolPlan) {
|
|
public TableDataInfo list(TPsPatrolPlan tPsPatrolPlan) {
|
|
|
startPage();
|
|
startPage();
|
|
@@ -164,7 +164,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 导出检查计划列表
|
|
* 导出检查计划列表
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:list')")
|
|
|
@Log(title = "检查计划", businessType = BusinessType.EXPORT)
|
|
@Log(title = "检查计划", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(TPsPatrolPlan tPsPatrolPlan) {
|
|
public AjaxResult export(TPsPatrolPlan tPsPatrolPlan) {
|
|
@@ -176,7 +176,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 获取检查计划详细信息
|
|
* 获取检查计划详细信息
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:query')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
return AjaxResult.success(tPsPatrolPlanService.selectTPsPatrolPlanById(id));
|
|
return AjaxResult.success(tPsPatrolPlanService.selectTPsPatrolPlanById(id));
|
|
@@ -188,7 +188,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
* @param tPsPatrolPlan 检查计划对象,包含计划的基本信息如年份、月份、巡检类型等
|
|
* @param tPsPatrolPlan 检查计划对象,包含计划的基本信息如年份、月份、巡检类型等
|
|
|
* @return AjaxResult 返回操作结果,成功或失败提示信息
|
|
* @return AjaxResult 返回操作结果,成功或失败提示信息
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:add')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:add')")
|
|
|
@Log(title = "检查计划", businessType = BusinessType.INSERT)
|
|
@Log(title = "检查计划", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody TPsPatrolPlan tPsPatrolPlan) {
|
|
public AjaxResult add(@RequestBody TPsPatrolPlan tPsPatrolPlan) {
|
|
@@ -415,7 +415,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 修改检查计划
|
|
* 修改检查计划
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:edit')")
|
|
|
@Log(title = "检查计划", businessType = BusinessType.UPDATE)
|
|
@Log(title = "检查计划", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody TPsPatrolPlan tPsPatrolPlan) {
|
|
public AjaxResult edit(@RequestBody TPsPatrolPlan tPsPatrolPlan) {
|
|
@@ -425,7 +425,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 删除检查计划
|
|
* 删除检查计划
|
|
|
*/
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:remove')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:remove')")
|
|
|
@Log(title = "检查计划", businessType = BusinessType.DELETE)
|
|
@Log(title = "检查计划", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
@@ -439,7 +439,7 @@ public class TPsPatrolPlanController extends BaseController {
|
|
|
* @return AjaxResult 确认结果,成功或失败信息
|
|
* @return AjaxResult 确认结果,成功或失败信息
|
|
|
*/
|
|
*/
|
|
|
@PutMapping("/confirm")
|
|
@PutMapping("/confirm")
|
|
|
- @PreAuthorize("@ss.hasPermi('patrol:plan:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('ps:patrol:edit')")
|
|
|
@Log(title = "检查计划", businessType = BusinessType.UPDATE)
|
|
@Log(title = "检查计划", businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult confirm(@RequestBody TPsPatrolPlan plan) {
|
|
public AjaxResult confirm(@RequestBody TPsPatrolPlan plan) {
|
|
|
// 查询当前计划信息
|
|
// 查询当前计划信息
|