|
|
@@ -69,8 +69,7 @@ public class VoluntaryController extends BaseController {
|
|
|
@PostMapping("/voluntary/postRenderRules")
|
|
|
@ApiOperation("单院校专业结果")
|
|
|
public R<VoluntaryDto.RenderMajorResult> postRenderRules(@RequestBody String data) {
|
|
|
- // commService.requireVip();
|
|
|
-
|
|
|
+ commService.requireVip();
|
|
|
VoluntaryDto.SingleRequest req = new VoluntaryDto.SingleRequest();
|
|
|
JSONObject root = JSONObject.parseObject(data);
|
|
|
Map<String, String> form = req.getForm();
|
|
|
@@ -88,7 +87,7 @@ public class VoluntaryController extends BaseController {
|
|
|
@PostMapping("/voluntary/postSkillRules")
|
|
|
@ApiOperation("单院校专业结果")
|
|
|
public R<VoluntaryDto.RenderMajorResult> postSkillRules(@RequestBody String data) {
|
|
|
- // commService.requireVip();
|
|
|
+ commService.requireVip();
|
|
|
VoluntaryDto.SingleRequest req = new VoluntaryDto.SingleRequest();
|
|
|
JSONObject root = JSONObject.parseObject(data);
|
|
|
Map<String, String> form = req.getForm();
|
|
|
@@ -113,6 +112,7 @@ public class VoluntaryController extends BaseController {
|
|
|
@PostMapping("voluntary/addVoluntary")
|
|
|
@ApiOperation("填报志愿")
|
|
|
public R<Long> addVoluntary(@RequestBody String body) { // 填报 // 前端+后台按需要剔除一些不需快照的信息(目前主要是院校信息)
|
|
|
+ commService.requireVip();
|
|
|
JSONObject model = JSONObject.parseObject(body);
|
|
|
return voluntaryService.addVoluntary2(model);
|
|
|
}
|