package org.jeecg.modules.eam.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.jeecg.modules.eam.entity.DailyInspectionStandard; import org.jeecg.modules.eam.entity.SpecialtyInspectionStandardDetail; import org.jeecg.modules.eam.mapper.SpecialtyInspectionStandardDetailMapper; import org.jeecg.modules.eam.model.InspectionCycleVo; import org.jeecg.modules.eam.service.ISpecialtyInspectionStandardDetailService; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; /** * @Description: mom_eam_specialty_inspection_standard_detail * @Author: jeecg-boot * @Date: 2023-03-10 * @Version: V1.0 */ @Service public class SpecialtyInspectionStandardDetailServiceImpl extends ServiceImpl implements ISpecialtyInspectionStandardDetailService { @Override public List> getInspectionStandardDetailList(String inspectionStandardId) { List> inspectionStandardDetailList = super.baseMapper.getInspectionStandardDetailList(inspectionStandardId); List inspectionCycles = super.baseMapper.getInspectionCycle(); for (Map map : inspectionStandardDetailList) { map.put("inspectionCycles",inspectionCycles); } return inspectionStandardDetailList; } @Override public IPage> getInspectionStandardDetailById(Integer pageNo, Integer pageSize, Map params) { IPage pageData = new Page(pageNo, pageSize); return super.getBaseMapper().getInspectionStandardDetailById(pageData,params); } }