|
@@ -151,6 +151,23 @@ public class TaPersonController extends BaseController {
|
151
|
151
|
return ResponseBean.success(taPerson);
|
152
|
152
|
}
|
153
|
153
|
|
|
154
|
+ /**
|
|
155
|
+ * 根据id查询对象
|
|
156
|
+ * @param id 学号
|
|
157
|
+ */
|
|
158
|
+ @RequestMapping(value="/admin/student/{id}",method= RequestMethod.GET)
|
|
159
|
+ @ApiOperation(value="学生详情", notes = "查询人员详细信息", httpMethod = "GET", response = TaPerson.class)
|
|
160
|
+ public ResponseBean studentGet(@ApiParam("学生学号") @PathVariable String id) throws Exception{
|
|
161
|
+ TaPerson taPerson = iTaPersonService.getByStudentId(id);
|
|
162
|
+ if (null == taPerson || Constants.STATUS_DELETED.equals(taPerson.getStatus())) {
|
|
163
|
+ throw new Exception("验证人员信息失败, 请退出重试");
|
|
164
|
+ }
|
|
165
|
+
|
|
166
|
+ fillInfo(taPerson);
|
|
167
|
+
|
|
168
|
+ return ResponseBean.success(taPerson);
|
|
169
|
+ }
|
|
170
|
+
|
154
|
171
|
@GetMapping("/ma/currentPerson")
|
155
|
172
|
@ApiOperation(value="小程序当前人员", notes = "获取当前人员信息", httpMethod = "GET", response = TaPerson.class)
|
156
|
173
|
public ResponseBean getCurrent() throws Exception {
|