package com.se.system.service.impl;
|
|
import java.util.List;
|
import com.se.common.core.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.se.system.mapper.SysSoftMapper;
|
import com.se.system.domain.SysSoft;
|
import com.se.system.service.inte.ISysSoftService;
|
|
/**
|
* 软件Service业务层处理
|
*
|
* @author se
|
* @date 2024-11-22
|
*/
|
@Service
|
public class SysSoftServiceImpl implements ISysSoftService
|
{
|
@Autowired
|
private SysSoftMapper sysSoftMapper;
|
|
/**
|
* 查询软件
|
*
|
* @param softId 软件主键
|
* @return 软件
|
*/
|
@Override
|
public SysSoft selectSysSoftBySoftId(Long softId)
|
{
|
return sysSoftMapper.selectSysSoftBySoftId(softId);
|
}
|
|
/**
|
* 查询软件列表
|
*
|
* @param sysSoft 软件
|
* @return 软件
|
*/
|
@Override
|
public List<SysSoft> selectSysSoftList(SysSoft sysSoft)
|
{
|
return sysSoftMapper.selectSysSoftList(sysSoft);
|
}
|
|
/**
|
* 新增软件
|
*
|
* @param sysSoft 软件
|
* @return 结果
|
*/
|
@Override
|
public int insertSysSoft(SysSoft sysSoft)
|
{
|
sysSoft.setCreateTime(DateUtils.getNowDate());
|
return sysSoftMapper.insertSysSoft(sysSoft);
|
}
|
|
/**
|
* 修改软件
|
*
|
* @param sysSoft 软件
|
* @return 结果
|
*/
|
@Override
|
public int updateSysSoft(SysSoft sysSoft)
|
{
|
sysSoft.setUpdateTime(DateUtils.getNowDate());
|
return sysSoftMapper.updateSysSoft(sysSoft);
|
}
|
|
/**
|
* 批量删除软件
|
*
|
* @param softIds 需要删除的软件主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysSoftBySoftIds(Long[] softIds)
|
{
|
return sysSoftMapper.deleteSysSoftBySoftIds(softIds);
|
}
|
|
/**
|
* 删除软件信息
|
*
|
* @param softId 软件主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysSoftBySoftId(Long softId)
|
{
|
return sysSoftMapper.deleteSysSoftBySoftId(softId);
|
}
|
}
|