package com.smartor.service.impl; import java.util.List; import com.ruoyi.common.utils.DateUtils; import com.smartor.domain.HeLibraryTag; import com.smartor.mapper.HeLibraryTagMapper; import com.smartor.service.IHeLibraryTagService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * 指标标签Service业务层处理 * * @author ruoyi * @date 2023-12-24 */ @Service public class HeLibraryTagServiceImpl implements IHeLibraryTagService { @Autowired private HeLibraryTagMapper heLibraryTagMapper; /** * 查询指标标签 * * @param id 指标标签主键 * @return 指标标签 */ @Override public HeLibraryTag selectHeLibraryTagById(Long id) { return heLibraryTagMapper.selectHeLibraryTagById(id); } /** * 查询指标标签列表 * * @param heLibraryTag 指标标签 * @return 指标标签 */ @Override public List selectHeLibraryTagList(HeLibraryTag heLibraryTag) { return heLibraryTagMapper.selectHeLibraryTagList(heLibraryTag); } /** * 新增指标标签 * * @param heLibraryTag 指标标签 * @return 结果 */ @Override public int insertHeLibraryTag(HeLibraryTag heLibraryTag) { heLibraryTag.setCreateTime(DateUtils.getNowDate()); return heLibraryTagMapper.insertHeLibraryTag(heLibraryTag); } /** * 修改指标标签 * * @param heLibraryTag 指标标签 * @return 结果 */ @Override public int updateHeLibraryTag(HeLibraryTag heLibraryTag) { heLibraryTag.setUpdateTime(DateUtils.getNowDate()); return heLibraryTagMapper.updateHeLibraryTag(heLibraryTag); } /** * 批量删除指标标签 * * @param ids 需要删除的指标标签主键 * @return 结果 */ @Override public int deleteHeLibraryTagByIds(Long[] ids) { return heLibraryTagMapper.deleteHeLibraryTagByIds(ids); } /** * 删除指标标签信息 * * @param id 指标标签主键 * @return 结果 */ @Override public int deleteHeLibraryTagById(Long id) { return heLibraryTagMapper.deleteHeLibraryTagById(id); } }