Commit 329caaf5 authored by 李健华's avatar 李健华

修改查询语句顺序

parent 4db4266e
......@@ -36,10 +36,10 @@ public interface TransactionReceiptRecordRepo extends JpaRepository<TransactionR
@Query(value = "update transaction_receipt_record set import_status = ?1 where import_status = 0 and order_no =?2 ", nativeQuery = true)
int updateTransactionStatusByImportStatus(Integer status,String orderNo);
@Query(value = "select * from transaction_receipt_record where order_no = ?1 and import_status = 1 and export_status != 1 order by id desc", nativeQuery = true)
@Query(value = "select * from transaction_receipt_record where import_status = 1 and export_status != 1 and order_no = ?1 order by id desc", nativeQuery = true)
List<TransactionReceiptRecord> selectRecords(String orderNo);
@Query(value = "select * from transaction_receipt_record where consume_no = ?1 and import_status = 1 and export_status != 1 order by id desc", nativeQuery = true)
@Query(value = "select * from transaction_receipt_record where import_status = 1 and export_status != 1 and consume_no = ?1 order by id desc", nativeQuery = true)
List<TransactionReceiptRecord> selectRecordsConsumeNo(String orderNo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment