|
@@ -8,6 +8,7 @@
|
|
|
<result column="target_fund_id" property="targetFundId"/>
|
|
|
<result column="target_fund_name" property="targetFundName"/>
|
|
|
<result column="target_register_number" property="targetRegisterNumber"/>
|
|
|
+ <result column="company_name" property="companyName"/>
|
|
|
<result column="isvalid" property="isvalid"/>
|
|
|
<result column="creatorid" property="creatorId"/>
|
|
|
<result column="createtime" property="createTime"/>
|
|
@@ -89,6 +90,7 @@
|
|
|
alias.target_fund_id,
|
|
|
info.fund_name as target_fund_name,
|
|
|
info.register_number as target_register_number,
|
|
|
+ c.company_name as company_name,
|
|
|
alias.isvalid,
|
|
|
alias.creatorid,
|
|
|
alias.createtime,
|
|
@@ -97,6 +99,8 @@
|
|
|
from PPW_EMAIL.fund_alias alias
|
|
|
left join PPW_EMAIL.pvn_fund_info info
|
|
|
on alias.target_fund_id = info.fund_id and info.isvalid=1
|
|
|
+ left join PPW_EMAIL.pvn_company_info c
|
|
|
+ on c.company_id = info.trust_id and c.isvalid=1
|
|
|
where alias.isvalid=1
|
|
|
<if test="fundName != null and fundName !=''">
|
|
|
and (alias.source_fund_name like concat('%',#{fundName},'%') or alias.source_register_number like concat('%',#{fundName},'%') )
|
|
@@ -118,6 +122,8 @@
|
|
|
select count(1) from PPW_EMAIL.fund_alias alias
|
|
|
left join PPW_EMAIL.pvn_fund_info info
|
|
|
on alias.target_fund_id = info.fund_id and info.isvalid=1
|
|
|
+ left join PPW_EMAIL.pvn_company_info c
|
|
|
+ on c.company_id = info.trust_id and c.isvalid=1
|
|
|
where alias.isvalid=1
|
|
|
<if test="fundName != null and fundName !=''">
|
|
|
and (alias.source_fund_name like concat('%',#{fundName},'%') or alias.source_register_number like concat('%',#{fundName},'%') )
|