fix
This commit is contained in:
@@ -8,7 +8,6 @@ import com.starry.admin.modules.custom.service.IPlayCustomLeaveMsgService;
|
||||
import com.starry.common.annotation.Log;
|
||||
import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -29,7 +28,6 @@ public class PlayCustomLeaveMsgController {
|
||||
/**
|
||||
* 分页查询顾客留言列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:leave:list')")
|
||||
@PostMapping("/listByPage")
|
||||
public R list(@Validated @RequestBody PlayCustomLeaveMsgQueryVo vo) {
|
||||
IPage<PlayCustomLeaveMsgReturnVo> list = playCustomLeaveMsgService.selectByPage(vo);
|
||||
@@ -39,7 +37,6 @@ public class PlayCustomLeaveMsgController {
|
||||
/**
|
||||
* 获取顾客留言详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:leave:list')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playCustomLeaveMsgService.selectPlayCustomLeaveMsgById(id));
|
||||
@@ -48,7 +45,7 @@ public class PlayCustomLeaveMsgController {
|
||||
/**
|
||||
* 新增顾客留言
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:leave:add')")
|
||||
//@PreAuthorize("@customSs.hasPermission('custom:leave:add')")
|
||||
@Log(title = "顾客留言", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayCustomLeaveMsgEntity playCustomLeaveMsg) {
|
||||
@@ -62,7 +59,7 @@ public class PlayCustomLeaveMsgController {
|
||||
/**
|
||||
* 修改顾客留言
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:leave:update')")
|
||||
//@PreAuthorize("@customSs.hasPermission('custom:leave:update')")
|
||||
@Log(title = "顾客留言", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update/{id}")
|
||||
public R update(@PathVariable String id, @RequestBody PlayCustomLeaveMsgEntity playCustomLeaveMsg) {
|
||||
@@ -77,7 +74,7 @@ public class PlayCustomLeaveMsgController {
|
||||
/**
|
||||
* 删除顾客留言
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:leave:delete')")
|
||||
//@PreAuthorize("@customSs.hasPermission('custom:leave:delete')")
|
||||
@Log(title = "顾客留言", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
@@ -10,7 +10,6 @@ import com.starry.common.annotation.Log;
|
||||
import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import com.starry.common.utils.ConvertUtil;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -31,7 +30,6 @@ public class PlayCustomLevelInfoController {
|
||||
/**
|
||||
* 查询顾客等级列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:level:list')")
|
||||
@PostMapping("/listAll")
|
||||
public R listAll() {
|
||||
List<PlayCustomLevelInfoEntity> list = playCustomLevelInfoService.selectPlayCustomLevelInfoByPage();
|
||||
@@ -41,7 +39,6 @@ public class PlayCustomLevelInfoController {
|
||||
/**
|
||||
* 获取顾客等级详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:level:list')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playCustomLevelInfoService.selectPlayCustomLevelInfoById(id));
|
||||
@@ -51,7 +48,7 @@ public class PlayCustomLevelInfoController {
|
||||
/**
|
||||
* 新增顾客等级
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:level:add')")
|
||||
//@PreAuthorize("@customSs.hasPermission('custom:level:add')")
|
||||
@Log(title = "店员等级", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayCustomLevelAddVo vo) {
|
||||
@@ -69,7 +66,7 @@ public class PlayCustomLevelInfoController {
|
||||
/**
|
||||
* 修改顾客等级
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:level:update')")
|
||||
//@PreAuthorize("@customSs.hasPermission('custom:level:update')")
|
||||
@Log(title = "顾客等级", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public R update(@RequestBody PlayCustomLevelEditVo vo) {
|
||||
|
||||
Reference in New Issue
Block a user