package com.rongwei.bscommon.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rongwei.bsentity.domain.EquDisposalRequestDo;
import com.rongwei.rwadmincommon.system.domain.SysUserDo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EquipmentDisposeDao extends BaseMapper<EquDisposalRequestDo> {
    @Select({
            "<script>",
            "SELECT `NAME`, EMAIL FROM sys_user WHERE DELETED = '0' AND id IN",
            "<foreach item='item' collection='ids' open='(' separator=',' close=')'>",
            "#{item}",
            "</foreach>",
            "</script>"
    })
    List<SysUserDo> selectEmailList(@Param("ids") String[] ids);
}
