| | |
| | | continue; |
| | | } |
| | | List<YyztTShkdrb> yyztTShkdrbs = stationInfoList.subList(fromIndex, toIndex); |
| | | try { |
| | | |
| | | List<Object[]> insertShkdrbList = new ArrayList<>(); |
| | | yyztTShkdrbs.forEach(item -> { |
| | | insertShkdrbList.add(new Object[]{ |
| | |
| | | batchNo}); |
| | | }); |
| | | jdbcTemplate.batchUpdate(batchInsertSql, insertShkdrbList); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | | //手工回滚异常 |
| | | // TransactionAspectSupport.currentTransactionStatus().rollbackToSavepoint(savePoint); |
| | | stationInfoService.updateRecord(recordId, 1, 0L, e.getMessage()); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | | jdbcTemplate.update(delSql); |
| | | stationInfoService.updateRecord(recordId, 1, 0L, e.getMessage()); |
| | | return; |
| | | } |
| | |
| | | log.error(e.getMessage()); |
| | | //手工回滚异常 |
| | | // TransactionAspectSupport.currentTransactionStatus().rollbackToSavepoint(savePoint); |
| | | jdbcTemplate.update(delSql); |
| | | stationInfoService.updateRecord(recordId, 1, 0L, e.getMessage()); |
| | | return; |
| | | } |