Fix Bug #575: fallback修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user