文档库--模板下载添加技术领域字段说明
This commit is contained in:
+13
@@ -3238,6 +3238,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
List<String> dateSingleList = new LinkedList<>();//单选日期字段
|
||||
List<String> dateMoreList = new LinkedList<>();//多选日期字段
|
||||
List<String> standardList = new LinkedList<>();//标准选择字段
|
||||
List<String> treeList = new LinkedList<>();//树状结构字段
|
||||
for (Map<String, Object> map : addForm) {
|
||||
if ("1".equals(map.get("field_must_input"))) {
|
||||
sb.append("*" + map.get("db_field_txt") + ",");
|
||||
@@ -3269,6 +3270,8 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
} else if (FieldTypeEnum.STANDARD.getValue().equals(map.get(fieldShowType))) {
|
||||
//标准选择字段
|
||||
standardList.add((String) map.get("db_field_txt"));
|
||||
}else if(FieldTypeEnum.TREE.getValue().equals(map.get(fieldShowType))){
|
||||
treeList.add((String) map.get("db_field_txt"));
|
||||
}
|
||||
}
|
||||
String title = sb.substring(0, sb.length() - 1);
|
||||
@@ -3344,6 +3347,16 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
sbTwo.append(count++ + "." + file);
|
||||
}
|
||||
}
|
||||
if(treeList.size() != 0){
|
||||
//树状结构
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String tree = StringUtils.join(treeList, ",") + "字段为树状结构属性,填写时直接填写选中的数据,如需要选中车身,则直接填写车身,填写多个时采用英文或中文逗号分割\n";
|
||||
sbTwo.append(count++ + "." + tree);
|
||||
}else{
|
||||
String tree = StringUtils.join(treeList, ",") + " fields are tree-like structure attributes, and the selected data will be directly filled in when filling in. If the car body needs to be selected, the car body will be directly filled in. If there are more than one fields, English or Chinese commas will be used to separate them\n";
|
||||
sbTwo.append(count++ + "." + tree);
|
||||
}
|
||||
}
|
||||
List<String> list = new LinkedList<>();
|
||||
list.add(title);
|
||||
list.add(sbTwo.toString());
|
||||
|
||||
Reference in New Issue
Block a user