feat: scc流程未分发导出支持“辅助说明材料
” 字段
This commit is contained in:
+12
@@ -246,6 +246,18 @@ public class ProcessStandardComplianceCheckDetail implements Serializable, Compa
|
|||||||
return material != null ? Arrays.asList(material.split(",")) : Collections.emptyList();
|
return material != null ? Arrays.asList(material.split(",")) : Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附件
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "辅助说明材料")
|
||||||
|
@ExcelCollection(name = "", orderNum = "17")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<ExcelExportUtilPro.FileDetails> fileListTwo = Collections.emptyList();
|
||||||
|
|
||||||
|
public List<String> obtainFileTwoIds() {
|
||||||
|
return unsatisfiedRequireAttach != null ? Arrays.asList(unsatisfiedRequireAttach.split(",")) : Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|||||||
+8
-12
@@ -119,14 +119,6 @@ public class WithoutDistributeExcelTemplate {
|
|||||||
@Excel(name = "备注", width = 15, orderNum = "13")
|
@Excel(name = "备注", width = 15, orderNum = "13")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
|
||||||
* 附件
|
|
||||||
*/
|
|
||||||
// @ApiModelProperty(value = "佐证材料")
|
|
||||||
// @ExcelCollection(name = "", orderNum = "14")
|
|
||||||
// @TableField(exist = false)
|
|
||||||
// private List<ExcelExportUtilPro.FileDetails> fileList = Collections.emptyList();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 佐证材料
|
* 佐证材料
|
||||||
*/
|
*/
|
||||||
@@ -135,11 +127,15 @@ public class WithoutDistributeExcelTemplate {
|
|||||||
@Dict(dictTable = "oss_file", dicCode = "id", dicText = "file_name")
|
@Dict(dictTable = "oss_file", dicCode = "id", dicText = "file_name")
|
||||||
private String material;
|
private String material;
|
||||||
|
|
||||||
private String sort;
|
/**
|
||||||
|
* 佐证材料
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "辅助说明材料")
|
||||||
|
@Excel(name = "辅助说明材料", width = 15, orderNum = "14")
|
||||||
|
@Dict(dictTable = "oss_file", dicCode = "id", dicText = "file_name")
|
||||||
|
private String unsatisfiedRequireAttach;
|
||||||
|
|
||||||
// public List<String> obtainFileIds() {
|
private String sort;
|
||||||
// return material != null ? Arrays.asList(material.split(",")) : Collections.emptyList();
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -627,6 +627,10 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
excelExportUtilPro.settleDocuments(url, "佐证材料", detailInfoList,
|
excelExportUtilPro.settleDocuments(url, "佐证材料", detailInfoList,
|
||||||
ProcessStandardComplianceCheckDetail::obtainFileIds,
|
ProcessStandardComplianceCheckDetail::obtainFileIds,
|
||||||
ProcessStandardComplianceCheckDetail::setFileList);
|
ProcessStandardComplianceCheckDetail::setFileList);
|
||||||
|
// 获取数据
|
||||||
|
excelExportUtilPro.settleDocuments(url, "辅助说明材料", detailInfoList,
|
||||||
|
ProcessStandardComplianceCheckDetail::obtainFileTwoIds,
|
||||||
|
ProcessStandardComplianceCheckDetail::setFileListTwo);
|
||||||
|
|
||||||
// 去除文本的<p>
|
// 去除文本的<p>
|
||||||
String regex = "<[^>]*>";
|
String regex = "<[^>]*>";
|
||||||
@@ -650,6 +654,10 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
if (StrUtil.isNotBlank(material)) {
|
if (StrUtil.isNotBlank(material)) {
|
||||||
item.setMaterial("佐证材料/" + material);
|
item.setMaterial("佐证材料/" + material);
|
||||||
}
|
}
|
||||||
|
String unsatisfiedRequireAttach = excelUtils.translateDictValue("id", "file_name", "oss_file", item.getUnsatisfiedRequireAttach(), listDict);
|
||||||
|
if (StrUtil.isNotBlank(unsatisfiedRequireAttach)) {
|
||||||
|
item.setUnsatisfiedRequireAttach("辅助说明材料/" + unsatisfiedRequireAttach);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Workbook workbook = ExcelExportUtil
|
Workbook workbook = ExcelExportUtil
|
||||||
.exportExcel(exportParams, WithoutDistributeExcelTemplate.class, data);
|
.exportExcel(exportParams, WithoutDistributeExcelTemplate.class, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user