package com.huiju.estateagents.service;

import com.huiju.estateagents.base.ResponseBean;
import com.huiju.estateagents.bo.request.ActivityStatisticResponseBO;
import com.huiju.estateagents.mapper.ActivityManageMapper;
import com.huiju.estateagents.service.impl.ActivityManageServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gusy
 * @date 2020/4/26 11:14
 */
@Service
public class IActivityManageService implements ActivityManageServiceImpl {

    @Autowired
    private ActivityManageMapper activityManageMapper;

    @Override
    public ResponseBean getStatisticDataByType(String type, String id,Integer orgId) {
        ResponseBean responseBean = new ResponseBean();
        ActivityStatisticResponseBO responseBO = activityManageMapper.getStatisticDataByType(type, id,orgId);
        responseBean.addSuccess(responseBO);
        return responseBean;
    }
}
