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

@ -44,9 +44,10 @@ public interface StockRepository extends JpaRepository<Stock, Long>, JpaSpecific
Stock findByPointCode(String pointCode); Stock findByPointCode(String pointCode);
@Query(" from Stock s where s.point.area.name = :areaName " + @Query(" from Stock s where s.point.area.name = :areaName " +
"and s.point.id > 0 " + " and s.point.id > 0 " +
"and s.point.status = 'USED'" + " and s.point.status = 'USED'" +
"and s.status = :status " + " 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); List<Stock> findByFreeOrUsedStock(String areaName, String status);
} }