36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using WX.CRM.BLL.Res;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.DataSynFactory.Templates;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace WX.CRM.DataSynFactory.Cmd
|
|
{
|
|
public class Client_Rfm_IMP : Interfaces.IDataImportSvr<Client_Rfm>
|
|
{
|
|
RES_CUSTOMER_RFM_BL bl = new RES_CUSTOMER_RFM_BL();
|
|
public bool GenerateBusinessOne(Client_Rfm t)
|
|
{
|
|
//try
|
|
//{
|
|
LogHelper.Info("Client_Rfm_IMP:" + t.ToJson());
|
|
RES_CUSTOMER_RFM_LIST model = new RES_CUSTOMER_RFM_LIST()
|
|
{
|
|
CTIME = DateTime.Now,
|
|
LABELNAME = t.labelname,
|
|
RESID = t.mobile,
|
|
SOFTUSER = t.username,
|
|
WEIGHT = t.weight,
|
|
APPID = t.appid
|
|
};
|
|
return bl.PutRfmInDB(model);
|
|
//}
|
|
//catch (Exception ex)
|
|
//{
|
|
// LogHelper.Error(ex.ToString());
|
|
// LogHelper.Error("错误的json:" + t.ToJson());
|
|
// return false;
|
|
//}
|
|
}
|
|
}
|
|
} |