package com.ruoyi.web.controller.zhang; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.text.Convert; import com.ruoyi.common.utils.ServletUtils; import com.ruoyi.domain.ZfDoctor; import com.ruoyi.domain.peopleSea; import com.ruoyi.service.PeopleSearchService; import com.ruoyi.service.PhyscialService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; @RestController @RequestMapping("/zPeopleSearch") public class peopleSearchController extends BaseController { @Autowired private PeopleSearchService peopleSearchService; @GetMapping("/all") public AjaxResult listAll(peopleSea peopleSea){ Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); System.out.println(peopleSearchService); System.out.println(peopleSea); return peopleSearchService.selectDataList(peopleSea, pageNum, pageSize); } }