1
This commit is contained in:
@@ -30,7 +30,7 @@ public interface OrderRowRepository extends JpaRepository<OrderRow, String> {
|
|||||||
List<OrderRow> findByValidCode(int validCode);
|
List<OrderRow> findByValidCode(int validCode);
|
||||||
|
|
||||||
// 查找 validCode != 15 或者 !=-1 的订单行 ,并且按orderTime 降序
|
// 查找 validCode != 15 或者 !=-1 的订单行 ,并且按orderTime 降序
|
||||||
@Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC")
|
@Query("select o from OrderRow o where o.validCode not in ?1 and o.unionId =?2 order by o.orderTime DESC")
|
||||||
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDescAndUnionId(int[] validCodes,Long unionId);
|
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDescAndUnionId(int[] validCodes,Long unionId);
|
||||||
|
|
||||||
@Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime >= ?2 order by o.orderTime DESC")
|
@Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime >= ?2 order by o.orderTime DESC")
|
||||||
|
|||||||
Reference in New Issue
Block a user