Selaa lähdekoodia

查询base按时间倒序

LLL 4 kuukautta sitten
vanhempi
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);
 	 }