package cn.freemud.manager;

import cn.freemud.entities.db.OpenPlatformIappWxappConfigDelivery;
import cn.freemud.manager.dao.OpenPlatformIappWxappConfigDeliveryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @version V1.5.1
 * @Title: OpenPlatformIappWxappConfigDeliveryManager
 * @Package cn.freemud.manager
 * @Description: 简单描述下这个类是做什么用的
 * @author: hang.chai
 * @date: 2018/12/17 16:16
 * @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */

@Component
public class OpenPlatformIappWxappConfigDeliveryManager {

    @Autowired
    private OpenPlatformIappWxappConfigDeliveryDao openPlatformIappWxappConfigDeliveryDao;

    public List<OpenPlatformIappWxappConfigDelivery> findDeliveryConfigByAppid(String wxAppid) {
        OpenPlatformIappWxappConfigDelivery openPlatformIappWxappConfigDelivery = new OpenPlatformIappWxappConfigDelivery();
        openPlatformIappWxappConfigDelivery.setWxAppid(wxAppid);
        return openPlatformIappWxappConfigDeliveryDao.select(openPlatformIappWxappConfigDelivery);
    }
}
