|
@@ -250,6 +250,11 @@ public class WorkOrderManageController {
|
|
|
} catch (UnsupportedEncodingException ignored) {
|
|
} catch (UnsupportedEncodingException ignored) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ Truck trucks = truckService.getById(orderVO.getTruckIds());
|
|
|
|
|
+ if (trucks == null) {
|
|
|
|
|
+ return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), "卡车信息不存在");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 保存/更新卸车点
|
|
// 保存/更新卸车点
|
|
|
WorkSpot workSpot = new WorkSpot();
|
|
WorkSpot workSpot = new WorkSpot();
|
|
|
if (orderVO.getSpotId() != null) {
|
|
if (orderVO.getSpotId() != null) {
|
|
@@ -267,11 +272,14 @@ public class WorkOrderManageController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
workSpot.setType(2);
|
|
workSpot.setType(2);
|
|
|
- workSpot.setOrgId(orgId);
|
|
|
|
|
workSpot.setCreater(userId);
|
|
workSpot.setCreater(userId);
|
|
|
workSpot.setCreaterName(userName);
|
|
workSpot.setCreaterName(userName);
|
|
|
workSpot.setCreateDate(LocalDateTime.now());
|
|
workSpot.setCreateDate(LocalDateTime.now());
|
|
|
}
|
|
}
|
|
|
|
|
+ workSpot.setAddress(orderVO.getAddress());
|
|
|
|
|
+ workSpot.setOrgId(orgId);
|
|
|
|
|
+ workSpot.setOrgName(trucks.getOrgName());
|
|
|
|
|
+ workSpot.setOrgShortName(trucks.getOrgShortName());
|
|
|
workSpot.setSpotName(orderVO.getSpotName());
|
|
workSpot.setSpotName(orderVO.getSpotName());
|
|
|
workSpot.setContactName(orderVO.getContactName());
|
|
workSpot.setContactName(orderVO.getContactName());
|
|
|
workSpot.setContactPhone(orderVO.getContactPhone());
|
|
workSpot.setContactPhone(orderVO.getContactPhone());
|