|
@ -1,6 +1,8 @@ |
|
|
package com.example.demo.serviceImpl.coin; |
|
|
package com.example.demo.serviceImpl.coin; |
|
|
|
|
|
|
|
|
import com.example.demo.domain.entity.UserGoldRecord; |
|
|
import com.example.demo.domain.entity.UserGoldRecord; |
|
|
|
|
|
import com.example.demo.domain.vo.bean.BeanUserCard; |
|
|
|
|
|
import com.example.demo.mapper.bean.BeanUserMapper; |
|
|
import com.example.demo.mapper.coin.MarketMapper; |
|
|
import com.example.demo.mapper.coin.MarketMapper; |
|
|
import com.example.demo.mapper.coin.RechargeMapper; |
|
|
import com.example.demo.mapper.coin.RechargeMapper; |
|
|
import com.example.demo.mapper.coin.UserMapper; |
|
|
import com.example.demo.mapper.coin.UserMapper; |
|
@ -39,6 +41,9 @@ public class RechargeServiceImpl implements RechargeService { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private MarketMapper marketMapper; |
|
|
private MarketMapper marketMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private BeanUserMapper beanUserMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询所有充值 |
|
|
//查询所有充值 |
|
@ -107,10 +112,12 @@ public class RechargeServiceImpl implements RechargeService { |
|
|
{ |
|
|
{ |
|
|
return Result.error("精网号位数小于8位或大于8位"); |
|
|
return Result.error("精网号位数小于8位或大于8位"); |
|
|
} |
|
|
} |
|
|
GoldUser goldUser = userMapper.selectUser(rechargeUser.getJwcode().toString()); |
|
|
|
|
|
if(goldUser==null){ |
|
|
|
|
|
return Result.error("用户不存在"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BeanUserCard user = beanUserMapper.userCard(String.valueOf(rechargeUser.getJwcode())); |
|
|
|
|
|
if(user==null){ |
|
|
|
|
|
return Result.error("用户查找不到"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
UserGoldRecord userGoldRecord = new UserGoldRecord(); |
|
|
UserGoldRecord userGoldRecord = new UserGoldRecord(); |
|
|
|
|
|
|
|
|
// 获取当前时间戳部分 |
|
|
// 获取当前时间戳部分 |
|
|