Explorar o código

修复查询角色身份关联的组织信息未返回问题

o2sword %!s(int64=5) %!d(string=hai) anos
pai
achega
7e8951d77f

+ 2 - 3
o2server/x_organization_assemble_express/src/main/java/com/x/organization/assemble/express/jaxrs/unitduty/ActionListIdentityWithUnitWithNameObject.java

@@ -196,14 +196,13 @@ class ActionListIdentityWithUnitWithNameObject extends BaseAction {
 					matchUnit = business.unit().pick(o.getUnit());
 					unitMap.put(matchUnit.getId(), matchUnit);
 				}
-				/*Unit unit = unitMap.get(identity.getUnit());
+				Unit unit = unitMap.get(identity.getUnit());
 				if(unit == null){
 					unit = business.unit().pick(identity.getUnit());
 					unitMap.put(unit.getId(), unit);
 				}
 				Person person = business.person().pick(identity.getPerson());
-				 */
-				Wo wo = this.convertToIdentity(matchUnit, null, null, identity);
+				Wo wo = this.convertToIdentity(matchUnit, unit, person, identity);
 				wos.add(wo);
 			}
 		}