| | |
| | | import com.yeshi.fanli.service.inter.user.UserActiveLogService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoRegisterService;
|
| | | import com.yeshi.fanli.util.user.ChannelEnumUtil;
|
| | |
|
| | | @Service
|
| | | public class UserActiveLogServiceImpl implements UserActiveLogService {
|
| | |
| | | UserInfoRegister register = new UserInfoRegister();
|
| | | register.setId(userActiveLog.getUid());
|
| | | register.setIp(userActiveLog.getIp());
|
| | | register.setChannel(ChannelEnumUtil.getChannelEnum(userActiveLog.getChannel()));
|
| | | register.setChannel(userActiveLog.getChannel());
|
| | | register.setDevice(userActiveLog.getDevice());
|
| | | userInfoRegisterService.addRegisterInfo(register);
|
| | | } catch (Exception e) {
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public long count90DaysLaterActiveNum(String date){
|
| | | Long count = userActiveLogMapper.countActiveNumByDate(date);
|
| | | public long count90DaysLaterActiveNum(String preDay){
|
| | | Long count = userActiveLogMapper.countActiveNumByDate(preDay);
|
| | | if (count == null) {
|
| | | count = 0L;
|
| | | }
|