zjh
2025-02-21 2c785c3d4513daea9deb5c7edbb17a9f17111d25
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
package com.ltkj.system.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.system.domain.TjDjdDyjl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
 
/**
 * 体检导检单打印记录Mapper接口
 *
 * @author ltkj
 * @date 2024-10-25
 */
@Mapper
public interface TjDjdDyjlMapper extends BaseMapper<TjDjdDyjl> {
    /**
     * 查询体检导检单打印记录
     *
     * @param id 体检导检单打印记录主键
     * @return 体检导检单打印记录
     */
    public TjDjdDyjl selectTjDjdDyjlById(Long id);
 
    /**
     * 查询体检导检单打印记录列表
     *
     * @param tjDjdDyjl 体检导检单打印记录
     * @return 体检导检单打印记录集合
     */
    public List<TjDjdDyjl> selectTjDjdDyjlList(TjDjdDyjl tjDjdDyjl);
 
    /**
     * 新增体检导检单打印记录
     *
     * @param tjDjdDyjl 体检导检单打印记录
     * @return 结果
     */
    public int insertTjDjdDyjl(TjDjdDyjl tjDjdDyjl);
 
    /**
     * 修改体检导检单打印记录
     *
     * @param tjDjdDyjl 体检导检单打印记录
     * @return 结果
     */
    public int updateTjDjdDyjl(TjDjdDyjl tjDjdDyjl);
 
    /**
     * 删除体检导检单打印记录
     *
     * @param id 体检导检单打印记录主键
     * @return 结果
     */
    public int deleteTjDjdDyjlById(Long id);
 
    /**
     * 批量删除体检导检单打印记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTjDjdDyjlByIds(Long[] ids);
 
 
    @Select("SELECT * FROM tj_djd_dyjl a WHERE a.deleted=0 AND a.tj_num=#{tjNumber} AND a.dylx=0")
    TjDjdDyjl getDjdDyCsByTjNum(String tjNumber);
}