updates
This commit is contained in:
parent
1e9e919911
commit
071a98a032
|
|
@ -48,6 +48,7 @@ public class MiniVipController {
|
|||
private IYxVipSkuService yxVipSkuService;
|
||||
@Autowired
|
||||
private MiniUserService miniUserService;
|
||||
|
||||
@GetMapping(value = "/getVipInfo")
|
||||
@ApiOperation(value = "获取vip信息")
|
||||
public Result<?> vipInfo() {
|
||||
|
|
@ -60,20 +61,20 @@ public class MiniVipController {
|
|||
@GetMapping(value = "/sku/all")
|
||||
@ApiOperation(value = "获取全部商品信息")
|
||||
public Result<?> skuAll(@RequestParam(defaultValue = "") String provider) {
|
||||
if (StringUtils.isNotBlank(provider) && "toutiao".equals(provider)) {
|
||||
/*if (StringUtils.isNotBlank(provider) && "toutiao".equals(provider)) {
|
||||
LambdaQueryWrapper<YxVipSku> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(YxVipSku::getSkuName,"测试体验卡");
|
||||
queryWrapper.orderByDesc(YxVipSku::getSkuPrice);
|
||||
List<YxVipSku> list = yxVipSkuService.list(queryWrapper);
|
||||
return Result.OK(list);
|
||||
}else{
|
||||
}else{*/
|
||||
LambdaQueryWrapper<YxVipSku> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(YxVipSku::getSaleable, "1");
|
||||
queryWrapper.orderByDesc(YxVipSku::getSkuPrice);
|
||||
queryWrapper.ne(YxVipSku::getSkuName, "测试体验卡");
|
||||
List<YxVipSku> list = yxVipSkuService.list(queryWrapper);
|
||||
return Result.OK(list);
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
@PostMapping(value = "/card/activation")
|
||||
|
|
|
|||
Loading…
Reference in New Issue