Browse Source

feature 代码提交

xiahan 2 months ago
parent
commit
9121973f2c

+ 4 - 3
zhsw-wechat-common/src/main/java/com/rongwei/wechat/system/wechat/impl/PayMentServiceImpl.java

@@ -221,9 +221,10 @@ public class PayMentServiceImpl implements PayMentService {
         CreatePaymentRecordVo createPaymentRecordVo = new CreatePaymentRecordVo();
         createPaymentRecordVo.setOrderNo(outTradeNo);
         createPaymentRecordVo.setPaymentAmount(amount);
-        swBillManagementUnpaidService.list(new LambdaQueryWrapper<SwBillManagementUnpaidDo>()
-                .eq(BaseDo::getDeleted,"0").eq());
-        createPaymentRecordVo.setZdId();
+        List<SwBillManagementUnpaidDo> list = swBillManagementUnpaidService.list(new LambdaQueryWrapper<SwBillManagementUnpaidDo>()
+                .eq(BaseDo::getDeleted, "0").eq(SwBillManagementUnpaidDo::getMerchantpaymentnumber, outTradeNo));
+        String zdIds = list.stream().map(SwBillManagementUnpaidDo::getId).collect(Collectors.joining(","));
+        createPaymentRecordVo.setZdId(zdIds);
         createPaymentRecordVo.setUserNumber(userNum);
         paymentRecordService.createRecord(createPaymentRecordVo);