Jelajahi Sumber

fix:数据详情查询优化

chenjianhua 1 bulan lalu
induk
melakukan
bf4da09c60

+ 0 - 12
service-base/src/main/java/com/simuwang/base/pojo/dto/query/ParseDetailPageQuery.java

@@ -42,10 +42,6 @@ public class ParseDetailPageQuery extends PageQuery {
     private Integer isStore;
 
     /**
-     * 邮件标题
-     */
-    private String emailTitle;
-    /**
      * 邮件ID
      */
     private String emailId;
@@ -113,12 +109,4 @@ public class ParseDetailPageQuery extends PageQuery {
     public void setUpdateEndDate(String updateEndDate) {
         this.updateEndDate = updateEndDate;
     }
-
-    public String getEmailTitle() {
-        return emailTitle;
-    }
-
-    public void setEmailTitle(String emailTitle) {
-        this.emailTitle = emailTitle;
-    }
 }

+ 0 - 7
service-base/src/main/resources/mapper/EmailFundAssetMapper.xml

@@ -60,7 +60,6 @@
                         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
@@ -88,9 +87,6 @@
         <if test="isStore != null">
             and asset.is_stored = #{isStore}
         </if>
-        <if test="emailTitle != null and emailTitle != ''">
-            and parse.email_title like concat('%',#{emailTitle},'%')
-        </if>
         <if test="emailId != null and emailId !=''">
             and parse.id =#{emailId}
         </if>
@@ -139,9 +135,6 @@
         <if test="isStore != null">
             and asset.is_stored = #{isStore}
         </if>
-        <if test="emailTitle != null and emailTitle != ''">
-            and parse.email_title like concat('%',#{emailTitle},'%')
-        </if>
         <if test="emailId != null and emailId !=''">
             and parse.id =#{emailId}
         </if>

+ 2 - 8
service-base/src/main/resources/mapper/EmailFundNavMapper.xml

@@ -51,7 +51,8 @@
         update PPW_EMAIL.email_fund_nav nav set isvalid = 0,updatetime=sysdate() where file_id=#{fileId}
     </delete>
     <select id="searchNavDetail" resultMap="BaseResultMap">
-        SELECT nav.id,nav.file_id,
+    SELECT  nav.id,
+            nav.file_id,
             nav.fund_id,
             nav.fund_name,
             info.fund_id as target_fund_id,
@@ -63,7 +64,6 @@
             nav.exception_status,
             nav.is_stored,
             nav.updatetime,
-            parse.email_title,
             parse.id as email_id
         FROM
             PPW_EMAIL.email_fund_nav nav
@@ -98,9 +98,6 @@
         <if test="isStore != null">
             and nav.is_stored = #{isStore}
         </if>
-        <if test="emailTitle != null and emailTitle != ''">
-            and parse.email_title like concat('%',#{emailTitle},'%')
-        </if>
         <if test="emailId != null and emailId !=''">
             and parse.id =#{emailId}
         </if>
@@ -149,9 +146,6 @@
         <if test="isStore != null">
             and nav.is_stored = #{isStore}
         </if>
-        <if test="emailTitle != null and emailTitle != ''">
-            and parse.email_title like concat('%',#{emailTitle},'%')
-        </if>
         <if test="emailId != null and emailId != ''">
             and parse.id=#{emailId}
         </if>