|
|
@@ -698,6 +698,31 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
698
|
698
|
// res = Success("新增成功!");
|
|
699
|
699
|
//}
|
|
700
|
700
|
#endregion
|
|
|
701
|
+
|
|
|
702
|
+ #region 新增工单后新的单位要保存到反馈单位和来电单位中
|
|
|
703
|
+ List<string> lddep_cache = null;
|
|
|
704
|
+ lddep_cache = CacheHelper.Get("LDDep") as List<string>;
|
|
|
705
|
+ if (lddep_cache != null && lddep_cache.Count > 0)
|
|
|
706
|
+ {
|
|
|
707
|
+ if (!lddep_cache.Contains(lddep))
|
|
|
708
|
+ lddep_cache.Add(lddep);
|
|
|
709
|
+ if (!lddep_cache.Contains(fkdep))
|
|
|
710
|
+ lddep_cache.Add(fkdep);
|
|
|
711
|
+ }
|
|
|
712
|
+ else
|
|
|
713
|
+ {
|
|
|
714
|
+ lddep_cache = new BLL.T_Cus_CustomerBase().GetLDdep();
|
|
|
715
|
+ if (lddep_cache != null && lddep_cache.Count > 0)
|
|
|
716
|
+ {
|
|
|
717
|
+ if (!lddep_cache.Contains(lddep))
|
|
|
718
|
+ lddep_cache.Add(lddep);
|
|
|
719
|
+ if (!lddep_cache.Contains(fkdep))
|
|
|
720
|
+ lddep_cache.Add(fkdep);
|
|
|
721
|
+ }
|
|
|
722
|
+ else
|
|
|
723
|
+ res = Error("获取失败,没有对应数据");
|
|
|
724
|
+ }
|
|
|
725
|
+ #endregion
|
|
701
|
726
|
res = Success("新增成功!");
|
|
702
|
727
|
}
|
|
703
|
728
|
else
|