|
@@ -17,6 +17,7 @@
|
|
<result column="createtime" property="createTime"/>
|
|
<result column="createtime" property="createTime"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="updatetime" property="updateTime"/>
|
|
<result column="updatetime" property="updateTime"/>
|
|
|
|
+ <result column="email_title" property="emailTitle"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<insert id="batchInsert" parameterType="com.simuwang.base.pojo.dos.EmailFundNavDO">
|
|
<insert id="batchInsert" parameterType="com.simuwang.base.pojo.dos.EmailFundNavDO">
|
|
@@ -46,7 +47,7 @@
|
|
update PPW_EMAIL.email_fund_nav nav set isvalid = 0,updatetime=sysdate() where file_id=#{fileId}
|
|
update PPW_EMAIL.email_fund_nav nav set isvalid = 0,updatetime=sysdate() where file_id=#{fileId}
|
|
</delete>
|
|
</delete>
|
|
<select id="searchNavDetail" resultMap="BaseResultMap">
|
|
<select id="searchNavDetail" resultMap="BaseResultMap">
|
|
- SELECT distinct nav.id,
|
|
|
|
|
|
+ SELECT distinct nav.id,nav.file_id,
|
|
nav.fund_id,
|
|
nav.fund_id,
|
|
nav.fund_name,
|
|
nav.fund_name,
|
|
nav.register_number,
|
|
nav.register_number,
|
|
@@ -55,10 +56,15 @@
|
|
nav.cumulative_nav_withdrawal,
|
|
nav.cumulative_nav_withdrawal,
|
|
nav.exception_status,
|
|
nav.exception_status,
|
|
nav.is_stored,
|
|
nav.is_stored,
|
|
- nav.updatetime
|
|
|
|
|
|
+ nav.updatetime,
|
|
|
|
+ parse.email_title
|
|
FROM
|
|
FROM
|
|
PPW_EMAIL.email_fund_nav nav
|
|
PPW_EMAIL.email_fund_nav nav
|
|
- WHERE nav.isvalid = 1
|
|
|
|
|
|
+ join PPW_EMAIL.email_file_info file
|
|
|
|
+ on nav.file_id = file.id
|
|
|
|
+ join PPW_EMAIL.email_parse_info parse
|
|
|
|
+ on file.email_id = parse.id
|
|
|
|
+ WHERE nav.isvalid = 1 and file.isvalid=1 and parse.isvalid=1
|
|
<if test="fundName != null and fundName !=''">
|
|
<if test="fundName != null and fundName !=''">
|
|
and nav.fund_name like concat('%',#{fundName},'%')
|
|
and nav.fund_name like concat('%',#{fundName},'%')
|
|
</if>
|
|
</if>
|
|
@@ -80,13 +86,16 @@
|
|
<if test="isStore != null">
|
|
<if test="isStore != null">
|
|
and nav.is_stored = #{isStore}
|
|
and nav.is_stored = #{isStore}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="emailTitle != null and emailTitle != ''">
|
|
|
|
+ and parse.email_title like concat('%',#{emailTitle},'%')
|
|
|
|
+ </if>
|
|
order by nav.fund_name desc,nav.price_date desc
|
|
order by nav.fund_name desc,nav.price_date desc
|
|
limit #{offset},#{pageSize}
|
|
limit #{offset},#{pageSize}
|
|
</select>
|
|
</select>
|
|
<select id="countNavDetail" resultType="java.lang.Long"
|
|
<select id="countNavDetail" resultType="java.lang.Long"
|
|
parameterType="com.simuwang.base.pojo.dto.query.ParseDetailPageQuery">
|
|
parameterType="com.simuwang.base.pojo.dto.query.ParseDetailPageQuery">
|
|
select count(1) from (
|
|
select count(1) from (
|
|
- SELECT distinct nav.id,
|
|
|
|
|
|
+ SELECT distinct nav.id,nav.file_id,
|
|
nav.fund_id,
|
|
nav.fund_id,
|
|
nav.fund_name,
|
|
nav.fund_name,
|
|
nav.register_number,
|
|
nav.register_number,
|
|
@@ -96,30 +105,37 @@
|
|
nav.exception_status,
|
|
nav.exception_status,
|
|
nav.is_stored,
|
|
nav.is_stored,
|
|
nav.updatetime
|
|
nav.updatetime
|
|
- FROM
|
|
|
|
- PPW_EMAIL.email_fund_nav nav
|
|
|
|
- WHERE nav.isvalid = 1
|
|
|
|
- <if test="fundName != null and fundName !=''">
|
|
|
|
- and nav.fund_name like concat('%',#{fundName},'%')
|
|
|
|
- </if>
|
|
|
|
- <if test="priceStartDate != null and priceStartDate !=''">
|
|
|
|
- and nav.price_date >= #{priceStartDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="priceEndDate != null and priceEndDate !=''">
|
|
|
|
- and nav.price_date <![CDATA[ <= ]]> #{priceEndDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="exceptionStatus != null">
|
|
|
|
- and nav.exception_status = #{exceptionStatus}
|
|
|
|
- </if>
|
|
|
|
- <if test="updateStartDate != null and updateStartDate !=''">
|
|
|
|
- and nav.updatetime <![CDATA[ >= ]]> #{updateStartDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="updateEndDate != null and updateEndDate !=''">
|
|
|
|
- and nav.updatetime <![CDATA[ <= ]]> #{updateEndDate}
|
|
|
|
- </if>
|
|
|
|
- <if test="isStore != null">
|
|
|
|
- and nav.is_stored = #{isStore}
|
|
|
|
- </if>
|
|
|
|
|
|
+ FROM
|
|
|
|
+ PPW_EMAIL.email_fund_nav nav
|
|
|
|
+ join PPW_EMAIL.email_file_info file
|
|
|
|
+ on nav.file_id = file.id
|
|
|
|
+ join PPW_EMAIL.email_parse_info parse
|
|
|
|
+ on file.email_id = parse.id
|
|
|
|
+ WHERE nav.isvalid = 1 and file.isvalid=1 and parse.isvalid=1
|
|
|
|
+ <if test="fundName != null and fundName !=''">
|
|
|
|
+ and nav.fund_name like concat('%',#{fundName},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceStartDate != null and priceStartDate !=''">
|
|
|
|
+ and nav.price_date >= #{priceStartDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceEndDate != null and priceEndDate !=''">
|
|
|
|
+ and nav.price_date <![CDATA[ <= ]]> #{priceEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="exceptionStatus != null">
|
|
|
|
+ and nav.exception_status = #{exceptionStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateStartDate != null and updateStartDate !=''">
|
|
|
|
+ and nav.updatetime <![CDATA[ >= ]]> #{updateStartDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateEndDate != null and updateEndDate !=''">
|
|
|
|
+ and nav.updatetime <![CDATA[ <= ]]> #{updateEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isStore != null">
|
|
|
|
+ and nav.is_stored = #{isStore}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="emailTitle != null and emailTitle != ''">
|
|
|
|
+ and parse.email_title like concat('%',#{emailTitle},'%')
|
|
|
|
+ </if>
|
|
) a
|
|
) a
|
|
</select>
|
|
</select>
|
|
<select id="countNoStoreNav" resultType="java.lang.Integer" parameterType="java.lang.String">
|
|
<select id="countNoStoreNav" resultType="java.lang.Integer" parameterType="java.lang.String">
|