Bladeren bron

fix:实现queryRecordMonthCount接口

zack 1 maand geleden
bovenliggende
commit
ad463b4288

+ 5 - 0
yt-ios-lemon/lemon-ios-feign/src/main/java/com/ytpm/lemonios/feign/LemonIosFeign.java

@@ -59,6 +59,11 @@ public interface LemonIosFeign {
     @PostMapping("/user/adRecords/page")
     ResultTable<YtDyzAdRecord> adRecordsPage(@RequestBody AdRecordListParam param);
 
+    @GetMapping("/user/adRecords/count/month")
+    Result<Integer> queryRecordMonthCount(@RequestParam(name = "userId") String userId,
+                                          @RequestParam(name = "adSourceType", required = false) Integer adSourceType,
+                                          @RequestParam(name = "startTime", required = false) String startTime);
+
     @PostMapping("/user/queryUserByTime")
     List<YtDyzUser> queryUserByTime(@RequestBody AppUserQueryParam appUserQueryParam);
 

+ 10 - 5
yt-ios-lemon/lemon-ios-service/src/main/resources/mapper/AppUserMapper.xml

@@ -493,7 +493,8 @@
             flow_interval_time,
             task_limit_tip,
             start_wait_time,
-            can_cache_video
+            can_cache_video,
+            can_allow_auto_refresh
         from yt_app_default_config
         where app_id = #{appId}
     </select>
@@ -530,7 +531,8 @@
             flow_interval_time,
             task_limit_tip,
             start_wait_time,
-            can_cache_video
+            can_cache_video,
+            can_allow_auto_refresh
         from yt_app_default_config
         where app_type = #{appType}
     </select>
@@ -567,7 +569,8 @@
             flow_interval_time,
             task_limit_tip,
             start_wait_time,
-            can_cache_video
+            can_cache_video,
+            can_allow_auto_refresh
         from yt_app_default_config
         where ditch_id = #{ditchId}
     </select>
@@ -604,7 +607,8 @@
             flow_interval_time,
             task_limit_tip,
             start_wait_time,
-            can_cache_video
+            can_cache_video,
+            can_allow_auto_refresh
         from yt_app_default_config
         where app_id =  #{appId}
         limit 1
@@ -642,7 +646,8 @@
             flow_interval_time,
             task_limit_tip,
             start_wait_time,
-            can_cache_video
+            can_cache_video,
+            can_allow_auto_refresh
         FROM yt_app_default_config
         ORDER BY config_id DESC
             LIMIT 1