|
@@ -22,8 +22,6 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
|
_mapper = mapper;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 根据Diid查询公务出访数据List
|
|
|
/// </summary>
|
|
@@ -282,5 +280,28 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ public async Task<Result> PostReqReqSampleTips(string country, string Area)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(country)) return new Result() { Code = -1, Msg = "国家为空!" };
|
|
|
+
|
|
|
+ string sqlWhere = string.Empty;
|
|
|
+ if (!string.IsNullOrEmpty(Area)) sqlWhere = string.Format(@$" And oa.Area Like '%{Area}%'");
|
|
|
+
|
|
|
+ string sql = string.Format(@$"Select di.TeamName,oa.Id,oa.Country,oa.Area,oa.Client,oa.ReqSample
|
|
|
+ From Res_OfficialActivities oa With(NoLock)
|
|
|
+ Left Join Grp_DelegationInfo di On oa.DiId = di.Id
|
|
|
+ Where oa.IsDel = 0 And oa.Country='{country}' {sqlWhere}");
|
|
|
+
|
|
|
+ //ReqReqSampleTipsView
|
|
|
+ var _views = await _sqlSugar.SqlQueryable< ReqReqSampleTipsView >(sql).ToListAsync();
|
|
|
+ if (_views.Count > 0 )
|
|
|
+ {
|
|
|
+ return new Result() { Code = 0, Msg = "操作成功!", Data = _views };
|
|
|
+ }
|
|
|
+
|
|
|
+ return new Result() { Code = -1, Msg = "暂无相关数据!" };
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|