Fix Bug #561: AI修复

This commit is contained in:
2026-05-27 02:20:04 +08:00
parent 9980c30fe4
commit 96cf7339fb
2 changed files with 23 additions and 32 deletions

View File

@@ -74,21 +74,21 @@ public interface OrderMapper {
"FROM outpatient_order o",
"LEFT JOIN treatment_catalog tc ON o.item_code = tc.item_code",
"WHERE o.patient_id = #{patientId}",
"ORDER BY o.id ASC",
"ORDER BY o.create_time DESC",
"LIMIT #{limit} OFFSET #{offset}",
"</script>"
})
List<Map<String, Object>> listOrdersByPatientPaged(@Param("patientId") Long patientId,
@Param("offset") int offset,
List<Map<String, Object>> listOrdersByPatientPaged(@Param("patientId") Long patientId,
@Param("offset") int offset,
@Param("limit") int limit);
/**
* 更新预约订单的支付状态。
*
* @param orderId 预约订单ID
* @param orderId 订单ID
* @param status 支付状态码
* @return 受影响的行数
*/
@Update("UPDATE outpatient_order SET pay_status = #{status} WHERE id = #{orderId}")
int updatePayStatus(@Param("orderId") Long orderId, @Param("status") Integer status);
int updatePayStatus(@Param("orderId") Long orderId, @Param("status") int status);
}