package cn.pluss.platform.area.impl;

import java.util.List;
import java.util.Map;
import org.springframework.transaction.annotation.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pluss.platform.entity.Area;
import cn.pluss.platform.leshua.LeshuaArea;
import cn.pluss.platform.area.AreaService;
import cn.pluss.platform.mapper.AreaMapper;

@Transactional
@Service("areaService")
public class AreaServiceImpl  implements AreaService{

	 private static final Logger logger = LoggerFactory.getLogger( AreaServiceImpl.class);


    @Autowired
	  private AreaMapper areaMapper;

    @Override
    public LeshuaArea queryArea(Area area){
        return areaMapper.queryArea(area);
    }

    @Override
    public List<LeshuaArea> queryAreaList(Area area){
        return areaMapper.queryAreaList(area);
    }
    @Override
    public void saveArea(Area area){
          areaMapper.saveArea(area);
    }
    @Override
    public void updateArea(Area area){
        areaMapper.updateArea(area);
    }
    @Override
    public void deleteArea(Area area){
        areaMapper.deleteArea(area);
    }
    @Override
    public List<LeshuaArea> queryAreaPage(Map map){
        return areaMapper.queryAreaPage(map);
    }
    @Override
    public Integer queryAreaPageCount(Map map){
        return areaMapper.queryAreaPageCount(map);
    }
    @Override
    public void saveAreaBatch(List<Area> areaList) {
         areaMapper.saveAreaBatch(areaList);
    }
}

