username@email.com
2021-11-25 402f9568e48e6e1a9d29d37dcda46737047425d5
zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
@@ -106,6 +106,14 @@
            {
                dto = _intentionVisitService.Get(id);
                //dto.Viscustomer = Viscustomer;
                IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch();
                searchEntity.page = 1;
                searchEntity.rows = 1000;
                searchEntity.Viscustomer = dto.Viscustomer;
                var resultDataEntity = _intentionVisitService.SearchByPaging(searchEntity);
                ViewData["visitlishi"] = resultDataEntity.DataList;
            }
            else
            {
@@ -113,6 +121,17 @@
                if (!string.IsNullOrWhiteSpace(Viscustomer))
                {
                    dto.Viscustomer = Viscustomer;
                    IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch();
                    searchEntity.page = 1;
                    searchEntity.rows = 1000;
                    searchEntity.Viscustomer = Viscustomer;
                   var resultDataEntity =  _intentionVisitService.SearchByPaging(searchEntity);
                    ViewData["visitlishi"] = resultDataEntity.DataList;
                }
                else
                {
                    ViewData["visitlishi"] = new List<IntentionVisitDTO>();
                }
                dto.VisType = "01";
@@ -228,7 +247,7 @@
                    IntentionCustomerDTO intentionCustomerDTO = _intentionCustomerService.Get(data.Viscustomer);
                    if(intentionCustomerDTO!=null && ( !string.IsNullOrEmpty(intentionCustomerDTO.Phone) ||  !string.IsNullOrEmpty(intentionCustomerDTO.Tel)))
                    {
                        string sss = SMSHelper.PushWToUserMES(string.IsNullOrEmpty(intentionCustomerDTO.Phone)? intentionCustomerDTO.Tel: intentionCustomerDTO.Phone, data.DuanxinNeirong);
                        string sss = SMSHelper.PushWToUserMES(string.IsNullOrEmpty(intentionCustomerDTO.Phone)? intentionCustomerDTO.Tel: intentionCustomerDTO.Phone, "您好,客户. 详情见:"+data.DuanxinNeirong);
                        if (int.Parse(sss) <= 0)
                        {
                            resultEntity.Result = false;
@@ -323,7 +342,7 @@
                resultEntity.Message = "无联系人";
            }
            string sss = SMSHelper.PushWToUserMES(number.ToString(), neirong);
            string sss = SMSHelper.PushWToUserMES(number.ToString(), "您好,客户. 详情见:" + neirong );
            if (int.Parse(sss) <= 0)
            {
                resultEntity.Result = false;