package com.jcdm.main.da.testDeviceInterface.service.impl; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jcdm.common.utils.DateUtils; import com.jcdm.main.da.passingStationCollection.domain.DaPassingStationCollection; import com.jcdm.main.da.passingStationCollection.mapper.DaPassingStationCollectionMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.jcdm.main.da.testDeviceInterface.mapper.DaTestDeviceInterfaceMapper; import com.jcdm.main.da.testDeviceInterface.domain.DaTestDeviceInterface; import com.jcdm.main.da.testDeviceInterface.service.IDaTestDeviceInterfaceService; /** * 测试设备接口数据Service业务层处理 * * @author hdy * @date 2024-05-13 */ @Service public class DaTestDeviceInterfaceServiceImpl extends ServiceImpl implements IDaTestDeviceInterfaceService { @Autowired private DaTestDeviceInterfaceMapper daTestDeviceInterfaceMapper; /** * 查询测试设备接口数据 * * @param id 测试设备接口数据主键 * @return 测试设备接口数据 */ @Override public DaTestDeviceInterface selectDaTestDeviceInterfaceById(Long id) { return daTestDeviceInterfaceMapper.selectDaTestDeviceInterfaceById(id); } /** * 查询测试设备接口数据列表 * * @param daTestDeviceInterface 测试设备接口数据 * @return 测试设备接口数据 */ @Override public List selectDaTestDeviceInterfaceList(DaTestDeviceInterface daTestDeviceInterface) { return daTestDeviceInterfaceMapper.selectDaTestDeviceInterfaceList(daTestDeviceInterface); } /** * 新增测试设备接口数据 * * @param daTestDeviceInterface 测试设备接口数据 * @return 结果 */ @Override public int insertDaTestDeviceInterface(DaTestDeviceInterface daTestDeviceInterface) { daTestDeviceInterface.setCreateTime(DateUtils.getNowDate()); return daTestDeviceInterfaceMapper.insertDaTestDeviceInterface(daTestDeviceInterface); } /** * 修改测试设备接口数据 * * @param daTestDeviceInterface 测试设备接口数据 * @return 结果 */ @Override public int updateDaTestDeviceInterface(DaTestDeviceInterface daTestDeviceInterface) { daTestDeviceInterface.setUpdateTime(DateUtils.getNowDate()); return daTestDeviceInterfaceMapper.updateDaTestDeviceInterface(daTestDeviceInterface); } /** * 批量删除测试设备接口数据 * * @param ids 需要删除的测试设备接口数据主键 * @return 结果 */ @Override public int deleteDaTestDeviceInterfaceByIds(Long[] ids) { return daTestDeviceInterfaceMapper.deleteDaTestDeviceInterfaceByIds(ids); } /** * 删除测试设备接口数据信息 * * @param id 测试设备接口数据主键 * @return 结果 */ @Override public int deleteDaTestDeviceInterfaceById(Long id) { return daTestDeviceInterfaceMapper.deleteDaTestDeviceInterfaceById(id); } }