Commit ba02730b by huluobin

预约修改

parent 35fa6c12
......@@ -758,7 +758,7 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleManageDTO.getScheduledUser(),
scheduleManageDTO.getArriveTime(),
baseServe.getSchTypeId(),
scheduleServeCommand.getId());
scheduleServeCommand.getServeId());
if (ListUtil.isNotEmpty(typeConflictScheduleServe)) {
throw new RRException("同类型服务一天只能预约一次");
}
......
......@@ -12,5 +12,5 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> {
List<ScheduleServe> selectConflictType(@Param("scheduledUser") Integer scheduledUser,
@Param("days") Date days,
@Param("schTypeId") Integer schTypeId,
@Param("scheduleServeId") Integer scheduleServeId);
@Param("serveId") Integer serveId);
}
......@@ -13,8 +13,8 @@
and TO_DAYS(t1.start_time) = TO_DAYS(#{days})
and t1.main_serve_id is null
and t2.`status` = 1
<if test="scheduleServeId!=null">
and t1.id != #{scheduleServeId}
<if test="serveId!=null">
and t1.serve_id != #{serveId}
</if>
</select>
......
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