|
@@ -3,8 +3,10 @@ package com.cdf.schedule;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.cdf.entity.PageData;
|
|
|
import com.cdf.entity.SceneSource;
|
|
|
+import com.cdf.entity.SceneSourceData;
|
|
|
import com.cdf.entity.TotalData;
|
|
|
import com.cdf.service.IPageDataService;
|
|
|
+import com.cdf.service.ISceneSourceDataService;
|
|
|
import com.cdf.service.ISceneSourceService;
|
|
|
import com.cdf.service.ITotalDataService;
|
|
|
import com.cdf.util.DateUtil;
|
|
@@ -27,7 +29,7 @@ public class ScheduleTask {
|
|
|
@Autowired
|
|
|
ITotalDataService totalDataService;
|
|
|
@Autowired
|
|
|
- ISceneSourceService sceneSourceService;
|
|
|
+ ISceneSourceDataService sceneSourceDataService;
|
|
|
|
|
|
public static String day = null;
|
|
|
|
|
@@ -45,9 +47,9 @@ public class ScheduleTask {
|
|
|
}
|
|
|
|
|
|
private void dataT() throws Exception {
|
|
|
- List<SceneSource> sceneSources = sceneSourceService.list();
|
|
|
+ List<SceneSourceData> sceneSources = sceneSourceDataService.list();
|
|
|
HashMap<Integer,List<String>> sceneMap = new HashMap<>();
|
|
|
- for (SceneSource sceneSource : sceneSources) {
|
|
|
+ for (SceneSourceData sceneSource : sceneSources) {
|
|
|
if(sceneMap.get(sceneSource.getProductSourceId()) == null){
|
|
|
List<String> nums = new ArrayList<>();
|
|
|
nums.add(sceneSource.getSceneNum());
|