zjh
2025-06-05 2eb40036e885988fbf93ebcb98a339b197fb6340
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
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ltkj.hosp.mapper.TjDiscardInspectionMapper;
import com.ltkj.hosp.domain.TjDiscardInspection;
import com.ltkj.hosp.service.ITjDiscardInspectionService;
 
import javax.annotation.Resource;
 
/**
 * 弃检Service业务层处理
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-03-24
 */
@Service
public class TjDiscardInspectionServiceImpl  extends ServiceImpl<TjDiscardInspectionMapper, TjDiscardInspection> implements ITjDiscardInspectionService {
    @Resource
    private TjDiscardInspectionMapper tjDiscardInspectionMapper;
 
    /**
     * 查询弃检
     *
     * @param id 弃检主键
     * @return 弃检
     */
    @Override
    public TjDiscardInspection selectTjDiscardInspectionById(Long id) {
        return tjDiscardInspectionMapper.selectTjDiscardInspectionById(id);
    }
 
    /**
     * 查询弃检列表
     *
     * @param tjDiscardInspection 弃检
     * @return 弃检
     */
    @Override
    public List<TjDiscardInspection> selectTjDiscardInspectionList(TjDiscardInspection tjDiscardInspection) {
        return tjDiscardInspectionMapper.selectTjDiscardInspectionList(tjDiscardInspection);
    }
 
    /**
     * 新增弃检
     *
     * @param tjDiscardInspection 弃检
     * @return 结果
     */
    @Override
    public int insertTjDiscardInspection(TjDiscardInspection tjDiscardInspection) {
                tjDiscardInspection.setCreateTime(DateUtils.getNowDate());
            return tjDiscardInspectionMapper.insertTjDiscardInspection(tjDiscardInspection);
    }
 
    /**
     * 修改弃检
     *
     * @param tjDiscardInspection 弃检
     * @return 结果
     */
    @Override
    public int updateTjDiscardInspection(TjDiscardInspection tjDiscardInspection) {
                tjDiscardInspection.setUpdateTime(DateUtils.getNowDate());
        return tjDiscardInspectionMapper.updateTjDiscardInspection(tjDiscardInspection);
    }
 
    /**
     * 批量删除弃检
     *
     * @param ids 需要删除的弃检主键
     * @return 结果
     */
    @Override
    public int deleteTjDiscardInspectionByIds(Long[] ids) {
        return tjDiscardInspectionMapper.deleteTjDiscardInspectionByIds(ids);
    }
 
    /**
     * 删除弃检信息
     *
     * @param id 弃检主键
     * @return 结果
     */
    @Override
    public int deleteTjDiscardInspectionById(Long id) {
        return tjDiscardInspectionMapper.deleteTjDiscardInspectionById(id);
    }
}