Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+19
-19
@@ -556,25 +556,25 @@ public class WordUtil {
|
||||
String workProgressEn = lawsMonthlyReportWriteEO.getWorkProgressEn();//NIO工作进展英文
|
||||
String lawsContactTemp = lawsMonthlyReportWriteEO.getLawsContact();//法规联系人
|
||||
String lawsContact = getLawsContact(loginUserList, lawsContactTemp);
|
||||
if(StringUtils.isNotEmpty(lawsContact)){
|
||||
List<String> lawsContactList = Arrays.asList(lawsContact.split(","));
|
||||
if (lawsContactList.size() > 4) {
|
||||
StringBuilder str = new StringBuilder();
|
||||
int count = 0;
|
||||
for (String s : lawsContactList) {
|
||||
str.append(s + ",");
|
||||
count++;
|
||||
if (count % 4 == 0) {
|
||||
str.append("\n");
|
||||
}
|
||||
}
|
||||
if(str.toString().endsWith("\n")){
|
||||
lawsContact = str.substring(0,str.length()-2);
|
||||
}else{
|
||||
lawsContact = str.substring(0,str.length()-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
// if(StringUtils.isNotEmpty(lawsContact)){
|
||||
// List<String> lawsContactList = Arrays.asList(lawsContact.split(","));
|
||||
// if (lawsContactList.size() > 4) {
|
||||
// StringBuilder str = new StringBuilder();
|
||||
// int count = 0;
|
||||
// for (String s : lawsContactList) {
|
||||
// str.append(s + ",");
|
||||
// count++;
|
||||
// if (count % 4 == 0) {
|
||||
// str.append("\n");
|
||||
// }
|
||||
// }
|
||||
// if(str.toString().endsWith("\n")){
|
||||
// lawsContact = str.substring(0,str.length()-2);
|
||||
// }else{
|
||||
// lawsContact = str.substring(0,str.length()-1);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
String link = lawsMonthlyReportWriteEO.getLink();//链接
|
||||
String technologyTerritoryName = "";
|
||||
|
||||
Reference in New Issue
Block a user