123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- package com.fdkankan.manage.vo.response;
- import com.alibaba.excel.annotation.ExcelIgnore;
- import com.alibaba.excel.annotation.ExcelProperty;
- import com.alibaba.fastjson.JSONArray;
- import com.fdkankan.manage.entity.FeedbackOption;
- import com.fdkankan.manage.util.DateUtils;
- import lombok.Data;
- import java.math.BigDecimal;
- import java.math.RoundingMode;
- import java.util.Date;
- @Data
- public class FeedbackVo {
- @ExcelIgnore
- private Integer id;
- /**
- * 硬件产品id
- */
- @ExcelIgnore
- private Integer hardwareOptionId;
- /**
- * 软件产品id
- */
- @ExcelIgnore
- private Integer softwareOptionId;
- /**
- * 所在行业id
- */
- @ExcelIgnore
- private Integer industryOptionId;
- @ExcelIgnore
- private JSONArray problemDescImgs;
- @ExcelIgnore
- private JSONArray solutionImgs;
- /**
- * 硬件产品id
- */
- @ExcelIgnore
- private FeedbackOption hardwareOption;
- /**
- * 软件产品id
- */
- @ExcelIgnore
- private FeedbackOption softwareOption;
- /**
- * 所在行业id
- */
- @ExcelIgnore
- private FeedbackOption industryOption;
- /**
- * 问题描述
- */
- @ExcelProperty("问题描述")
- private String problemDesc;
- /**
- * 硬件产品id
- */
- @ExcelProperty("硬件产品")
- private String hardwareOptionName;
- /**
- * 软件产品id
- */
- @ExcelProperty("软件产品")
- private String softwareOptionName;
- /**
- * 所在行业id
- */
- @ExcelProperty("所在行业")
- private String industryOptionName;
- /**
- * 解决方案
- */
- @ExcelProperty("期望解决方案")
- private String solution;
- /**
- * 姓名
- */
- @ExcelProperty("姓名")
- private String nickName;
- /**
- * 联系方式
- */
- @ExcelProperty("联系方式")
- private String phone;
- /**
- * 地址
- */
- @ExcelProperty("国家和地区")
- private String address;
- /**
- * 评分
- */
- @ExcelIgnore
- private BigDecimal score;
- @ExcelProperty("评分")
- private String scoreStr;
- /**
- * 评分理由
- */
- @ExcelProperty("评分理由")
- private String scoreReason;
- @ExcelIgnore
- private Date createTime;
- @ExcelProperty("反馈时间")
- private String createTimeStr;
- /**
- * 处理状态 0未处理,1已处理
- */
- @ExcelIgnore
- private Integer status;
- @ExcelProperty("处理状态")
- private String statusStr;
- /**
- * 处理结果
- */
- @ExcelProperty("处理结果")
- private String result;
- public String getStatusStr() {
- if(status != null){
- switch (status){
- case 0 : return "待处理";
- case 1 : return "已处理";
- }
- }
- return statusStr;
- }
- public String getHardwareOptionName() {
- if(hardwareOption != null){
- return hardwareOption.getNameCn();
- }
- return hardwareOptionName;
- }
- public String getSoftwareOptionName() {
- if(softwareOption != null){
- return softwareOption.getNameCn();
- }
- return softwareOptionName;
- }
- public String getIndustryOptionName() {
- if(industryOption != null){
- return industryOption.getNameCn();
- }
- return industryOptionName;
- }
- public String getScoreStr() {
- if(score != null){
- BigDecimal bigDecimal = score.setScale(1, RoundingMode.HALF_UP);
- return bigDecimal.toString();
- }
- return scoreStr;
- }
- public String getCreateTimeStr() {
- if(createTime != null){
- return DateUtils.getDate(createTime);
- }
- return createTimeStr;
- }
- }
|