package cn.common.repository.repository;

import cn.common.repository.entity.MedicalHistory;
import cn.common.common.repository.BaseRepository;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import java.util.List;

/**
* @author Singer create by singer email:singer-coder@qq.com
* @packageName cn.singer.repository.entity
* @Description: 病历信息->Repository
* @date 2019-08-12
*/
@Mapper
public interface MedicalHistoryRepository extends BaseRepository<MedicalHistory> {



    /**
    * 根据业务主键批量删除
    * @title: AuthRoleRepository.java
    * @author create by Singer - Singer email:singer-coder@qq.com
    * @date 2019/4/28 11:05
    * @param mainIdList 业务主键ID集合
    * @return List

    @Delete(
        "<script>" +
        " DELETE FROM medical_history WHERE 1=1 AND  " +
        " medical_history_id IN " +
        " <foreach collection='mainIdList' item= 'item' index= 'index' open='(' separator=',' close=')' >" +
        "   #{item} " +
        " </foreach>" +
        "</script>"
        )
    void batchDeleteItem(@Param("mainIdList") List<String> mainIdList);*/

}
