Commit f174bfa6 by levphon

车辆同步接口

1 parent 8b42695d
......@@ -119,7 +119,6 @@ public class WorkOrderService {
workOrder.setServiceExpireTime(DateUtils.addDateMonths(orderReq.getInstallTime(), orderReq.getServicePeriod()));
}
workOrder.setStatus(transOrderStatus(orderReq.getStatus()));
workOrder.setCreatedDate(new Date());
log.info("同步工单主体信息:{}", JSONUtil.toJsonStr(workOrder));
workOrderMapper.insert(workOrder);
......@@ -194,7 +193,7 @@ public class WorkOrderService {
Vehicle existedVehicle = vehicleMapper.selectByWorkOrderId(vehicleBO.getWorkOrderId());
if (existedVehicle != null) {
log.warn("车辆 {} 信息已存在", existedVehicle.getVin());
return null;
throw new StdInterfaceException("214541", String.format("车辆 %s 信息已存在", existedVehicle.getVin()));
}
Vehicle vehicle = VehicleConverter.INSTANCE.swv2do(vehicleBO);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!