package com.ltkj.hosp.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ltkj.hosp.mapper.SysAttachmentMapper; import com.ltkj.hosp.domain.SysAttachment; import com.ltkj.hosp.service.ISysAttachmentService; /** * 文件上传记录Service业务层处理 * * @author ltkj_赵佳豪&李格 * @date 2024-05-21 */ @Service public class SysAttachmentServiceImpl implements ISysAttachmentService { @Autowired private SysAttachmentMapper sysAttachmentMapper; /** * 查询文件上传记录 * * @param id 文件上传记录主键 * @return 文件上传记录 */ @Override public SysAttachment selectSysAttachmentById(Long id) { return sysAttachmentMapper.selectSysAttachmentById(id); } /** * 查询文件上传记录列表 * * @param sysAttachment 文件上传记录 * @return 文件上传记录 */ @Override public List selectSysAttachmentList(SysAttachment sysAttachment) { return sysAttachmentMapper.selectSysAttachmentList(sysAttachment); } /** * 新增文件上传记录 * * @param sysAttachment 文件上传记录 * @return 结果 */ @Override public int insertSysAttachment(SysAttachment sysAttachment) { return sysAttachmentMapper.insertSysAttachment(sysAttachment); } /** * 修改文件上传记录 * * @param sysAttachment 文件上传记录 * @return 结果 */ @Override public int updateSysAttachment(SysAttachment sysAttachment) { return sysAttachmentMapper.updateSysAttachment(sysAttachment); } /** * 批量删除文件上传记录 * * @param ids 需要删除的文件上传记录主键 * @return 结果 */ @Override public int deleteSysAttachmentByIds(Long[] ids) { return sysAttachmentMapper.deleteSysAttachmentByIds(ids); } /** * 删除文件上传记录信息 * * @param id 文件上传记录主键 * @return 结果 */ @Override public int deleteSysAttachmentById(Long id) { return sysAttachmentMapper.deleteSysAttachmentById(id); } }