生成开票文件的部门调整

product
chuang 2 years ago
parent e3a7902a0f
commit 40dccb5ee5

@ -623,19 +623,26 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
// 获取组织
if(StringUtil.isNotNull(userInfo.getOrganizeId())){
fullName= PermissionUtil.getLinkInfoByOrgId(userInfo.getOrganizeId(), organizeService, false);
fullName= PermissionUtil.getLinkInfoByOrgId(userInfo.getOrganizeId(), organizeService,false);
}
}
System.out.println("这是账号信息"+fullName);
String substring = null;
String substring1 = null;
if (fullName!=null){
if (fullName!=null){
substring = fullName.substring(fullName.indexOf("/")+1, fullName.indexOf("/", fullName.indexOf("/")+1));
if (fullName.length()>fullName.indexOf(substring)+2){
substring1 = fullName.substring(fullName.indexOf(substring) + substring.length()+1, fullName.length());
}
while (substring1.contains("公司")){
if (!substring1.contains("/")){
break;
}
substring=substring1.substring(0,substring1.indexOf("/"));
substring1=substring1.substring(substring1.indexOf("/")+1,substring1.length());
}
}

Loading…
Cancel
Save