Browse Source

fix: 净值振幅检测增加大于20%校验

chenjianhua 4 months ago
parent
commit
a376d49cf2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      service-base/src/main/resources/mapper/daq/EmailFundNavMapper.xml

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

@@ -338,7 +338,7 @@
           and nav.id=#{id}
     </select>
     <select id="getNavAmplitudeErrorCount" resultType="java.lang.Integer">
-        select count(*) from email_fund_nav where exception_status=7 and isvalid=1;
+        select count(*) from email_fund_nav where exception_status in (6,7) and isvalid=1;
     </select>
     <select id="getNavAmplitudeErrorList" resultMap="BaseResultMap">
         select nav.id,
@@ -358,12 +358,12 @@
                nav.createtime,
                nav.remark
         from email_fund_nav nav
-        where nav.isvalid =1 and nav.exception_status=7
+        where nav.isvalid =1 and nav.exception_status in (6,7)
         order by nav.price_date
     </select>
     <select id="selectNavAmplitudeErrorMaxMinId" resultType="java.util.Map">
         select max(nav.id) as maxId,min(nav.id) as minId from email_fund_nav nav
-        where nav.isvalid =1 and nav.exception_status=7
+        where nav.isvalid =1 and nav.exception_status in (6,7)
     </select>
     <select id="getNavAmplitudeErrorListById" resultType="com.simuwang.base.pojo.dos.EmailFundNavDO">
         select nav.id,
@@ -383,7 +383,7 @@
                nav.createtime,
                nav.remark
         from email_fund_nav nav
-        where nav.isvalid =1 and nav.exception_status=7
+        where nav.isvalid =1 and nav.exception_status in (6,7)
         and nav.id <![CDATA[ >= ]]> #{startIdx} and nav.id <![CDATA[ <= ]]> #{endIdx}
         order by nav.price_date
     </select>