Lius
2024-10-31 7d8887e36acb71ee20bf2f55170571b3fa7621b7
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
package org.jeecg.modules.mdc.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.mdc.entity.EquipmentXYZ;
import org.jeecg.modules.mdc.mapper.EquipmentXYZMapper;
import org.jeecg.modules.mdc.service.IEquipmentXYZService;
import org.springframework.stereotype.Service;
 
/**
 * @author: LiuS
 * @create: 2023-04-07 14:40
 */
@Service
public class EquipmentXYZServiceImpl extends ServiceImpl<EquipmentXYZMapper, EquipmentXYZ> implements IEquipmentXYZService {
    @Override
    public EquipmentXYZ getByEquipmentId(String equipmentId) {
        return this.getOne(new LambdaQueryWrapper<EquipmentXYZ>().eq(EquipmentXYZ::getEquipmentid, equipmentId));
    }
 
    @Override
    public EquipmentXYZ findByEquipmentId(String equipmentId) {
        return this.baseMapper.findByEquipmentId(equipmentId);
    }
}