zhaowenxuan
2024-05-24 4b3bc0db42b5f57b2422247ec73eb96d4f1ba7c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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<SysAttachment> 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);
    }
}