|
@@ -15,7 +15,6 @@ import com.ruoyi.system.api.domain.SysDept;
|
|
|
import com.ruoyi.system.api.domain.SysUser;
|
|
|
import com.sooka.sponest.event.centereventtdeptevent.domain.CentereventDeptEvent;
|
|
|
import com.sooka.sponest.event.centereventtdeptevent.service.ICentereventDeptEventService;
|
|
|
-import com.sooka.sponest.event.centereventteventcatalogue.domain.CentereventTDownloads;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.CentereventTEventcatalogue;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.bo.CentereventtDeptEventBO;
|
|
|
import com.sooka.sponest.event.centereventteventcatalogue.domain.bo.LatLng;
|
|
@@ -38,7 +37,6 @@ import com.sooka.sponest.event.remoteapi.RemoteDataService;
|
|
|
import com.sooka.sponest.event.remoteapi.domain.CenterdataTAttach;
|
|
|
import com.sooka.sponest.event.urge.domain.EventReminder;
|
|
|
import com.sooka.sponest.event.urge.domain.EventUrge;
|
|
|
-import com.sooka.sponest.event.urge.service.EventDownService;
|
|
|
import com.sooka.sponest.event.urge.service.EventUrgeService;
|
|
|
import com.sooka.sponest.event.utils.EventProducerUtil;
|
|
|
import com.sooka.sponest.event.utils.RemoteApiUtil;
|
|
@@ -89,8 +87,6 @@ public class CentereventTEventcatalogueServiceImpl extends BaseService implement
|
|
|
@Autowired
|
|
|
private EventUrgeService eventUrgeService;
|
|
|
@Autowired
|
|
|
- private EventDownService eventDownService;
|
|
|
- @Autowired
|
|
|
private ICentereventTDownloadsService centereventTDownloadsService;
|
|
|
|
|
|
@DataScopeMutiDept(deptAlias = "c")
|
|
@@ -637,29 +633,4 @@ public class CentereventTEventcatalogueServiceImpl extends BaseService implement
|
|
|
public CentereventTEventcatalogue mqtest(String start, String end, int limit) {
|
|
|
return centereventTEventcatalogueMapper.mqtest(start, end, limit);
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- public List<Map<String, Object>> downloadsCommon(Map<String, Object> params) {
|
|
|
- List<CentereventTEventcatalogue> eventcatalogues = centereventTEventcatalogueMapper.getbeforedateDownload(params);
|
|
|
- List<Map<String, Object>> param = new ArrayList<>();
|
|
|
- int i = 0;
|
|
|
- for (CentereventTEventcatalogue eventcatalogue : eventcatalogues) {
|
|
|
- String uuid = IdUtils.simpleUUID();
|
|
|
- CentereventTDownloads centereventTDownloads = new CentereventTDownloads();
|
|
|
- centereventTDownloads.setId(uuid);
|
|
|
- centereventTDownloads.setEventCode(eventcatalogue.getEventCode());
|
|
|
- centereventTDownloads.setEventName(eventcatalogue.getEventName());
|
|
|
- centereventTDownloads.setLogId(eventcatalogue.getId());
|
|
|
- centereventTDownloadsService.insertCentereventTDownloads(centereventTDownloads);
|
|
|
-
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("id", uuid);
|
|
|
- map.put("logId", eventcatalogue.getId());
|
|
|
- map.put("cameraId", eventcatalogue.getCreateBy());
|
|
|
- map.put("startTime", DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.subtractTime(eventcatalogue.getReportTime(), -2)));
|
|
|
- map.put("endTime", DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.subtractTime(eventcatalogue.getReportTime(), 1)));
|
|
|
- param.add(map);
|
|
|
- }
|
|
|
- return param;
|
|
|
- }
|
|
|
}
|