|
@@ -85,6 +85,24 @@ public class VoluntaryController extends BaseController {
|
|
|
return voluntaryService.postRenderResult(req, false);
|
|
return voluntaryService.postRenderResult(req, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/voluntary/postSkillRules")
|
|
|
|
|
+ @ApiOperation("单院校专业结果")
|
|
|
|
|
+ public R<VoluntaryDto.RenderMajorResult> postSkillRules(@RequestBody String data) {
|
|
|
|
|
+ // commService.requireVip();
|
|
|
|
|
+ VoluntaryDto.SingleRequest req = new VoluntaryDto.SingleRequest();
|
|
|
|
|
+ JSONObject root = JSONObject.parseObject(data);
|
|
|
|
|
+ Map<String, String> form = req.getForm();
|
|
|
|
|
+ for(String key : root.keySet()) {
|
|
|
|
|
+ JSONObject sub = root.getJSONObject(key);
|
|
|
|
|
+ for (String field : sub.keySet()) {
|
|
|
|
|
+ form.put(field, sub.getString(field));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ req.setUniversityCode(form.remove("universityId"));
|
|
|
|
|
+ req.setMajorEnrollCode(form.remove("majorId"));
|
|
|
|
|
+ return voluntaryService.postRenderResult(req, true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@GetMapping("voluntary/getVoluntaryList")
|
|
@GetMapping("voluntary/getVoluntaryList")
|
|
|
@ApiOperation("查询志愿列表")
|
|
@ApiOperation("查询志愿列表")
|
|
|
public R<List<VoluntaryDto.VoluntaryRecord>> voluntaryList() { // 我的志愿表 // 后台填充快照缺省
|
|
public R<List<VoluntaryDto.VoluntaryRecord>> voluntaryList() { // 我的志愿表 // 后台填充快照缺省
|