SpringMvc前端对象后端Map接受参数

   filter:{
          keywords:'',
          schoolId:'',
          gradationId:'',
          gradeId:'',
          courseId:''
        },


     //选择学校
      getSchool(){
        let vm = this;
        vm.gradeList=[];
        vm.courseList=[];
        vm.filter.gradeId='';
        vm.filter.gradeId='';
        http.get(server_url_databusiness + '/resource/schoolInfo', {params:vm.filter}).then(function (xhr) {
          if(xhr.data.code)return;
          vm.gradeList = xhr.data.data;
        });
      },
 @ApiOperation(value = "抽取学校信息", notes = "参数{schoolId:学校Id}")
    @GetMapping(value = "schoolInfo")
    public SimpleMessage  schoolInfo(@RequestParam Map filter){
        return resourceService.getSchool(filter);
    }

 

你可能感兴趣的:(java)