Commit 0ae68e3b authored by liudong1993's avatar liudong1993

定时器调整

parent e54b1288
......@@ -831,7 +831,7 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
foreach (var Order in OrderList)
{
var omodel = goods_OrderRepository.GetEntity(Order.OrderId);
if (omodel.ReceivingTime.HasValue)
if (omodel.ReceivingTime.HasValue && omodel.OrderId > 80622)
{
if (item.AfterTime > 0)
{
......@@ -995,7 +995,7 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
if (Convert.ToDateTime(item.StartTime.Value.AddDays(item.IntervalDay ?? 0).ToString("yyyy-MM-dd 00:00:00")) <= Convert.ToDateTime(System.DateTime.Now.ToString("yyyy-MM-dd 00:00:00")))//判断开始时间加上执行周期是否等于当前日期
{
//startDate = item.StartTime.Value;
startDate = Convert.ToDateTime("2020-07-01");
startDate = Convert.ToDateTime("2020-07-03");
addFinance = true;
}
}
......@@ -1018,6 +1018,17 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
{
OrderRefundFinanceModule(olist, afterlist);
}
else {
//没有 创建一条记录 财务单据为0的记录
RB_Finance_Record_Extend record = new RB_Finance_Record_Extend();
record.MallBaseId = item.MallBaseId;
record.TenantId = item.TenantId;
record.Type = 3;
record.CreateDate = System.DateTime.Now;
record.FinanceId = 0;
record.RecordDetailList = new List<RB_Finance_RecordDetail>();
int recordId = financeRecordRepository.Insert(record);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment