|
|
|
@ -11,6 +11,7 @@ import com.ibeetl.jlw.web.query.*;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import javafx.beans.binding.DoubleExpression;
|
|
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -19,6 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.sql.*;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -796,4 +798,28 @@ public class AccountController {
|
|
|
|
|
public JsonResult<List<Map<String,Object>>> getClassListByMajorId(String majorId){
|
|
|
|
|
return JsonResult.success(schoolClassService.getClassListByMajorId(majorId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据关键字查询学生信息")
|
|
|
|
|
@GetMapping("getStudentByKeyword.json")
|
|
|
|
|
public JsonResult<List<Map<String, Object>>> getStudentByKeyword(String keyword,Integer schoolId){
|
|
|
|
|
return JsonResult.success(studentService.getStudentInfoByKeyword(keyword,Long.valueOf(schoolId)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据班级id分页展示学生数据")
|
|
|
|
|
@GetMapping("pagedListStudentByClassId.json")
|
|
|
|
|
public Map<String, Object> pagedListStudentByClassId(String classList,Integer page,Integer size){
|
|
|
|
|
if(page==null||page<1){
|
|
|
|
|
page=1;
|
|
|
|
|
}
|
|
|
|
|
if(size==null){
|
|
|
|
|
size=10;
|
|
|
|
|
}
|
|
|
|
|
PageQuery<Map<String, Object>> mapPageQuery = studentService.pagedListStudentInfoByClassId(classList,page,size);
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
map.put("code",0);
|
|
|
|
|
map.put("msg","成功");
|
|
|
|
|
map.put("count",mapPageQuery.getTotalRow());
|
|
|
|
|
map.put("content",mapPageQuery);
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|