yaozhixue 1 year ago
parent
commit
c05924b526

+ 1 - 1
src/main/java/com/zfire/jiasm/syncdata/service/impl/GLPPWXGQueryAddServiceImpl.java

@@ -384,7 +384,7 @@ public class GLPPWXGQueryAddServiceImpl implements GLPPWXGQueryAddService {
             // 参数 获取网点维修工信息
             getParameter(wxg.getWdno(), wxg.getWxgno(), req);
             // 格力总部查询工程师信息
-            GreeResponseHelper response = greeLogic.greePost(wdqyapi, JSONObject.toJSONString(req), 1);
+            GreeResponseHelper response = greeLogic.greePost(wdqyapi, JSONObject.toJSONString(req), publicService.getCompanyId(wxg.getWdno()));
             if (response.getStatus() == 200){
                 WxgQueryInfo resultDatax = JSONObject.parseObject(response.getData().toString(), WxgQueryInfo.class);
                 // 无信息不处理

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

@@ -16,6 +16,7 @@ import com.zfire.jiasm.syncdata.request.ZJInfo;
 import com.zfire.jiasm.syncdata.response.WangdianWxgVos;
 import com.zfire.jiasm.syncdata.response.WxgQueryInfo;
 import com.zfire.jiasm.syncdata.service.GLPPWXGQueryUpdateService;
+import com.zfire.jiasm.syncdata.service.PublicService;
 import com.zfire.jiasm.syncdata.utils.oss.OSSUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.jetbrains.annotations.NotNull;
@@ -56,6 +57,8 @@ public class GLPPWXGQueryUpdateServiceImpl implements GLPPWXGQueryUpdateService
     SysDictRefService sysDictRefService;
     @Resource
     SysDictService sysDictService;
+    @Resource
+    PublicService publicService;
 
 
 
@@ -121,7 +124,7 @@ public class GLPPWXGQueryUpdateServiceImpl implements GLPPWXGQueryUpdateService
             // 参数
             getParameter(wxg.getWdno(), wxg.getWxgno(), req);
             // 格力总部查询工程师信息
-            GreeResponseHelper response = greeLogic.greePost(wdqyapi, JSONObject.toJSONString(req), 1);
+            GreeResponseHelper response = greeLogic.greePost(wdqyapi, JSONObject.toJSONString(req), publicService.getCompanyId(wxg.getWdno()));
             if (response.getStatus() == 200){
                 WxgQueryInfo resultDatax = JSONObject.parseObject(response.getData().toString(), WxgQueryInfo.class);
                 // 无数据不处理