Parcourir la source

数据详情查询优化

chenjianhua il y a 1 semaine
Parent
commit
18717d55a6

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

@@ -178,6 +178,12 @@
         <if test="emailId != null and emailId !=''">
             and parse.id =#{emailId}
         </if>
+        <if test="email != null and email !=''">
+            and parse.email like concat('%',#{email},'%')
+        </if>
+        <if test="channelName != null and channelName !=''">
+            and c.channel_name like concat('%',#{channelName},'%')
+        </if>
         <if test="exceptionStatusList != null">
             and asset.exception_status in
             <foreach collection="exceptionStatusList" index="index" item="exceptionStatus" separator="," open="(" close=")">

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

@@ -223,8 +223,14 @@
         <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 test="emailId != null and emailId !=''">
+            and parse.id =#{emailId}
+        </if>
+        <if test="email != null and email !=''">
+            and parse.email like concat('%',#{email},'%')
+        </if>
+        <if test="channelName != null and channelName !=''">
+            and c.channel_name like concat('%',#{channelName},'%')
         </if>
     </select>
     <select id="countNoStoreNav" resultType="java.lang.Integer" parameterType="java.lang.String">