package com.pcloud.book.applet.dao.impl;

import com.pcloud.book.applet.entity.AppletSubscribeSend;
import com.pcloud.book.applet.dao.AppletSubscribeSendDao;
import com.pcloud.common.core.dao.BaseDaoImpl;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * (AppletSubscribeSend)表数据库访问层
 *
 * @author wubo 
 * @since 2022-05-24 15:59:27
 */
@Repository("appletSubscribeSendDaoImpl")
public class AppletSubscribeSendDaoImpl extends BaseDaoImpl<AppletSubscribeSend> implements AppletSubscribeSendDao {
    public int softDeleteById(Long id) {
             return getSessionTemplate().update(getStatement("softDeleteById"), id);

    }

    @Override
    public List<Long> getAllUserIds() {
        return getSessionTemplate().selectList(getStatement("getAllUserIds"));
    }
}
