package com.yonge.cooleshow.admin.service.impl;

import com.yonge.cooleshow.mbg.mapper.CmsPreferenceAreaMapper;
import com.yonge.cooleshow.mbg.model.CmsPrefrenceArea;
import com.yonge.cooleshow.mbg.model.CmsPrefrenceAreaExample;
import com.yonge.cooleshow.admin.service.CmsPreferenceAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品优选管理Service实现类
 * Created by macro on 2018/6/1.
 */
@Service
public class CmsPreferenceAreaServiceImpl implements CmsPreferenceAreaService {
    @Autowired
    private CmsPreferenceAreaMapper preferenceAreaMapper;

    @Override
    public List<CmsPrefrenceArea> listAll() {
        return preferenceAreaMapper.selectByExample(new CmsPrefrenceAreaExample());
    }
}
