|
@@ -114,43 +114,46 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
result = new Result() { Code = -1, Msg = "修改失败,请稍后重试!" };
|
|
|
}
|
|
|
}
|
|
|
- if (id != 0)
|
|
|
- {
|
|
|
- var _LocalGuideDataCar = _sqlSugar.Queryable<Res_LocalGuideData>()
|
|
|
- .First(a =>
|
|
|
- a.UnitName == AesEncryptionHelper.Encrypt(dto.BusName) &&
|
|
|
- a.ContactTel == AesEncryptionHelper.Encrypt(dto.BusTel) &&
|
|
|
- a.IsDel == 0
|
|
|
- );
|
|
|
- if (_LocalGuideDataCar == null)
|
|
|
- {
|
|
|
- var res_LocalGuideCar = new Res_LocalGuideData();
|
|
|
- res_LocalGuideCar.UnitName = dto.BusName;
|
|
|
- res_LocalGuideCar.ContactTel = dto.BusTel;
|
|
|
- res_LocalGuideCar.CreateUserId = dto.CreateUserId;
|
|
|
-
|
|
|
- EncryptionProcessor.EncryptProperties(res_LocalGuideCar);
|
|
|
- int cId = await _sqlSugar.Insertable(res_LocalGuideCar).ExecuteReturnIdentityAsync();
|
|
|
- }
|
|
|
- var _LocalGuideDataService = _sqlSugar.Queryable<Res_LocalGuideData>()
|
|
|
- .First(a =>
|
|
|
- a.UnitName == AesEncryptionHelper.Encrypt(dto.ServiceCompany) &&
|
|
|
- a.ContactTel == AesEncryptionHelper.Encrypt(dto.ServiceTel) &&
|
|
|
- a.IsDel == 0
|
|
|
- );
|
|
|
- if (_LocalGuideDataService == null)
|
|
|
- {
|
|
|
- Res_LocalGuideData res_LocalGuideService = new Res_LocalGuideData();
|
|
|
- res_LocalGuideService.UnitName = dto.ServiceCompany;
|
|
|
-
|
|
|
- res_LocalGuideService.ContactTel = dto.ServiceTel;
|
|
|
- res_LocalGuideService.Contact = dto.ServiceTel;
|
|
|
- res_LocalGuideService.CreateUserId = dto.CreateUserId;
|
|
|
- EncryptionProcessor.EncryptProperties(res_LocalGuideService);
|
|
|
- int cId = await _sqlSugar.Insertable(res_LocalGuideService).ExecuteReturnIdentityAsync();
|
|
|
- }
|
|
|
- }
|
|
|
+ #region add导游地接数据屏蔽
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
CommitTran();
|
|
|
}
|
|
|
catch (Exception ex)
|