Commit aff51c93 authored by 吴琼's avatar 吴琼

xiugai

parent 12ec2c64
...@@ -33,7 +33,7 @@ public interface TransactionReceiptRecordRepo extends JpaRepository<TransactionR ...@@ -33,7 +33,7 @@ public interface TransactionReceiptRecordRepo extends JpaRepository<TransactionR
@Modifying @Modifying
@Transactional @Transactional
@Query(value = "update transaction_receipt_record set import_status = ?1 where order_no =?2 ", nativeQuery = true) @Query(value = "update transaction_receipt_record set import_status = ?1 where order_no =?2 and import_status = 0 ", nativeQuery = true)
int updateTransactionStatusByImportStatus(Integer status,String orderNo); int updateTransactionStatusByImportStatus(Integer status,String orderNo);
@Modifying @Modifying
......
...@@ -159,6 +159,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -159,6 +159,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
List<TransactionReceiptRecord> readList = null; List<TransactionReceiptRecord> readList = null;
try { try {
readList = read(file.getOriginalFilename(), file.getInputStream()); readList = read(file.getOriginalFilename(), file.getInputStream());
if(CollectionUtils.isEmpty(readList)){
throw new RuntimeException("文件中没有数据");
}
/*if(readList !=null && readList.size() > fileSize){ /*if(readList !=null && readList.size() > fileSize){
throw new RuntimeException("文件太大,最多可以读取"+fileSize+"条数据!"); throw new RuntimeException("文件太大,最多可以读取"+fileSize+"条数据!");
}*/ }*/
......
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