소스 검색

fix:抛出异常

ly 10 달 전
부모
커밋
6eeb823727
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/cn/ezhizao/project/business/entrustExamine/controller/BizEntrustExamineController.java

+ 2 - 2
src/main/java/cn/ezhizao/project/business/entrustExamine/controller/BizEntrustExamineController.java

@@ -158,7 +158,7 @@ public class BizEntrustExamineController extends BaseController {
                 try {
                     d = format.parse(str);
                 } catch (Exception e) {
-                    e.printStackTrace();
+                    throw new RuntimeException("日期转换错误");
                 }
                 java.sql.Date date = new java.sql.Date(d.getTime());
                 bizEntrust.setCurrentMonth(date);
@@ -177,7 +177,7 @@ public class BizEntrustExamineController extends BaseController {
                 try {
                     d = format.parse(str);
                 } catch (Exception e) {
-                    e.printStackTrace();
+                    throw new RuntimeException("日期转换错误");
                 }
                 java.sql.Date date = new java.sql.Date(d.getTime());
                 bizEntrust.setCurrentMonth(date);