|
@@ -51,12 +51,27 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
{
|
|
{
|
|
Result result = new Result() { Code = -2, Msg = "未知错误" };
|
|
Result result = new Result() { Code = -2, Msg = "未知错误" };
|
|
|
|
|
|
- if (dto.PortType == 1 || dto.PortType == 2) //Web Or Android
|
|
|
|
- {
|
|
|
|
- string sql = string.Format(@"Select Id,TeamName,TourCode,ClientName,VisitCountry,VisitStartDate,VisitEndDate,VisitDays,VisitPNumber
|
|
|
|
|
|
+ string sql = string.Format(@"Select Id,TeamName,TourCode,ClientName,VisitCountry,VisitStartDate,VisitEndDate,VisitDays,VisitPNumber
|
|
From Grp_DelegationInfo Where Id = {0} And IsDel = 0", dto.Id);
|
|
From Grp_DelegationInfo Where Id = {0} And IsDel = 0", dto.Id);
|
|
|
|
|
|
- var _DelegationInfo = await _sqlSugar.SqlQueryable<ShareGroupInfoView>(sql).FirstAsync();
|
|
|
|
|
|
+ if (dto.PortType == 1) //Web
|
|
|
|
+ {
|
|
|
|
+ var _DelegationInfo = await _sqlSugar.SqlQueryable<Web_ShareGroupInfoView>(sql).FirstAsync();
|
|
|
|
+ if (_DelegationInfo != null)
|
|
|
|
+ {
|
|
|
|
+ if (_DelegationInfo.VisitCountry.Contains("|"))
|
|
|
|
+ {
|
|
|
|
+ _DelegationInfo.VisitCountry = _DelegationInfo.VisitCountry.Replace("|", "、");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ result.Data = _DelegationInfo;
|
|
|
|
+ }
|
|
|
|
+ else result.Msg = "暂无该团组信息";
|
|
|
|
+ }
|
|
|
|
+ else if (dto.PortType == 2 || dto.PortType == 3) //IOS Or Android
|
|
|
|
+ {
|
|
|
|
+ var _DelegationInfo = await _sqlSugar.SqlQueryable<IOSOrAndroid_ShareGroupInfoView>(sql).FirstAsync();
|
|
if (_DelegationInfo != null)
|
|
if (_DelegationInfo != null)
|
|
{
|
|
{
|
|
if (_DelegationInfo.VisitCountry.Contains("|"))
|
|
if (_DelegationInfo.VisitCountry.Contains("|"))
|
|
@@ -64,15 +79,17 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
_DelegationInfo.VisitCountry = _DelegationInfo.VisitCountry.Replace("|", "、");
|
|
_DelegationInfo.VisitCountry = _DelegationInfo.VisitCountry.Replace("|", "、");
|
|
}
|
|
}
|
|
|
|
|
|
- result.Code = 0;
|
|
|
|
- result.Msg = "成功!";
|
|
|
|
result.Data = _DelegationInfo;
|
|
result.Data = _DelegationInfo;
|
|
}
|
|
}
|
|
else result.Msg = "暂无该团组信息";
|
|
else result.Msg = "暂无该团组信息";
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+ else result.Msg = "请输入正确的端口号。1 Web 2 Android 3 IOS";
|
|
|
|
|
|
- return result;
|
|
|
|
|
|
+ result.Code = 0;
|
|
|
|
+ result.Msg = "成功!";
|
|
|
|
|
|
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
#endregion
|