From a40ece69fa55cbf2b8d1a20984e27f1bcee76f13 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Tue, 9 Aug 2022 23:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=9D=E8=B4=B9=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/cweb/controller/HighOrderController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()); }