package com.gunshi.project.xyt.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gunshi.project.xyt.entity.so.GateHisPageSo; import com.gunshi.project.xyt.entity.vo.GateStautsVo; import com.gunshi.project.xyt.mapper.GateValveRMapper; import com.gunshi.project.xyt.model.GateValveR; import com.gunshi.project.xyt.util.ExcelUtil; import jakarta.servlet.http.HttpServletResponse; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 描述: 闸阀开关历史表 * author: xusan * date: 2024-07-08 17:30:37 */ @Service @Slf4j @Transactional(rollbackFor = Exception.class) public class GateValveRService extends ServiceImpl { public Page pageQuery(GateHisPageSo so) { return baseMapper.pageQuery(so.getPageSo().toPage(),so); } public void export(GateHisPageSo so, HttpServletResponse response) { List list = baseMapper.hisList(so); ExcelUtil.exportExcel(list,"闸阀历史记录",GateStautsVo.class,response,"闸阀历史记录"); } }