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.HeLocallibraryMapper;
|
import com.smartor.domain.HeLocallibrary;
|
import com.smartor.service.IHeLocallibraryService;
|
|
/**
|
* 宣教库Service业务层处理
|
*
|
* @author smartor
|
* @date 2023-03-04
|
*/
|
@Service
|
public class HeLocallibraryServiceImpl implements IHeLocallibraryService
|
{
|
@Autowired
|
private HeLocallibraryMapper heLocallibraryMapper;
|
|
/**
|
* 查询宣教库
|
*
|
* @param id 宣教库主键
|
* @return 宣教库
|
*/
|
@Override
|
public HeLocallibrary selectHeLocallibraryById(Long id)
|
{
|
return heLocallibraryMapper.selectHeLocallibraryById(id);
|
}
|
|
/**
|
* 查询宣教库列表
|
*
|
* @param heLocallibrary 宣教库
|
* @return 宣教库
|
*/
|
@Override
|
public List<HeLocallibrary> selectHeLocallibraryList(HeLocallibrary heLocallibrary)
|
{
|
return heLocallibraryMapper.selectHeLocallibraryList(heLocallibrary);
|
}
|
|
/**
|
* 新增宣教库
|
*
|
* @param heLocallibrary 宣教库
|
* @return 结果
|
*/
|
@Override
|
public int insertHeLocallibrary(HeLocallibrary heLocallibrary)
|
{
|
heLocallibrary.setCreateTime(DateUtils.getNowDate());
|
return heLocallibraryMapper.insertHeLocallibrary(heLocallibrary);
|
}
|
|
/**
|
* 修改宣教库
|
*
|
* @param heLocallibrary 宣教库
|
* @return 结果
|
*/
|
@Override
|
public int updateHeLocallibrary(HeLocallibrary heLocallibrary)
|
{
|
heLocallibrary.setUpdateTime(DateUtils.getNowDate());
|
return heLocallibraryMapper.updateHeLocallibrary(heLocallibrary);
|
}
|
|
/**
|
* 批量删除宣教库
|
*
|
* @param ids 需要删除的宣教库主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteHeLocallibraryByIds(Long[] ids)
|
{
|
return heLocallibraryMapper.deleteHeLocallibraryByIds(ids);
|
}
|
|
/**
|
* 删除宣教库信息
|
*
|
* @param id 宣教库主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteHeLocallibraryById(Long id)
|
{
|
return heLocallibraryMapper.deleteHeLocallibraryById(id);
|
}
|
}
|