yaozhixue il y a 1 an
Parent
commit
1b317c167d

+ 20 - 3
src/main/java/com/zfire/jiasm/syncdata/download/basedata/GLPPXuQiuLeiBie.java

@@ -1,14 +1,32 @@
 package com.zfire.jiasm.syncdata.download.basedata;
 
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.zfire.jiasm.syncdata.constant.InterFaceTypeEnum;
+import com.zfire.jiasm.syncdata.constant.TaskConfigEnum;
+import com.zfire.jiasm.syncdata.data.Token;
+import com.zfire.jiasm.syncdata.plus.entity.Brand;
+import com.zfire.jiasm.syncdata.plus.service.BrandService;
+import com.zfire.jiasm.syncdata.service.GLPPXuQiuLeiBieService;
+import com.zfire.jiasm.syncdata.utils.HttpUtil;
+import com.zfire.jiasm.syncdata.utils.JSONResult;
+import com.zfire.jiasm.syncdata.utils.TokenCenter;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.Resource;
+import java.text.SimpleDateFormat;
+import java.util.*;
 
 /**
  * 格力品牌 需求类别 - 需求类别基础资料下载(需求大类、需求小类)
  */
 @Slf4j
-// @Component
+@Component
 public class GLPPXuQiuLeiBie {
-   /* @Value("${baseurl}")
+    @Value("${baseurl}")
     private String baseurl = "";
     @Value("${xqdlc}")
     private String xqdlc = "";
@@ -80,5 +98,4 @@ public class GLPPXuQiuLeiBie {
 
         log.info("格力品牌需求类别处理完成: \uF0B7{}",sdf.format(new Date()));
     }
-*/
 }

+ 3 - 3
src/main/java/com/zfire/jiasm/syncdata/service/impl/BaseDownServiceImpl.java

@@ -93,11 +93,11 @@ public class BaseDownServiceImpl implements BaseDownService {
         // 格力品牌类别系列基础资料下载(大类、小类、系列、机型) 单独开任务处理了,这里不需要再执行(GLPPLeiBie) 单独启动
         // processGLPPLeiBie();
 
-        // 格力品牌安装销售类型基础资料下载
+        // 格力品牌安装销售类型基础资料下载 OK
         processGLPPXSLXDownload();
 
-        // 格力品牌 需求类别 - 需求类别基础资料下载(需求大类、需求小类)
-        processGLPPXuQiuLeiBie();
+        // 格力品牌 需求类别 - 需求类别基础资料下载(需求大类、需求小类)  单独启动
+        // processGLPPXuQiuLeiBie();
 
         // 格力品牌用户属性、信息渠道 基础资料下载(用户属性、用户等级、信息渠道、信息来源)
         processGLPPYHSXXXQD();

+ 4 - 4
src/main/java/com/zfire/jiasm/syncdata/service/impl/GLPPXuQiuLeiBieServiceImpl.java

@@ -462,10 +462,10 @@ public class GLPPXuQiuLeiBieServiceImpl implements GLPPXuQiuLeiBieService {
             for (ItfTblAssignXxlbDowload item : addRec){
                 if (oldSysDictRecMap.containsKey(String.valueOf(item.getLbid())) ||
                         dictcodes.contains(String.valueOf(item.getLbid()))){
+                    upXxlb(updateSysDict, oldSysDictRecMap, item);
+                } else {
                     addXxlb(addSysDict, item);
                     dictcodes.add(String.valueOf(item.getLbid()));
-                } else {
-                    upXxlb(updateSysDict, oldSysDictRecMap, item);
                 }
             }
         }
@@ -474,10 +474,10 @@ public class GLPPXuQiuLeiBieServiceImpl implements GLPPXuQiuLeiBieService {
             for (ItfTblAssignXxlbDowload item : updateRec){
                 if (oldSysDictRecMap.containsKey(String.valueOf(item.getLbid())) ||
                         dictcodes.contains(String.valueOf(item.getLbid()))){
+                    upXxlb(updateSysDict, oldSysDictRecMap, item);
+                } else {
                     addXxlb(addSysDict, item);
                     dictcodes.add(String.valueOf(item.getLbid()));
-                } else {
-                    upXxlb(updateSysDict, oldSysDictRecMap, item);
                 }
             }
         }