Commit 8ad7af8a by huluobin

款式服务不相同的过滤

parent 2bbcde36
......@@ -1299,9 +1299,13 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleServe.setServeType(baseType.getName());
scheduleServe.setServeNumber(1);
//如果是预约款式
if (scheduleServe.getProduceId() != null) {
BaseProduce baseProduce = baseProduceMapper.selectById(scheduleServe.getProduceId());
if (!baseProduce.getServiceId().equals(scheduleServeCommand.getServeId())) {
throw new RRException("款式不属于当前服务,请重新选择");
}
//款式名称
scheduleServe.setProduceName(baseProduce.getName());
//款式图片
......
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