package com.thhy.secure.modules.biz.pipereport.service.impl; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.thhy.general.common.BasicResult; import com.thhy.general.config.SysUserInfo; import com.thhy.general.utils.UserInfoUtils; import com.thhy.secure.modules.biz.pipereport.entity.PipeReportEntity; import com.thhy.secure.modules.biz.pipereport.mapper.PipeReportMapper; import com.thhy.secure.modules.biz.pipereport.service.PipeReportService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; /** * @Author QiuYuHao * @CreateDate 2023-10-18 9:22:33 * 管片和钢筋笼报表实现 */ @Service public class PipeReportServiceImpl implements PipeReportService { @Autowired private PipeReportMapper pipeReportMapper; @Override public BasicResult getPipeReportList(Map map) { SysUserInfo sysUserInfo = UserInfoUtils.getInstance().getUserInfo(); String companyId = sysUserInfo.getCompanyId(); map.put("companyId",companyId); PageHelper.startPage((Integer) map.get("pageNum"),(Integer)map.get("pageSize")); List pipeReportList = pipeReportMapper.getPipeReportList(map); return BasicResult.success(new PageInfo(pipeReportList)); } @Override public BasicResult getSteelReportList(Map map) { SysUserInfo sysUserInfo = UserInfoUtils.getInstance().getUserInfo(); String companyId = sysUserInfo.getCompanyId(); map.put("companyId",companyId); PageHelper.startPage((Integer) map.get("pageNum"),(Integer)map.get("pageSize")); List steelReportList = pipeReportMapper.getSteelReportList(map); return BasicResult.success(new PageInfo(steelReportList)); } }