Merge remote-tracking branch 'origin/master'
This commit is contained in:
+49
-13
@@ -3274,38 +3274,74 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
|
||||
//第二行
|
||||
StringBuilder sbTwo = new StringBuilder();
|
||||
sbTwo.append("填写说明\n" + "1.导入数据从第三行开始,第一行为表头,第二行为填写说明,第三行是正式数据\n" + "2.所有带*号的字段必须填写\n");
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
sbTwo.append("填写说明\n" + "1.导入数据从第三行开始,第一行为表头,第二行为填写说明,第三行是正式数据\n" + "2.所有带*号的字段必须填写\n");
|
||||
}else{
|
||||
sbTwo.append("Filling explanation\n"
|
||||
+ "1.Import data starts at the third line, the first line is the header, the second line is the description, and the third line is the official data\n"
|
||||
+ "2.All fields marked with * must be filled in\n");
|
||||
}
|
||||
int count = 3;
|
||||
if (pullSingleList.size() != 0) {
|
||||
//单选
|
||||
String pullSingle = StringUtils.join(pullSingleList, ",") + "字段是单选属性,必须和系统中的对应字段选项相匹配\n";
|
||||
sbTwo.append(count++ + "." + pullSingle);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String pullSingle = StringUtils.join(pullSingleList, ",") + "字段是单选属性,必须和系统中的对应字段选项相匹配\n";
|
||||
sbTwo.append(count++ + "." + pullSingle);
|
||||
}else{
|
||||
String pullSingle = StringUtils.join(pullSingleList, ",") + " Fields are radio attributes,Must match the corresponding field option in the system\n";
|
||||
sbTwo.append(count++ + "." + pullSingle);
|
||||
}
|
||||
}
|
||||
|
||||
if (pullMoreList.size() != 0) {
|
||||
//多选
|
||||
String pullMore = StringUtils.join(pullMoreList, ",") + "字段是多选属性,必须和系统中的对应字段选项相匹配,填写多个时采用英文或中文逗号分割\n";
|
||||
sbTwo.append(count++ + "." + pullMore);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String pullMore = StringUtils.join(pullMoreList, ",") + "字段是多选属性,必须和系统中的对应字段选项相匹配,填写多个时采用英文或中文逗号分割\n";
|
||||
sbTwo.append(count++ + "." + pullMore);
|
||||
}else{
|
||||
String pullMore = StringUtils.join(pullMoreList, ",") + " A field is a multi-select attribute and must match the corresponding field in the system. If multiple fields are filled in, separate them by commas (,)\n";
|
||||
sbTwo.append(count++ + "." + pullMore);
|
||||
}
|
||||
}
|
||||
if (dateSingleList.size() != 0) {
|
||||
//单选日期
|
||||
String dateSingle = StringUtils.join(dateSingleList, ",") + "字段为日期,必须精确到日\n";
|
||||
sbTwo.append(count++ + "." + dateSingle);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String dateSingle = StringUtils.join(dateSingleList, ",") + "字段为日期,必须精确到日\n";
|
||||
sbTwo.append(count++ + "." + dateSingle);
|
||||
}else{
|
||||
String dateSingle = StringUtils.join(dateSingleList, ",") + " The field is the date and must be exact to the day\n";
|
||||
sbTwo.append(count++ + "." + dateSingle);
|
||||
}
|
||||
}
|
||||
if (textStringList.size() != 0) {
|
||||
//输入框
|
||||
String textString = StringUtils.join(textStringList, ",") + "字段为文本,填写文本内容\n";
|
||||
sbTwo.append(count++ + "." + textString);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String textString = StringUtils.join(textStringList, ",") + "字段为文本,填写文本内容\n";
|
||||
sbTwo.append(count++ + "." + textString);
|
||||
}else{
|
||||
String textString = StringUtils.join(textStringList, ",") + " Field is text. Enter the text content\n";
|
||||
sbTwo.append(count++ + "." + textString);
|
||||
}
|
||||
}
|
||||
if (standardList.size() != 0) {
|
||||
//标准选择
|
||||
String standard = StringUtils.join(standardList, ",") + "字段为标准号,填写多个时采用英文或中文逗号分割\n";
|
||||
sbTwo.append(count++ + "." + standard);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String standard = StringUtils.join(standardList, ",") + "字段为标准号,填写多个时采用英文或中文逗号分割\n";
|
||||
sbTwo.append(count++ + "." + standard);
|
||||
}else{
|
||||
String standard = StringUtils.join(standardList, ",") + " The field is a standard number. If you fill in more than one field, separate it with English or Chinese commas\n";
|
||||
sbTwo.append(count++ + "." + standard);
|
||||
}
|
||||
}
|
||||
if (fileList.size() != 0) {
|
||||
//文件
|
||||
String file = StringUtils.join(fileList, ",") + "字段为文件属性,填写时需要在本文件同级目录下以标准号为名称建立文件夹,并在文件夹下放置文件,假设在AAA标准号下放置了B.pdf,则应填写AAA/B.pdf\n";
|
||||
sbTwo.append(count++ + "." + file);
|
||||
if(CutEnum.CN.getValue().equals(cut)){
|
||||
String file = StringUtils.join(fileList, ",") + "字段为文件属性,填写时需要在本文件同级目录下以标准号为名称建立文件夹,并在文件夹下放置文件,假设在AAA标准号下放置了B.pdf,则应填写AAA/B.pdf\n";
|
||||
sbTwo.append(count++ + "." + file);
|
||||
}else{
|
||||
String file = StringUtils.join(fileList, ",") + " When filling in the field, you need to create a folder in the directory of the same level as the file with the name of the standard number and place the file in the folder. Assume that the file is saved in the AAA standard numberB.pdf,Should fill inAAA/B.pdf\n";
|
||||
sbTwo.append(count++ + "." + file);
|
||||
}
|
||||
}
|
||||
List<String> list = new LinkedList<>();
|
||||
list.add(title);
|
||||
|
||||
Reference in New Issue
Block a user