刘光辉
13 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
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
package jnpf.limsEntity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
 
import java.util.Date;
 
/**
 * 报告授权配置(lims_baogao_shouquan)。
 * 由前端"报告授权管理"页(visualdev 动态表单)维护。
 * 一条记录表达:将某个审核级别(制作/审核/签发)对若干分类(biz_type)的操作权
 * 授予 bei_shouquanren 列表中的所有用户。
 *
 * <p>JSON 数组列直接以 String 保留原始 JSON 文本(如 ["CP","YY"]),
 * 真正的权限判断在 SQL 层用 JSON_CONTAINS 完成,无需反序列化。
 */
@Data
@TableName("lims_baogao_shouquan")
public class LimsBaogaoShouquanEntity {
 
    @TableId(value = "f_id")
    @JsonProperty("f_id")
    @JsonAlias("id")
    private String id;
 
    @TableField(value = "f_tenant_id", fill = FieldFill.INSERT_UPDATE)
    private String tenantId;
 
    /** 被授权人 userId JSON 数组:["userId1","userId2"] */
    @TableField("bei_shouquanren")
    private String beiShouquanren;
 
    /** 授权人 userId(创建本条授权的人) */
    @TableField("shouquanren")
    private String shouquanren;
 
    /**
     * 授权的审核级别 JSON 数组(多选):
     * 取值集合 ["baogao_zhizhuo","baogao_shenhe","baogao_qianfa"] 的任意子集。
     * 早期为单选字符串(baogao_zhizhuo / baogao_shenhe / baogao_qianfa 三选一),
     * 现已统一为 JSON 数组形式;详见 LimsBaogaoShouquanMapper.countAuthority 的历史变更说明。
     */
    @TableField("shenhe_jibie")
    private String shenheJibie;
 
    /** 审核分类 biz_type JSON 数组:["CP","ZJP","YY","YFB","XBK","JZK","ZZRY","WDX"] */
    @TableField("shenhe_fenlei")
    private String shenheFenlei;
 
    /** 是否启用:yes / no */
    @TableField("biz_enabled")
    private String bizEnabled;
 
    @TableField("f_flow_id")
    private String flowId;
 
    @TableField("f_version")
    private Integer version;
 
    @TableField("f_flow_task_id")
    private String flowTaskId;
 
    @TableField("f_flow_state")
    private Integer flowState;
 
    @TableField("f_delete_mark")
    private Integer deleteMark;
 
    @TableField("f_delete_time")
    private Date deleteTime;
 
    @TableField("f_delete_user_id")
    private String deleteUserId;
}