|
|
|
@ -233,7 +233,6 @@ public class HighOrderController { |
|
|
|
|
log.error("HighOrderController --> addOrder() error!", "未找到用户"); |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.UN_MEMBER_ERROR, ""); |
|
|
|
|
} |
|
|
|
|
highOrder.setPayType(2); // 第三方平台
|
|
|
|
|
childOrder.setGoodsActualPrice(childOrder.getGoodsPrice()); |
|
|
|
|
childOrder.setGoodsName(user.getName()); |
|
|
|
|
childOrder.setGoodsImg(user.getHeaderImg()); |
|
|
|
@ -306,8 +305,6 @@ public class HighOrderController { |
|
|
|
|
log.error("HighOrderController --> addOrder() error!", "未找到门店信息"); |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到门店信息"); |
|
|
|
|
} |
|
|
|
|
highOrder.setPayType(2); // 第三方平台
|
|
|
|
|
|
|
|
|
|
if (highOrder.getIsTyAgent() != null && highOrder.getIsTyAgent().equals(true)) { |
|
|
|
|
// 查询加油站
|
|
|
|
|
HighTyAgentOilStation oilStation = tyAgentOilStationService.getDetailByOilStationId(childOrder.getGoodsId()); |
|
|
|
@ -330,15 +327,15 @@ public class HighOrderController { |
|
|
|
|
childOrder.setGoodsActualPrice(childOrder.getGoodsPrice()); |
|
|
|
|
// 油价信息
|
|
|
|
|
childOrder.setGasPriceGun(priceModel.getPriceGun()); |
|
|
|
|
childOrder.setGasPriceVip(priceModel.getPriceVip()); |
|
|
|
|
childOrder.setGasPriceOfficial(priceModel.getPriceOfficial()); |
|
|
|
|
childOrder.setGasPricePlatform(priceModel.getPriceVip()); |
|
|
|
|
childOrder.setGasPriceVip(priceModel.getPriceGun()); |
|
|
|
|
childOrder.setGasPriceOfficial(new BigDecimal("0")); |
|
|
|
|
childOrder.setGasPricePlatform(priceModel.getPriceGun()); |
|
|
|
|
childOrder.setGasOilLiters(priceModel.getOilLiters()); |
|
|
|
|
childOrder.setGasDiscount(new BigDecimal("0")); |
|
|
|
|
childOrder.setExt1(childOrder.getGasPricePlatform().toString()); |
|
|
|
|
childOrder.setGasOilSubsidy(new BigDecimal("0")); |
|
|
|
|
childOrder.setGasLitersPreferences(new BigDecimal("0")); |
|
|
|
|
childOrder.setGasPricePreferences(priceModel.getPriceVip()); |
|
|
|
|
childOrder.setGasPricePreferences(priceModel.getPriceGun()); |
|
|
|
|
} else { |
|
|
|
|
// 支付价格
|
|
|
|
|
childOrder.setGoodsActualPrice(priceModel.getPayPrice()); |
|
|
|
@ -445,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()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|