package org.jeecg.modules.repair.service.impl;

import org.jeecg.modules.repair.entity.BuDeviceMaintenance;
import org.jeecg.modules.repair.mapper.BuDeviceMaintenanceMapper;
import org.jeecg.modules.repair.mapper.BuRepairRecordMapper;
import org.jeecg.modules.repair.service.IBuDeviceMaintenanceService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 设备维保记录表
 * @Author: jeecg-boot
 * @Date:   2021-03-05
 * @Version: V1.0
 */
@Service
public class BuDeviceMaintenanceServiceImpl extends ServiceImpl<BuDeviceMaintenanceMapper, BuDeviceMaintenance> implements IBuDeviceMaintenanceService {

    @Resource
    private BuDeviceMaintenanceMapper buDeviceMaintenanceMapper;

    @Override
    public BuDeviceMaintenance getMaintenanceById(String deviceId) {
        return buDeviceMaintenanceMapper.getMaintenanceById(deviceId);
    }

    @Override
    public String getTimesByDeviceId(String deviceId) {
        return buDeviceMaintenanceMapper.getTimesByDeviceId(deviceId);
    }



}
