|
@@ -19,6 +19,8 @@
|
|
|
<result column="updatetime" property="updateTime"/>
|
|
|
<result column="email_title" property="emailTitle"/>
|
|
|
<result column="email_id" property="emailId"/>
|
|
|
+ <result column="target_fund_name" property="targetFundName"/>
|
|
|
+ <result column="target_fund_id" property="targetFundId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="batchInsert" parameterType="com.simuwang.base.pojo.dos.EmailFundAssetDO">
|
|
@@ -49,6 +51,8 @@
|
|
|
select distinct asset.id,
|
|
|
asset.fund_id,
|
|
|
asset.fund_name,
|
|
|
+ info.fund_id as target_fund_id,
|
|
|
+ info.fund_name as target_fund_name,
|
|
|
asset.register_number,
|
|
|
asset.price_date,
|
|
|
asset.asset_net,
|
|
@@ -63,6 +67,8 @@
|
|
|
on asset.file_id = file.id
|
|
|
join PPW_EMAIL.email_parse_info parse
|
|
|
on file.email_id = parse.id
|
|
|
+ left join PPW_EMAIL.pvn_fund_info info
|
|
|
+ on asset.fund_id=info.fund_id and info.isvalid=1
|
|
|
where asset.isvalid=1 and file.isvalid=1 and parse.isvalid=1
|
|
|
<if test="fundName != null and fundName !=''">
|
|
|
and asset.fund_name like concat('%',#{fundName},'%')
|
|
@@ -100,12 +106,27 @@
|
|
|
<select id="countAssetDetail" resultType="java.lang.Long"
|
|
|
parameterType="com.simuwang.base.pojo.dto.query.ParseDetailPageQuery">
|
|
|
select count(1) from (
|
|
|
- select distinct asset.id
|
|
|
+ select distinct asset.id,
|
|
|
+ asset.fund_id,
|
|
|
+ asset.fund_name,
|
|
|
+ info.fund_id as target_fund_id,
|
|
|
+ info.fund_name as target_fund_name,
|
|
|
+ asset.register_number,
|
|
|
+ asset.price_date,
|
|
|
+ asset.asset_net,
|
|
|
+ asset.asset_share,
|
|
|
+ asset.is_stored,
|
|
|
+ asset.exception_status,
|
|
|
+ asset.updatetime,
|
|
|
+ parse.email_title,
|
|
|
+ parse.id as email_id
|
|
|
from PPW_EMAIL.email_fund_asset asset
|
|
|
join PPW_EMAIL.email_file_info file
|
|
|
on asset.file_id = file.id
|
|
|
join PPW_EMAIL.email_parse_info parse
|
|
|
on file.email_id = parse.id
|
|
|
+ left join PPW_EMAIL.pvn_fund_info info
|
|
|
+ on asset.fund_id=info.fund_id and info.isvalid=1
|
|
|
where asset.isvalid=1 and file.isvalid=1 and parse.isvalid=1
|
|
|
<if test="fundName != null and fundName !=''">
|
|
|
and asset.fund_name like concat('%',#{fundName},'%')
|