Commit cb4c402c by huluobin

预约款式时间计算

parent b8c557b5
...@@ -256,7 +256,11 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -256,7 +256,11 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
.map(scheduleServe -> { .map(scheduleServe -> {
ScheduleServeQuery scheduleServeQuery = new ScheduleServeQuery(); ScheduleServeQuery scheduleServeQuery = new ScheduleServeQuery();
BeanUtils.copyProperties(scheduleServe, scheduleServeQuery); BeanUtils.copyProperties(scheduleServe, scheduleServeQuery);
scheduleServeQuery.setLengthTimeForEndTime(baseServeMapper.selectById(scheduleServe.getServeId()).getServiceDuration()); if (scheduleServe.getProduceId() == null) {
scheduleServeQuery.setLengthTimeForEndTime(baseServeMapper.selectById(scheduleServe.getServeId()).getServiceDuration());
} else {
scheduleServeQuery.setLengthTimeForEndTime(baseProduceMapper.selectById(scheduleServe.getProduceId()).getServiceDuration());
}
BaseServe baseServe = baseServeMapper.selectById(scheduleServe.getServeId()); BaseServe baseServe = baseServeMapper.selectById(scheduleServe.getServeId());
log.debug("-------,{}", baseServe.toString()); log.debug("-------,{}", baseServe.toString());
scheduleServeQuery.setServePicturePath(baseServe.getPicturePath()); scheduleServeQuery.setServePicturePath(baseServe.getPicturePath());
......
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