From 7a9ac5d05cb708c497521f0938dc96d4f717a239 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 13 六月 2024 01:30:30 +0800
Subject: [PATCH] 优化房屋收费页面
---
service-acct/src/main/java/com/java110/acct/payment/business/payFee/PayFeePaymentBusiness.java | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/service-acct/src/main/java/com/java110/acct/payment/business/payFee/PayFeePaymentBusiness.java b/service-acct/src/main/java/com/java110/acct/payment/business/payFee/PayFeePaymentBusiness.java
index cf77cd8..64977aa 100644
--- a/service-acct/src/main/java/com/java110/acct/payment/business/payFee/PayFeePaymentBusiness.java
+++ b/service-acct/src/main/java/com/java110/acct/payment/business/payFee/PayFeePaymentBusiness.java
@@ -1,15 +1,18 @@
package com.java110.acct.payment.business.payFee;
import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.integral.IComputeGiftIntegral;
import com.java110.acct.payment.IPaymentBusiness;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.factory.CallApiServiceFactory;
import com.java110.core.log.LoggerFactory;
import com.java110.dto.fee.FeeDto;
+import com.java110.dto.integral.GiftIntegralDto;
import com.java110.dto.payment.PaymentOrderDto;
import com.java110.utils.cache.CommonCache;
import com.java110.utils.util.MoneyUtil;
import org.slf4j.Logger;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@@ -25,6 +28,10 @@
private final static Logger logger = LoggerFactory.getLogger(PayFeePaymentBusiness.class);
+ @Autowired
+ private IComputeGiftIntegral computeGiftIntegralImpl;
+
+
@Override
public PaymentOrderDto unified(ICmdDataFlowContext context, JSONObject reqJson) {
@@ -35,14 +42,24 @@
String feeName = orderInfo.getString("feeName");
double money = Double.parseDouble(orderInfo.getString("receivedAmount"));
+ GiftIntegralDto giftIntegralDto = computeGiftIntegralImpl.gift(money, reqJson.getIntValue("cycles"), reqJson.getString("communityId"));
+
//杩欓噷闃叉 灏忔暟鐐逛笉鏄� 2浣� 姣斿 3浣嶄箣绫荤殑 寰俊骞冲彴涓嶆敮鎸�
- money = MoneyUtil.computePriceScale(money,"1",2);
+ money = MoneyUtil.computePriceScale(money, "1", 2);
PaymentOrderDto paymentOrderDto = new PaymentOrderDto();
paymentOrderDto.setOrderId(orderId);
paymentOrderDto.setMoney(money);
paymentOrderDto.setName(feeName);
+
+ if (giftIntegralDto != null && giftIntegralDto.getMoney() > 0) {
+ paymentOrderDto.setIsShare("Y");
+ giftIntegralDto.setUserId(userId);
+ paymentOrderDto.setGiftIntegralDto(giftIntegralDto);
+ }
+
+
return paymentOrderDto;
}
--
Gitblit v1.8.0