吉安感知网项目-后端
linwei
yesterday 89fd0b6ff97e90220376cec824eaf8eabb9d0a3e
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.sxkj.gd.orderdata.vo;
 
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tool.utils.Func;
import org.springblade.core.tool.utils.StringUtil;
import org.sxkj.system.cache.SysCache;
import lombok.Data;
 
import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
 
/**
 * 数据评价管理表 视图实体类
 *
 * @author lw
 * @since 2026-01-16
 */
@Data
public class GdDataEvaluationVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 评价标题
     */
    @ApiModelProperty(value = "评价标题")
    private String title;
    /**
     * 数据名称
     */
    @ApiModelProperty(value = "数据名称")
    private String dataName;
    /**
     * 提出部门ID(关联部门表)
     */
    @ApiModelProperty(value = "提出部门ID(关联部门表)")
    private String proposeDeptId;
    /**
     * 数据提供部门ID(关联部门表)
     */
    @ApiModelProperty(value = "数据提供部门ID(关联部门表)")
    private String dataProvideDeptId;
    /**
     * 评分(如1-10分)
     */
    @ApiModelProperty(value = "评分(如1-10分)")
    private Byte score;
    /**
     * 是否解决(0否 1是)
     */
    @ApiModelProperty(value = "是否解决(0否 1是)")
    private String isResolved;
    /**
     * 评价内容
     */
    @ApiModelProperty(value = "评价内容")
    private String evaluationContent;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    private String areaCode;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Long createUser;
    /**
     * 创建部门
     */
    @ApiModelProperty(value = "创建部门")
    private Long createDept;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Long updateUser;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**
     * 状态(0正常 1停用)
     */
    @ApiModelProperty(value = "状态(0正常 1停用)")
    private Integer status;
    /**
     * 删除标志(0存在 1删除)
     */
    @ApiModelProperty(value = "删除标志(0存在 1删除)")
    private Integer isDeleted;
 
    @ApiModelProperty(value = "提出部门名称")
    public String getProposeDeptName() {
        if (StringUtil.isBlank(getProposeDeptId())) {
            return null;
        }
        Long deptId = Func.toLong(getProposeDeptId());
        if (deptId == null || deptId <= 0) {
            return null;
        }
        return SysCache.getDeptName(deptId);
    }
 
    @ApiModelProperty(value = "数据提供部门名称")
    public String getDataProvideDeptName() {
        if (StringUtil.isBlank(getDataProvideDeptId())) {
            return null;
        }
        Long deptId = Func.toLong(getDataProvideDeptId());
        if (deptId == null || deptId <= 0) {
            return null;
        }
        return SysCache.getDeptName(deptId);
    }
 
}