Commit 2326fb94 by 王欣伟

Merge branch 'zhongli' of http://192.168.3.233:8090/eshiled-new/ne-shield-standa…

…rd-interfaces into zhongli
2 parents 56a8e926 6c061018
......@@ -10,8 +10,8 @@ import cn.com.glsx.devicemonitor.api.enums.DeviceTypeRelationEnum;
import cn.com.glsx.devicemonitor.api.enums.DeviceWireTypeEnum;
import cn.com.glsx.devicemonitor.api.feign.DeviceFeignService;
import cn.com.glsx.devicemonitor.api.feign.GpsBsFeignService;
import cn.com.glsx.stdinterface.common.constants.Constants;
import cn.com.glsx.notify.dto.MailTemplateMessageDTO;
import cn.com.glsx.stdinterface.common.constants.Constants;
import cn.com.glsx.stdinterface.common.exception.StdInterfaceException;
import cn.com.glsx.stdinterface.dto.*;
import cn.com.glsx.stdinterface.enums.BizServiceTypeEnum;
......@@ -310,8 +310,8 @@ public class WorkOrderService {
recordLogs(workOrder, workOrder.getCreatedBy(), "新增工单");
// 需要安装的工单 发送邮件
if ("Y".equals(orderReq.getNeedInstall())) {
// 非接口单 需要安装的工单 发送邮件
if ("Y".equals(orderReq.getNeedInstall()) && !isApiCall) {
log.info("开始发送邮件===工单Id" + workOrder.getId());
sendMail(workOrder, woVehicle, orderReq.getRootOrg());
}
......@@ -1181,7 +1181,7 @@ public class WorkOrderService {
//查车辆
Vehicle vehicle = vehicleMapper.selectByWorkOrderId(workOrder.getId());
if (vehicle==null) {
if (vehicle == null) {
throw new StdInterfaceException("656565", String.format("工单%s未完成车辆激活", verifyBO.getBizWorkOrderNo()));
}
......@@ -1203,7 +1203,7 @@ public class WorkOrderService {
addressItem.setSn(sn);
addressItem.setSim(deviceDTO.getSim());
addressItem.setDeviceType((deviceDTO.getSource()!=null && deviceDTO.getSource()==Constants.DeviceSource.WIRED) ? "有线设备" : "无线设备");
addressItem.setDeviceType((deviceDTO.getSource() != null && deviceDTO.getSource() == Constants.DeviceSource.WIRED) ? "有线设备" : "无线设备");
GpsBsData gpsBsData = gpsBsDataMap.get(sn);
if (gpsBsData != null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!