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