public KnownFraudCustomer GetKnownFraudCustomerInfoByCustomerSysNo(int customerSysNo) { KnownFraudCustomer kfcInfo = m_da.GetKFCByCustomerSysNo(customerSysNo); if (kfcInfo == null) { kfcInfo = new KnownFraudCustomer(); } return(kfcInfo); }
public void UpdateKnowFrandCustomerStatus(KnownFraudCustomer entity) { DataCommand command = DataCommandManager.GetDataCommand("SO_Update_KnowFrandCustomerStatus"); command.SetParameterValue("@CustomerSysNo", entity.CustomerSysNo); command.SetParameterValue("@FraudType", entity.KFCType); command.SetParameterValue("@EditDate", entity.LastEditDate); command.SetParameterValue("@EditUser", entity.LastEditUserName); command.ExecuteNonQuery(); }
private void InsertKFC(SOInfo entity) { KnownFraudCustomer req = new KnownFraudCustomer { CreateDate = DateTime.Now, CreateUserName = "******", CustomerSysNo = entity.BaseInfo.CustomerSysNo, KFCType = KFCType.KeYi, IPAddress = entity.ClientInfo.CustomerIPAddress, MobilePhone = entity.ReceiverInfo.MobilePhone, ShippingAddress = entity.ReceiverInfo.Address, ShippingContact = entity.ReceiverInfo.Name, Status = FPStatus.Normal, Telephone = entity.ReceiverInfo.Phone, CompanyCode = m_companyCode }; ObjectFactory <ISOKFCDA> .Instance.InsertKnowFrandCustomer(req); }
public int InsertKnowFrandCustomer(KnownFraudCustomer entity) { DataCommand command = DataCommandManager.GetDataCommand("SO_Insert_KnowFrandCustomer"); command.SetParameterValue("@BrowseInfo", entity.BrowseInfo); command.SetParameterValue("@CustomerSysNo", entity.CustomerSysNo); command.SetParameterValue("@EmailAddress", entity.EmailAddress); command.SetParameterValue("@FraudType", entity.KFCType); command.SetParameterValue("@IPAddress", entity.IPAddress); command.SetParameterValue("@InDate", entity.CreateDate); command.SetParameterValue("@InUser", entity.CreateUserName); command.SetParameterValue("@MobilePhone", entity.MobilePhone); command.SetParameterValue("@ShippingAddress", entity.ShippingAddress); command.SetParameterValue("@ShippingContact", entity.ShippingContact); command.SetParameterValue("@Status", entity.Status); command.SetParameterValue("@Telephone", entity.Telephone); command.SetParameterValue("@CompanyCode", entity.CompanyCode); int result = command.ExecuteNonQuery(); return(result); }
public void InsertKnownFraudCustomer(KnownFraudCustomer entity) { if (m_da.GetKFCByCustomerSysNo(entity.CustomerSysNo.Value) != null) { return; } int maxBlockMark = 0; if (!int.TryParse(ExternalDomainBroker.GetSystemConfigurationValue("GRADENUM", entity.CompanyCode), out maxBlockMark)) { maxBlockMark = 5; } List <KnownFraudCustomer> list = m_da.GetKFCByIPAndTel(entity.IPAddress, entity.MobilePhone, entity.Telephone, entity.CompanyCode); //存在同一个IP地址且同一个手机号码相同记录重复5条 //则其相关的客户信息升级到Block if (list != null && list.Count + 1 >= maxBlockMark) { list.ForEach(item => { item.KFCType = KFCType.QiZha; item.LastEditDate = item.CreateDate; item.LastEditUserName = item.CreateUserName; m_da.UpdateKnowFrandCustomerStatus(item); }); entity.KFCType = KFCType.QiZha; m_da.InsertKnowFrandCustomer(entity); } else { m_da.InsertKnowFrandCustomer(entity); } }
public void UpdateKnownFraudCustomerStatus(KnownFraudCustomer entity) { m_da.UpdateKnowFrandCustomerStatus(entity); }