zhangherong
2025-06-30 804901bfc31353a5d398a68dd8ef1635b76629fc
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
33
34
35
36
37
38
package org.jeecg.modules.eam.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.eam.entity.EamPrecisionCheckDetail;
import org.jeecg.modules.eam.mapper.EamPrecisionCheckDetailMapper;
import org.jeecg.modules.eam.service.IEamPrecisionCheckDetailService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * @Description: 设备精度检测明细
 * @Author: jeecg-boot
 * @Date:   2025-05-13
 * @Version: V1.0
 */
@Service
public class EamPrecisionCheckDetailServiceImpl extends ServiceImpl<EamPrecisionCheckDetailMapper, EamPrecisionCheckDetail> implements IEamPrecisionCheckDetailService {
 
    @Resource
    private EamPrecisionCheckDetailMapper eamPrecisionCheckDetailMapper;
 
    @Override
    public List<EamPrecisionCheckDetail> getByOrderId(String orderId) {
        LambdaQueryWrapper<EamPrecisionCheckDetail> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(EamPrecisionCheckDetail::getOrderId, orderId);
        return eamPrecisionCheckDetailMapper.selectList(queryWrapper);
    }
 
    @Override
    public boolean hasPrecisionCheckDetail(String orderId) {
        LambdaQueryWrapper<EamPrecisionCheckDetail> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(EamPrecisionCheckDetail::getOrderId, orderId);
        return eamPrecisionCheckDetailMapper.selectCount(wrapper) > 0;
    }
}