Exemplo n.º 1
0
        public KnownFraudCustomer GetKnownFraudCustomerInfoByCustomerSysNo(int customerSysNo)
        {
            KnownFraudCustomer kfcInfo = m_da.GetKFCByCustomerSysNo(customerSysNo);

            if (kfcInfo == null)
            {
                kfcInfo = new KnownFraudCustomer();
            }
            return(kfcInfo);
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
            }
        }
Exemplo n.º 6
0
 public void UpdateKnownFraudCustomerStatus(KnownFraudCustomer entity)
 {
     m_da.UpdateKnowFrandCustomerStatus(entity);
 }