提交代码

dev_xds
姜玉琦 2024-07-02 00:07:15 +08:00
parent 1e415b020c
commit 31ce33abc5
1 changed files with 53 additions and 0 deletions

View File

@ -2,11 +2,13 @@ package com.yanzhu.jh.trouble.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.utils.StringUtils;
import com.yanzhu.jh.trouble.domain.SmzSspProblemmodify;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.util.Date;
import java.util.Objects;
public class SmzSspProblemmodifyExport {
@Excel(name = "项目名称",align= HorizontalAlignment.LEFT,width =30 )
@ -25,16 +27,25 @@ public class SmzSspProblemmodifyExport {
@Excel(name = "整改要求" ,align= HorizontalAlignment.LEFT,width =30)
private String changeInfo;
@Excel(name = "整改截至时间", width = 20, dateFormat = "yyyy-MM-dd HH:ss")
private Date nickedTime;
@Excel(name = "隐患整改人",align= HorizontalAlignment.LEFT,width =30)
private String lordSent;
@Excel(name = "整改人单位类型",align= HorizontalAlignment.LEFT,width =30)
private String lordSentDeptType;
@Excel(name = "流程状态")
private String checkState;
@Excel(name = "复检人",align= HorizontalAlignment.LEFT,width =30)
private String recheckSend;
@Excel(name = "复检人单位类型",align= HorizontalAlignment.LEFT,width =30)
private String recheckSendDeptType;
@Excel(name = "抄送人",align= HorizontalAlignment.LEFT,width =30)
private String copySend;
@ -60,6 +71,32 @@ public class SmzSspProblemmodifyExport {
d.createBy=it.getCreateBy();
d.createTime=it.getCreateTime();
d.marksPicture= RuoYiConfig.getProjectUrl()+it.getMarksPicture();
if(StringUtils.isNotEmpty(it.getZgDeptType())){
if(Objects.equals(it.getZgDeptType(),"1")){
d.lordSentDeptType="集团公司";
}else if(Objects.equals(it.getZgDeptType(),"11")){
d.lordSentDeptType="子公司";
}else if(Objects.equals(it.getZgDeptType(),"2")){
d.lordSentDeptType="总包单位";
}else if(Objects.equals(it.getZgDeptType(),"3")){
d.lordSentDeptType="分包单位";
}else{
d.lordSentDeptType="监理单位";
}
}
if(StringUtils.isNotEmpty(it.getFjDeptType())){
if(Objects.equals(it.getFjDeptType(),"1")){
d.recheckSendDeptType="集团公司";
}else if(Objects.equals(it.getFjDeptType(),"11")){
d.recheckSendDeptType="子公司";
}else if(Objects.equals(it.getFjDeptType(),"2")){
d.recheckSendDeptType="总包单位";
}else if(Objects.equals(it.getFjDeptType(),"3")){
d.recheckSendDeptType="分包单位";
}else{
d.recheckSendDeptType="监理单位";
}
}
return d;
}
@ -174,4 +211,20 @@ public class SmzSspProblemmodifyExport {
public void setProblemType(String problemType) {
this.problemType = problemType;
}
public String getLordSentDeptType() {
return lordSentDeptType;
}
public void setLordSentDeptType(String lordSentDeptType) {
this.lordSentDeptType = lordSentDeptType;
}
public String getRecheckSendDeptType() {
return recheckSendDeptType;
}
public void setRecheckSendDeptType(String recheckSendDeptType) {
this.recheckSendDeptType = recheckSendDeptType;
}
}