zouxuan 1 year ago
parent
commit
588f8322f6

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