@@ -16,4 +17,21 @@ public interface OrganizationShareholderExtMapper extends MyMapper {
...
@@ -16,4 +17,21 @@ public interface OrganizationShareholderExtMapper extends MyMapper {
@Select("select a.id, a.entity_id as entityId,b.name as entityName,a.voting_percentage as votingPercentage from organization_shareholder a left join organization b on a.entity_id=b.id where investment_entity_id=#{id} and a.is_delete=0")
@Select("select a.id, a.entity_id as entityId,b.name as entityName,a.voting_percentage as votingPercentage from organization_shareholder a left join organization b on a.entity_id=b.id where investment_entity_id=#{id} and a.is_delete=0")
List<SubsidaryDto>selectSubsidary(LongentityId);
List<SubsidaryDto>selectSubsidary(LongentityId);
@Select("select\n"+
" c.id orgId,\n"+
" c.name orgName,\n"+
" c.investId,\n"+
" d.name investName,\n"+
" c.voting_percentage percent\n"+
"from\n"+
" (select\n"+
" a.id,\n"+
" a.name,\n"+
" b.investment_entity_id investId,\n"+
" b.voting_percentage\n"+
" from organization a left join organization_shareholder b on a.id = b.entity_id\n"+
" where a.is_active = 1 and (b.is_delete = 0 or b.is_delete is null)) c left join (select *\n"+