|
|
@@ -9,6 +9,7 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
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;
|
|
|
|
|
|
@@ -192,4 +193,13 @@ public interface PurchaseInquiryItemDao extends JpaSpecificationExecutor<Purchas
|
|
|
*/
|
|
|
@Query("select count(p) from PurchaseInquiryItem p where p.id in :ids and p.inquiry.overdue=0 and (p.inquiry.check is null or p.inquiry.check <> 1) and p.status=200")
|
|
|
Integer getNotOfferCount(@Param("ids") List<Long> ids);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新询价报价传输到erp的状态
|
|
|
+ *
|
|
|
+ * @param enuu
|
|
|
+ * @param status
|
|
|
+ */
|
|
|
+ @Procedure(name = "inquiryitem_erpstatus_update")
|
|
|
+ void updateStatus(Long enuu, Short status);
|
|
|
}
|