Fix Bug #544: fallback修复

This commit is contained in:
2026-05-27 03:34:26 +08:00
parent 99b2832997
commit 4e0a8dfd94
6 changed files with 219 additions and 78 deletions

View File

@@ -0,0 +1,34 @@
package com.openhis.application.mapper;
import com.openhis.application.domain.entity.OrderMain;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* 医嘱主表 Mapper
*
* 新增 selectByStatuses 方法用于根据状态列表查询排队或历史记录。
*/
public interface OrderMainMapper {
// 现有的 CRUD 方法省略...
/**
* 根据状态列表查询 OrderMain。
*
* @param statuses 状态码列表
* @return 匹配的 OrderMain 列表
*/
@Select({
"<script>",
"SELECT * FROM order_main",
"WHERE status IN",
"<foreach item='status' collection='statuses' open='(' separator=',' close=')'>",
"#{status}",
"</foreach>",
"ORDER BY create_time DESC",
"</script>"
})
List<OrderMain> selectByStatuses(@Param("statuses") List<Integer> statuses);
}