zjh
2025-06-05 2c19fa65dc87ea8f3d81f84154f4eeabff7f8d00
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.ltkj.hosp.service.impl;
 
import java.util.List;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ltkj.common.utils.DateUtils;
import com.ltkj.hosp.domain.DictSfxm;
import com.ltkj.hosp.mapper.DictSfxmMapper;
import com.ltkj.hosp.service.IDictSfxmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * 收费项目Service业务层处理
 *
 * @author ltkj
 * @date 2023-03-22
 */
@Service
public class DictSfxmServiceImpl extends ServiceImpl<DictSfxmMapper, DictSfxm> implements IDictSfxmService {
    @Autowired
    private DictSfxmMapper dictSfxmMapper;
 
    /**
     * 查询收费项目
     *
     * @param id 收费项目主键
     * @return 收费项目
     */
    @Override
    public DictSfxm selectDictSfxmById(Long id) {
        return dictSfxmMapper.selectDictSfxmById(id);
    }
 
    /**
     * 查询收费项目列表
     *
     * @param dictSfxm 收费项目
     * @return 收费项目
     */
    @Override
    public List<DictSfxm> selectDictSfxmList(DictSfxm dictSfxm) {
        return dictSfxmMapper.selectDictSfxmList(dictSfxm);
    }
 
    /**
     * 新增收费项目
     *
     * @param dictSfxm 收费项目
     * @return 结果
     */
    @Override
    public int insertDictSfxm(DictSfxm dictSfxm) {
                dictSfxm.setCreateTime(DateUtils.getNowDate());
            return dictSfxmMapper.insertDictSfxm(dictSfxm);
    }
 
    /**
     * 修改收费项目
     *
     * @param dictSfxm 收费项目
     * @return 结果
     */
    @Override
    public int updateDictSfxm(DictSfxm dictSfxm) {
                dictSfxm.setUpdateTime(DateUtils.getNowDate());
        return dictSfxmMapper.updateDictSfxm(dictSfxm);
    }
 
    /**
     * 批量删除收费项目
     *
     * @param ids 需要删除的收费项目主键
     * @return 结果
     */
    @Override
    public int deleteDictSfxmByIds(Long[] ids) {
        return dictSfxmMapper.deleteDictSfxmByIds(ids);
    }
 
    /**
     * 删除收费项目信息
     *
     * @param id 收费项目主键
     * @return 结果
     */
    @Override
    public int deleteDictSfxmById(Long id) {
        return dictSfxmMapper.deleteDictSfxmById(id);
    }
 
    @Override
    public List<DictSfxm> getYjDictSfxmList() {
        return dictSfxmMapper.getYjDictSfxmList();
    }
 
    @Override
    public List<DictSfxm> getEjDictSfxmList(Long id) {
        return dictSfxmMapper.getEjDictSfxmList(id);
    }
 
    @Override
    public List<DictSfxm> getSjDictSfxmList(Long id) {
        return dictSfxmMapper.getSjDictSfxmList(id);
    }
}