| | |
| | | |
| | | import com.yeshi.makemoney.app.entity.SystemEnum; |
| | | import com.yeshi.makemoney.app.service.inter.user.QQUserInfoService; |
| | | import com.yeshi.makemoney.app.service.inter.user.UserExtraInfoService; |
| | | import com.yeshi.makemoney.app.service.inter.user.WXUserInfoService; |
| | | import com.yeshi.makemoney.app.utils.user.InviteCodeUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.Date; |
| | | |
| | | import org.yeshi.utils.bean.BeanUtil; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.yeshi.makemoney.app.dao.user.UserInfoDao; |
| | | import com.yeshi.makemoney.app.entity.user.UserInfo; |
| | |
| | | @Resource |
| | | private QQUserInfoService qqUserInfoService; |
| | | |
| | | @Resource |
| | | private UserExtraInfoService userExtraInfoService; |
| | | |
| | | @Override |
| | | public List<UserInfo> list(UserInfoQuery userInfoQuery, int page, int pageSize) { |
| | | DaoQuery daoQuery = new DaoQuery(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfo> list(List<Long> uidList) { |
| | | if(uidList==null||uidList.size()==0) { |
| | | public List<UserInfo> list(Collection<Long> uidList) { |
| | | if (uidList == null || uidList.size() == 0) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return userInfoMapper.listByUids(uidList); |
| | | List<Long> list = new ArrayList<>(); |
| | | list.addAll(uidList); |
| | | return userInfoMapper.listByUids(list); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | //保存 |
| | | userInfoMapper.insertSelective(userInfo); |
| | | |
| | | //添加邀请码 |
| | | userExtraInfoService.setInviteCode(userInfo.getId(), InviteCodeUtil.createInviteCode(userInfo.getId())); |
| | | } |
| | | |
| | | @Override |