package com.smartor.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.smartor.mapper.IvrLibIntentcategoryMapper; import com.smartor.domain.IvrLibIntentcategory; import com.smartor.service.IIvrLibIntentcategoryService; /** * AI意图库分类Service业务层处理 * * @author smartor * @date 2023-03-06 */ @Service public class IvrLibIntentcategoryServiceImpl implements IIvrLibIntentcategoryService { @Autowired private IvrLibIntentcategoryMapper ivrLibIntentcategoryMapper; /** * 查询AI意图库分类 * * @param intertcatid AI意图库分类主键 * @return AI意图库分类 */ @Override public IvrLibIntentcategory selectIvrLibIntentcategoryByIntertcatid(Long intertcatid) { return ivrLibIntentcategoryMapper.selectIvrLibIntentcategoryByIntertcatid(intertcatid); } /** * 查询AI意图库分类列表 * * @param ivrLibIntentcategory AI意图库分类 * @return AI意图库分类 */ @Override public List selectIvrLibIntentcategoryList(IvrLibIntentcategory ivrLibIntentcategory) { return ivrLibIntentcategoryMapper.selectIvrLibIntentcategoryList(ivrLibIntentcategory); } /** * 新增AI意图库分类 * * @param ivrLibIntentcategory AI意图库分类 * @return 结果 */ @Override public int insertIvrLibIntentcategory(IvrLibIntentcategory ivrLibIntentcategory) { ivrLibIntentcategory.setCreateTime(DateUtils.getNowDate()); return ivrLibIntentcategoryMapper.insertIvrLibIntentcategory(ivrLibIntentcategory); } /** * 修改AI意图库分类 * * @param ivrLibIntentcategory AI意图库分类 * @return 结果 */ @Override public int updateIvrLibIntentcategory(IvrLibIntentcategory ivrLibIntentcategory) { ivrLibIntentcategory.setUpdateTime(DateUtils.getNowDate()); return ivrLibIntentcategoryMapper.updateIvrLibIntentcategory(ivrLibIntentcategory); } /** * 批量删除AI意图库分类 * * @param intertcatids 需要删除的AI意图库分类主键 * @return 结果 */ @Override public int deleteIvrLibIntentcategoryByIntertcatids(Long[] intertcatids) { return ivrLibIntentcategoryMapper.deleteIvrLibIntentcategoryByIntertcatids(intertcatids); } /** * 删除AI意图库分类信息 * * @param intertcatid AI意图库分类主键 * @return 结果 */ @Override public int deleteIvrLibIntentcategoryByIntertcatid(Long intertcatid) { return ivrLibIntentcategoryMapper.deleteIvrLibIntentcategoryByIntertcatid(intertcatid); } }