月报导出--法规联系人

This commit is contained in:
zhn
2022-10-14 15:31:06 +08:00
parent dfbcc0b121
commit 9b28942e5c
@@ -556,25 +556,25 @@ public class WordUtil {
String workProgressEn = lawsMonthlyReportWriteEO.getWorkProgressEn();//NIO工作进展英文 String workProgressEn = lawsMonthlyReportWriteEO.getWorkProgressEn();//NIO工作进展英文
String lawsContactTemp = lawsMonthlyReportWriteEO.getLawsContact();//法规联系人 String lawsContactTemp = lawsMonthlyReportWriteEO.getLawsContact();//法规联系人
String lawsContact = getLawsContact(loginUserList, lawsContactTemp); String lawsContact = getLawsContact(loginUserList, lawsContactTemp);
if(StringUtils.isNotEmpty(lawsContact)){ // if(StringUtils.isNotEmpty(lawsContact)){
List<String> lawsContactList = Arrays.asList(lawsContact.split(",")); // List<String> lawsContactList = Arrays.asList(lawsContact.split(","));
if (lawsContactList.size() > 4) { // if (lawsContactList.size() > 4) {
StringBuilder str = new StringBuilder(); // StringBuilder str = new StringBuilder();
int count = 0; // int count = 0;
for (String s : lawsContactList) { // for (String s : lawsContactList) {
str.append(s + ","); // str.append(s + ",");
count++; // count++;
if (count % 4 == 0) { // if (count % 4 == 0) {
str.append("\n"); // str.append("\n");
} // }
} // }
if(str.toString().endsWith("\n")){ // if(str.toString().endsWith("\n")){
lawsContact = str.substring(0,str.length()-2); // lawsContact = str.substring(0,str.length()-2);
}else{ // }else{
lawsContact = str.substring(0,str.length()-1); // lawsContact = str.substring(0,str.length()-1);
} // }
} // }
} // }
String link = lawsMonthlyReportWriteEO.getLink();//链接 String link = lawsMonthlyReportWriteEO.getLink();//链接
String technologyTerritoryName = ""; String technologyTerritoryName = "";