|
|
@@ -18,6 +18,7 @@ import com.sckw.payment.model.constant.WalletChannelEnum;
|
|
|
import com.sckw.payment.model.dto.SettlementLogisticsDto;
|
|
|
import com.sckw.payment.model.dto.SettlementTradeDto;
|
|
|
import com.sckw.payment.model.dto.SettlementWalletDto;
|
|
|
+import com.sckw.payment.model.vo.req.OfflinePaymentReq;
|
|
|
import com.sckw.payment.model.vo.req.SettlementWalletReq;
|
|
|
import com.sckw.payment.model.vo.res.SettlementWalletVo;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@@ -101,8 +102,6 @@ public class KwpSettlementWalletService {
|
|
|
/**
|
|
|
* 物流-电子钱包付款(货到付款)结算记录-新增
|
|
|
*
|
|
|
- * @param id 结算单id
|
|
|
- * @param price 付款金额
|
|
|
* @return InsertId
|
|
|
* @author Aick Spt
|
|
|
* @date 2023-07-20 14:23
|
|
|
@@ -110,8 +109,10 @@ public class KwpSettlementWalletService {
|
|
|
* Transactional// isolation:事务的隔离级别,此处使用后端数据库的默认隔离级别, propagation: 如果当前没有事务,就新建一个事务,如果已经存在一个事务中,加入到这个事务中(常见)。(rollbackFor = Exception.class, isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED)
|
|
|
*/
|
|
|
@Transactional
|
|
|
- public Integer confirmLogisticsPayment(Long id, BigDecimal price) {
|
|
|
+ public Integer confirmLogisticsPayment(OfflinePaymentReq offlinePaymentReq) {
|
|
|
//先查询出结算单情况
|
|
|
+ Long id = offlinePaymentReq.getIdLong();
|
|
|
+ BigDecimal price = offlinePaymentReq.getPrice();
|
|
|
SettlementLogisticsDto settlementLogisticsDto = kwpSettlementLogisticsService.detailPayment(id);
|
|
|
log.info(String.valueOf(settlementLogisticsDto));
|
|
|
//检查结算单状态和所差金额
|
|
|
@@ -210,8 +211,10 @@ public class KwpSettlementWalletService {
|
|
|
* @author Aick Spt
|
|
|
* @date 2023-07-27 16:13
|
|
|
*/
|
|
|
- public Integer confirmTradePayment(Long id, BigDecimal price) {
|
|
|
+ public Integer confirmTradePayment(OfflinePaymentReq offlinePaymentReq) {
|
|
|
//先查询出结算单情况
|
|
|
+ Long id = offlinePaymentReq.getIdLong();
|
|
|
+ BigDecimal price = offlinePaymentReq.getPrice();
|
|
|
SettlementTradeDto settlementTradeDto = kwpSettlementTradeService.detailPayment(id);
|
|
|
log.info(String.valueOf(settlementTradeDto));
|
|
|
//检查结算单状态和所差金额
|