Compare commits
No commits in common. "9a6e45053c0fa5019192d81b5cf1a6eaa63854aa" and "23c3f3bb9096a324f3526bf44d631c71b58c7fa7" have entirely different histories.
9a6e45053c
...
23c3f3bb90
|
@ -1,6 +1,5 @@
|
|||
package cn.iocoder.yudao.module.shop.service.recharge;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import cn.iocoder.yudao.module.shop.dal.dataobject.recharge.PhoneRecordDO;
|
||||
|
@ -107,9 +106,6 @@ public class RechargeGearServiceImpl implements RechargeGearService {
|
|||
Assert.notNull(loginUser, "登录失效,请重新登录!");
|
||||
List<RechargeGearDO> rechargeGearDOS = rechargeGearMapper.selectList(Wrappers.<RechargeGearDO>lambdaQuery()
|
||||
.eq(RechargeGearDO::getDeleted, 0));
|
||||
if (CollectionUtils.isEmpty(rechargeGearDOS)) {
|
||||
throw new ServiceException("未初始化档次信息!");
|
||||
}
|
||||
List<RechargeGearRespVO> rechargeGearRespVOS = RechargeGearConvert.INSTANCE.convertList(rechargeGearDOS);
|
||||
List<PhoneRecordDO> infoDOS = phoneRecordMapper.selectList(Wrappers.<PhoneRecordDO>lambdaQuery().eq(PhoneRecordDO::getUserId, loginUser.getId()));
|
||||
Map<Long, List<PhoneRecordDO>> collect = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
|
||||
|
@ -129,9 +125,6 @@ public class RechargeGearServiceImpl implements RechargeGearService {
|
|||
List<RechargeGearDO> rechargeGearDOS = rechargeGearMapper.selectList(Wrappers.<RechargeGearDO>lambdaQuery()
|
||||
.eq(RechargeGearDO::getDeleted, 0));
|
||||
List<RechargeGearRespVO> rechargeGearRespVOS = RechargeGearConvert.INSTANCE.convertList(rechargeGearDOS);
|
||||
if (CollectionUtils.isEmpty(rechargeGearDOS)) {
|
||||
throw new ServiceException("未初始化档次信息!");
|
||||
}
|
||||
List<PhoneRecordDO> infoDOS = phoneRecordMapper.selectList(Wrappers.<PhoneRecordDO>lambdaQuery().eq(PhoneRecordDO::getPhone, phone));
|
||||
Map<Long, List<PhoneRecordDO>> collect = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
|
||||
rechargeGearRespVOS.forEach(vo -> {
|
||||
|
|
|
@ -83,7 +83,6 @@ public class AppUserController {
|
|||
}else{
|
||||
appUserInfoRespVO.setUserType(UserTypeEnum.MEMBER);
|
||||
}
|
||||
appUserInfoRespVO.setUserId(user.getId());
|
||||
return success(appUserInfoRespVO);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue