zhitong.yu
2024-12-27 8abbee975353926e51a426a75c67119337fbdae4
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
package com.hxzk.controller;
 
import com.github.pagehelper.PageInfo;
import com.hxzk.pojo.TbXunjianbaobiao;
import com.hxzk.service.XunJianService;
import com.hxzk.util.result;
import com.hxzk.util.resultutil;
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 java.util.List;
 
@RestController
@RequestMapping("/")
public class XunJianController {
    @Autowired
    XunJianService xunJianService;
    @GetMapping("findXunJian")
    result<List<TbXunjianbaobiao>> findTag(Integer page, Integer limit){
        PageInfo<TbXunjianbaobiao> cz= xunJianService.findAll(page, limit);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
    @GetMapping("findXunJianSearch")
    result<List<TbXunjianbaobiao>> findXunJianSearch(Integer page, Integer limit,TbXunjianbaobiao tbXunjianbaobiao){
        PageInfo<TbXunjianbaobiao> cz= xunJianService.findAllSearch(page, limit,tbXunjianbaobiao);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
    @GetMapping("findTbXunjianbaobiao")
    result<List<TbXunjianbaobiao>> findTbXunjianbaobiao(TbXunjianbaobiao tbXunjianbaobiao){
        PageInfo<TbXunjianbaobiao> cz= xunJianService.findAllBal(1, 100000,tbXunjianbaobiao);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
}