| | |
| | | package com.yeshi.fanli.service.impl.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.user.UserInfoRegisterMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoRegister;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoRegisterService;
|
| | |
|
| | | @Service
|
| | | public class UserInfoRegisterServiceImpl implements UserInfoRegisterService {
|
| | | |
| | | @Resource
|
| | | private UserInfoRegisterMapper userInfoRegisterMapper;
|
| | | |
| | | @Override
|
| | | public List<UserInfoRegister> listByMultipleUids(List<Long> list) {
|
| | | return userInfoRegisterMapper.listByMultipleUids(list);
|
| | | }
|
| | | |
| | | @Override
|
| | | public List<UserInfoRegister> listByMultipleUidAndDay(List<Long> list,String preDay) {
|
| | | return userInfoRegisterMapper.listByMultipleUidAndDay(list, preDay);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public List<UserInfoRegister> listByChannelAndDay(String channel, String preDay) {
|
| | | return userInfoRegisterMapper.listByChannelAndDay(channel, preDay);
|
| | | }
|
| | | |
| | | @Override
|
| | | public List<Long> listUidByChannelAndDay(String channel, String preDay) {
|
| | | return userInfoRegisterMapper.listUidByChannelAndDay(channel, preDay);
|
| | | }
|
| | | |
| | | @Override
|
| | | public List<Long> listUidByChannel(String channel) {
|
| | | return userInfoRegisterMapper.listUidByChannel(channel);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public Integer countByChannelAndDay(String channel, String preDay) {
|
| | | return userInfoRegisterMapper.countByChannelAndDay(channel, preDay);
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.service.impl.user; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.user.UserInfoRegisterMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserInfoRegister; |
| | | import com.yeshi.fanli.entity.system.ChannelEnum; |
| | | import com.yeshi.fanli.service.inter.user.UserInfoRegisterService; |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | |
| | | @Service |
| | | public class UserInfoRegisterServiceImpl implements UserInfoRegisterService { |
| | | |
| | | @Resource |
| | | private UserInfoRegisterMapper userInfoRegisterMapper; |
| | | |
| | | |
| | | @Override |
| | | public void addRegisterInfo(UserInfoRegister record) { |
| | | if (record == null || record.getId() == null) { |
| | | return; |
| | | } |
| | | |
| | | UserInfoRegister info = userInfoRegisterMapper.selectByPrimaryKey(record.getId()); |
| | | if (info != null) |
| | | return; |
| | | |
| | | if (StringUtil.isNullOrEmpty(record.getChannel())) { |
| | | record.setChannel(ChannelEnum.unknown.getVlaue()); |
| | | } |
| | | |
| | | record.setCreateTime(new Date()); |
| | | userInfoRegisterMapper.insertSelective(record); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public UserInfoRegister selectByPrimaryKey(Long uid) { |
| | | return userInfoRegisterMapper.selectByPrimaryKey(uid); |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public List<UserInfoRegister> listByMultipleUids(List<Long> list) { |
| | | return userInfoRegisterMapper.listByMultipleUids(list); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfoRegister> listByMultipleUidAndDay(List<Long> list,String preDay) { |
| | | return userInfoRegisterMapper.listByMultipleUidAndDay(list, preDay); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfoRegister> listByDay(String preDay) { |
| | | return userInfoRegisterMapper.listByDay(preDay); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfoRegister> listByChannelAndDay(String channel, String preDay) { |
| | | return userInfoRegisterMapper.listByChannelAndDay(channel, preDay); |
| | | } |
| | | |
| | | @Override |
| | | public List<Long> listUidByChannelAndDay(String channel, String preDay) { |
| | | return userInfoRegisterMapper.listUidByChannelAndDay(channel, preDay); |
| | | } |
| | | |
| | | @Override |
| | | public List<Long> listUidByChannel(String channel) { |
| | | return userInfoRegisterMapper.listUidByChannel(channel); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Long countByChannelAndDay(String channel, String preDay) { |
| | | return userInfoRegisterMapper.countByChannelAndDay(channel, preDay); |
| | | } |
| | | } |