Просмотр исходного кода

首页统计对账数据,带实现

xucaiqin 2 лет назад
Родитель
Сommit
ce6d0bf93f

+ 11 - 0
sckw-modules-api/sckw-payment-api/src/main/java/com/sckw/payment/api/dubbo/PaymentDubboService.java

@@ -1,6 +1,7 @@
 package com.sckw.payment.api.dubbo;
 
 import com.sckw.payment.api.model.constant.OrderEnum;
+import com.sckw.payment.api.model.dto.LedgerCount;
 
 import java.util.List;
 import java.util.Map;
@@ -24,4 +25,14 @@ public interface PaymentDubboService {
      */
     Map<OrderEnum, List<String>> checkSettlement(Long entId, Long entTarget);
 
+
+    /**
+     * 查询集团及主体单位的所有对账单
+     * 统计对账数量
+     *
+     * @param entId 集团id
+     * @return
+     */
+    LedgerCount countLedger(Long entId);
+
 }

+ 10 - 0
sckw-modules-api/sckw-payment-api/src/main/java/com/sckw/payment/api/model/dto/LedgerCount.java

@@ -0,0 +1,10 @@
+package com.sckw.payment.api.model.dto;
+
+/**
+ * @param sell     销售对账单数量
+ * @param purchase 采购对账单数量
+ * @param carrier  承运对账单数量
+ * @param shipper  托运对账单数量
+ */
+public record LedgerCount(Integer sell, Integer purchase, Integer carrier, Integer shipper) {
+}

+ 6 - 0
sckw-modules/sckw-payment/src/main/java/com/sckw/payment/service/dubbo/PaymentDubboServiceImpl.java

@@ -3,6 +3,7 @@ package com.sckw.payment.service.dubbo;
 import com.sckw.core.exception.BusinessException;
 import com.sckw.payment.api.dubbo.PaymentDubboService;
 import com.sckw.payment.api.model.constant.OrderEnum;
+import com.sckw.payment.api.model.dto.LedgerCount;
 import com.sckw.payment.service.KwpLedgerLogisticsService;
 import com.sckw.payment.service.KwpLedgerTradeService;
 import com.sckw.payment.service.KwpSettlementLogisticsService;
@@ -56,5 +57,10 @@ public class PaymentDubboServiceImpl implements PaymentDubboService {
         res.put(OrderEnum.TRADE, trade);
         return res;
     }
+
+    @Override
+    public LedgerCount countLedger(Long entId) {
+        return new LedgerCount(1, 1, 1, 1);
+    }
 }