| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ks.app.dao.user.UserInfoDao; |
| | | import com.ks.app.dao.user.UserInfoMapper; |
| | | import com.ks.app.entity.user.UserInfo; |
| | | import com.ks.app.service.inter.user.UserInfoService; |
| | | import com.ks.app.service.query.user.UserInfoQuery; |
| | | import com.ks.app.dao.user.UserInfoDao.DaoQuery; |
| | | import com.ks.app.dao.user.UserInfoMapper.DaoQuery; |
| | | import org.yeshi.utils.statistic.BaseStatisticMySQLTimeQuery; |
| | | import org.yeshi.utils.statistic.BaseStatisticTimeQuery; |
| | | import org.yeshi.utils.statistic.StatisticNumberResult; |
| | |
| | | public class UserInfoServiceImpl implements UserInfoService { |
| | | |
| | | @Resource |
| | | private UserInfoDao userInfoMapper; |
| | | private UserInfoMapper userInfoMapper; |
| | | @Resource |
| | | private WXUserInfoService wxUserInfoService; |
| | | @Resource |
| | |
| | | daoQuery.start = (page - 1) * pageSize; |
| | | daoQuery.count = pageSize; |
| | | return userInfoMapper.list(daoQuery); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfo> list(List<Long> uidList) { |
| | | if(uidList==null||uidList.size()==0) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return userInfoMapper.listByUids(uidList); |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public List<StatisticNumberResult> statisticRegisterUser(SystemEnum system, BaseStatisticTimeQuery timeQuery) { |
| | | |
| | | return userInfoMapper.statisticByCreateTime(system, BaseStatisticMySQLTimeQuery.create(timeQuery)); |
| | | return userInfoMapper.statisticByCreateTime(system, BaseStatisticMySQLTimeQuery.create(timeQuery)); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public UserInfo selectValidByPhone(SystemEnum system, String phone) { |
| | | DaoQuery daoQuery = new DaoQuery(); |
| | | daoQuery.phone = phone; |
| | | daoQuery.system = system; |
| | | daoQuery.count = 1; |
| | | List<UserInfo> userInfos = userInfoMapper.list(daoQuery); |
| | | return userInfos != null && userInfos.size() > 0 ? userInfos.get(0) : null; |
| | | } |
| | | |
| | | |
| | | } |