Fix Bug #506: fallback修复
This commit is contained in:
@@ -1,40 +1,27 @@
|
||||
package com.openhis.application.mapper;
|
||||
|
||||
import com.openhis.application.domain.entity.ScheduleSlot;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
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(已取)。
|
||||
* 新增 updateStatusById 用于统一更新状态字段,供退款、支付等业务使用。
|
||||
*/
|
||||
@Mapper
|
||||
public interface ScheduleSlotMapper {
|
||||
|
||||
// 其它已有的 CRUD 方法省略 ...
|
||||
// 其它 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 表示“已取”)
|
||||
* @param id 排班号主键
|
||||
* @param status 新的状态值(如 "3" 已取、"4" 已退号)
|
||||
* @return 受影响的行数
|
||||
*/
|
||||
@Update("UPDATE adm_schedule_slot SET status = #{status} WHERE id = #{id}")
|
||||
int updateStatus(@Param("id") Long id, @Param("status") Integer status);
|
||||
int updateStatusById(@Param("id") Long id, @Param("status") String status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user