优化
This commit is contained in:
@ -85,7 +85,8 @@ public class BalanceDeductionJob implements JobHandler {
|
||||
reductionAmount = userService.getReductionAmount(userId, total, dishOrderDO.getCreateTime());
|
||||
}
|
||||
if(dishOrderDO.getReductionAmount().compareTo(BigDecimal.ZERO) > 0){
|
||||
dishOrderDO.setReductionAmount(reductionAmount.add(dishOrderDO.getReductionAmount()));
|
||||
reductionAmount = reductionAmount.add(dishOrderDO.getReductionAmount());
|
||||
dishOrderDO.setReductionAmount(reductionAmount);
|
||||
}else {
|
||||
dishOrderDO.setReductionAmount(reductionAmount);
|
||||
}
|
||||
|
@ -84,11 +84,11 @@ public class OrderDetailServiceImpl implements OrderDetailService {
|
||||
throw exception(ORDER_ALREADY_COMPLETE);
|
||||
}
|
||||
|
||||
//判定餐盘是否绑定并刷新绑定时间
|
||||
Boolean b = diningPlatesService.checkBind(createReqVO.getDiningPlatesNum(), createReqVO.getStoreId());
|
||||
if (!b) {
|
||||
throw exception(DINING_PLATES_NOT_BIND);
|
||||
}
|
||||
////判定餐盘是否绑定并刷新绑定时间
|
||||
//Boolean b = diningPlatesService.checkBind(createReqVO.getDiningPlatesNum(), createReqVO.getStoreId());
|
||||
//if (!b) {
|
||||
// throw exception(DINING_PLATES_NOT_BIND);
|
||||
//}
|
||||
|
||||
DishesRespDto dish = dishesApi.getDish(createReqVO.getDishesId());
|
||||
DishesNutritionRespDTO dishEnergy = dishesNutritionApi.getDishEnergy(createReqVO.getDishesId());
|
||||
|
Reference in New Issue
Block a user