package com.ibeetl.admin.console.dao;

import com.ibeetl.admin.core.entity.CoreOrg;
import com.ibeetl.admin.core.entity.CoreUser;
import java.util.List;
import org.beetl.sql.core.page.PageRequest;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.Select;
import org.beetl.sql.mapper.annotation.SqlResource;

@SqlResource("console.org")
public interface OrgConsoleDao extends BaseMapper<CoreOrg> {

  PageResult<CoreOrg> queryByCondtion(PageRequest<CoreOrg> query);

  @Select
  PageResult queryUserByCondtion(PageRequest<CoreUser> query);

  void batchDelByIds(@Param(value = "ids") List<Long> ids);
}
