Kaynağa Gözat

Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop

yuanrf 12 saat önce
ebeveyn
işleme
7646eacfd9

+ 35 - 32
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -3804,38 +3804,41 @@ namespace OASystem.API.Controllers
                             string sql = string.Format("select b.Id,b.Pinyin,b.lastName,b.firstName,b.phone from  Grp_TourClientList a, Crm_DeleClient b where a.clientid = b.id and a.isdel = 0 and a.diid = {0}", groupInfo.Id);
                             var arr = _sqlSugar.SqlQueryable<SimplClientInfo>(sql).ToList();
 
-                            string visaClientName = visaDatas.Find(it => payInfo.DIId == it.DIId && payInfo.CId == it.Id)?.VisaClient ?? "";
-                            string clientName = "-";
-                            if (Regex.Match(visaClientName, @"\d+,?").Value.Length > 0)
-                            {
-                                string[] temparr = visaClientName.Split(',');
-                                string fistrStr = temparr[0];
-                                int count = temparr.Length;
-
-                                int tempId;
-                                bool success = int.TryParse(fistrStr, out tempId);
-                                if (success)
-                                {
-                                    SimplClientInfo tempInfo = arr.FirstOrDefault(s => s.Id == tempId);
-
-                                    if (tempInfo != null)
-                                    {
-                                        EncryptionProcessor.DecryptProperties(tempInfo);
-                                        if (count > 1)
-                                        {
-                                            clientName = string.Format(@"{0}{1}等{2}人", tempInfo.LastName, tempInfo.FirstName, count);
-                                        }
-                                        else
-                                        {
-                                            clientName = string.Format(@"{0}{1}", tempInfo.LastName, tempInfo.FirstName);
-                                        }
-                                    }
-                                }
-                                else
-                                {
-                                    clientName = fistrStr;
-                                }
-                            }
+                            var clientName = visaDatas.Find(it => payInfo.DIId == it.DIId && payInfo.CId == it.Id)?.VisaDescription ?? "";
+                            #region 客户名称拼接
+                            //string visaClientName = visaDatas.Find(it => payInfo.DIId == it.DIId && payInfo.CId == it.Id)?.VisaClient ?? "";
+                            //string clientName = "-";
+                            //if (Regex.Match(visaClientName, @"\d+,?").Value.Length > 0)
+                            //{
+                            //    string[] temparr = visaClientName.Split(',');
+                            //    string fistrStr = temparr[0];
+                            //    int count = temparr.Length;
+
+                            //    int tempId;
+                            //    bool success = int.TryParse(fistrStr, out tempId);
+                            //    if (success)
+                            //    {
+                            //        SimplClientInfo tempInfo = arr.FirstOrDefault(s => s.Id == tempId);
+
+                            //        if (tempInfo != null)
+                            //        {
+                            //            EncryptionProcessor.DecryptProperties(tempInfo);
+                            //            if (count > 1)
+                            //            {
+                            //                clientName = string.Format(@"{0}{1}等{2}人", tempInfo.LastName, tempInfo.FirstName, count);
+                            //            }
+                            //            else
+                            //            {
+                            //                clientName = string.Format(@"{0}{1}", tempInfo.LastName, tempInfo.FirstName);
+                            //            }
+                            //        }
+                            //    }
+                            //    else
+                            //    {
+                            //        clientName = fistrStr;
+                            //    }
+                            //}
+                            #endregion
 
                             priName = $"[费用名称:{clientName}]";
                             break;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 945 - 251
OASystem/OASystem.Api/Controllers/GroupsController.cs