浏览代码

权限去除

LIVE_YE 1 年之前
父节点
当前提交
f3669dc9a6

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/news/BomanNewsController.java

@@ -37,7 +37,7 @@ public class BomanNewsController extends BaseController
     /**
      * 查询boman_news列表
      */
-    @PreAuthorize("@ss.hasPermi('system:news:list')")
+    //@PreAuthorize("@ss.hasPermi('system:news:list')")
     @GetMapping("/list")
     public TableDataInfo list(BomanNews bomanNews)
     {
@@ -62,7 +62,7 @@ public class BomanNewsController extends BaseController
     /**
      * 获取boman_news详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:news:query')")
+    //@PreAuthorize("@ss.hasPermi('system:news:query')")
     @GetMapping(value = "/{newsId}")
     public AjaxResult getInfo(@PathVariable("newsId") Long newsId)
     {

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reception/ReceptionPersonnelController.java

@@ -37,7 +37,7 @@ public class ReceptionPersonnelController extends BaseController
     /**
      * 查询接待人员信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:personnel:list')")
+    //@PreAuthorize("@ss.hasPermi('system:personnel:list')")
     @GetMapping("/list")
     public TableDataInfo list(ReceptionPersonnel receptionPersonnel)
     {
@@ -72,7 +72,7 @@ public class ReceptionPersonnelController extends BaseController
     /**
      * 获取接待人员信息详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:personnel:query')")
+    //@PreAuthorize("@ss.hasPermi('system:personnel:query')")
     @GetMapping(value = "/{receptionId}")
     public AjaxResult getInfo(@PathVariable("receptionId") Long receptionId)
     {

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reservat/BomanReservatController.java

@@ -37,7 +37,7 @@ public class BomanReservatController extends BaseController
     /**
      * 查询陵园预约列表
      */
-    @PreAuthorize("@ss.hasPermi('system:reservat:list')")
+    //@PreAuthorize("@ss.hasPermi('system:reservat:list')")
     @GetMapping("/list")
     public TableDataInfo list(BomanReservat bomanReservat)
     {
@@ -62,7 +62,7 @@ public class BomanReservatController extends BaseController
     /**
      * 获取陵园预约详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:reservat:query')")
+    //@PreAuthorize("@ss.hasPermi('system:reservat:query')")
     @GetMapping(value = "/{reservatId}")
     public AjaxResult getInfo(@PathVariable("reservatId") Long reservatId)
     {
@@ -72,7 +72,7 @@ public class BomanReservatController extends BaseController
     /**
      * 新增陵园预约
      */
-    @PreAuthorize("@ss.hasPermi('system:reservat:add')")
+    //@PreAuthorize("@ss.hasPermi('system:reservat:add')")
     @Log(title = "陵园预约", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody BomanReservat bomanReservat)

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reservat/config/BomanReservatConfigController.java

@@ -37,7 +37,7 @@ public class BomanReservatConfigController extends BaseController
     /**
      * 查询预约配置主列表
      */
-    @PreAuthorize("@ss.hasPermi('system:config:list')")
+    //@PreAuthorize("@ss.hasPermi('system:config:list')")
     @GetMapping("/list")
     public TableDataInfo list(BomanReservatConfig bomanReservatConfig)
     {
@@ -62,7 +62,7 @@ public class BomanReservatConfigController extends BaseController
     /**
      * 获取预约配置主详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:config:query')")
+    //@PreAuthorize("@ss.hasPermi('system:config:query')")
     @GetMapping(value = "/{reservatConfigId}")
     public AjaxResult getInfo(@PathVariable("reservatConfigId") Long reservatConfigId)
     {

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reservat/config/BomanReservatConfigTimeController.java

@@ -37,7 +37,7 @@ public class BomanReservatConfigTimeController extends BaseController
     /**
      * 查询预约时段配置列表
      */
-    @PreAuthorize("@ss.hasPermi('system:time:list')")
+    //@PreAuthorize("@ss.hasPermi('system:time:list')")
     @GetMapping("/list")
     public TableDataInfo list(BomanReservatConfigTime bomanReservatConfigTime)
     {
@@ -62,7 +62,7 @@ public class BomanReservatConfigTimeController extends BaseController
     /**
      * 获取预约时段配置详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:time:query')")
+    //@PreAuthorize("@ss.hasPermi('system:time:query')")
     @GetMapping(value = "/{reservatConfigTimeId}")
     public AjaxResult getInfo(@PathVariable("reservatConfigTimeId") Long reservatConfigTimeId)
     {

+ 1 - 0
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@@ -112,6 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
                 .antMatchers("/login", "/register", "/captchaImage").permitAll()
+                .antMatchers("/system/personnel/**", "/reservat/config/**", "/reservat/time/**","/system/reservat/**","/system/news/**").permitAll()
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()

+ 0 - 2
ruoyi-system/src/main/java/com/ruoyi/system/domain/BomanReservatConfigTime.java

@@ -25,12 +25,10 @@ public class BomanReservatConfigTime extends BaseEntity
     private String reservatConfigDate;
 
     /** 可预约时间开始 */
-    @JsonFormat(pattern = "yyyy-MM-dd")
     @Excel(name = "可预约时间开始", width = 30, dateFormat = "yyyy-MM-dd")
     private Date reservatConfigTimeBegin;
 
     /** 可预约时间结束 */
-    @JsonFormat(pattern = "yyyy-MM-dd")
     @Excel(name = "可预约时间结束", width = 30, dateFormat = "yyyy-MM-dd")
     private Date reservatConfigTimeEnd;