File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/mybatis/dynamic/sql/select/aggregate Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class Sum<T> extends AbstractUniTypeFunction<T, Sum<T>> {
30
30
31
31
private Sum (BindableColumn <T > column ) {
32
32
super (column );
33
- renderer = rc -> column .render (rc ).mapFragment (Sum ::applyAggregate );
33
+ renderer = rc -> column .render (rc ).mapFragment (this ::applyAggregate );
34
34
}
35
35
36
36
private Sum (BindableColumn <T > column , VisitableCondition <T > condition ) {
@@ -43,7 +43,7 @@ private Sum(BindableColumn<T> column, VisitableCondition<T> condition) {
43
43
.withRenderingContext (rc )
44
44
.build ();
45
45
46
- return condition .accept (visitor ).mapFragment (Sum ::applyAggregate );
46
+ return condition .accept (visitor ).mapFragment (this ::applyAggregate );
47
47
};
48
48
}
49
49
@@ -57,7 +57,7 @@ public FragmentAndParameters render(RenderingContext renderingContext) {
57
57
return renderer .apply (renderingContext );
58
58
}
59
59
60
- private static String applyAggregate (String s ) {
60
+ private String applyAggregate (String s ) {
61
61
return "sum(" + s + ")" ; //$NON-NLS-1$ //$NON-NLS-2$
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments