瀏覽代碼

阅读均值表定时任务

wangyunpeng 9 月之前
父節點
當前提交
99adadd9d0

+ 5 - 5
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/common/enums/AccountBusinessTypeEnum.java

@@ -6,11 +6,11 @@ import java.util.Objects;
 
 @Getter
 public enum AccountBusinessTypeEnum {
-    changwen(1, "长文"),
-    touliu(2, "投流"),
-    qiwei(3, "企微"),
+    CHANGWEN(1, "长文"),
+    TOULIU(2, "投流"),
+    QIWEI(3, "企微"),
     
-    other(999, "其他"),
+    OTHER(999, "其他"),
 
     ;
 
@@ -28,6 +28,6 @@ public enum AccountBusinessTypeEnum {
                 return typeEnum;
             }
         }
-        return other;
+        return OTHER;
     }
 }

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/XxlJobService.java

@@ -233,7 +233,7 @@ public class XxlJobService {
 
     public void saveAccountAvgInfo(AccountTypeFansDTO account, Map<String, Double> rateDict, String date) {
         int businessType = touliuAccountGhIds.contains(account.getGhId()) ?
-                AccountBusinessTypeEnum.touliu.getType() : AccountBusinessTypeEnum.changwen.getType();
+                AccountBusinessTypeEnum.TOULIU.getType() : AccountBusinessTypeEnum.CHANGWEN.getType();
         if (account.getFollowerCount() > 0) {
             List<AccountAvgInfo> saveList = new ArrayList<>();
             for (int index = 1; index <= 8; index++) {