Просмотр исходного кода

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

reghao 2 лет назад
Родитель
Сommit
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">