yaozhixue 1 年之前
父节点
当前提交
a687a19a3d

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

@@ -1141,9 +1141,10 @@ public class AddRepairBusinessServiceImpl implements AddRepairBusinessService {
 
         // 消息来源不能为空,为空时默认电话
         if (StringUtils.isEmpty(upOrder.getInfoSource())){
-            upOrder.setInfoSource("电话");
+            upOrder.setInfoSource("总部");
+            upOrder.setInfoSourceId(baseService.getxxly(upOrder.getInfoSource()));
         }
-        upOrder.setInfoSourceId(baseService.getxxly(upOrder.getInfoSource()));
+
 
         upOrder.setId(oldOrder.getId());
         upOrder.setOutUpdateSynReqId(item.getSynReqId());
@@ -2829,9 +2830,10 @@ public class AddRepairBusinessServiceImpl implements AddRepairBusinessService {
 
         // 消息来源不能为空,为空时默认电话
         if (StringUtils.isEmpty(order.getInfoSource())){
-            order.setInfoSource("电话");
+            order.setInfoSource("总部");
+            order.setInfoSourceId(baseService.getxxly(order.getInfoSource()));
         }
-        order.setInfoSourceId(baseService.getxxly(order.getInfoSource()));
+
 
         // 部分属性值重置
         orderService.setParame(brand, order, item);

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

@@ -98,9 +98,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderBaseMapper, OrderBase> im
 
         // 消息来源不能为空,为空时默认电话
         if (StringUtils.isEmpty(orderBase.getInfoSource())){
-            orderBase.setInfoSource("电话");
+            orderBase.setInfoSource("总部");
+            orderBase.setInfoSourceId(baseService.getxxly(orderBase.getInfoSource()));
         }
-        orderBase.setInfoSourceId(baseService.getxxly(orderBase.getInfoSource()));
+        // orderBase.setInfoSourceId(baseService.getxxly(orderBase.getInfoSource()));
 
         // 设置网点信息
         setWebsit(item, orderBase);
@@ -427,9 +428,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderBaseMapper, OrderBase> im
 
         // 消息来源不能为空,为空时默认电话
         if (StringUtils.isEmpty(orderBase.getInfoSource())){
-            orderBase.setInfoSource("电话");
+            orderBase.setInfoSource("总部");
+            orderBase.setInfoSourceId(baseService.getxxly(orderBase.getInfoSource()));
         }
-        orderBase.setInfoSourceId(baseService.getxxly(orderBase.getInfoSource()));
 
         // 设置网点信息
         setWebsit(item, orderBase);