Commit c32b67d1 by levphon

工单同步接口

1 parent 1a1f7607
...@@ -6,6 +6,7 @@ import cn.com.glsx.stdinterface.modules.util.MD5Util; ...@@ -6,6 +6,7 @@ import cn.com.glsx.stdinterface.modules.util.MD5Util;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.glsx.plat.common.utils.DateUtils; import com.glsx.plat.common.utils.DateUtils;
import com.glsx.plat.common.utils.HttpUtils; import com.glsx.plat.common.utils.HttpUtils;
import com.glsx.plat.common.utils.StringUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
...@@ -58,7 +59,7 @@ public class BhgBizService { ...@@ -58,7 +59,7 @@ public class BhgBizService {
map.put("carOwner", woVehicle.getLesseeName() != null ? woVehicle.getLesseeName().trim() : "--"); map.put("carOwner", woVehicle.getLesseeName() != null ? woVehicle.getLesseeName().trim() : "--");
map.put("carOwnerPhone", woVehicle.getLesseePhone() != null ? woVehicle.getLesseePhone().trim() : ""); map.put("carOwnerPhone", woVehicle.getLesseePhone() != null ? woVehicle.getLesseePhone().trim() : "");
map.put("vinNo", woVehicle.getVin() != null ? woVehicle.getVin().trim() : ""); map.put("vinNo", woVehicle.getVin() != null ? woVehicle.getVin().trim() : "");
map.put("serviceCode", woVehicle.getDeviceCompose() != null ? woVehicle.getDeviceCompose().trim() : ""); map.put("serviceCode", StringUtils.isNotEmpty(woVehicle.getDeviceCompose()) ? "NES" + woVehicle.getDeviceCompose().trim() : "NES000");
map.put("address", workOrder.getServiceAddress() != null ? workOrder.getServiceAddress().trim() : ""); map.put("address", workOrder.getServiceAddress() != null ? workOrder.getServiceAddress().trim() : "");
map.put("expectInstallTime", workOrder.getServiceTime() != null ? DateUtils.format(workOrder.getServiceTime()) : ""); map.put("expectInstallTime", workOrder.getServiceTime() != null ? DateUtils.format(workOrder.getServiceTime()) : "");
map.put("carType", woVehicle.getTypeName() != null ? woVehicle.getTypeName().trim() : "车型未知"); map.put("carType", woVehicle.getTypeName() != null ? woVehicle.getTypeName().trim() : "车型未知");
......
...@@ -354,7 +354,7 @@ public class WorkOrderService { ...@@ -354,7 +354,7 @@ public class WorkOrderService {
//如果是自平台,无需转换 //如果是自平台,无需转换
if (WorkOrderSourceEnum.NE_SHIELD.getCode().equals(orderReq.getOrderSource())) { if (WorkOrderSourceEnum.NE_SHIELD.getCode().equals(orderReq.getOrderSource())) {
return "NES" + woVehicle.getDeviceCompose(); return woVehicle.getDeviceCompose();
} }
if (StringUtils.isNotBlank(deviceCompose) && deviceCompose.endsWith(";")) { if (StringUtils.isNotBlank(deviceCompose) && deviceCompose.endsWith(";")) {
...@@ -405,7 +405,7 @@ public class WorkOrderService { ...@@ -405,7 +405,7 @@ public class WorkOrderService {
} }
private String getBhgServiceCode(String orderSource, String deviceSign) { private String getBhgServiceCode(String orderSource, String deviceSign) {
String serviceCode = "NES"; String serviceCode = "";
if (WorkOrderSourceEnum.ZLGJ.getCode().equals(orderSource)) { if (WorkOrderSourceEnum.ZLGJ.getCode().equals(orderSource)) {
// 保活干那边仲利服务项目目前有这些,但是接口单只有008,009,010 // 保活干那边仲利服务项目目前有这些,但是接口单只有008,009,010
// 有线 + 无线设备(仲利) 008 // 有线 + 无线设备(仲利) 008
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!