Browse Source

feat: 别名管理保存问题修复

chenjianhua 7 tháng trước cách đây
mục cha
commit
c9bae543c1

+ 10 - 8
service-base/src/main/resources/mapper/EmailFundAssetMapper.xml

@@ -31,14 +31,16 @@
 
     </insert>
     <update id="batchUpdate">
-        update PPW_EMAIL.email_fund_asset
-        <set>
-            fund_id = #{itemDo.fundId},
-            exception_status = #{itemDo.exceptionStatus},
-            updatetime=#{itemDo.updateTime}
-        </set>
-        where isvalid = 1
-        and id = #{itemDo.id}
+        <foreach collection="itemDoList" item="itemDo" index="index" open="" close="" separator=";">
+            update PPW_EMAIL.email_fund_asset
+            <set>
+                fund_id = #{itemDo.fundId},
+                exception_status = #{itemDo.exceptionStatus},
+                updatetime=#{itemDo.updateTime}
+            </set>
+            where isvalid = 1
+            and id = #{itemDo.id}
+        </foreach>
     </update>
     <select id="searchAssetDetail" resultMap="BaseResultMap"
             parameterType="com.simuwang.base.pojo.dto.query.ParseDetailPageQuery">

+ 1 - 0
service-manage/src/main/java/com/simuwang/manage/service/impl/EmailFundAssetServiceImpl.java

@@ -38,6 +38,7 @@ public class EmailFundAssetServiceImpl implements EmailFundAssetService {
             for(EmailFundAssetDO fundNavDO : fundAssetDOList){
                 fundNavDO.setFundId(targetFundId);
                 fundNavDO.setExceptionStatus(1);
+                fundNavDO.setIsvalid(1);
                 fundNavDO.setUpdateTime(new Date());
             }
             emailFundAssetMapper.batchUpdate(fundAssetDOList);