Commit 9f83fecf authored by 赵啸非's avatar 赵啸非

添加首页统计模块 统计近一周

parent e8b22b9e
package com.mortals.xhx.module.access.model.vo;
import com.alibaba.fastjson.JSON;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.framework.model.OrderCol;
import com.mortals.xhx.module.access.model.AccessEntity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
......@@ -20,4 +23,15 @@ public class AccessVo extends BaseEntityLong {
private List <Long> idList;
public static void main(String[] args) {
AccessEntity accessEntity = new AccessEntity();
accessEntity.initAttrValue();
accessEntity.setOrderColList(Arrays.asList(new OrderCol("sort", "desc")));
System.out.println(JSON.toJSONString(accessEntity));
}
}
\ No newline at end of file
package com.mortals.xhx.module.access.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -47,5 +49,10 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe
super.init(model, context);
}
@Override
protected void doListBefore(AccessEntity query, Map<String, Object> model, Context context) throws AppException {
query.setOrderColList(Arrays.asList(new OrderCol("sort", "desc")));
super.doListBefore(query, model, context);
}
}
\ No newline at end of file
......@@ -18,7 +18,7 @@ POST {{baseUrl}}/access/interlist
Content-Type: application/json
{
"orderList": [{"": ""}],
"orderCols": {"sort": "desc"},
"page":1,
"size":10
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment