Commit 9d5bbad5 by huluobin

update

parent 97133da7
......@@ -46,8 +46,6 @@ import com.gogirl.infrastructure.service.push.TechnicianPushService;
import com.gogirl.infrastructure.util.MapDistanceUtils;
import com.gogirl.infrastructure.util.SessionUtils;
import com.gogirl.shared.order.*;
import com.gogirl.shared.order.IdleTimeDTO;
import com.gogirl.shared.order.ScheduleManagePageQuery;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
......@@ -820,20 +818,20 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
/*3、如果是指定美甲师、判断美甲师是否仍然可用*/
//构造路径
// List<TreeProgram> treeProgramList = new ArrayList<>();
// TreeProgram treeProgram = new TreeProgram();
// List<ScheduleServe> scheduleServeList = scheduleManage.getListScheduleServer()
// .stream()
// .filter(scheduleServe -> scheduleServe.getServeId() == null)
// .collect(Collectors.toList());
//
// //方案树
// TreeProgram targetTree = idleTimeDTO.getTreeProgram();
//
// boolean isPath = treeProgram.isSubTree(targetTree);
// if (!isPath) {
// throw new RRException("请重新选择美甲师");
// }
List<TreeProgram> treeProgramList = new ArrayList<>();
TreeProgram treeProgram = new TreeProgram();
List<ScheduleServe> scheduleServeList = scheduleManage.getListScheduleServer()
.stream()
.filter(scheduleServe -> scheduleServe.getServeId() == null)
.collect(Collectors.toList());
//方案树
TreeProgram targetTree = idleTimeDTO.getTreeProgram();
boolean isPath = treeProgram.isSubTree(targetTree);
if (!isPath) {
throw new RRException("请重新选择美甲师");
}
}
}
......
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