Explorar el Código

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

reghao hace 2 años
padre
commit
db5d7f4a6f
Se han modificado 1 ficheros con 1 adiciones y 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">