From 8e5d569d8362b0bc25b45a8003f8be6be65a8104 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 15 十二月 2021 14:31:58 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
index a6068ba..c0b5ec1 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
+++ b/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
             {
@@ -239,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;
@@ -334,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;
@@ -344,7 +352,7 @@
             CusFangwenjiluDTO dto = new CusFangwenjiluDTO();
             dto.Fasongfangshi = "01";
             dto.Fasongneirong = neirong;
-            dto.Jieshouren = baifangid;
+            dto.Jieshouren = baifangid.Length > 2000 ? baifangid.Substring(0, 2000) : baifangid; ;
             dto.RecStatus = "A";
             dto.Creater = curentuser.Id;
             dto.Modifytime = DateTime.Now;
@@ -423,7 +431,7 @@
             CusFangwenjiluDTO dto = new CusFangwenjiluDTO();
             dto.Fasongfangshi = "02";
             dto.Fasongneirong = neirong;
-            dto.Jieshouren = baifangid;
+            dto.Jieshouren = baifangid.Length > 2000 ? baifangid.Substring(0, 2000) : baifangid; ;
             dto.RecStatus = "A";
             dto.Creater = curentuser.Id;
             dto.Modifytime = DateTime.Now;

--
Gitblit v1.9.1