miemie 7 éve
szülő
commit
ff87c12912

+ 5 - 4
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/segments/AbstractISegmentList.java

@@ -36,6 +36,9 @@ public abstract class AbstractISegmentList extends ArrayList<ISqlSegment> implem
      * 最后一个值
      */
     protected ISqlSegment lastValue = null;
+    /**
+     * 刷新 lastValue
+     */
     protected boolean flushLastValue = false;
 
     @Override
@@ -53,14 +56,12 @@ public abstract class AbstractISegmentList extends ArrayList<ISqlSegment> implem
 
     /**
      * <p>
-     * 判断是否改变了 list
-     * true 改变了,就继续执行
-     * false 不再向下执行
+     * 在其中对值进行判断以及更改 list 的内部元素
      * </P>
      *
      * @param list         传入进来的 ISqlSegment 集合
      * @param firstSegment ISqlSegment 集合里第一个值
-     * @return 是否继续向下执行
+     * @return true 是否继续向下执行; false 不再向下执行
      */
     protected abstract boolean transformList(List<ISqlSegment> list, ISqlSegment firstSegment);
 

+ 1 - 2
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/segments/MergeSegments.java

@@ -28,10 +28,9 @@ import com.baomidou.mybatisplus.core.conditions.ISqlSegment;
  * @author miemie
  * @since 2018-06-27
  */
+@SuppressWarnings("serial")
 public class MergeSegments implements ISqlSegment {
 
-    private static final long serialVersionUID = 8401728865419013555L;
-
     private NormalSegmentList normal = new NormalSegmentList();
     private GroupBySegmentList groupBy = new GroupBySegmentList();
     private HavingSegmentList having = new HavingSegmentList();