dev_xd
parent
d649f22678
commit
ef1f1ff326
|
@ -18,9 +18,9 @@ const getDaysTrendView = (projectId) => {
|
|||
}
|
||||
|
||||
// 统计AI预警数据
|
||||
const groupCountByAlarmType = (projectId, now) => {
|
||||
const groupCountByAlarmType = (projectId, toDay) => {
|
||||
return request({
|
||||
url: `/manage/devAiProjectData/groupCountByAlarmType/${projectId || 0}?now=${now}`,
|
||||
url: `/manage/devAiProjectData/groupCountByAlarmType/${projectId || 0}?toDay=${toDay}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -306,7 +306,7 @@ export default {
|
|||
pageSize: this.todayPage.pageSize,
|
||||
projectId: this.selProject.id,
|
||||
params: {
|
||||
date: new Date(),
|
||||
date: new Date().toLocaleDateString().replaceAll("/","-"),
|
||||
},
|
||||
};
|
||||
this.$api.aiWarning
|
||||
|
|
|
@ -129,7 +129,7 @@ public class DevAiProjectDataController extends BaseController
|
|||
dataQuery.setParams(params);
|
||||
List<Map<String, Object>> list = devAiProjectDataService.findDaysTrendView(dataQuery);
|
||||
|
||||
List<Map<String, Object>> daysTrendList = new ArrayList<>();
|
||||
/**List<Map<String, Object>> daysTrendList = new ArrayList<>();
|
||||
for (LocalDate date = todayAgo; !date.isAfter(today); date = date.plusDays(1)) {
|
||||
Map<String, Object> dayMap = new HashMap<>();
|
||||
dayMap.put("createTime",date.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
|
||||
|
@ -143,10 +143,10 @@ public class DevAiProjectDataController extends BaseController
|
|||
if (_list.size()>0) {
|
||||
date.put("total", _list.get(0).get("total"));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
redisService.setCacheObject(key, daysTrendList, 2L, TimeUnit.MINUTES);
|
||||
return success(daysTrendList);
|
||||
redisService.setCacheObject(key, list, 2L, TimeUnit.MINUTES);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue