ComplianceServer/oldcode/WX.CRM.DataSynFactory/Cmd/Server_OrderExternalUserId_...

31 lines
935 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Dapper;
using System;
using WX.CRM.Common;
using WX.CRM.DataSynFactory.Dao;
using WX.CRM.DataSynFactory.Templates;
namespace WX.CRM.DataSynFactory.Cmd
{
public class Server_OrderExternalUserId_IMP : Interfaces.IDataImportSvr<Server_OrderExternalUserId>
{
public bool GenerateBusinessOne(Server_OrderExternalUserId t)
{
try
{
using (var db = ZxdStore.GetConnection())
{
var sql = "update wx_szzyorder set external_userid = @external_userid where orderid = @orderid";
db.Execute(sql, new { external_userid = t.ExternalUserId, orderid = t.OrderId });
}
return true;
}
catch (Exception ex)
{
LogHelper.Error("Server_OrderExternalUserId_IMP" + ex.ToString());
return false;
}
}
}
}