package cn.hmsoft.frame.data.dao;

import java.util.List;
import org.springframework.stereotype.Repository;
import cn.hmsoft.frame.data.model.FrameOptrRole;
import cn.hmsoft.frame.data.model.FrameRole;
import cn.hmsoft.jdbc.core.PlatformDaoSupport;

@Repository
public class FrameOptrRoleDao extends PlatformDaoSupport<FrameOptrRole> {

	public List<FrameRole> listOptrRole(int optr_id) {
		String sql = "select ro.* from frame_role ro, frame_optr_role op where op.role_id=ro.role_id and op.optr_id=? order by role_id";
		return this.listBySql(FrameRole.class, sql, optr_id);
	}
}
