Commit 0f520ea2 by 陶光胜

观云台小程序

parent 6e83d7c0
......@@ -115,6 +115,47 @@ public class GoDownComponent {
return levelVo;
}
public void setValueTotal(CommonQO params, LevelVo levelVo){
Integer wgs = storeSearchUtils.isWgs(params.getUserId(), params.getEnterpriseId(), params.getSearchJson());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if((params.getChannel() == null || (params.getChannel() == StoreChannelEnum.OFFLINE.getChannel() && params.getLevel() == levelVo.getLevel())) && wgs == 1){
params.getStoreInfoIdList().add(-1);
params.getOnlineStoreIdList().add("-1");
}
}
public void setValueTotal(CommonQO params){
Integer wgs = storeSearchUtils.isWgs(params.getUserId(), params.getEnterpriseId(), params.getSearchJson());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if(wgs == 1){
params.getStoreInfoIdList().add(-1);
params.getOnlineStoreIdList().add("-1");
}
}
public void setValueWgs(CommonQO params, LevelVo levelVo){
Integer wgs = storeSearchUtils.isWgs(params.getUserId(), params.getEnterpriseId(), params.getSearchJson());
if(params.getChannel() != null && params.getChannel() == 1 && params.getLevel() == levelVo.getLevel() && wgs == 1){
params.setChannel(null);
params.getStoreInfoIdList().clear();
params.getOnlineStoreIdList().clear();
params.getStoreInfoIdList().add(-1);
params.getOnlineStoreIdList().add("-1");
}
}
public void setValueWgs(CommonQO params){
Integer wgs = storeSearchUtils.isWgs(params.getUserId(), params.getEnterpriseId(), params.getSearchJson());
if(wgs == 1){
params.setChannel(null);
params.getStoreInfoIdList().clear();
params.getOnlineStoreIdList().clear();
params.getStoreInfoIdList().add(-1);
params.getOnlineStoreIdList().add("-1");
}
}
public Page<?> parseData(Page<?> page , Integer channel, Integer enterpriseId, Integer level, Integer maxLevel){
if(page != null && CollectionUtils.isNotEmpty(page.getResult())){
if(channel == null){ //全渠道
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment