|
@@ -355,6 +355,29 @@ public class StudentController extends ControllerSupport {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "解绑学号", notes = "")
|
|
|
|
+ @PutMapping("unbindStudentCodeByStudentCode")
|
|
|
|
+ public int unbindStudentCodeByStudentCode(@RequestParam(required = true) String studentCode,
|
|
|
|
+ @RequestParam(required = true) Long rootOrgId) {
|
|
|
|
+
|
|
|
|
+ if (null == rootOrgId) {
|
|
|
|
+ rootOrgId = getRootOrgId();
|
|
|
|
+ } else {
|
|
|
|
+ OrgEntity rootOrg = orgRepo.findOne(rootOrgId);
|
|
|
|
+ if (null == rootOrg) {
|
|
|
|
+ throw new StatusException("B-450110", "rootOrgId is wrong");
|
|
|
|
+ }
|
|
|
|
+ validateRootOrgIsolation(rootOrgId);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isBlank(studentCode)) {
|
|
|
|
+ throw new StatusException("B-160002", "studentCode is blank");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ int affected = studentService.unbindStudentCodeByStudentCode(rootOrgId, studentCode);
|
|
|
|
+ return affected;
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "解绑安全手机", notes = "")
|
|
@ApiOperation(value = "解绑安全手机", notes = "")
|
|
@PutMapping("unbindSecurityPhone/{ids}")
|
|
@PutMapping("unbindSecurityPhone/{ids}")
|
|
public void unbindSecurityPhone(@PathVariable String ids) {
|
|
public void unbindSecurityPhone(@PathVariable String ids) {
|