|
@@ -132,12 +132,16 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
|
@Override
|
|
@Override
|
|
|
public IPage<LifeGroupBuyThaliVo> getThaliList(int page, int size, String storeId, String status, String groupName, String groupType) {
|
|
public IPage<LifeGroupBuyThaliVo> getThaliList(int page, int size, String storeId, String status, String groupName, String groupType) {
|
|
|
QueryWrapper<LifeGroupBuyThaliVo> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<LifeGroupBuyThaliVo> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.eq(StringUtils.isNotEmpty(storeId), "store_id", storeId)
|
|
|
|
|
- .eq(StringUtils.isNotEmpty(status), "status", status)
|
|
|
|
|
- .eq(StringUtils.isNotEmpty(groupType), "group_type", groupType)
|
|
|
|
|
- .like(StringUtils.isNotEmpty(groupName), "group_name", groupName)
|
|
|
|
|
- .eq("delete_flag", 0)
|
|
|
|
|
- .orderByDesc("created_time");
|
|
|
|
|
|
|
+ queryWrapper.eq(StringUtils.isNotEmpty(storeId), "store_id", storeId);
|
|
|
|
|
+ if(status.equals("8")){
|
|
|
|
|
+ queryWrapper.in(StringUtils.isNotEmpty(status), "status", 2, 6);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ queryWrapper.eq(StringUtils.isNotEmpty(status), "status", status);
|
|
|
|
|
+ }
|
|
|
|
|
+ queryWrapper.eq(StringUtils.isNotEmpty(groupType), "group_type", groupType);
|
|
|
|
|
+ queryWrapper.like(StringUtils.isNotEmpty(groupName), "group_name", groupName);
|
|
|
|
|
+ queryWrapper.eq("delete_flag", 0);
|
|
|
|
|
+ queryWrapper.orderByDesc("created_time");
|
|
|
IPage<LifeGroupBuyThaliVo> lifeGroupBuyThaliVoIPage = new Page<>(page, size);
|
|
IPage<LifeGroupBuyThaliVo> lifeGroupBuyThaliVoIPage = new Page<>(page, size);
|
|
|
IPage<LifeGroupBuyThaliVo> voIPage = lifeGroupBuyMainMapper.selectPageByThaliVo(lifeGroupBuyThaliVoIPage, queryWrapper);
|
|
IPage<LifeGroupBuyThaliVo> voIPage = lifeGroupBuyMainMapper.selectPageByThaliVo(lifeGroupBuyThaliVoIPage, queryWrapper);
|
|
|
voIPage.getRecords().forEach(this::getMainImgAndDisableDate);
|
|
voIPage.getRecords().forEach(this::getMainImgAndDisableDate);
|