Ver código fonte

查询学校时需要传 考生类型

mingfu 1 semana atrás
pai
commit
1244a23688

+ 2 - 2
ie-admin/src/main/java/com/ruoyi/web/controller/front/UserController.java

@@ -172,12 +172,12 @@ public class UserController extends BaseController {
     @GetMapping("/getSchoolList")
     @Anonymous
     @ApiOperation("查询学校列表")
-    public TableDataInfo getSchoolList(@ApiParam("keyword") String keyword)
+    public TableDataInfo getSchoolList(@ApiParam("examType") @RequestParam(required = false) String examType, @ApiParam("keyword") @RequestParam(required = false) String keyword)
     {
         DzSchool dzSchool = new DzSchool();
         dzSchool.setCampus(false);
         dzSchool.setName(keyword);
-        dzSchool.setExamTypes(VistorContextHolder.getContext().getExamType().name());
+        dzSchool.setExamTypes(StringUtils.isNotBlank(examType) ? examType : VistorContextHolder.getExamType().name());
         startPage();
         List<DzSchool> list = dzSchoolService.selectDzSchoolList(dzSchool);
         return getDataTable(list);