feige
4 天以前 92756a19ca99f2cade8a7e3ff46e08f47bf31cbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
    }
}