Kaynağa Gözat

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

MicroWin10-1604\Administrator 7 yıl önce
ebeveyn
işleme
6c21e57dc2

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

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

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

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