| | |
| | | package com.ruoyi.doublePrevention.controller;
|
| | |
|
| | | import com.ruoyi.doublePrevention.entity.dto.req.RiskAndPeopleInfoReqBO;
|
| | | import com.ruoyi.doublePrevention.entity.dto.resp.RiskAndPeopleInfoRespDTO;
|
| | | import com.ruoyi.doublePrevention.service.baseService.RiskAndPeopleInfoService;
|
| | | import com.ruoyi.doublePrevention.vo.ResultVO;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | | import org.springframework.web.bind.annotation.RequestBody;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | |
|
| | | @RestController
|
| | | @RequestMapping("/riskAndPeople")
|
| | | public class RiskAndPeopleInfoController {
|
| | |
|
| | | @Autowired
|
| | | private RiskAndPeopleInfoService riskAndPeopleInfoService;
|
| | |
|
| | | /**
|
| | | * 查看包保责任制信息 及统计信息
|
| | | */
|
| | | @PostMapping("/selectRiskAndPeoplePage")
|
| | | public ResultVO<RiskAndPeopleInfoRespDTO> listRiskAndPeoplePage(@RequestBody RiskAndPeopleInfoReqBO reqBO){
|
| | | ResultVO resultVO = new ResultVO<>();
|
| | | resultVO.setCode("200");
|
| | | resultVO.setMsg("查询成功");
|
| | |
|
| | | ResultVO<RiskAndPeopleInfoRespDTO> result = riskAndPeopleInfoService.listRiskAndPeoplePage(reqBO);
|
| | |
|
| | | resultVO.setPageSize(result.getPageSize());
|
| | | resultVO.setPageNum(result.getPageNum());
|
| | | resultVO.setCount(result.getCount());
|
| | | resultVO.setData(result.getData());
|
| | |
|
| | | return resultVO;
|
| | | }
|
| | | }
|
| | | package com.ruoyi.doublePrevention.controller; |
| | | |
| | | import com.ruoyi.doublePrevention.entity.dto.req.RiskAndPeopleInfoReqBO; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.RiskAndPeopleInfoRespDTO; |
| | | import com.ruoyi.doublePrevention.service.baseService.RiskAndPeopleInfoService; |
| | | import com.ruoyi.doublePrevention.vo.ResultVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | @RestController |
| | | @RequestMapping("/riskAndPeople") |
| | | public class RiskAndPeopleInfoController { |
| | | |
| | | @Autowired |
| | | private RiskAndPeopleInfoService riskAndPeopleInfoService; |
| | | |
| | | /** |
| | | * 查看包保责任制信息 及统计信息 |
| | | */ |
| | | @PostMapping("/selectRiskAndPeoplePage") |
| | | public ResultVO<RiskAndPeopleInfoRespDTO> listRiskAndPeoplePage(@RequestBody RiskAndPeopleInfoReqBO reqBO){ |
| | | ResultVO resultVO = new ResultVO<>(); |
| | | resultVO.setCode("200"); |
| | | resultVO.setMsg("查询成功"); |
| | | |
| | | ResultVO<RiskAndPeopleInfoRespDTO> result = riskAndPeopleInfoService.listRiskAndPeoplePage(reqBO); |
| | | |
| | | resultVO.setPageSize(result.getPageSize()); |
| | | resultVO.setPageNum(result.getPageNum()); |
| | | resultVO.setCount(result.getCount()); |
| | | resultVO.setData(result.getData()); |
| | | |
| | | return resultVO; |
| | | } |
| | | } |