package com.gk.hotwork.Service.ServiceImpl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gk.hotwork.Domain.SafetyInspectionElementA; import com.gk.hotwork.Mapper.SafetyInspectionElementAMapper; import com.gk.hotwork.Service.SafetyInspectionElementAService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @email 1603559716@qq.com * @author: zf * @date: 2023/7/19 * @time: 17:30 */ @Service public class SafetyInspectionElementAServiceImpl extends ServiceImpl implements SafetyInspectionElementAService { @Autowired private SafetyInspectionElementAMapper safetyInspectionElementAMapper; @Override public List getBySafetySelfInspectionId(Long safetyInspectionId) { return safetyInspectionElementAMapper.selectList(new LambdaQueryWrapper() .eq(SafetyInspectionElementA::getSafetyInspectionId,safetyInspectionId) ); } }