package com.sw.mes.yb.spc.app.dao;

import com.sw.mes.core.base.BaseDao;
import com.sw.mes.yb.spc.app.entity.AppPermission;

/**
 * @Author
 * @Description：
 * @Date:
 * @Modified By:
 */
public interface AppPermissionDao extends BaseDao<AppPermission, Integer> {

    /**
     * 去重查询
     *
     * @param roleId
     * @param permission
     * @param moduleName
     * @return
     */
    AppPermission findByRoleIdAndPermissionAndModuleNameAndType(Integer roleId, String permission, String moduleName, Integer type);

}
