فهرست منبع

更新 List<String> 的元素在 mybatis foreach 中的访问

reghao 2 سال پیش
والد
کامیت
db5d7f4a6f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dfs-store/src/main/resources/mapper/FileMetaMapper.xml

+ 1 - 1
dfs-store/src/main/resources/mapper/FileMetaMapper.xml

@@ -32,7 +32,7 @@
         set scope=#{scope}
         where object_id in
         <foreach collection="list" item="item" separator="," open="(" close=")">
-            #{item.objectId}
+            #{item}
         </foreach>
     </update>
     <update id="updateBatch">