双重预防项目-国泰新华二开定制版
kongzy
2024-08-14 135a322f44708b1187d37ea4b6859b5d82113e89
src/main/java/com/ruoyi/doublePrevention/controller/RiskAndPeopleInfoController.java
@@ -1,39 +1,39 @@
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("/select/listPage")
    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;
    }
}