|
|
@@ -5,6 +5,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.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.jpa.repository.query.Procedure;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
@@ -12,6 +13,8 @@ import org.springframework.stereotype.Repository;
|
|
|
|
|
|
import com.uas.platform.b2b.model.PurchaseOrderAll;
|
|
|
|
|
|
+import javax.transaction.Transactional;
|
|
|
+
|
|
|
@Repository
|
|
|
public interface PurchaseOrderAllDao extends JpaSpecificationExecutor<PurchaseOrderAll>, JpaRepository<PurchaseOrderAll, Long> {
|
|
|
|
|
|
@@ -40,7 +43,8 @@ public interface PurchaseOrderAllDao extends JpaSpecificationExecutor<PurchaseOr
|
|
|
* 状态
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<PurchaseOrderAll> findByVendUUAndSendStatus(long vendUU, short sendStatus);
|
|
|
+ @Query("from PurchaseOrderAll where vendUU = :vendUU and sendStatus = :sendStatus and status <> 311")
|
|
|
+ public List<PurchaseOrderAll> findByVendUUAndSendStatus(@Param("vendUU") long vendUU, @Param("sendStatus") short sendStatus);
|
|
|
|
|
|
/**
|
|
|
* 根据截止日期获取
|