package com.ruoyi.project.tr.troubleshootType.service.impl; import java.util.List; import com.ruoyi.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.project.tr.troubleshootType.mapper.TroubleshootTypeMapper; import com.ruoyi.project.tr.troubleshootType.domain.TroubleshootType; import com.ruoyi.project.tr.troubleshootType.service.ITroubleshootTypeService; import com.ruoyi.common.utils.text.Convert; /** * 排查类型设置Service业务层处理 * * @author wm * @date 2020-05-05 */ @Service public class TroubleshootTypeServiceImpl implements ITroubleshootTypeService { @Autowired private TroubleshootTypeMapper troubleshootTypeMapper; /** * 查询排查类型设置 * * @param typeId 排查类型设置ID * @return 排查类型设置 */ @Override public TroubleshootType selectTroubleshootTypeById(Long typeId) { return troubleshootTypeMapper.selectTroubleshootTypeById(typeId); } /** * 查询排查类型设置列表 * * @param troubleshootType 排查类型设置 * @return 排查类型设置 */ @Override public List selectTroubleshootTypeList(TroubleshootType troubleshootType) { return troubleshootTypeMapper.selectTroubleshootTypeList(troubleshootType); } /** * 新增排查类型设置 * * @param troubleshootType 排查类型设置 * @return 结果 */ @Override public int insertTroubleshootType(TroubleshootType troubleshootType) { return troubleshootTypeMapper.insertTroubleshootType(troubleshootType); } /** * 修改排查类型设置 * * @param troubleshootType 排查类型设置 * @return 结果 */ @Override public int updateTroubleshootType(TroubleshootType troubleshootType) { troubleshootType.setUpdateTime(DateUtils.getNowDate()); return troubleshootTypeMapper.updateTroubleshootType(troubleshootType); } /** * 删除排查类型设置对象 * * @param ids 需要删除的数据ID * @return 结果 */ @Override public int deleteTroubleshootTypeByIds(String ids) { return troubleshootTypeMapper.deleteTroubleshootTypeByIds(Convert.toStrArray(ids)); } /** * 删除排查类型设置信息 * * @param typeId 排查类型设置ID * @return 结果 */ @Override public int deleteTroubleshootTypeById(Long typeId) { return troubleshootTypeMapper.deleteTroubleshootTypeById(typeId); } }