package com.gk.hotwork.Controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.gk.hotwork.Controller.Base.BaseController; import com.gk.hotwork.Domain.InspectionExpert; import com.gk.hotwork.Domain.InspectionExpertGroup; import com.gk.hotwork.Domain.InspectionHiddenDanger; import com.gk.hotwork.Domain.Utils.FilterObject; import com.gk.hotwork.Domain.Utils.Msg; import com.gk.hotwork.Domain.dto.req.IdParam; import com.gk.hotwork.Service.InspectionExpertGroupService; import com.gk.hotwork.Service.InspectionHiddenDangerService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.Date; import java.util.List; /** * @email 1603559716@qq.com * @author: zf * @date: 2023/7/17 * @time: 13:36 */ @Api(tags = "监管检查清单-专家组") @RequestMapping("/expert/group") @RestController public class InspectionExpertcGroupController extends BaseController { @Autowired private InspectionExpertGroupService expertGroupService; @PostMapping("/list/page") @ApiOperation(value = "分页查询隐患排查数据",response = Msg.class) @ApiImplicitParams({ @ApiImplicitParam(name = "pageIndex",value = "当前页码"), @ApiImplicitParam(name = "pageSize",value = "每页行数"), @ApiImplicitParam(name = "inspectionName",value = "检查名称"), @ApiImplicitParam(name = "checkedCompanyName",value = "被检查公司"), @ApiImplicitParam(name = "inspectionStartTime",value = "开始时间"), @ApiImplicitParam(name = "inspectionEndTime",value = "结束时间") }) public Msg selectPage(@RequestBody FilterObject filterObject) { Integer pageIndex = filterObject.getPageIndex(); Integer pageSize = filterObject.getPageSize(); IPage page = expertGroupService.selectPage(new Page<>(pageIndex, pageSize), filterObject.getFilter(), getUser()); return success(page); } }