Commit fb72de91 by wuwenlong

组织机构bugfix

parent 1d9ad0b9
...@@ -54,8 +54,8 @@ public class ServiceXSOG0801A extends ServiceEPBase { ...@@ -54,8 +54,8 @@ public class ServiceXSOG0801A extends ServiceEPBase {
// 查询组织 // 查询组织
Org org = HGXSTools.XsOrg.get(parentOrgId); Org org = HGXSTools.XsOrg.get(parentOrgId);
if(CommonConstant.Field.ROOT.equals(org.getParentOrgId())) { if(CommonConstant.Field.ROOT.equals(org.getParentOrgId())) {
condition = String.format(" ITEM_CODE IN ('%s', '%s')", OrgTypeEnum.COMPANY.getCode(), condition = String.format(" ITEM_CODE IN ('%s', '%s', '%s')", OrgTypeEnum.COMPANY.getCode(),
OrgTypeEnum.DEPT.getCode()); OrgTypeEnum.FACTORY.getCode(), OrgTypeEnum.DEPT.getCode());
}else if (OrgTypeEnum.COMPANY.getCode().equals(org.getOrgType())) { }else if (OrgTypeEnum.COMPANY.getCode().equals(org.getOrgType())) {
condition = String.format(" ITEM_CODE IN ('%s', '%s', '%s')", OrgTypeEnum.COMPANY.getCode(), condition = String.format(" ITEM_CODE IN ('%s', '%s', '%s')", OrgTypeEnum.COMPANY.getCode(),
OrgTypeEnum.FACTORY.getCode(), OrgTypeEnum.DEPT.getCode()); OrgTypeEnum.FACTORY.getCode(), OrgTypeEnum.DEPT.getCode());
......
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