Explorar o código

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

reghao %!s(int64=2) %!d(string=hai) anos
pai
achega
db5d7f4a6f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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">