|
@@ -41,13 +41,13 @@ namespace MySystem
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
DateTime online = DateTime.Parse("2024-06-25 00:00:00");
|
|
|
DateTime end = DateTime.Parse("2025-01-01 00:00:00");
|
|
|
- DateTime leftTime = DateTime.Now.AddDays(-30);
|
|
|
- DateTime rightTime = DateTime.Now.AddDays(-7);
|
|
|
if(DateTime.Now > end) return;
|
|
|
- List<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.BindingState == 1 && m.ActivationState == 1 && m.BindingTime >= online && m.BindingTime >= leftTime && m.BindingTime <= rightTime && (m.BrandId == 12 || m.BrandId == 13) && m.Sort == 0).ToList();
|
|
|
+ List<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.BindingState == 1 && m.ActivationState == 1 && m.BindingTime >= online && (m.BrandId == 12 || m.BrandId == 13) && m.Sort == 0).ToList();
|
|
|
foreach (PosMachinesTwo pos in posList)
|
|
|
{
|
|
|
function.WriteLog(str: "机具号:" + pos.PosSn, "盒力四射加码奖励日志");
|
|
|
+ DateTime leftTime = pos.BindingTime.Value.AddDays(7);
|
|
|
+ DateTime rightTime = pos.BindingTime.Value.AddDays(30);
|
|
|
decimal amt = 0;
|
|
|
DataTable dt = CustomerSqlConn.dtable("select sum(TradeAmount) from PosMerchantTradeSummay where TradeDate>='" + leftTime.ToString("yyyyMMdd") + "' and TradeDate<='" + rightTime.ToString("yyyyMMdd") + "' and MerchantId=" + pos.BindMerchantId + "", MysqlConn.ReadSqlConnStr);
|
|
|
if(dt.Rows.Count > 0)
|