修改区域公司

dev-discount
袁野 2 years ago
parent cb8d24c927
commit caa49e8473
  1. 9
      hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java

@ -461,8 +461,13 @@ public class HighOrderController {
if (request.getHeader("regionId") != null && request.getHeader("regionId").length() != 0) { if (request.getHeader("regionId") != null && request.getHeader("regionId").length() != 0) {
SecRegion region = commonService.getParentByRegion(Long.valueOf(request.getHeader("regionId"))); SecRegion region = commonService.getParentByRegion(Long.valueOf(request.getHeader("regionId")));
BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString()); if (region != null) {
highOrder.setCompanyId(bsCompany.getId()); BsCompany bsCompany = bsCompanyService.selectCompanyByRegion(region.getRegionId().toString());
if (bsCompany != null) {
highOrder.setCompanyId(bsCompany.getId());
}
}
} }
highOrder.setMerchId(request.getHeader("mchId")); highOrder.setMerchId(request.getHeader("mchId"));

Loading…
Cancel
Save