Commit 2b30f238 authored by 赵啸非's avatar 赵啸非

添加首页统计报表

parent cf41d6ad
......@@ -214,12 +214,11 @@ public class CompanyServiceImpl extends AbstractCRUDServiceImpl<CompanyDao, Comp
for (int i = 0; i < 30; i++) {
DateTime curDate = DateUtil.offsetDay(beforeDay, i);
Map<String, Integer> map = new HashMap<>();
map.put(curDate.toDateStr(), 0);
StaffRecordQuery staffRecordQuery = new StaffRecordQuery();
staffRecordQuery.setCreateTimeStart(curDate.toDateStr());
staffRecordQuery.setCreateTimeEnd(curDate.toDateStr());
List<StaffRecordEntity> staffRecordEntities = staffRecordService.find(staffRecordQuery, context);
if (!ObjectUtils.isEmpty(staffRecordEntities)) {
int sum = staffRecordEntities.stream().mapToInt(item -> item.getSumViews()).sum();
map.put(curDate.toDateStr(), sum);
......
......@@ -22,6 +22,13 @@ Content-Type: application/json
"size":10
}
###公司统计
POST {{baseUrl}}/company/stat
Content-Type: application/json
Authorization: {{authToken}}
{}
###公司更新与保存
POST {{baseUrl}}/company/save
......
{
"local": {
"baseUrl": "http://127.0.0.1:21085/office",
"baseLogin": "http://127.0.0.1:18222/m"
"baseUrl": "http://localhost:17214/enterprise"
},
"dev": {
"baseUrl": "http://192.168.0.217:18222/m",
"baseLogin": "http://192.168.0.98:11078/base"
"baseUrl": "http://192.168.0.217:18222/enterprise"
},
"test": {
"baseUrl": "http://192.168.0.98:11085/office",
"baseLogin": "http://192.168.0.98:11078/base"
},
"portal": {
"baseUrl": "http://192.168.0.98:11072/zwfw",
"baseLogin": "http://192.168.0.98:11078/base"
},
"yibin": {
"baseUrl": "http://10.12.185.213:11085/office"
},
"yibin-web": {
"baseUrl": "http://112.19.80.237:11085/office"
"baseUrl": "http://192.168.0.98:11086/enterprise"
}
}
\ No newline at end of file
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