Commit 0b9a9e86 authored by lizhichao's avatar lizhichao

30天设备报警记录,空数据日期处理

parent 0fca2cae
......@@ -3,7 +3,6 @@ package com.zehong.system.service.impl;
import java.text.SimpleDateFormat;
import java.util.*;
import com.sun.org.apache.bcel.internal.generic.NEW;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -137,7 +136,7 @@ public class TDeviceAlarmInfoServiceImpl implements ITDeviceAlarmInfoService
//每天报警数量(30天)
List<Map<String,Object>> everyDayList = tDeviceAlarmInfoMapper.selectEveryDay();
List<String> datelist = getDays();
String[] dateLabel = new String[30];
Object[] dateLabel = datelist.toArray();
Long[] dateNum = new Long[]{0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L,0L};
for(Map<String,Object> m : everyDayList){
for(int i=0;i<datelist.size();i++){
......
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