zouxuan 1 年之前
父节点
当前提交
588f8322f6
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      mec-application/src/main/java/com/ym/mec/web/controller/LuckDrawController.java

+ 3 - 5
mec-application/src/main/java/com/ym/mec/web/controller/LuckDrawController.java

@@ -14,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.MediaType;
 import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.Date;
 import java.util.HashMap;
@@ -26,6 +23,7 @@ import java.util.Map;
 
 @Api(tags = "抽奖")
 @RestController
+@RequestMapping("${app-config.url.web:}/")
 public class LuckDrawController extends BaseController {
 	
 	@Autowired
@@ -39,7 +37,7 @@ public class LuckDrawController extends BaseController {
 	
 	@ApiOperation(value = "查询奖品组列表")
 	@GetMapping(value = "luckDrawGroup/findAll", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
-	@PreAuthorize("@pcs.hasPermissions('luckDrawGroup/list')")
+	@PreAuthorize("@pcs.hasPermissions('luckDrawGroup/findAll')")
 	public Object luckDrawGroupFindAll(QueryInfo queryInfo) {
 		Map<String, Object> params = new HashMap<String, Object>();
 		MapUtil.populateMap(params, queryInfo);