Pārlūkot izejas kodu

统计表格,异常处理。

小么熊🐻 1 gadu atpakaļ
vecāks
revīzija
bd17c2086a

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

@@ -134,7 +134,11 @@ public class TmsStudentInfoController extends BaseController {
     @GetMapping("/updateStudentAppCoachIdById")
     @ApiOperation("根据学员ID绑定APP教练员")
     public Response updateStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
-        return Response.success(studentInfoService.upStuAppCoachIdById(studentInfoQrDTO));
+        try {
+            return Response.success(studentInfoService.upStuAppCoachIdById(studentInfoQrDTO));
+        } catch (Exception e) {
+            return Response.success("系统开小差了,请重试");
+        }
     }