liusheng
5 天以前 cc479e6a056785103996cc7ea67dbd5faa3e800e
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
package com.ruoyi.common.core.service.dto;
 
import java.io.Serializable;
 
/**
 * 随访任务执行规则({@code service_task_rule})的随访侧视图。
 *
 * <h3>来源对照(@ b25c3b51)</h3>
 * 对应 {@code ServiceTaskRule},由 {@code PatMedInhospServiceImpl#addSubTaskByRule}
 * 通过 {@code selectServiceTaskRuleByDeptOrWard} 查询。该查询<b>最多返回一条</b>。
 *
 * <h3>⚠️ 字段名 {@code wradRule} 是原实体的拼写错误,刻意保持同名</h3>
 * 原 {@code ServiceTaskRule} 里病区规则字段就叫 {@code wradRule}(缺了 d),
 * 且 {@code addSubTaskByRule} 里读的是 {@code rule.getWradRule()}。
 * 这里保持同名,避免"看起来像新字段"而读错。
 *
 * <h3>三个规则值的语义(原实现 L1721-1726)</h3>
 * <pre>
 * "1" = 首要规则(先执行,成功则次要规则跳过)
 * "2" = 次要规则(首要全失败时才执行)
 * 其它/null = 不参与
 * </pre>
 */
public class VisitTaskRuleDto implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /** 规则ID */
    private Long id;
 
    /** 科室规则:"1"=首要 "2"=次要 */
    private String deptRule;
 
    /** 病区规则(⚠️ 原实体拼写即为 {@code wradRule}) */
    private String wradRule;
 
    /** 疾病规则 */
    private String diagRule;
 
    /** 离院科室编码 */
    private String deptcode;
 
    /** 离院病区编码 */
    private String wardcode;
 
    /** 机构ID */
    private String orgid;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getDeptRule() {
        return deptRule;
    }
 
    public void setDeptRule(String deptRule) {
        this.deptRule = deptRule;
    }
 
    public String getWradRule() {
        return wradRule;
    }
 
    public void setWradRule(String wradRule) {
        this.wradRule = wradRule;
    }
 
    public String getDiagRule() {
        return diagRule;
    }
 
    public void setDiagRule(String diagRule) {
        this.diagRule = diagRule;
    }
 
    public String getDeptcode() {
        return deptcode;
    }
 
    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }
 
    public String getWardcode() {
        return wardcode;
    }
 
    public void setWardcode(String wardcode) {
        this.wardcode = wardcode;
    }
 
    public String getOrgid() {
        return orgid;
    }
 
    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }
}