ソースを参照

修改sql错误

yumeng 3 年 前
コミット
e5888136c8

+ 4 - 4
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouVideoGetController.java

@@ -266,7 +266,7 @@ public class KuaiShouVideoGetController {
                 String startMonth = DateUtils.formatDate(startMonthStr, "yyyy-MM");
                 requestMap.put("startMonth", Integer.valueOf(startMonth.replace("-", "")));
                 requestMap.put("endMonth", Integer.valueOf(endMonth.replace("-", "")));
-                kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
+                list = kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
             } else if (costType == 6) { // 近6个月
                 String endMonth = DateUtils.getNowDate("yyyy-MM");
                 String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
@@ -274,7 +274,7 @@ public class KuaiShouVideoGetController {
                 String startMonth = DateUtils.formatDate(startMonthStr, "yyyy-MM");
                 requestMap.put("startMonth", Integer.valueOf(startMonth.replace("-", "")));
                 requestMap.put("endMonth", Integer.valueOf(endMonth.replace("-", "")));
-                kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
+                list = kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
             } else if (costType == 7) { // 近12个月
                 String endMonth = DateUtils.getNowDate("yyyy-MM");
                 String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
@@ -282,9 +282,9 @@ public class KuaiShouVideoGetController {
                 String startMonth = DateUtils.formatDate(startMonthStr, "yyyy-MM");
                 requestMap.put("startMonth", Integer.valueOf(startMonth.replace("-", "")));
                 requestMap.put("endMonth", Integer.valueOf(endMonth.replace("-", "")));
-                kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
+                list = kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
             } else if (costType == 8) { // 全部
-                kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
+                list = kuaiShouReportDailyMaterialService.get3MonthVideo(requestMap);
             }
 
 

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/KuaiShouReportDailyMaterialMapper.java

@@ -58,5 +58,5 @@ public interface KuaiShouReportDailyMaterialMapper extends BaseMapper<KuaiShouRe
 
     List<KuaiShouVideoGetVo> get30dayVideo(Map<String, Object> requestMap);
 
-    void get3MonthVideo(Map<String, Object> requestMap);
+    List<KuaiShouVideoGetVo> get3MonthVideo(Map<String, Object> requestMap);
 }

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/IKuaiShouReportDailyMaterialService.java

@@ -43,5 +43,5 @@ public interface IKuaiShouReportDailyMaterialService extends IService<KuaiShouRe
 
     List<KuaiShouVideoGetVo> get30dayVideo(Map<String, Object> requestMap);
 
-    void get3MonthVideo(Map<String, Object> requestMap);
+    List<KuaiShouVideoGetVo> get3MonthVideo(Map<String, Object> requestMap);
 }

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouReportDailyMaterialServiceImpl.java

@@ -172,7 +172,7 @@ public class KuaiShouReportDailyMaterialServiceImpl extends ServiceImpl<KuaiShou
     }
 
     @Override
-    public void get3MonthVideo(Map<String, Object> requestMap) {
+    public List<KuaiShouVideoGetVo> get3MonthVideo(Map<String, Object> requestMap) {
         dailyMaterialMapper.get3MonthVideo(requestMap);
     }