|
@ -1,5 +1,6 @@ |
|
|
package com.zc.business.service.impl; |
|
|
package com.zc.business.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
import com.ruoyi.common.utils.StakeMarkUtils; |
|
|
import com.ruoyi.common.utils.StakeMarkUtils; |
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
import com.ruoyi.common.utils.StringUtils; |
|
@ -11,7 +12,11 @@ import com.zc.business.service.IDCPerceivedEventsWarningService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @author 王思祥 |
|
|
* @author 王思祥 |
|
@ -90,9 +95,9 @@ public class DcPerceivedEventsWarningServiceImpl implements IDCPerceivedEventsWa |
|
|
public List<HashMap<String,Object>> selectSectionPerceivedEventsList( ) { |
|
|
public List<HashMap<String,Object>> selectSectionPerceivedEventsList( ) { |
|
|
DcWarning dcWarning = new DcWarning(); |
|
|
DcWarning dcWarning = new DcWarning(); |
|
|
Date nowDate = DateUtils.getNowDate(); |
|
|
Date nowDate = DateUtils.getNowDate(); |
|
|
dcWarning.setWarningTime(nowDate); |
|
|
dcWarning.setStartTime(DateUtil.beginOfDay(nowDate)); |
|
|
List<HashMap<String,Object>> dcWarnings = perceivedEventsWarningMapper.selectSectionPerceivedEventsList(dcWarning); |
|
|
dcWarning.setEndTime(DateUtil.endOfDay(nowDate)); |
|
|
return dcWarnings; |
|
|
return perceivedEventsWarningMapper.selectSectionPerceivedEventsList(dcWarning); |
|
|
} |
|
|
} |
|
|
//查询感知数量按照路段进行区分
|
|
|
//查询感知数量按照路段进行区分
|
|
|
@Override |
|
|
@Override |
|
|