package com.ycl.platform.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.platform.domain.entity.TPlatform; import com.ycl.platform.mapper.TPlatformMapper; import com.ycl.platform.service.ITPlatformService; import com.ycl.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 平台运行监控Service业务层处理 * * @author gonghl * @date 2024-04-10 */ @Service public class TPlatformServiceImpl extends ServiceImpl implements ITPlatformService { @Autowired private TPlatformMapper tPlatformMapper; /** * 查询平台运行监控 * * @param id 平台运行监控主键 * @return 平台运行监控 */ @Override public TPlatform selectTPlatformById(Long id) { return tPlatformMapper.selectTPlatformById(id); } /** * 查询平台运行监控列表 * * @param tPlatform 平台运行监控 * @return 平台运行监控 */ @Override public List selectTPlatformList(TPlatform tPlatform) { return tPlatformMapper.selectTPlatformList(tPlatform); } /** * 新增平台运行监控 * * @param tPlatform 平台运行监控 * @return 结果 */ @Override public int insertTPlatform(TPlatform tPlatform) { tPlatform.setCreateTime(DateUtils.getNowDate()); return tPlatformMapper.insertTPlatform(tPlatform); } /** * 修改平台运行监控 * * @param tPlatform 平台运行监控 * @return 结果 */ @Override public int updateTPlatform(TPlatform tPlatform) { tPlatform.setUpdateTime(DateUtils.getNowDate()); return tPlatformMapper.updateTPlatform(tPlatform); } /** * 批量删除平台运行监控 * * @param ids 需要删除的平台运行监控主键 * @return 结果 */ @Override public int deleteTPlatformByIds(Long[] ids) { return tPlatformMapper.deleteTPlatformByIds(ids); } /** * 删除平台运行监控信息 * * @param id 平台运行监控主键 * @return 结果 */ @Override public int deleteTPlatformById(Long id) { return tPlatformMapper.deleteTPlatformById(id); } }