|
|
|
@ -31,6 +31,7 @@ import javax.validation.Valid;
|
|
|
|
|
import java.security.Security;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
import static com.ruoyi.common.core.domain.AjaxResult.success;
|
|
|
|
|
|
|
|
|
@ -95,9 +96,15 @@ public class AssetOfficialAccountController {
|
|
|
|
|
String[] s3 = byId.getCdlx().split("\\|");
|
|
|
|
|
for (int i = 0; i < s1.length; i++) {
|
|
|
|
|
AssetOfficialAccountMenu as = new AssetOfficialAccountMenu();
|
|
|
|
|
as.setCdmc(s1[i]);
|
|
|
|
|
as.setCdlj(s2[i]);
|
|
|
|
|
as.setCdlx(s3[i]);
|
|
|
|
|
if(s1[i]!=null&& !Objects.equals(s1[i], "")){
|
|
|
|
|
as.setCdmc(s1[i]);
|
|
|
|
|
}
|
|
|
|
|
if(s2[i]!=null&& !Objects.equals(s2[i], "")){
|
|
|
|
|
as.setCdlj(s2[i]);
|
|
|
|
|
}
|
|
|
|
|
if(s3[i]!=null&& !Objects.equals(s3[i], "")){
|
|
|
|
|
as.setCdlx(s3[i]);
|
|
|
|
|
}
|
|
|
|
|
a1.add(as);
|
|
|
|
|
}
|
|
|
|
|
byId.setCdList(a1);
|
|
|
|
@ -118,9 +125,15 @@ public class AssetOfficialAccountController {
|
|
|
|
|
StringBuilder b = new StringBuilder();
|
|
|
|
|
StringBuilder c = new StringBuilder();
|
|
|
|
|
ao.getCdList().forEach(x -> {
|
|
|
|
|
a.append(x.getCdmc()).append("|");
|
|
|
|
|
b.append(x.getCdlj()).append("|");
|
|
|
|
|
c.append(x.getCdlx()).append("|");
|
|
|
|
|
if(!Objects.equals(x.getCdmc(), "") &&x.getCdmc()!=null){
|
|
|
|
|
a.append(x.getCdmc()).append("|");
|
|
|
|
|
}
|
|
|
|
|
if(!Objects.equals(x.getCdlj(), "") &&x.getCdlj()!=null){
|
|
|
|
|
b.append(x.getCdlj()).append("|");
|
|
|
|
|
}
|
|
|
|
|
if(!Objects.equals(x.getCdlx(), "") &&x.getCdlx()!=null){
|
|
|
|
|
c.append(x.getCdlx()).append("|");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
ao.setCdmc(a.toString());
|
|
|
|
|
ao.setCdlj(b.toString());
|
|
|
|
@ -179,9 +192,15 @@ public class AssetOfficialAccountController {
|
|
|
|
|
String[] s3 = byId.getCdlx().split("\\|");
|
|
|
|
|
for (int i = 0; i < s1.length; i++) {
|
|
|
|
|
AssetOfficialAccountMenu as = new AssetOfficialAccountMenu();
|
|
|
|
|
as.setCdmc(s1[i]);
|
|
|
|
|
as.setCdlj(s2[i]);
|
|
|
|
|
as.setCdlx(s3[i]);
|
|
|
|
|
if(s1[i]!=null&& !Objects.equals(s1[i], "")){
|
|
|
|
|
as.setCdmc(s1[i]);
|
|
|
|
|
}
|
|
|
|
|
if(s2[i]!=null&& !Objects.equals(s2[i], "")){
|
|
|
|
|
as.setCdlj(s2[i]);
|
|
|
|
|
}
|
|
|
|
|
if(s3[i]!=null&& !Objects.equals(s3[i], "")){
|
|
|
|
|
as.setCdlx(s3[i]);
|
|
|
|
|
}
|
|
|
|
|
a1.add(as);
|
|
|
|
|
}
|
|
|
|
|
byId.setCdList(a1);
|
|
|
|
|