Browse Source

手工制单新增单位无法添加

MicroWin10-1604\Administrator 7 years ago
parent
commit
6c21e57dc2

+ 3 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -560,7 +560,10 @@ namespace CallCenterApi.Interface.Controllers.customer
560 560
                                 count++;
561 561
                                 var cusindustry = dataRow[1].ToString();
562 562
                                 if (!lddep.Contains(cusindustry))
563
+                                {
563 564
                                     lddep.Add(cusindustry);
565
+                                    CacheHelper.Insert("LDDep", lddep);
566
+                                }
564 567
                             }
565 568
                         }
566 569
                         //if (dt == null || dt.Rows.Count == 0)

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -708,6 +708,7 @@ namespace CallCenterApi.Interface.Controllers.tel
708 708
                                     lddep_cache.Add(lddep);
709 709
                                 if (!lddep_cache.Contains(fkdep))
710 710
                                     lddep_cache.Add(fkdep);
711
+                                CacheHelper.Insert("LDDep", lddep_cache);
711 712
                             }
712 713
                             else
713 714
                             {
@@ -718,6 +719,7 @@ namespace CallCenterApi.Interface.Controllers.tel
718 719
                                         lddep_cache.Add(lddep);
719 720
                                     if (!lddep_cache.Contains(fkdep))
720 721
                                         lddep_cache.Add(fkdep);
722
+                                    CacheHelper.Insert("LDDep", lddep_cache);
721 723
                                 }
722 724
                                 else
723 725
                                     res = Error("获取失败,没有对应数据");