yaozhixue 1 year ago
parent
commit
b5f9494bae

+ 3 - 0
src/main/java/com/zfire/jiasm/syncdata/response/WebsitFWS.java

@@ -20,6 +20,9 @@ public class WebsitFWS {
     // 服务商网点联系电话
     private String wdlxdh="";
 
+    // 服务商网点负责人手机号
+    private String wdfzrsjh="";
+
     // 该字段存放品牌方的网点系统编号不需要转成平台的
     private String brandSysWebsitNumber="";
 

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

@@ -1801,7 +1801,7 @@ public class AddRepairBusinessServiceImpl implements AddRepairBusinessService {
                 fs.setFsma(String.valueOf(random.nextInt(10000)));
                 fs.setFsnr("您收到一张客户的投诉工单,请及时处理!工单号:" + String.valueOf(order.getPgid()) +
                         ",服务人员:" + order.getWorkerName()+ ",首次申诉截止时间:" + sdf.format(jzDate));
-                fs.setSjid(websitFWS.getWdlxdh());
+                fs.setSjid(websitFWS.getWdfzrsjh());
                 fs.setYhlb(1);
                 fsList.add(fs);
             }

+ 22 - 5
src/main/java/com/zfire/jiasm/syncdata/service/impl/PublicServiceImpl.java

@@ -2972,13 +2972,30 @@ public class PublicServiceImpl implements PublicService {
                 .one();
 
         if (websit != null){
+            setPhone(req, websit);
+            setDh(req, websit);
+        }
+    }
+
+    private void setDh(WebsitFWS req, Websit websit) {
+        if (StringUtils.isNotEmpty(websit.getHotline())){
+            req.setWdlxdh(websit.getHotline());
+        } else if (StringUtils.isNotEmpty(websit.getOfficePhone())){
+            req.setWdlxdh(websit.getOfficePhone());
+        }
+        if (StringUtils.isNotEmpty(websit.getWebsitName())){
+            req.setWdmc(websit.getWebsitName());
+        }
+    }
+
+    private void setPhone(WebsitFWS req, Websit websit) {
+        if (StringUtils.isNotEmpty(websit.getPhone())){
+            req.setWdfzrsjh(websit.getPhone());
+        } else {
             if (StringUtils.isNotEmpty(websit.getHotline())){
-                req.setWdlxdh(websit.getHotline());
+                req.setWdfzrsjh(websit.getHotline());
             } else if (StringUtils.isNotEmpty(websit.getOfficePhone())){
-                req.setWdlxdh(websit.getOfficePhone());
-            }
-            if (StringUtils.isNotEmpty(websit.getWebsitName())){
-                req.setWdmc(websit.getWebsitName());
+                req.setWdfzrsjh(websit.getOfficePhone());
             }
         }
     }