|
@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.sql.SQLException;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -134,11 +135,7 @@ public class TmsStudentInfoController extends BaseController {
|
|
|
@GetMapping("/updateStudentAppCoachIdById")
|
|
|
@ApiOperation("根据学员ID绑定APP教练员")
|
|
|
public Response updateStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
|
|
|
- try {
|
|
|
- return Response.success(studentInfoService.upStuAppCoachIdById(studentInfoQrDTO));
|
|
|
- } catch (Exception e) {
|
|
|
- return Response.success("系统开小差了,请重试");
|
|
|
- }
|
|
|
+ return Response.success(studentInfoService.upStuAppCoachIdById(studentInfoQrDTO));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -150,8 +147,13 @@ public class TmsStudentInfoController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("/getStatisticsStuCountBySchoolId")
|
|
|
@ApiOperation("根据驾校ID 报名统计")
|
|
|
- public Response<TmsBmVo> getStatisticsStuCountBySchoolId(TmsBmDTO bmDTO) {
|
|
|
- return Response.success(studentInfoService.getStatisticsStuCountBySchoolId(bmDTO));
|
|
|
+ public Response getStatisticsStuCountBySchoolId(TmsBmDTO bmDTO) {
|
|
|
+ try {
|
|
|
+ return Response.success(studentInfoService.getStatisticsStuCountBySchoolId(bmDTO));
|
|
|
+ } catch (SQLException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return Response.success("数据库开小差,请一会再试");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|