wangxx недель назад: 2
Родитель
Сommit
5c9b9ab8b5

+ 2 - 2
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -101,7 +101,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
101
     // ════════════════════════════════════════════════════════════════
101
     // ════════════════════════════════════════════════════════════════
102
     //  入口
102
     //  入口
103
     // ════════════════════════════════════════════════════════════════
103
     // ════════════════════════════════════════════════════════════════
104
-
104
+    @Transactional(rollbackFor = Exception.class)
105
     @Override
105
     @Override
106
     public Map<String, String> importAll(MultipartFile file, String batchNo, String username) throws Exception {
106
     public Map<String, String> importAll(MultipartFile file, String batchNo, String username) throws Exception {
107
         Map<String, String> result = new LinkedHashMap<>();
107
         Map<String, String> result = new LinkedHashMap<>();
@@ -719,7 +719,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
719
         for (Object[] c : dataRows(sheet, 2)) {
719
         for (Object[] c : dataRows(sheet, 2)) {
720
             LedgerSeizureStats o = new LedgerSeizureStats();
720
             LedgerSeizureStats o = new LedgerSeizureStats();
721
             o.setRecordDate(date(c, 0));         // 查获日期
721
             o.setRecordDate(date(c, 0));         // 查获日期
722
-            o.setSeizureTime(str(c, 1));         // 查获时间
722
+            o.setSeizureTime(timeStr(c, 1));      // 查获时间
723
             o.setDeptName(str(c, 2));            // 部门/队室
723
             o.setDeptName(str(c, 2));            // 部门/队室
724
             o.setWorkArea(str(c, 3));            // 工作区域
724
             o.setWorkArea(str(c, 3));            // 工作区域
725
             String inspectorName = str(c, 4);    // 安检员
725
             String inspectorName = str(c, 4);    // 安检员