|
@@ -175,8 +175,13 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectFileIdByFundName" resultType="java.lang.Integer" parameterType="java.lang.String">
|
|
|
- select distinct nav.file_id from PPW_EMAIL.email_fund_nav nav where nav.isvalid =1 and nav.exception_status=3
|
|
|
+ select distinct nav.file_id from PPW_EMAIL.email_fund_nav nav where nav.isvalid =1 and nav.exception_status in(1,3)
|
|
|
+ <if test="fundName != null and fundName != ''">
|
|
|
and nav.fund_name=#{fundName}
|
|
|
+ </if>
|
|
|
+ <if test="registerNumber != null and registerNumber != ''">
|
|
|
+ and nav.register_number=#{registerNumber}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="selectNotMappingNav" resultMap="BaseResultMap"
|
|
|
parameterType="java.lang.String">
|
|
@@ -196,8 +201,14 @@
|
|
|
nav.updatetime,
|
|
|
nav.createtime
|
|
|
from PPW_EMAIL.email_fund_nav nav
|
|
|
- where nav.isvalid =1 and nav.exception_status=3
|
|
|
- and nav.fund_name=#{fundName}
|
|
|
+ where nav.isvalid =1 and nav.exception_status in (1,3)
|
|
|
+ <if test="fundName != null and fundName != ''">
|
|
|
+ and nav.fund_name=#{fundName}
|
|
|
+ </if>
|
|
|
+ <if test="registerNumber != null and registerNumber != ''">
|
|
|
+ and nav.register_number=#{registerNumber}
|
|
|
+ </if>
|
|
|
+ order by nav.updatetime desc
|
|
|
</select>
|
|
|
<select id="getMaxPriceDate" resultType="java.lang.String" parameterType="java.lang.String">
|
|
|
select max(nav.price_date) from PPW_EMAIL.email_fund_nav nav where nav.isvalid =1 and nav.exception_status=3
|