Commit ccf0d23a by huluobin

更新预约服务状态校验

parent 2128aee1
...@@ -618,6 +618,9 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -618,6 +618,9 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
//更新某一个服务状态已完成 //更新某一个服务状态已完成
if (status == 3) { if (status == 3) {
if (scheduleServe.getStatus() != 2) {
throw new RRException("预约服务状态异常");
}
//预约实际结束时间 //预约实际结束时间
updateList.forEach(val -> { updateList.forEach(val -> {
val.setStatus(status); val.setStatus(status);
...@@ -649,6 +652,11 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -649,6 +652,11 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
//开始服务 //开始服务
if (status == 2) { if (status == 2) {
if (scheduleServe.getStatus() != 1) {
throw new RRException("预约服务状态异常");
}
updateList.forEach(val -> { updateList.forEach(val -> {
val.setStatus(status); val.setStatus(status);
val.setActualStartTime(new Date()); val.setActualStartTime(new Date());
......
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