|
|
@@ -1,15 +1,13 @@
|
|
|
package com.uas.platform.b2c.fa.payment.dao;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
+import com.uas.platform.b2c.fa.payment.model.BankTransfer;
|
|
|
+import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
-import com.uas.platform.b2c.fa.payment.model.BankTransfer;
|
|
|
-
|
|
|
-import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
-import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author yujia
|
|
|
@@ -28,6 +26,15 @@ public interface BankTransferDao extends JpaSpecificationExecutor<BankTransfer>,
|
|
|
*/
|
|
|
public List<BankTransfer> findByCollectenuu(Long collectenuu);
|
|
|
|
|
|
+ /**
|
|
|
+ * 统计卖家的应收对账总金额
|
|
|
+ * @param operateType
|
|
|
+ * @param collectenuu
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Query(value = "select sum(b.total) from BankTransfer b where b.operateType = :operateType and b.collectenuu = :collectenuu")
|
|
|
+ Double getLedgerByTypeAndEnuu(@Param("operateType") Integer operateType, @Param("collectenuu") Long collectenuu);
|
|
|
+
|
|
|
/**
|
|
|
* 根据转账流水单id查找转账信息(客户)
|
|
|
*
|