diff --git a/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java b/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java index 443ae707..e90bb844 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java @@ -442,10 +442,11 @@ public class HighOrderController { } } - SecRegion region = commonService.getParentByRegion(Long.valueOf(request.getHeader("regionId"))); - BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString()); - if (bsCompany != null) { + + if (request.getHeader("regionId") != null) { + SecRegion region = commonService.getParentByRegion(Long.valueOf(request.getHeader("regionId"))); + BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString()); highOrder.setCompanyId(bsCompany.getId()); }