## Fix - 【H5】复购专区下单时缺少最高2w业绩的限制[http://47.94.148.201:8081/index.php?m=bug&f=view&bugID=456]
This commit is contained in:
parent
48a6628a0e
commit
d299596879
|
|
@ -433,6 +433,7 @@ public class ApiRetailOrderController {
|
||||||
@PostMapping("/confirm-other-order")
|
@PostMapping("/confirm-other-order")
|
||||||
public AjaxResult confirmOtherOrder(@Valid @RequestBody RetailOrderOtherParam orderParam,
|
public AjaxResult confirmOtherOrder(@Valid @RequestBody RetailOrderOtherParam orderParam,
|
||||||
@RequestHeader("Source") Integer source) {
|
@RequestHeader("Source") Integer source) {
|
||||||
|
Integer sourceSpecialArea = orderParam.getSpecialArea();
|
||||||
// 设置数据来源
|
// 设置数据来源
|
||||||
orderParam.setSource(source);
|
orderParam.setSource(source);
|
||||||
// 会员ID
|
// 会员ID
|
||||||
|
|
@ -454,7 +455,7 @@ public class ApiRetailOrderController {
|
||||||
// 确认订单
|
// 确认订单
|
||||||
String str = iRetailOrderService.confirmOtherOrder(orderParam);
|
String str = iRetailOrderService.confirmOtherOrder(orderParam);
|
||||||
SaOrderExt saOrder = redisService.getCacheObject(CacheConstants.RETAIL_TEMP_ORDER + orderParam.getPkCreator() + orderParam.getOrderCode());
|
SaOrderExt saOrder = redisService.getCacheObject(CacheConstants.RETAIL_TEMP_ORDER + orderParam.getPkCreator() + orderParam.getOrderCode());
|
||||||
if (ESpecialArea.RETAIL_UPGRADE.getValue() == orderParam.getSpecialArea() && saOrder.getOrderAchieve().compareTo(RetailConstants.SPECIAL_AREA_41_MAX_ORDER_AMOUNT) > 0) {
|
if (ESpecialArea.RETAIL_UPGRADE.getValue() == sourceSpecialArea && saOrder.getOrderAchieve().compareTo(RetailConstants.SPECIAL_AREA_41_MAX_ORDER_AMOUNT) > 0) {
|
||||||
redisService.deleteObject(CacheConstants.RETAIL_TEMP_ORDER + orderParam.getPkCreator() + orderParam.getOrderCode());
|
redisService.deleteObject(CacheConstants.RETAIL_TEMP_ORDER + orderParam.getPkCreator() + orderParam.getOrderCode());
|
||||||
return AjaxResult.error("订单业绩超过" + RetailConstants.SPECIAL_AREA_41_MAX_ORDER_AMOUNT + "上限");
|
return AjaxResult.error("订单业绩超过" + RetailConstants.SPECIAL_AREA_41_MAX_ORDER_AMOUNT + "上限");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue