Commit 1a56ea6d authored by liudong1993's avatar liudong1993

下单调整

parent a626b2ce
......@@ -1386,9 +1386,13 @@ namespace Mall.Module.Product
demodel.PaymentWay = OrderPaymentTypeEnum.OnlinePayment;//先默认在线支付
demodel.Remark ??= "";
demodel.ApplyForCancelStatus ??= 0;
if (demodel.Income == 0) {
demodel.OrderStatus = OrderStatusEnum.WaitSendGoods;
if (demodel.Income == 0)
{
demodel.OrderStatus = OrderStatusEnum.Completed;
demodel.PaymentTime = DateTime.Now;
demodel.DeliveryTime = DateTime.Now;
demodel.ReceivingTime = DateTime.Now;
demodel.FinishTime = DateTime.Now;
}
int OrderId = goods_OrderRepository.Insert(demodel, trans);
if (OrderId > 0)
......
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