Browse Source

垫款功能,添加端口类型逻辑

zhaoxian 2 years ago
parent
commit
a5f4961c2d

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/controller/FinancePaymentPoolController.java

@@ -185,8 +185,8 @@ public class FinancePaymentPoolController {
      * 查询信息
      */
     @GetMapping(value = "/queryPool")
-    public Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type) {
-        return financePaymentPoolService.queryPoolAmountById(advertiserId, productId, type);
+    public Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type, String paymentPort) {
+        return financePaymentPoolService.queryPoolAmountById(advertiserId, productId, type, paymentPort);
     }
 
     /**

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/mapper/FinancePaymentPoolMapper.java

@@ -23,6 +23,6 @@ public interface FinancePaymentPoolMapper extends BaseMapper<FinancePaymentPool>
 
     List<JSONObject> queryPoolProjectList(@Param("advertiserIds") List<String> advertiserIds, @Param("productId") Long productId, @Param("type") String type);
 
-    FinancePaymentPool queryFinancePaymentPoolById(@Param("advertiserId") String advertiserId, @Param("productId") Long productId, @Param("paymentMedia") String paymentMedia);
+    FinancePaymentPool queryFinancePaymentPoolById(@Param("advertiserId") String advertiserId, @Param("productId") Long productId, @Param("paymentMedia") String paymentMedia, @Param("paymentPort") String paymentPort);
 
 }

+ 1 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/mapper/xml/FinancePaymentPoolMapper.xml

@@ -40,6 +40,7 @@
         WHERE advertiser_id = #{advertiserId}
           AND product_id = #{productId}
           AND payment_media = #{paymentMedia}
+          AND payment_port = #{paymentPort}
     </select>
 
     <select id="queryIdAndName" resultType="com.alibaba.fastjson.JSONObject">

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/service/IFinancePaymentPoolService.java

@@ -26,5 +26,5 @@ public interface IFinancePaymentPoolService extends IService<FinancePaymentPool>
 
     Result<Object> queryPoolProjectList(String advertiserId, Long productId, String type);
 
-    Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type);
+    Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type, String paymentPort);
 }

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/service/impl/FinancePaymentPoolServiceImpl.java

@@ -117,7 +117,7 @@ public class FinancePaymentPoolServiceImpl extends ServiceImpl<FinancePaymentPoo
     }
 
     @Override
-    public Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type) {
-        return Result.ok(baseMapper.queryFinancePaymentPoolById(advertiserId, productId, type));
+    public Result<Object> queryPoolAmountById(String advertiserId, Long productId, String type, String paymentPort) {
+        return Result.ok(baseMapper.queryFinancePaymentPoolById(advertiserId, productId, type, paymentPort));
     }
 }