zhaowenxuan
2025-05-13 2b2763c83e352f8ffd2ac0b5c46b60c49ee78439
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
107
108
package com.ltkj.hosp.service.impl;
 
import java.util.Date;
import java.util.List;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ltkj.common.utils.DateUtils;
import com.ltkj.hosp.vodomain.TeamTjDwBaoGaoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ltkj.hosp.mapper.TjDwDeptMapper;
import com.ltkj.hosp.domain.TjDwDept;
import com.ltkj.hosp.service.ITjDwDeptService;
 
/**
 * 体检单位部门Service业务层处理
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-08-07
 */
@Service
public class TjDwDeptServiceImpl extends ServiceImpl<TjDwDeptMapper,TjDwDept> implements ITjDwDeptService {
    @Autowired
    private TjDwDeptMapper tjDwDeptMapper;
 
    /**
     * 查询体检单位部门
     *
     * @param id 体检单位部门主键
     * @return 体检单位部门
     */
    @Override
    public TjDwDept selectTjDwDeptById(String id) {
        return tjDwDeptMapper.selectTjDwDeptById(id);
    }
 
    /**
     * 查询体检单位部门列表
     *
     * @param tjDwDept 体检单位部门
     * @return 体检单位部门
     */
    @Override
    public List<TjDwDept> selectTjDwDeptList(TjDwDept tjDwDept) {
        return tjDwDeptMapper.selectTjDwDeptList(tjDwDept);
    }
 
    /**
     * 新增体检单位部门
     *
     * @param tjDwDept 体检单位部门
     * @return 结果
     */
    @Override
    public int insertTjDwDept(TjDwDept tjDwDept) {
                tjDwDept.setCreateTime(DateUtils.getNowDate());
            return tjDwDeptMapper.insertTjDwDept(tjDwDept);
    }
 
    /**
     * 修改体检单位部门
     *
     * @param tjDwDept 体检单位部门
     * @return 结果
     */
    @Override
    public int updateTjDwDept(TjDwDept tjDwDept) {
                tjDwDept.setUpdateTime(DateUtils.getNowDate());
        return tjDwDeptMapper.updateTjDwDept(tjDwDept);
    }
 
    /**
     * 批量删除体检单位部门
     *
     * @param ids 需要删除的体检单位部门主键
     * @return 结果
     */
    @Override
    public int deleteTjDwDeptByIds(String[] ids) {
        return tjDwDeptMapper.deleteTjDwDeptByIds(ids);
    }
 
    /**
     * 删除体检单位部门信息
     *
     * @param id 体检单位部门主键
     * @return 结果
     */
    @Override
    public int deleteTjDwDeptById(String id) {
        return tjDwDeptMapper.deleteTjDwDeptById(id);
    }
 
    @Override
    public List<TjDwDept> getDwDeptNameList() {
        return tjDwDeptMapper.getDwDeptNameList();
    }
 
    @Override
    public List<TjDwDept> getDwDeptListByTjDwDeptId(String id) {
        return tjDwDeptMapper.getDwDeptListByTjDwDeptId(id);
    }
 
    @Override
    public List<TeamTjDwBaoGaoVo> getTeamTjDwBaoGaoVoByTjDwDeptId(String dwDeptId, Date beginTime, Date endTime) {
        return tjDwDeptMapper.getTeamTjDwBaoGaoVoByTjDwDeptId(dwDeptId,beginTime,endTime);
    }
}