Commit 1d9ad0b9 by wuwenlong

组织机构bugfix

parent d16fb495
......@@ -44,8 +44,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
queryMap.put("parentOrgId", org.getParentOrgId());
String condition;
if (OrgTypeEnum.COMPANY.getCode().equals(org.getOrgType())) {
condition = String.format(" ITEM_CODE IN ('%s', '%s', '%s')", OrgTypeEnum.COMPANY.getCode(),
OrgTypeEnum.FACTORY.getCode(), OrgTypeEnum.DEPT.getCode());
condition = String.format(" ITEM_CODE IN ('%s')", OrgTypeEnum.COMPANY.getCode());
} else if (OrgTypeEnum.FACTORY.getCode().equals(org.getOrgType())) {
condition = String.format(" ITEM_CODE IN ('%s')", OrgTypeEnum.FACTORY.getCode());
} else if (OrgTypeEnum.DEPT.getCode().equals(org.getOrgType())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment