package org.gyk.modules.lssj.cxcsssjbjchuzhijilu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.gyk.modules.lssj.cxcsssjbjchuzhijilu.entity.CxcSssjBjChuzhijilu;

import java.util.List;

/**
 * @Description: 实时数据报警处置记录
 * @Author: jeecg-boot
 * @Date:   2023-10-17
 * @Version: V1.0
 */
@Mapper
public interface CxcSssjBjChuzhijiluMapper extends BaseMapper<CxcSssjBjChuzhijilu> {
    @Select("select org_code from sys_depart where id IN ( select dep_id from sys_user_depart where user_id = #{userid} )")
    public List<String> queryOrgCode (@Param("userid") String userid);
}
