Fix Bug #544: fallback修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user