|
@@ -3,6 +3,7 @@ package com.pig4cloud.pig.statistics.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.pig4cloud.pig.common.core.exception.BusinessException;
|
|
import com.pig4cloud.pig.common.core.exception.BusinessException;
|
|
@@ -1170,6 +1171,28 @@ public class UserAnalyseServiceImpl implements UserAnalyseService {
|
|
return activeUserMapper.insert(data) == 1;
|
|
return activeUserMapper.insert(data) == 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public Boolean updateMktStatNewUser(MktStatNewUser data) {
|
|
|
|
+ LambdaUpdateWrapper<MktStatNewUser> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
|
+ updateWrapper.eq(MktStatNewUser::getUserId, data.getUserId());
|
|
|
|
+ updateWrapper.eq(MktStatNewUser::getVersion, "0.0.0");
|
|
|
|
+ updateWrapper.eq(MktStatNewUser::getChannel, "应用市场");
|
|
|
|
+ updateWrapper.set(MktStatNewUser::getAppId, data.getAppId());
|
|
|
|
+ int update = newUserMapper.update(null, updateWrapper);
|
|
|
|
+ return update == 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public Boolean updateMktStatActiveUser(MktStatActiveUser data) {
|
|
|
|
+ LambdaUpdateWrapper<MktStatActiveUser> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
|
+ updateWrapper.eq(MktStatActiveUser::getUserId, data.getUserId());
|
|
|
|
+ updateWrapper.eq(MktStatActiveUser::getVersion, "0.0.0");
|
|
|
|
+ updateWrapper.eq(MktStatActiveUser::getChannel, "应用市场");
|
|
|
|
+ updateWrapper.set(MktStatActiveUser::getAppId, data.getAppId());
|
|
|
|
+ int update = activeUserMapper.update(null, updateWrapper);
|
|
|
|
+ return update == 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/************************************** 公用方法 **************************************
|
|
/************************************** 公用方法 **************************************
|
|
* 统计指定时间范围内的新增用户数
|
|
* 统计指定时间范围内的新增用户数
|