|
@@ -1,11 +1,7 @@
|
|
|
package com.uas.platform.b2b.dao;
|
|
package com.uas.platform.b2b.dao;
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-
|
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
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 org.springframework.stereotype.Repository;
|
|
|
|
|
|
|
|
import com.uas.platform.b2b.model.PurchaseOrderChangeItem;
|
|
import com.uas.platform.b2b.model.PurchaseOrderChangeItem;
|
|
@@ -14,14 +10,4 @@ import com.uas.platform.b2b.model.PurchaseOrderChangeItem;
|
|
|
public interface PurchaseOrderChangeItemDao extends JpaSpecificationExecutor<PurchaseOrderChangeItem>,
|
|
public interface PurchaseOrderChangeItemDao extends JpaSpecificationExecutor<PurchaseOrderChangeItem>,
|
|
|
JpaRepository<PurchaseOrderChangeItem, Long> {
|
|
JpaRepository<PurchaseOrderChangeItem, Long> {
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 按变更单明细状态查找变更单明细
|
|
|
|
|
- *
|
|
|
|
|
- * @param changeId
|
|
|
|
|
- * @param status
|
|
|
|
|
- * @return
|
|
|
|
|
- */
|
|
|
|
|
- @Query("from PurchaseOrderChangeItem d where d.orderChange.id = :changeId and d.status = :status")
|
|
|
|
|
- public List<PurchaseOrderChangeItem> findByChangeIdAndStatus(@Param("changeId") long changeId, @Param("status") short status);
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|