package com.ruoyi.system.service.impl;
|
|
import com.ruoyi.common.core.domain.entity.SysUserDept;
|
import com.ruoyi.system.service.ISysUserDeptService;
|
import com.smartor.mapper.SysUserDeptMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 【请填写功能名称】Service业务层处理
|
*
|
* @author lihu
|
* @date 2024-08-29
|
*/
|
@Service
|
public class SysUserDeptServiceImpl implements ISysUserDeptService
|
{
|
@Autowired
|
private SysUserDeptMapper sysUserDeptMapper;
|
|
/**
|
* 查询【请填写功能名称】
|
*
|
* @param id 【请填写功能名称】主键
|
* @return 【请填写功能名称】
|
*/
|
@Override
|
public SysUserDept selectSysUserDeptById(Long id)
|
{
|
return sysUserDeptMapper.selectSysUserDeptById(id);
|
}
|
|
/**
|
* 查询【请填写功能名称】列表
|
*
|
* @param sysUserDept 【请填写功能名称】
|
* @return 【请填写功能名称】
|
*/
|
@Override
|
public List<SysUserDept> selectSysUserDeptList(SysUserDept sysUserDept)
|
{
|
return sysUserDeptMapper.selectSysUserDeptList(sysUserDept);
|
}
|
|
/**
|
* 新增【请填写功能名称】
|
*
|
* @param sysUserDept 【请填写功能名称】
|
* @return 结果
|
*/
|
@Override
|
public int insertSysUserDept(SysUserDept sysUserDept)
|
{
|
return sysUserDeptMapper.insertSysUserDept(sysUserDept);
|
}
|
|
/**
|
* 修改【请填写功能名称】
|
*
|
* @param sysUserDept 【请填写功能名称】
|
* @return 结果
|
*/
|
@Override
|
public int updateSysUserDept(SysUserDept sysUserDept)
|
{
|
return sysUserDeptMapper.updateSysUserDept(sysUserDept);
|
}
|
|
/**
|
* 批量删除【请填写功能名称】
|
*
|
* @param ids 需要删除的【请填写功能名称】主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysUserDeptByIds(Long[] ids)
|
{
|
return sysUserDeptMapper.deleteSysUserDeptByIds(ids);
|
}
|
|
/**
|
* 删除【请填写功能名称】信息
|
*
|
* @param id 【请填写功能名称】主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysUserDeptById(Long id)
|
{
|
return sysUserDeptMapper.deleteSysUserDeptById(id);
|
}
|
}
|