|
|
|
@ -3,7 +3,6 @@ package com.sztzjy.marketing.service.impl;/**
|
|
|
|
|
* @date 2024-06-12 10:43
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.sztzjy.marketing.config.Constant;
|
|
|
|
@ -13,17 +12,14 @@ import com.sztzjy.marketing.entity.dto.StuUserProfileDto;
|
|
|
|
|
import com.sztzjy.marketing.mapper.*;
|
|
|
|
|
import com.sztzjy.marketing.service.StuUserProfileDatabaseService;
|
|
|
|
|
import com.sztzjy.marketing.util.ResultEntity;
|
|
|
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
|
|
|
import java.rmi.ServerException;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.function.Predicate;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@ -58,6 +54,15 @@ public class StuUserProfileDatabaseServiceImpl implements StuUserProfileDatabase
|
|
|
|
|
list.add("购物车数据表");
|
|
|
|
|
list.add("用户评论表");
|
|
|
|
|
|
|
|
|
|
list.add("RFM明细数据");
|
|
|
|
|
list.add("AARRR传播数据");
|
|
|
|
|
list.add("超市销售数据");
|
|
|
|
|
list.add("集团商品销售总表");
|
|
|
|
|
list.add("用户登录表");
|
|
|
|
|
list.add("用户留存分析");
|
|
|
|
|
list.add("用户粘性分析");
|
|
|
|
|
list.add("AARRR示例数据");
|
|
|
|
|
|
|
|
|
|
//用户属性表
|
|
|
|
|
StuSpendingLevelExample userAttributeExample = new StuSpendingLevelExample();
|
|
|
|
|
userAttributeExample.setOrderByClause("id asc");
|
|
|
|
@ -156,6 +161,24 @@ public class StuUserProfileDatabaseServiceImpl implements StuUserProfileDatabase
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String[] list = {"RFM明细数据","AARRR传播数据","超市销售数据","集团商品销售总表","用户登录表","用户留存分析","用户粘性分析","AARRR示例数据"};
|
|
|
|
|
List<String> collect = Arrays.stream(list).collect(Collectors.toList());
|
|
|
|
|
if (collect.contains(tableName))
|
|
|
|
|
{
|
|
|
|
|
//开启分页
|
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
|
StuUploadExcelUserExample uploadExcelUserExample = new StuUploadExcelUserExample();
|
|
|
|
|
uploadExcelUserExample.createCriteria().andUserIdEqualTo("999999999").andModuleEqualTo(tableName);
|
|
|
|
|
List<StuUploadExcelUser> stuUploadExcelUsers = uploadExcelUserMapper.selectByExample(uploadExcelUserExample);
|
|
|
|
|
if (!CollectionUtils.isEmpty(stuUploadExcelUsers))
|
|
|
|
|
{
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, new PageInfo<>(stuUploadExcelUsers));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|