Quellcode durchsuchen

查询base按时间倒序

LLL vor 4 Monaten
Ursprung
Commit
0627cd6d66

+ 1 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/base/controller/InterlockBaseController.java

@@ -64,6 +64,7 @@ public class InterlockBaseController extends JeecgController<InterlockBase, IInt
 	 public List<InterlockBase> list(){
 	 	LambdaQueryWrapper<InterlockBase> wrapper = new LambdaQueryWrapper<>();
 	 	wrapper.eq(InterlockBase::getInterlockType,"0").or().eq(InterlockBase::getInterlockType,"1");
+	 	wrapper.orderByDesc(InterlockBase::getCreateTime);
 	 	return interlockBaseService.list(wrapper);
 	 }