店铺uv条件判定问题处理
This commit is contained in:
parent
79461c3768
commit
56c532349b
@ -21,7 +21,6 @@ import cn.lili.modules.statistics.util.StatisticsSuffix;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -237,10 +236,10 @@ public class PlatformViewDataServiceImpl extends ServiceImpl<PlatformViewDataMap
|
|||||||
QueryWrapper queryWrapper = new QueryWrapper();
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
queryWrapper.between("date", dates[0], dates[1]);
|
queryWrapper.between("date", dates[0], dates[1]);
|
||||||
//根据店铺查询判定,如果有,则店铺查询,如果没有,则根据商家查询
|
//根据店铺查询判定,如果有,则店铺查询,如果没有,则根据商家查询
|
||||||
if (queryParam.getStoreId() != null) {
|
if (StringUtils.isNotEmpty(queryParam.getStoreId())) {
|
||||||
queryWrapper.eq("store_id", queryParam.getStoreId());
|
queryWrapper.eq("store_id", queryParam.getStoreId());
|
||||||
} else {
|
} else {
|
||||||
queryWrapper.eq("store_id", "-1");
|
queryWrapper.eq("store_id", -1);
|
||||||
}
|
}
|
||||||
return platformViewDataMapper.count(queryWrapper);
|
return platformViewDataMapper.count(queryWrapper);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user