diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/att/OrgChangeMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/att/OrgChangeMapper.xml index 1dc4cdc..8d8f586 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/att/OrgChangeMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/att/OrgChangeMapper.xml @@ -48,6 +48,8 @@ su.user_name, so.org_name AS oldOrgName, so2.org_name AS newOrgName, + ag.group_name AS oldAttGroup, + ag2.group_name AS newAttGroup, oc.* FROM org_change oc @@ -57,6 +59,10 @@ AND so.is_active = '1' LEFT JOIN sys_organization so2 ON oc.new_org_id = so2.id AND so2.is_active = '1' + LEFT JOIN att_group ag ON oc.old_att_group = ag.id + AND ag.is_active = '1' + LEFT JOIN att_group ag2 ON oc.new_att_group = ag2.id + AND ag2.is_active = '1' WHERE oc.is_active = '1' and oc.id = #{id}