Browse Source

禁用用户信息查询和媒体供应商插入逻辑

将用户信息查询和媒体供应商数据插入的相关代码注释掉,保留代码以便将来可能恢复使用。
LEIYI 3 months ago
parent
commit
a3a7857892

+ 23 - 25
OASystem/OASystem.Infrastructure/Repositories/Groups/DecreasePaymentsRepository.cs

@@ -256,34 +256,32 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     {
                     {
 
 
                         #region 策划部内容同步添加至资料库
                         #region 策划部内容同步添加至资料库
-                        var userInfo = _sqlSugar.Queryable<Sys_Users>()
-                            .LeftJoin<Sys_Department>((u,d)=> d.IsDel == 0 && u.DepId == d.Id )
-                            .Where((u, d) => u.Id == dto.CreateUserId && d.DepName == "策划部" && u.IsDel == 0)
-                            .First();
-
-                        if (userInfo != null)
-                        {
-                            Res_MediaSuppliers mediaSuppliersData = new Res_MediaSuppliers
-                            {
-                                CreateTime = DateTime.Now,
-                                CreateUserId = dto.CreateUserId,
-                                UnitName = dto.SupplierName,
-                                TypeId = dto.SupplierTypeId,
-                                UnitAddress = dto.SupplierAddress,
-                                Contact = dto.SupplierContact,
-                                Tel = dto.SupplierContactNumber,
-                                Email = dto.SupplierEmail,
-                                Privince = dto.SupplierArea == 1 ? "国内" :"国外",
-                            };
-
-                            EncryptionProcessor.EncryptProperties(mediaSuppliersData);
-                            _sqlSugar.Insertable(mediaSuppliersData).ExecuteCommand();
-                        }
+                        //var userInfo = _sqlSugar.Queryable<Sys_Users>()
+                        //    .LeftJoin<Sys_Department>((u,d)=> d.IsDel == 0 && u.DepId == d.Id )
+                        //    .Where((u, d) => u.Id == dto.CreateUserId && d.DepName == "策划部" && u.IsDel == 0)
+                        //    .First();
+
+                        //if (userInfo != null)
+                        //{
+                        //    Res_MediaSuppliers mediaSuppliersData = new Res_MediaSuppliers
+                        //    {
+                        //        CreateTime = DateTime.Now,
+                        //        CreateUserId = dto.CreateUserId,
+                        //        UnitName = dto.SupplierName,
+                        //        TypeId = dto.SupplierTypeId,
+                        //        UnitAddress = dto.SupplierAddress,
+                        //        Contact = dto.SupplierContact,
+                        //        Tel = dto.SupplierContactNumber,
+                        //        Email = dto.SupplierEmail,
+                        //        Privince = dto.SupplierArea == 1 ? "国内" :"国外",
+                        //    };
+
+                        //    EncryptionProcessor.EncryptProperties(mediaSuppliersData);
+                        //    _sqlSugar.Insertable(mediaSuppliersData).ExecuteCommand();
+                        //}
 
 
                         #endregion
                         #endregion
 
 
-
-
                         CommitTran();
                         CommitTran();
                         var data = new { ccpId = cId, sign = 1,dataId = id };
                         var data = new { ccpId = cId, sign = 1,dataId = id };
                         return new JsonView() { Code = 200, Msg = "添加成功!", Data = data };
                         return new JsonView() { Code = 200, Msg = "添加成功!", Data = data };