58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
using System;
|
|
using System.Data;
|
|
using WX.CRM.DAL.Wx;
|
|
using WX.CRM.IBLL.Wx;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace WX.CRM.BLL.Wx
|
|
{
|
|
public class WX_BONUSSALEUSER_BL : DbContextRepository<WX_BONUSSALEUSER>, IWX_BONUSSALEUSER
|
|
{
|
|
private readonly WX_BONUSSALEUSER_DAL _dal = new WX_BONUSSALEUSER_DAL();
|
|
public DataSet GetAchievementWeek(DateTime week)
|
|
{
|
|
return _dal.GetAchievementWeek(week);
|
|
}
|
|
|
|
public DataSet GetAchievementMonth(DateTime month)
|
|
{
|
|
return _dal.GetAchievementMonth(month);
|
|
}
|
|
|
|
public DataSet GetOrderCountWeek(DateTime week)
|
|
{
|
|
return _dal.GetOrderCountWeek(week);
|
|
}
|
|
|
|
public DataSet GetOrderCountMonth(DateTime month)
|
|
{
|
|
return _dal.GetOrderCountMonth(month);
|
|
}
|
|
|
|
public DataSet GetOrderPayMax(DateTime month)
|
|
{
|
|
return _dal.GetOrderPayMax(month);
|
|
}
|
|
|
|
public DataSet GetNewEntryOpenOrder()
|
|
{
|
|
return _dal.GetNewEntryOpenOrder();
|
|
}
|
|
|
|
public DataSet GetGrouperBonusWeek(DateTime week)
|
|
{
|
|
return _dal.GetGrouperBonusWeek(week);
|
|
}
|
|
|
|
public bool SaveBonusSaleUser(decimal saveType, DateTime monthWeek, decimal operatorid, string operatorname)
|
|
{
|
|
if (Exists(p => p.TYPE == saveType && p.MONTHWEEK == monthWeek))
|
|
{
|
|
return false;
|
|
}
|
|
_dal.SaveBonusSaleUser(saveType, monthWeek, operatorid, operatorname);
|
|
return true;
|
|
}
|
|
}
|
|
}
|