70 lines
2.2 KiB
C#
70 lines
2.2 KiB
C#
using CRM.Core.DTO;
|
|
using System;
|
|
using WX.CRM.BLL.Wx;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.DataSynFactory.Templates;
|
|
|
|
namespace WX.CRM.DataSynFactory.Cmd
|
|
{
|
|
public class Client_ReSetOrder_IMP : Interfaces.IDataImportSvr<Client_ReSetOrder>
|
|
{
|
|
private WX_SZZYORDER_BL _order = new WX_SZZYORDER_BL();
|
|
private WX_SZZYORDERPAY_BL _orderPay = new WX_SZZYORDERPAY_BL();
|
|
private WX_SZZYORDERDEPOSIT_BL _orderDeposit = new WX_SZZYORDERDEPOSIT_BL();
|
|
public bool GenerateBusinessOne(Client_ReSetOrder t)
|
|
{
|
|
try
|
|
{
|
|
|
|
retMsg rst = new WX_SZZYORDERDEPOSIT_BL().OrderCancel(t.OrderId);
|
|
return rst.result;
|
|
|
|
#region 旧方法
|
|
//var order = _order.Get(p => p.ORDERID == t.OrderId);
|
|
//order.ORDERSTATUS = "180";
|
|
//order.ORDERSTATUSNAME = "新订单";
|
|
//order.ARRIVALPAY = null;
|
|
//order.ARRIVALTIME = null;
|
|
|
|
//_order.Update(order);
|
|
|
|
//var orderDeposit = _orderDeposit.GetList(p => p.ORDERID == order.ORDERID);
|
|
|
|
//foreach (var item in orderDeposit)
|
|
//{
|
|
// item.ISUSE = 0;
|
|
// item.ORDERID = null;
|
|
|
|
// _orderDeposit.Update(item);
|
|
//}
|
|
|
|
//var payInfoList = _orderPay.GetList(p => p.ORDERID == order.ORDERID);
|
|
|
|
//foreach (var item in payInfoList)
|
|
//{
|
|
// var djInfo = orderDeposit.FirstOrDefault(p => p.PAYNO == item.PAYNO);
|
|
// if (djInfo != null)
|
|
// {
|
|
// item.ORDERID = djInfo.ID;
|
|
// }
|
|
// else
|
|
// {
|
|
// item.AUDITSTATUS = 0;
|
|
// item.ISDELETE = 1;
|
|
// }
|
|
// _orderPay.Update(item);
|
|
//}
|
|
|
|
//return true;
|
|
#endregion
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex.ToString());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|