Commit 6e6d6b58 authored by 李健华's avatar 李健华

修改索引

parent 329caaf5
......@@ -33,10 +33,10 @@ public class TransactionReceiptRecord {
private Integer exportStatus = 0;
@Column(name = "order_no")
private String orderNo;
private String orderNo = "";
@Column(name = "consume_no")
private String consumeNo;
private String consumeNo = "";
@Column(name = "batch_no")
private Integer batchNo =0;
......
......@@ -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 import_status = 1 and export_status != 1 and order_no = ?1 order by id desc", nativeQuery = true)
@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)
List<TransactionReceiptRecord> selectRecords(String orderNo);
@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)
@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)
List<TransactionReceiptRecord> selectRecordsConsumeNo(String orderNo);
......
......@@ -16,6 +16,8 @@ public class TransactionReceiptRecordVO {
private String tradeNo;
private String consumeNo;
private Integer id;
}
......@@ -143,6 +143,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
workOrderVO.setUserId(it.getUserId());
workOrderVO.setUserName(it.getUserName());
workOrderVO.setSerialNo(it.getSerialNo());
workOrderVO.setConsumeNo(it.getConsumeNo());
workOrderVO.setExportStatus(it.getExportStatus());
workOrderVO.setImportStatus(it.getImportStatus());
workOrderVO.setId(workOrderVO.getId());
......
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