fix: 87505 企业标准-模板下载-监察内容 原型上没校验必填
This commit is contained in:
+4
-4
@@ -2468,13 +2468,13 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
ByteArrayOutputStream baosZip = new ByteArrayOutputStream();
|
||||
try (ZipOutputStream zos = new ZipOutputStream(baosZip)) {
|
||||
// 添加第一个文件到ZIP中
|
||||
ZipEntry entry1 = new ZipEntry("企业标准法规导入模板.xlsx");
|
||||
ZipEntry entry1 = new ZipEntry("企业标准法规导入模板.xls");
|
||||
zos.putNextEntry(entry1);
|
||||
zos.write(mainWorkbookBytes);
|
||||
zos.closeEntry();
|
||||
|
||||
// 添加第二个文件到ZIP中
|
||||
ZipEntry entry2 = new ZipEntry("稽查内容.xlsx");
|
||||
ZipEntry entry2 = new ZipEntry("稽查内容.xls");
|
||||
zos.putNextEntry(entry2);
|
||||
zos.write(inspectContentBytes);
|
||||
zos.closeEntry();
|
||||
@@ -2618,7 +2618,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
|
||||
// 添加稽查内容字段
|
||||
LawsTag inspectContentTag = new LawsTag();
|
||||
inspectContentTag.setDbFieldTxt("稽查内容");
|
||||
inspectContentTag.setDbFieldTxt("监察内容");
|
||||
inspectContentTag.setFieldShowType(FieldShowTypeEnum.INSPECT_CONTENT_FILE_UPLOAD.getValue());
|
||||
fieldList.add(inspectContentTag);
|
||||
|
||||
@@ -2666,7 +2666,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
*/
|
||||
private Workbook createWorkBookWithLawsTags(List<LawsTag> fieldList) {
|
||||
// 创建一个Excel工作簿
|
||||
Workbook workbook = new XSSFWorkbook();
|
||||
Workbook workbook = new HSSFWorkbook();
|
||||
|
||||
// 创建一个工作表
|
||||
Sheet sheet = workbook.createSheet("导入模板");
|
||||
|
||||
@@ -19,7 +19,7 @@ public enum FieldShowTypeEnum {
|
||||
FILE_UPLOAD("上传文件","8","文件属性,请输入:标准号/文件名称.文件格式"),
|
||||
|
||||
// 企标稽查内容导入
|
||||
INSPECT_CONTENT_FILE_UPLOAD("上传稽查内容导入模板","ZZ","文件属性,请输入:标准号/稽查内容.xlsx"),
|
||||
INSPECT_CONTENT_FILE_UPLOAD("上传稽查内容导入模板","ZZ","文件属性,请输入:标准号/稽查内容.xls"),
|
||||
TEXT_BOX("文本框","9","文本输入"),
|
||||
DROPDOWN_SINGLE_SELECT("下拉单选","10","请填写选项中包含的文本"),
|
||||
DROPDOWN_MULTI_SELECT("下拉多选","11","请填写选项中包含的文本,多填以英文逗号隔开"),
|
||||
|
||||
Reference in New Issue
Block a user