Fix Bug #574: fallback修复
This commit is contained in:
28
com/openhis/web/outpatient/mapper/RegistrationMapper.java
Normal file
28
com/openhis/web/outpatient/mapper/RegistrationMapper.java
Normal file
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user