From fee67ca8a0760315047a52fc4101a8f4f80b7a7f Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 11 十一月 2024 15:02:54 +0800
Subject: [PATCH] 1

---
 src/main/java/com/moon/server/extend/UpdateBatchMethod.java |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/src/main/java/com/moon/server/extend/UpdateBatchMethod.java b/src/main/java/com/moon/server/extend/UpdateBatchMethod.java
index 3643a1d..3b3233e 100644
--- a/src/main/java/com/moon/server/extend/UpdateBatchMethod.java
+++ b/src/main/java/com/moon/server/extend/UpdateBatchMethod.java
@@ -8,30 +8,8 @@
 import org.apache.ibatis.mapping.MappedStatement;
 import org.apache.ibatis.mapping.SqlSource;
 
-/**
- * 鎵归噺鏇存柊鏂规硶
- * @author WWW
- */
 @SuppressWarnings("ALL")
 public class UpdateBatchMethod extends AbstractMethod {
-    /**
-     * update user set name = "a", age = 17 where id = 1;
-     * update user set name = "b", age = 18 where id = 2;
-     * <script>
-     * <foreach collection="list" item="item" separator=";">
-     * update user
-     * <set>
-     * <if test="item.name != null and item.name != ''">
-     * name = #{item.name,jdbcType=VARCHAR},
-     * </if>
-     * <if test="item.age != null">
-     * age = #{item.age,jdbcType=INTEGER},
-     * </if>
-     * </set>
-     * where id = #{item.id,jdbcType=INTEGER}
-     * </foreach>
-     * </script>
-     */
     @Override
     public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
         String sql = "<script>\n<foreach collection=\"list\" item=\"item\" separator=\";\">\nupdate %s %s where %s=#{%s} %s\n</foreach>\n</script>";

--
Gitblit v1.9.3