package com.openhis.workflow.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.medication.dto.AdjustPriceMedListDto;
import com.openhis.workflow.domain.ActivityDefinition;
import com.openhis.workflow.dto.ActivityDto;

/**
 * 诊疗定义管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface ActivityDefinitionMapper extends BaseMapper<ActivityDefinition> {

    /**
     * 查询指定诊疗的-诊疗定义id
     *
     * @param activityName 诊疗名称
     * @return 诊疗定义id
     */
    Long getAppointActivityDefinitionId(@Param("activityName") String activityName,
        @Param("status") Integer status);
    /**
     * Desc: 根据 项目id数组 加载 诊疗数据集合
     * @param itemIds
     * @Author raymond
     * @Date 12:20 2025/10/18
     * @return java.util.List<com.openhis.workflow.domain.ActivityDefinition>
     **/
    List<ActivityDto> searchActivityDefinitionByIds(@Param("itemIds") List<Long> itemIds);
    /**
     * Desc: 根据关键字查询 如果关键字为空，查询10条，否则返回查询到的所有
     * @param keyWord
     * @Author raymond
     * @Date 07:53 2025/10/22
     * @return java.util.List<com.openhis.medication.dto.AdjustPriceMedListDto>
     **/
    List<AdjustPriceMedListDto> searchActivityListByKeyWord(@Param("keyWord") String keyWord);

}