Mapper icon indicating copy to clipboard operation
Mapper copied to clipboard

建议Example能否支持函数是编程

Open xujian662 opened this issue 2 years ago • 3 comments

Example example = new Example(DefectVideo.class); Example.Criteria criteria = example.createCriteria(); criteria.andIn(DefectVideo::getCategory,"11");

xujian662 avatar Aug 24 '22 01:08 xujian662

试试能不能把 mybatis-mapper 的 ExampleWrapper 拷过来。

abel533 avatar Sep 17 '22 10:09 abel533

还是尽量支持一下函数式编程,这样比较方便

blackkeai avatar Feb 13 '23 09:02 blackkeai

非常同意,我现在都是自己写个静态方法,去支持 public static <T> String getFieldName(Function<T, ?> fn)

zinny1990 avatar Mar 14 '23 06:03 zinny1990