44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using System;
|
|
using WX.CRM.BLL.Level2;
|
|
using WX.CRM.BLL.Wx;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.DataSynFactory.Templates;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace WX.CRM.DataSynFactory.Cmd
|
|
{
|
|
public class Client_L2OrderPush_IMP : Interfaces.IDataImportSvr<Client_L2OrderPush>
|
|
{
|
|
public bool GenerateBusinessOne(Client_L2OrderPush t)
|
|
{
|
|
try
|
|
{
|
|
L2_SOFT_ORDER_BL bl = new L2_SOFT_ORDER_BL();
|
|
LogHelper.Info($"L2{t.ToJson()}");
|
|
ValidationErrors errors = new ValidationErrors();
|
|
L2_SOFT_ORDER model = new L2_SOFT_ORDER()
|
|
{
|
|
ORDERSTATUS = t.ORDERSTATUS,
|
|
OPENUSER = t.OPENUSER,
|
|
OTIME = t.OTIME,
|
|
WEBORDERID = t.WEBORDERID.ToString(),
|
|
CONTRACTCTIME = t.contractctime,
|
|
CONTRACTSTATUS = t.contractstatus,
|
|
CONTRACTCODE = t.CONTRACTCODE,
|
|
ISFORCE = t.isforce
|
|
};
|
|
var result = bl.UpdateCheckStatus(model, ref errors);
|
|
if (model.ISFORCE != 1)
|
|
{
|
|
var openMsg = bl.OpenOrder(t.WEBORDERID.ToString(), "系统自动开通");
|
|
}
|
|
return result;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex.ToString());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |