|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.demo.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
@@ -74,6 +75,7 @@ public class PlanController {
|
|
|
* @param equipmentCode
|
|
|
* @return
|
|
|
*/
|
|
|
+ @SaIgnore
|
|
|
@GetMapping("/push/{equipmentCode}")
|
|
|
public R planPush(@PathVariable String equipmentCode){
|
|
|
return R.ok(planService.getPlanPushByCode(equipmentCode));
|
|
@@ -132,6 +134,7 @@ public class PlanController {
|
|
|
* @return
|
|
|
*/
|
|
|
// @SaCheckPermission("szzs:plan:test")
|
|
|
+ @SaIgnore
|
|
|
@PostMapping("/getSign")
|
|
|
public R getSign(@RequestBody PlanAddBo bo){
|
|
|
if (bo.getPlanStartTime() != null && bo.getPlanEndTime() != null)
|
|
@@ -147,6 +150,7 @@ public class PlanController {
|
|
|
* @param bo
|
|
|
* @return
|
|
|
*/
|
|
|
+ @SaIgnore
|
|
|
@PostMapping()
|
|
|
public R addPlan(@RequestBody @Validated(value = {AddGroup.class}) PlanAddBo bo){
|
|
|
if (bo.getPlanStartTime() != null && bo.getPlanEndTime() != null)
|
|
@@ -167,6 +171,7 @@ public class PlanController {
|
|
|
* @return
|
|
|
*/
|
|
|
// @SaCheckPermission("szzs:plan:delete")
|
|
|
+ @SaIgnore
|
|
|
@DeleteMapping("/{planId}")
|
|
|
public R deletePlan(@PathVariable String planId){
|
|
|
int i = planService.deletePlan(planId);
|
|
@@ -180,6 +185,7 @@ public class PlanController {
|
|
|
* @return
|
|
|
*/
|
|
|
// @SaCheckPermission("szzs:plan:list")
|
|
|
+ @SaIgnore
|
|
|
@PostMapping("/push/list")
|
|
|
public R pushList(@RequestBody PlanBo bo){
|
|
|
if (bo.getStartTime() != null && bo.getEndTime() != null)
|
|
@@ -230,6 +236,7 @@ public class PlanController {
|
|
|
* @param bo
|
|
|
* @return
|
|
|
*/
|
|
|
+ @SaIgnore
|
|
|
@PostMapping("/getEquipments")
|
|
|
public R getEquipments(@RequestBody PlanBo bo){
|
|
|
return R.ok(planService.getEquipments(bo));
|
|
@@ -240,6 +247,7 @@ public class PlanController {
|
|
|
* @param level
|
|
|
* @return
|
|
|
*/
|
|
|
+ @SaIgnore
|
|
|
@GetMapping("/getAddrCategory")
|
|
|
public R getAddrCategory(String code,String level){
|
|
|
return R.ok(planService.getAddrCategoryLevel(code,level));
|