Explorar o código

修改获取当日花费最大的账户接口

zhaoxian %!s(int64=4) %!d(string=hai) anos
pai
achega
4f5557039a

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/controller/EtlKuaishouReportAccountHourlyController.java

@@ -96,7 +96,7 @@ public class EtlKuaishouReportAccountHourlyController {
 
 
     /**
-     * 获取时间趋势汇总投放数据
+     * 获取当日花费最大的账户
      *
      * @param
      * @return

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/EtlKuaishouReportAccountHourlyServiceImpl.java

@@ -152,13 +152,13 @@ public class EtlKuaishouReportAccountHourlyServiceImpl extends ServiceImpl<EtlKu
         }
         UserAllocation userAllocation = allocationMapper.getUserAllocation(accountId);
         if (!Check.isNull(userAllocation)) {
-            obj.put("accountId", userAllocation.getAccountId());
             obj.put("accountName", userAllocation.getAuthName());
             obj.put("status", userAllocation.getAccountStatus());
             obj.put("statusStr", userAllocation.getAccountStatus() == 0 ? "投放中" : "无效");
         }
         Integer counts = kuaiShouCreativeMapper.getRejectedCountsforAccountId(accountId);
         obj.put("rejectedCounts", counts);
+        obj.put("accountId", accountId);
         return Result.ok(obj);
     }
 }