循环引用

This commit is contained in:
GYJ 2025-02-25 18:23:08 +08:00
parent 912f2ff341
commit 476df9411e
1 changed files with 4 additions and 5 deletions

View File

@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@ -37,15 +38,13 @@ public class WuyouPay {
private final CashOutDao cashOutDao;
private final CommonInfoService commonInfoService;
private final CashOutService cashOutService;
private static final Logger logger = LoggerFactory.getLogger(WuyouPay.class);
public WuyouPay(CashOutDao cashOutDao, CommonInfoService commonInfoService, CashOutService cashOutService) {
public WuyouPay(CashOutDao cashOutDao, CommonInfoService commonInfoService) {
this.cashOutDao = cashOutDao;
this.commonInfoService = commonInfoService;
this.cashOutService = cashOutService;
}
public BaseResp payOrder(String orderNo, Long userId, String amount, String userAgent, String allId, String payType) {
@ -145,7 +144,7 @@ public class WuyouPay {
throw new ValidateException("【929】当日累计提现额未配置");
}
double money = Double.parseDouble(info.getValue());
Double v = cashOutService.queryUserTodayCashAmount(userId);
Double v = cashOutDao.queryUserTodayCashOutSum(userId, DateUtil.format(DateUtil.beginOfDay(new Date()), "yyyy-MM-dd HH:mm:ss"));
if (v == null) {
v = 0.0d;
}
@ -275,7 +274,7 @@ public class WuyouPay {
}
public static void main(String[] args) {
WuyouPay pay = new WuyouPay(null, null, null);
WuyouPay pay = new WuyouPay(null, null);
Map<String, Object> params = pay.getBaseParams();