Commit 4e5abb91 by huluobin

闲时折扣

parent 5c9384a3
......@@ -1175,7 +1175,6 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
//款式做法
scheduleServe.setExplain(baseServe.getExplain());
//计算价格
scheduleServe.calcPriceAndTimeLength();
if (scheduleServe.getLeisureDiscountConfigId() != null) {
......@@ -1186,12 +1185,14 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
localDateTime.toLocalDate());
if (leisureScheduleServeResp != null) {
scheduleServe.setDiscountRate(leisureScheduleServeResp.getDiscountRate());
}
else{
} else {
scheduleServe.setLeisurePrice(null);
scheduleServe.setLeisureDiscountConfigId(null);
}
}
scheduleServe.calcPriceAndTimeLength();
return scheduleServe;
})
//多个美甲师id拆分
......
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