package com.cftech.cms.exhibi_vocation.service.impl;

import com.cftech.cms.exhibi_vocation.model.Exhibi_vocation;
import com.cftech.cms.exhibi_vocation.dao.Exhibi_vocationMapper;
import com.cftech.cms.exhibi_vocation.service.Exhibi_vocationService;
import com.cftech.core.generic.GenericDao;
import com.cftech.core.generic.GenericServiceImpl;
import com.cftech.core.sql.Conds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * ServiceImpl
 *
 * @author byj
 * @date: 2018-09-12 15:56
 */
@Service("exhibi_vocationService")
public class Exhibi_vocationServiceImpl extends GenericServiceImpl<Exhibi_vocation> implements Exhibi_vocationService {

    @Autowired
    @Qualifier("exhibi_vocationMapper")
    private Exhibi_vocationMapper exhibi_vocationMapper;

    @Override
    public GenericDao<Exhibi_vocation> getGenericMapper() {
        return exhibi_vocationMapper;
    }

    @Override
    public  Exhibi_vocation selectByConds(Conds conds){
        Map param = new HashMap();
        param.put("conds",conds);
        return exhibi_vocationMapper.selectByConds(param);
    };

}