|
|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
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.jpa.repository.query.Procedure;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
@@ -32,7 +33,6 @@ public interface PurchaseApBillDao extends JpaSpecificationExecutor<PurchaseApBi
|
|
|
/**
|
|
|
* 卖家根据卖家UU号和下载状态和反过账状态获取客户反过账的客户应付发票
|
|
|
* @param vendUU
|
|
|
- * @param sendStatus
|
|
|
* @param nonPosting
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -40,7 +40,7 @@ public interface PurchaseApBillDao extends JpaSpecificationExecutor<PurchaseApBi
|
|
|
|
|
|
/**
|
|
|
* 根据截止日期获取(发票日期)
|
|
|
- * @param formDate
|
|
|
+ * @param vendUU
|
|
|
* @param endDate
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -50,7 +50,7 @@ public interface PurchaseApBillDao extends JpaSpecificationExecutor<PurchaseApBi
|
|
|
/**
|
|
|
* 根据起始日期获取(发票日期)
|
|
|
* @param formDate
|
|
|
- * @param endDate
|
|
|
+ * @param vendUU
|
|
|
* @return
|
|
|
*/
|
|
|
@Query("select p.id from PurchaseApBill p where p.vendUU=:vendUU and p.date >= :fromDate")
|
|
|
@@ -59,4 +59,12 @@ public interface PurchaseApBillDao extends JpaSpecificationExecutor<PurchaseApBi
|
|
|
@Query("select count(p) from PurchaseApBill p where p.vendUU=:vendUU")
|
|
|
public Long countByVendUU(@Param("vendUU") Long vendUU);
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据UU号和出入库单号更新发票主表的相关数据
|
|
|
+ *
|
|
|
+ * @param uu
|
|
|
+ * @param inoutno
|
|
|
+ */
|
|
|
+ @Procedure(procedureName = "refreshamountandtaxsum")
|
|
|
+ void refreshAmountAndTaxSum(Long uu, String inoutno);
|
|
|
}
|