no message
parent
e44ff8250d
commit
a737f4afdc
|
|
@ -44,9 +44,10 @@ public interface StockRepository extends JpaRepository<Stock, Long>, JpaSpecific
|
|||
Stock findByPointCode(String pointCode);
|
||||
|
||||
@Query(" from Stock s where s.point.area.name = :areaName " +
|
||||
"and s.point.id > 0 " +
|
||||
"and s.point.status = 'USED'" +
|
||||
"and s.status = :status " +
|
||||
"and s.enabled = true")
|
||||
" and s.point.id > 0 " +
|
||||
" and s.point.status = 'USED'" +
|
||||
" and s.status = :status " +
|
||||
" 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue