|
@@ -70,6 +70,7 @@ public class TaPersonController extends BaseController {
|
70
|
70
|
|
71
|
71
|
IPage<TaPerson> pg = new Page<>(pageNum, pageSize);
|
72
|
72
|
QueryWrapper<TaPerson> queryWrapper = new QueryWrapper<TaPerson>()
|
|
73
|
+ .gt("student_id", "")
|
73
|
74
|
.gt("status", Constants.STATUS_DELETED)
|
74
|
75
|
.like(!StringUtils.isEmpty(name), "name", "%"+name+"%")
|
75
|
76
|
.eq(!StringUtils.isEmpty(schoolId), "school_id", schoolId)
|
|
@@ -78,40 +79,10 @@ public class TaPersonController extends BaseController {
|
78
|
79
|
.like(!StringUtils.isEmpty(studentId), "student_id", "%"+studentId+"%")
|
79
|
80
|
.orderByDesc("create_date");
|
80
|
81
|
|
81
|
|
- IPage<TaPerson> result = iTaPersonService.page(pg, queryWrapper);
|
|
82
|
+ IPage<TaPerson> result = iTaPersonService.getStudentInfoPagedBy(pg, name, schoolId, specialtyId, phone, studentId);
|
82
|
83
|
return ResponseBean.success(result);
|
83
|
84
|
}
|
84
|
85
|
|
85
|
|
-// /**
|
86
|
|
-// * 保存对象
|
87
|
|
-// * @param taPerson 实体对象
|
88
|
|
-// * @return
|
89
|
|
-// */
|
90
|
|
-// @RequestMapping(value="/taPerson",method= RequestMethod.POST)
|
91
|
|
-// @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
|
92
|
|
-// public ResponseBean taPersonAdd(@ApiParam("保存内容") @RequestBody TaPerson taPerson) throws Exception{
|
93
|
|
-//
|
94
|
|
-// if (iTaPersonService.save(taPerson)){
|
95
|
|
-// return ResponseBean.success(taPerson);
|
96
|
|
-// }else {
|
97
|
|
-// return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
|
98
|
|
-// }
|
99
|
|
-// }
|
100
|
|
-
|
101
|
|
-// /**
|
102
|
|
-// * 根据id删除对象
|
103
|
|
-// * @param id 实体ID
|
104
|
|
-// */
|
105
|
|
-// @RequestMapping(value="/taPerson/{id}", method= RequestMethod.DELETE)
|
106
|
|
-// @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
|
107
|
|
-// public ResponseBean taPersonDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
|
108
|
|
-// if(iTaPersonService.removeById(id)){
|
109
|
|
-// return ResponseBean.success("success");
|
110
|
|
-// }else {
|
111
|
|
-// return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
|
112
|
|
-// }
|
113
|
|
-// }
|
114
|
|
-
|
115
|
86
|
/**
|
116
|
87
|
* 小程序完善信息
|
117
|
88
|
* @param taPerson 实体对象
|