/* * 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); } }