80 lines
1.8 KiB
C#
80 lines
1.8 KiB
C#
using dccdc.DAL;
|
|
using dccdc.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace dccdc.BLL
|
|
{
|
|
public class InfectionRedBll
|
|
{
|
|
InfectionRedDal dal = new InfectionRedDal();
|
|
|
|
public List<InfectionRedModel> GetRedList()
|
|
{
|
|
return dal.GetRedList();
|
|
}
|
|
|
|
public int InsertRed(InfectionRedModel model)
|
|
{
|
|
return dal.InsertRed(model);
|
|
}
|
|
|
|
|
|
public int UpdateState(string id,string send_listid)
|
|
{
|
|
return dal.UpdateState(id,send_listid);
|
|
}
|
|
|
|
public List<InfectionRedModel> GetDataByTypeTime(int page, int pagesize, string start, string end, string type,string status)
|
|
{
|
|
return dal.GetDataByTypeTime(page, pagesize, start, end, type,status);
|
|
}
|
|
|
|
public int GetDataCount(string start, string end, string type,string status)
|
|
{
|
|
return dal.GetDataCount(start, end, type,status);
|
|
}
|
|
|
|
//获取未领取红包
|
|
public List<InfectionRedModel> GetUnreceived()
|
|
{
|
|
return dal.GetUnreceived();
|
|
}
|
|
|
|
//更新红包领取状态
|
|
public int UpdateStatus(int id,int status, string receive_date)
|
|
{
|
|
return dal.UpdateStatus(id, status,receive_date);
|
|
}
|
|
|
|
public int getMonthOne()
|
|
{
|
|
return dal.getMonthOne();
|
|
}
|
|
|
|
public int getMonthTwo()
|
|
{
|
|
return dal.getMonthTwo();
|
|
}
|
|
|
|
public int getAllOne()
|
|
{
|
|
return dal.getAllOne();
|
|
}
|
|
|
|
public int redToday(string openid)
|
|
{
|
|
return dal.redToday(openid);
|
|
}
|
|
|
|
public double redAllToday()
|
|
{
|
|
return dal.redAllToday();
|
|
}
|
|
|
|
}
|
|
}
|