Commit 32e8377d by wuwenlong

pack order dev;

parent a11d0a35
......@@ -244,8 +244,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper,SOrder> implemen
//计算订单时长
sOrder.setTimeLong(DateUtils.differentHour(sOrder.getPreStartDate(),sOrder.getPreEndDate()).toString());
if(Objects.nonNull(sOrder.getPackId())&& sOrder.getPackId() != 0){
//TODO 套餐订单,设置套餐金额
sOrder.setPackPrice(new BigDecimal(0));
// 套餐订单,设置套餐金额
SPack pack = packService.getById(sOrder.getPackId());
sOrder.setPackPrice(pack.getPrice());
}
return sOrder;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment