zf
2023-08-04 869edb425d2e931d756c756c16ee5b3f42ee027a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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<SafetyInspectionElementAMapper, SafetyInspectionElementA> implements SafetyInspectionElementAService {
 
    @Autowired
    private SafetyInspectionElementAMapper safetyInspectionElementAMapper;
 
    @Override
    public List<SafetyInspectionElementA> getBySafetySelfInspectionId(Long safetyInspectionId) {
 
        return safetyInspectionElementAMapper.selectList(new LambdaQueryWrapper<SafetyInspectionElementA>()
                .eq(SafetyInspectionElementA::getSafetyInspectionId,safetyInspectionId)
        );
    }
}