Kaynağa Gözat

fix: 邮件解析详情整改,优化文件ID相同导致数据不一致的情况

chenjianhua 4 ay önce
ebeveyn
işleme
c8dc80f56a

+ 3 - 0
service-base/src/main/resources/mapper/daq/EmailFundNavCollectionMapper.xml

@@ -34,6 +34,9 @@
              #{itemDo.assetNet}, #{itemDo.assetShare}, #{itemDo.parseDate}, #{itemDo.email}, #{itemDo.senderEmail}, #{itemDo.emailDate})
         </foreach>
     </insert>
+    <delete id="delete">
+        update email_fund_nav_collection set isvalid=0,updatetime=now() where file_id=#{fileId} and isvalid=1 and email_id=#{emailId}
+    </delete>
     <select id="countByFileId" resultType="java.lang.Long">
         select count(*) from email_fund_nav_collection where file_id=#{fileId} and isvalid=1 and email_id=#{emailId}
     </select>