Переглянути джерело

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

reghao 2 роки тому
батько
коміт
db5d7f4a6f

+ 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">