瀏覽代碼

日期提示提交

Wayne 3 月之前
父節點
當前提交
4549e54bf0

+ 2 - 2
projects-service/src/main/java/com/rtrh/projects/modules/projects/service/impl/SubInfoServiceImpl.java

@@ -5501,7 +5501,7 @@ public class SubInfoServiceImpl implements SubInfoService {
                             try {
                                 xmzhtjDetailVo.setBeginDate(DateUtil.parseDate(readAll.get(i).get(j).toString()));
                             }catch (Exception e){
-                                throw new RuntimeException("导入失败,第" + (i-2) + "行,时间格式有问题!" + readAll.get(i).get(j));
+                                throw new RuntimeException("导入失败,第" + (i+1) + "行,时间格式有问题!" + readAll.get(i).get(j));
                             }
                         }else {
                             xmzhtjDetailVo.setBeginDate(null);
@@ -5512,7 +5512,7 @@ public class SubInfoServiceImpl implements SubInfoService {
                             try {
                                 xmzhtjDetailVo.setEndDate(DateUtil.parseDate(readAll.get(i).get(j).toString()));
                             }catch (Exception e){
-                                throw new RuntimeException("导入失败,第" + (i-2) + "行,时间格式有问题!" + readAll.get(i).get(j));
+                                throw new RuntimeException("导入失败,第" + (i+1) + "行,时间格式有问题!" + readAll.get(i).get(j));
                             }
                         }else {
                             xmzhtjDetailVo.setEndDate(null);