Files
his/com/openhis/web/outpatient/mapper/RegistrationMapper.java
2026-05-27 00:12:25 +08:00

29 lines
864 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.openhis.web.outpatient.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
/**
* 门诊挂号业务数据访问层
*
* 新增:
* 1. updateSlotStatusToPaid 预约签到缴费成功后,将对应号源状态更新为 “3”(已取号)。
*
* 该方法在支付成功后调用,确保号源状态及时流转,修复 Bug #574。
*/
@Mapper
public interface RegistrationMapper {
/**
* 预约签到缴费成功后将号源状态置为已取号status = 3
*
* @param orderId 关联的订单ID
* @return 受影响的行数
*/
@Update("UPDATE adm_schedule_slot " +
"SET status = 3 " +
"WHERE order_id = #{orderId}")
int updateSlotStatusToPaid(@Param("orderId") Long orderId);
}