|
|
@@ -41,7 +41,7 @@ public interface PurchaseInquiryItemDao
|
|
|
* @param backStatus
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query("from PurchaseInquiryItem d where d.inquiry.enUU = :enUU and d.backStatus = :backStatus")
|
|
|
+ @Query("from PurchaseInquiryItem d where d.inquiry.enUU = :enUU and d.backStatus = :backStatus and d.sourceApp is null")
|
|
|
List<PurchaseInquiryItem> findByEnUUAndBackStatus(@Param("enUU") long enUU, @Param("backStatus") short backStatus);
|
|
|
|
|
|
/**
|
|
|
@@ -138,12 +138,4 @@ public interface PurchaseInquiryItemDao
|
|
|
@Query("select count(p) from PurchaseInquiryItem p where p.vendUU = :vendUU")
|
|
|
public long countByVendUU(@Param("vendUU") Long vendUU);
|
|
|
|
|
|
- /**
|
|
|
- * 查询单据是否存在
|
|
|
- *
|
|
|
- * @param enuu
|
|
|
- * @param sourceId
|
|
|
- * @return
|
|
|
- */
|
|
|
- public PurchaseInquiryItem findByVendUUAndSourceId(Long enuu, Long sourceId);
|
|
|
}
|