|
@ -70,5 +70,25 @@ public class BirActivityCenterGoodsController { |
|
|
return R.byPageHelperList(list); |
|
|
return R.byPageHelperList(list); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 翻页 |
|
|
|
|
|
* @param param |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("/export") |
|
|
|
|
|
@PreAuthorize("hasRole('bms:channel:query')") |
|
|
|
|
|
public R<List<BirActivityCenterGoods>> export(BirActivityCenterGoods param){ |
|
|
|
|
|
LambdaQueryWrapper<BirActivityCenterGoods> channelWrapper = new LambdaQueryWrapper<>(param); |
|
|
|
|
|
if(param.getKeyNumStart()!=null){ |
|
|
|
|
|
Integer keyNumStart = Integer.parseInt(param.getKeyNumStart().replace("-","")); |
|
|
|
|
|
channelWrapper.ge(BirActivityCenterGoods::getKeyNum,keyNumStart); |
|
|
|
|
|
} |
|
|
|
|
|
if(param.getKeyNumEnd()!=null){ |
|
|
|
|
|
Integer keyNumEnd = Integer.parseInt(param.getKeyNumEnd().replace("-","")); |
|
|
|
|
|
channelWrapper.le(BirActivityCenterGoods::getKeyNum,keyNumEnd); |
|
|
|
|
|
} |
|
|
|
|
|
List<BirActivityCenterGoods> list = centerGoodsService.list(channelWrapper); |
|
|
|
|
|
return R.ok(list); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|