package com.iamberry.wechat.service.system.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.iamberry.wechat.core.entity.admin.ShopSystemRule;
import com.iamberry.wechat.service.mapper.SystemMapper;
import com.iamberry.wechat.service.system.dao.SystemDao;

@Repository
public class SystemDaoImpl implements SystemDao {

	@Autowired
	private SystemMapper systemMapper;

	@Override
	public ShopSystemRule selectOneShopRuleById(Integer id) {
		// TODO Auto-generated method stub
		return systemMapper.selectOneShopRuleById(id);
	}
	
	/**
	 * 查询所有系统规则
	 * 2016年5月4日
	 */
	public List<ShopSystemRule> selectAllShopRule(){
		return systemMapper.selectAllShopRule();
	}
}
