Commit 2a303bfc by huluobin

Merge branch 'master' into branch

# Conflicts:
#	src/main/java/com/gogirl/infrastructure/mapper/order/serve/ScheduleServeMapper.java
parents 0ed909ac 17581c57
...@@ -781,7 +781,8 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper, ...@@ -781,7 +781,8 @@ public class ScheduleManageServiceImpl extends ServiceImpl<ScheduleManageMapper,
scheduleManage.getScheduledUser(), scheduleManage.getScheduledUser(),
scheduleManage.getArriveTime(), scheduleManage.getArriveTime(),
baseServe.getSchTypeId(), baseServe.getSchTypeId(),
scheduleServe.getServeId()); scheduleManage.getId());
if (ListUtil.isNotEmpty(typeConflictScheduleServe)) { if (ListUtil.isNotEmpty(typeConflictScheduleServe)) {
throw new RRException("同类型服务一天只能预约一次"); throw new RRException("同类型服务一天只能预约一次");
} }
......
...@@ -12,7 +12,7 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> { ...@@ -12,7 +12,7 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> {
List<ScheduleServe> selectConflictType(@Param("scheduledUser") Integer scheduledUser, List<ScheduleServe> selectConflictType(@Param("scheduledUser") Integer scheduledUser,
@Param("days") Date days, @Param("days") Date days,
@Param("schTypeId") Integer schTypeId, @Param("schTypeId") Integer schTypeId,
@Param("serveId") Integer serveId); @Param("scheduleId") Integer scheduleId);
/** /**
* 更新服务状态需要更新的预约服务列表 * 更新服务状态需要更新的预约服务列表
...@@ -22,4 +22,6 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> { ...@@ -22,4 +22,6 @@ public interface ScheduleServeMapper extends BaseMapper<ScheduleServe> {
* @return * @return
*/ */
List<ScheduleServe> selectUpdateStatusList(@Param("schId") Integer schId, @Param("serveId") Integer serveId); List<ScheduleServe> selectUpdateStatusList(@Param("schId") Integer schId, @Param("serveId") Integer serveId);
} }
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
and TO_DAYS(t1.start_time) = TO_DAYS(#{days}) and TO_DAYS(t1.start_time) = TO_DAYS(#{days})
and t1.main_serve_id is null and t1.main_serve_id is null
and t2.`status` = 1 and t2.`status` = 1
<if test="serveId!=null"> <if test="scheduleId!=null">
and t1.serve_id != #{serveId} and t2.id != #{scheduleId}
</if> </if>
</select> </select>
<select id="selectUpdateStatusList" resultType="com.gogirl.domain.order.serve.ScheduleServe"> <select id="selectUpdateStatusList" resultType="com.gogirl.domain.order.serve.ScheduleServe">
......
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