批量更该学生得毕业状态

 @AutoLog(value = " 批量更该学生得毕业状态")
    @ApiOperation(value = " 批量更该学生得毕业状态", notes = " 批量更该学生得毕业状态")
    @GetMapping(value = "/Up")
    /* @RequiresPermissions("stStudent:getFacePersons")*/
    public Result<?> Up(String departIds,
                        @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
                        @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
                        HttpServletRequest req) {
        List<StStudent> studentListVos = stStudentService.ss(departIds);  //sql 通过模糊查询  查询多个数据  
        for (int i = 0; i < studentListVos.size(); i++) {
            stStudentService.Up(studentListVos.get(i).getId());  //sql 修改
        }
        List<StStudent> studentListVos1 = stStudentService.ss(departIds);
        Result result = new Result();
        result.setResult(studentListVos1);
        return result;
    }

你可能感兴趣的:(项目碎片——java)