|
@@ -1,7 +1,5 @@
|
|
|
package cn.com.qmth.examcloud.core.basic.api.controller;
|
|
|
|
|
|
-import org.slf4j.Logger;
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -16,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.base.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.base.util.ErrorMsg;
|
|
|
+import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.StudentFaceCloudService;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.request.SaveStudentFaceInfoReq;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.response.SaveStudentFaceInfoResp;
|
|
@@ -31,9 +30,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("${$rmp.ctr.basic}/studentFaceInfo")
|
|
|
-public class StudentFaceInfoController {
|
|
|
-
|
|
|
- private static final Logger LOG = LoggerFactory.getLogger(StudentFaceInfoController.class);
|
|
|
+public class StudentFaceInfoController extends ControllerSupport {
|
|
|
|
|
|
@Autowired
|
|
|
StudentFaceInfoRepo studentFaceInfoRepo;
|
|
@@ -88,6 +85,7 @@ public class StudentFaceInfoController {
|
|
|
@ApiOperation(value = "新增学生照片信息", notes = "新增")
|
|
|
@PostMapping
|
|
|
public Long add(@RequestBody SaveStudentFaceInfoReq req) {
|
|
|
+ req.setOperator(getAccessUser().getDisplayName());
|
|
|
SaveStudentFaceInfoResp resp = studentFaceCloudService.saveStudentFaceInfo(req);
|
|
|
return resp.getId();
|
|
|
}
|
|
@@ -95,6 +93,7 @@ public class StudentFaceInfoController {
|
|
|
@ApiOperation(value = "更新学生照片信息", notes = "更新")
|
|
|
@PutMapping
|
|
|
public Long update(@RequestBody SaveStudentFaceInfoReq req) {
|
|
|
+ req.setOperator(getAccessUser().getDisplayName());
|
|
|
SaveStudentFaceInfoResp resp = studentFaceCloudService.saveStudentFaceInfo(req);
|
|
|
return resp.getId();
|
|
|
}
|