diff --git a/zc-business/src/main/java/com/zc/business/mapper/DcPerceivedEventsWarningMapper.java b/zc-business/src/main/java/com/zc/business/mapper/DcPerceivedEventsWarningMapper.java index 66f8c064..74fdb412 100644 --- a/zc-business/src/main/java/com/zc/business/mapper/DcPerceivedEventsWarningMapper.java +++ b/zc-business/src/main/java/com/zc/business/mapper/DcPerceivedEventsWarningMapper.java @@ -35,7 +35,7 @@ public interface DcPerceivedEventsWarningMapper { List> selectWarningSourceGroup(DcWarning dcWarning); String selectWarningSourceGroupCount(DcWarning dcWarning); //当日感知事件的处置情况占比 - List> selectWarningStateDay(DcWarning dcWarning); + List> selectWarningStateDay(); //感知事件类型占比 List> selectWarningTypeDay(DcWarning dcWarning); //事件总数量 diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcPerceivedEventsWarningServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcPerceivedEventsWarningServiceImpl.java index 3953cd0f..633c24e4 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcPerceivedEventsWarningServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcPerceivedEventsWarningServiceImpl.java @@ -96,10 +96,7 @@ public class DcPerceivedEventsWarningServiceImpl implements IDCPerceivedEventsWa //当日感知事件的处置情况占比 @Override public List> selectWarningStateDay() { - DcWarning dcWarning = new DcWarning(); - Date nowDate = DateUtils.getNowDate(); - dcWarning.setCreateTime(nowDate); - return perceivedEventsWarningMapper.selectWarningStateDay(dcWarning); + return perceivedEventsWarningMapper.selectWarningStateDay(); } //感知事件类型占比 @Override diff --git a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml index 615cf4d4..ad43d1c9 100644 --- a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml @@ -87,9 +87,17 @@ where DATE_FORMAT(create_time,'%Y-%m-%d')=DATE_FORMAT(#{createTime},'%Y-%m-%d')