package cn.hmsoft.weixin.data.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import cn.hmsoft.jdbc.core.PlatformDaoSupport;
import cn.hmsoft.weixin.data.model.WxMenuDefine;

@Component
public class WxMenuDefineDao extends PlatformDaoSupport<WxMenuDefine> {

	private final static String QUERY_ALL_SQL = "select * from wx_menu_define where wx_id=? order by menu_key";

	public List<WxMenuDefine> listMenu(int wx_id) {
		return this.listBySql(WxMenuDefine.class, QUERY_ALL_SQL, wx_id);
	}
}