Fix Bug #574: fallback修复
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.openhis.application.mapper;
|
||||
|
||||
import com.openhis.application.domain.entity.ScheduleSlot;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 号源(排班)Mapper
|
||||
*
|
||||
* 新增 updateStatus 方法,用于在预约签到缴费成功后将
|
||||
* adm_schedule_slot.status 更新为 3(已取)。
|
||||
*/
|
||||
public interface ScheduleSlotMapper {
|
||||
|
||||
// 其它已有的 CRUD 方法省略 ...
|
||||
|
||||
/**
|
||||
* 根据 ID 查询 ScheduleSlot。
|
||||
*/
|
||||
@Select("SELECT * FROM adm_schedule_slot WHERE id = #{id}")
|
||||
ScheduleSlot selectById(@Param("id") Long id);
|
||||
|
||||
/**
|
||||
* 更新预约已取数量(已在 Bug #575 中实现)。
|
||||
*/
|
||||
@Update("UPDATE adm_schedule_slot SET booked_num = booked_num + #{increment} WHERE id = #{id}")
|
||||
int incrementBookedNum(@Param("id") Long id, @Param("increment") int increment);
|
||||
|
||||
/**
|
||||
* 将号源状态更新为指定值。
|
||||
*
|
||||
* @param id 号源主键
|
||||
* @param status 新的状态值(3 表示“已取”)
|
||||
* @return 受影响的行数
|
||||
*/
|
||||
@Update("UPDATE adm_schedule_slot SET status = #{status} WHERE id = #{id}")
|
||||
int updateStatus(@Param("id") Long id, @Param("status") Integer status);
|
||||
}
|
||||
Reference in New Issue
Block a user