Parcourir la source

统计表格,异常处理。

小么熊🐻 il y a 1 an
Parent
commit
fc810c2c51

+ 2 - 1
jsjp-admin/src/main/java/com/miaxis/app/controller/tms/TmsStudentInfoController.java

@@ -152,7 +152,8 @@ public class TmsStudentInfoController extends BaseController {
             return Response.success(studentInfoService.getStatisticsStuCountBySchoolId(bmDTO));
         } catch (SQLException e) {
             e.printStackTrace();
-            return Response.success("数据库开小差,请一会再试");
+            Response response = new Response(500,"系统开小差,请重试。");
+            return response;
         }
     }