|
@@ -65,15 +65,12 @@ public class PageImgController extends BaseController {
|
65
|
65
|
@RequestMapping(value = "/wx/banner", method = RequestMethod.GET)
|
66
|
66
|
@ApiOperation(value = "微信小程序 首页Banner")
|
67
|
67
|
@ApiImplicitParams({
|
68
|
|
- @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "imgType", value = "图片类型"),
|
69
|
68
|
@ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "imgLocation", value = "图片位置")
|
70
|
69
|
})
|
71
|
|
- public ResponseBean getWxBanner(@RequestParam("imgType") String imgType,
|
72
|
|
- @RequestParam("imgLocation") String imgLocation) {
|
|
70
|
+ public ResponseBean getWxBanner(@RequestParam("imgLocation") String imgLocation) {
|
73
|
71
|
ResponseBean responseBean = new ResponseBean();
|
74
|
72
|
|
75
|
73
|
QueryWrapper<PageImg> pageImgQueryWrapper = new QueryWrapper<>();
|
76
|
|
- pageImgQueryWrapper.eq("img_type", imgType);
|
77
|
74
|
pageImgQueryWrapper.eq("img_location", imgLocation);
|
78
|
75
|
pageImgQueryWrapper.eq("status", 1);
|
79
|
76
|
List<PageImg> list = iPageImgService.list(pageImgQueryWrapper);
|