예제 #1
0
 /**
  * 更新班级所需信息
  *
  * @param id
  * @return
  */
 @RequestMapping("/maintainer/grade/gradeUpdate")
 @ResponseBody
 public AjaxData updateGrade(@RequestParam("id") int id) {
   Record7<Integer, String, Integer, String, String, String, String> record7 =
       gradeService.findByGradeIdWithUpdate(id);
   if (!ObjectUtils.isEmpty(record7)) {
     GradeVo gradeVo = record7.into(GradeVo.class);
     return new AjaxData().success().obj(gradeVo);
   } else {
     return new AjaxData().fail().msg("获取信息失败!");
   }
 }
예제 #2
0
 @Override
 public final Condition and(Record7<T1, T2, T3, T4, T5, T6, T7> record) {
   return and(record.valuesRow());
 }