|
@@ -291,7 +291,7 @@ namespace MySystem
|
|
|
|
|
|
public void SendMqOrder(Orders order)
|
|
public void SendMqOrder(Orders order)
|
|
{
|
|
{
|
|
- RedisDbconn.Instance.AddList("KxsOrderQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MqOrder()
|
|
|
|
|
|
+ string data = Newtonsoft.Json.JsonConvert.SerializeObject(new MqOrder()
|
|
{
|
|
{
|
|
id = order.Id,
|
|
id = order.Id,
|
|
status = order.Status,
|
|
status = order.Status,
|
|
@@ -300,13 +300,13 @@ namespace MySystem
|
|
remark = order.Remark,
|
|
remark = order.Remark,
|
|
buyCount = order.BuyCount,
|
|
buyCount = order.BuyCount,
|
|
payStatus = order.PayStatus,
|
|
payStatus = order.PayStatus,
|
|
- productId = order.ProductId,
|
|
|
|
|
|
+ productId = order.ProductId,
|
|
sendStatus = order.SendStatus,
|
|
sendStatus = order.SendStatus,
|
|
deliveryType = order.DeliveryType,
|
|
deliveryType = order.DeliveryType,
|
|
refundStatus = order.RefundStatus,
|
|
refundStatus = order.RefundStatus,
|
|
payMode = order.PayMode,
|
|
payMode = order.PayMode,
|
|
- sendDate = order.SendDate,
|
|
|
|
- payDate = order.PayDate,
|
|
|
|
|
|
+ sendDate = order.SendDate == null ? "" : order.SendDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"),
|
|
|
|
+ payDate = order.PayDate == null ? "" : order.PayDate.Value.ToString("yyyy-MM-ddTHH:mm:ss"),
|
|
postalCode = order.PostalCode,
|
|
postalCode = order.PostalCode,
|
|
address = order.Address,
|
|
address = order.Address,
|
|
areas = order.Areas,
|
|
areas = order.Areas,
|
|
@@ -316,7 +316,9 @@ namespace MySystem
|
|
orderNo = order.OrderNo,
|
|
orderNo = order.OrderNo,
|
|
userId = order.UserId,
|
|
userId = order.UserId,
|
|
parentOrderId = order.ParentOrderId,
|
|
parentOrderId = order.ParentOrderId,
|
|
- }));
|
|
|
|
|
|
+ });
|
|
|
|
+ function.WriteLog(DateTime.Now.ToString() + "\n" + data, "订单推送MQ日志");
|
|
|
|
+ RedisDbconn.Instance.AddList("KxsOrderQueue", data);
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
#endregion
|