Przeglądaj źródła

fix: 净值规模删除调整,不需要物理删除

chenjianhua 7 miesięcy temu
rodzic
commit
e11cab990e

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

@@ -38,10 +38,10 @@
         </foreach>
     </insert>
     <delete id="deleteAsset">
-        delete from PPW_EMAIL.asset where fund_id=#{fundId} and price_date=#{priceDate}
+        update PPW_EMAIL.asset set isvalid=0,updatetime=sysdate(),updaterid=#{updaterId}  where fund_id=#{fundId} and price_date=#{priceDate}
     </delete>
     <delete id="batchDeleteAsset">
-        delete from  PPW_EMAIL.asset where fund_id=#{FundId}
+        update PPW_EMAIL.asset set isvalid=0,updatetime=sysdate() where fund_id=#{FundId}
         and price_date in
         <foreach collection="priceDateList" index="index" item="priceDate" separator="," open="(" close=")">
             #{priceDate}

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

@@ -57,14 +57,14 @@
         and id=#{id}
     </update>
     <update id="batchDeleteNav">
-        delete from PPW_EMAIL.nav where fund_id=#{fundId}
+        update PPW_EMAIL.nav set isvalid=0,updatetime=sysdate() where fund_id=#{fundId}
         and price_date in
         <foreach collection="priceDateList" index="index" item="priceDate" separator="," open="(" close=")">
             #{priceDate}
         </foreach>
     </update>
     <delete id="deleteNav">
-        delete from  PPW_EMAIL.nav where fund_id=#{fundId} and price_date=#{priceDate}
+        update PPW_EMAIL.nav set isvalid=0,updatetime=sysdate(),updaterid=#{updaterId} where fund_id=#{fundId} and price_date=#{priceDate}
     </delete>
 
     <select id="queryFundNavByDate" resultType="java.lang.String">