Fix Bug #575: fallback修复

This commit is contained in:
2026-05-27 05:01:34 +08:00
parent cbb9be45e7
commit 8b1dfbaa7e
3 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package com.openhis.application.mapper;
import com.openhis.application.domain.entity.SchedulePool;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
/**
* SchedulePool 数据访问层
*
* 新增方法 incrementBookedNum 用于在预约成功后原子递增 booked_num。
*/
public interface SchedulePoolMapper {
SchedulePool selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(SchedulePool record);
/**
* 原子递增已预约数量booked_num
*
* @param poolId 排班池主键
* @return 受影响的行数
*/
@Update("UPDATE adm_schedule_pool SET booked_num = booked_num + 1 WHERE id = #{poolId}")
int incrementBookedNum(@Param("poolId") Long poolId);
}