|
@@ -261,11 +261,12 @@ public class UserController extends BaseController {
|
|
|
return failed(Constants.PARAM_VERIFY_ERROR_MSG);
|
|
|
}
|
|
|
|
|
|
- if (applyInfo.getStatus() != null && applyInfo.getStatus() != 1) {
|
|
|
+ ApplyInfo oldApplyInfo = applyInfoService.get(applyInfo.getId());
|
|
|
+
|
|
|
+ if (applyInfo.getStatus() != null && applyInfo.getStatus() != 1 && !oldApplyInfo.getStatus().equals(applyInfo.getStatus())) {
|
|
|
return failed("不能修改报名成功以外的状态");
|
|
|
}
|
|
|
|
|
|
- ApplyInfo oldApplyInfo = applyInfoService.get(applyInfo.getId());
|
|
|
if (oldApplyInfo == null) {
|
|
|
return failed("报名信息不存在,请核对");
|
|
|
}
|