package cn.common.repository.repository;

import cn.common.repository.entity.MonitorRecord;
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 MonitorRecordRepository extends BaseRepository<MonitorRecord> {



    /**
    * 根据业务主键批量删除
    * @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 monitor_record WHERE 1=1 AND  " +
        " monitor_record_id IN " +
        " <foreach collection='mainIdList' item= 'item' index= 'index' open='(' separator=',' close=')' >" +
        "   #{item} " +
        " </foreach>" +
        "</script>"
        )
    void batchDeleteItem(@Param("mainIdList") List<String> mainIdList);*/

}
