|
|
@@ -47,7 +47,7 @@ public class AuctionActivityService {
|
|
|
private final TaskScheduler taskScheduler;
|
|
|
private final Environment env;
|
|
|
private final SysConfigService sysConfigService;
|
|
|
- private final RockRecordRepo rockRecordRepo;
|
|
|
+ private final RockRecordService rockRecordService;
|
|
|
|
|
|
private final Map<Long, ScheduledFuture<?>> tasks = new HashMap<>();
|
|
|
|
|
|
@@ -119,7 +119,7 @@ public class AuctionActivityService {
|
|
|
if (!AuthStatus.SUCCESS.equals(user.getAuthStatus())) {
|
|
|
throw new BusinessException("未实名或实名未通过");
|
|
|
}
|
|
|
- BigDecimal userBuy = rockRecordRepo.findRecordByUserIdOrderByIdDesc(user.getId());
|
|
|
+ BigDecimal userBuy = rockRecordService.getRock(user.getId()).getRecord();
|
|
|
BigDecimal num = sysConfigService.getBigDecimal("auction_lvzhoushi_num");
|
|
|
if (userBuy.compareTo(num) < 0) {
|
|
|
throw new BusinessException("绿洲石不足");
|