zjh
2024-12-01 b6ec9700dda9dfa2530ddd9aac3c992acd9e5af2
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
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.TjOtherCheck;
import com.ltkj.hosp.mapper.TjOtherCheckMapper;
import com.ltkj.hosp.service.ITjOtherCheckService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
/**
 * 体检其他检测Service业务层处理
 *
 * @author ltkj
 * @date 2023-04-14
 */
@Service
public class TjOtherCheckServiceImpl extends ServiceImpl<TjOtherCheckMapper, TjOtherCheck> implements ITjOtherCheckService {
    @Resource
    private TjOtherCheckMapper tjOtherCheckMapper;
 
    /**
     * 查询体检其他检测
     *
     * @param id 体检其他检测主键
     * @return 体检其他检测
     */
    @Override
    public TjOtherCheck selectTjOtherCheckById(String id) {
        return tjOtherCheckMapper.selectTjOtherCheckById(id);
    }
 
    /**
     * 查询体检其他检测列表
     *
     * @param tjOtherCheck 体检其他检测
     * @return 体检其他检测
     */
    @Override
    public List<TjOtherCheck> selectTjOtherCheckList(TjOtherCheck tjOtherCheck) {
        return tjOtherCheckMapper.selectTjOtherCheckList(tjOtherCheck);
    }
 
    /**
     * 新增体检其他检测
     *
     * @param tjOtherCheck 体检其他检测
     * @return 结果
     */
    @Override
    public int insertTjOtherCheck(TjOtherCheck tjOtherCheck) {
        tjOtherCheck.setCreateTime(DateUtils.getNowDate());
        return tjOtherCheckMapper.insertTjOtherCheck(tjOtherCheck);
    }
 
    /**
     * 修改体检其他检测
     *
     * @param tjOtherCheck 体检其他检测
     * @return 结果
     */
    @Override
    public int updateTjOtherCheck(TjOtherCheck tjOtherCheck) {
        tjOtherCheck.setUpdateTime(DateUtils.getNowDate());
        return tjOtherCheckMapper.updateTjOtherCheck(tjOtherCheck);
    }
 
    /**
     * 批量删除体检其他检测
     *
     * @param ids 需要删除的体检其他检测主键
     * @return 结果
     */
    @Override
    public int deleteTjOtherCheckByIds(String[] ids) {
        return tjOtherCheckMapper.deleteTjOtherCheckByIds(ids);
    }
 
    /**
     * 删除体检其他检测信息
     *
     * @param id 体检其他检测主键
     * @return 结果
     */
    @Override
    public int deleteTjOtherCheckById(String id) {
        return tjOtherCheckMapper.deleteTjOtherCheckById(id);
    }
}