|
@@ -256,29 +256,29 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
|
|
|
#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
|
|
|
|