no message

main
HUOJIN\92525 2024-12-02 17:11:28 +08:00
parent e44ff8250d
commit a737f4afdc
1 changed files with 5 additions and 4 deletions

View File

@ -47,6 +47,7 @@ public interface StockRepository extends JpaRepository<Stock, Long>, JpaSpecific
" and s.point.id > 0 " +
" and s.point.status = 'USED'" +
" and s.status = :status " +
"and s.enabled = true")
" and s.enabled = true " +
" and s.code not in (select agv.stockCode from AgvTask agv where agv.status not in ('FINISH','CANCEL') ) ")
List<Stock> findByFreeOrUsedStock(String areaName, String status);
}