@@ -32,6 +32,9 @@ namespace Learun.Application.WebApi.Modules.Hetian
Post["/sx/bm"] = Baomin; //报名实习
Get["/zj/my"] = GetZongjie;// 获取总结
Post["/zj/sub"] = Zongjie; //提交总结
Get["/cj/show"] = GetRs; //实习成绩查看
Get["/rc/list"] = GetRc; //人才需求
Get["/gx/list"] = GetGx; //供需见面
}
private InternShipSignUpIBLL internShipSignUpIBLL = new InternShipSignUpBLL();
private InternShipSummaryIBLL internShipSummaryIBLL = new InternShipSummaryBLL();
@@ -41,25 +44,27 @@ namespace Learun.Application.WebApi.Modules.Hetian
private RoleIBLL roleIBLL = new RoleBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();
private CdMajorIBLL majorIbll = new CdMajorBLL();
private InternshipAchievementIBLL internshipAchievementIBLL = new InternshipAchievementBLL();
private BC_PersonnelRequiementIBLL bC_PersonnelRequiementIBLL = new BC_PersonnelRequiementBLL();
private BC_SupplyAndDemandMettingIBLL bC_SupplyAndDemandMettingIBLL = new BC_SupplyAndDemandMettingBLL();
private Response CheckTicket(dynamic _)
{
LoginModel loginModel = this.GetReqData<LoginModel>();
var ticket = loginModel.ticket;
var uid = "180018";
// var uid = "180018";
if (string.IsNullOrEmpty(ticket))
{
// string validationUrl = UrlUtil.ConstructValidateUrl(ticket, CasAuthentication.Gateway, CasAuthentication.Renew, new NameValueCollection());
// var a = PerformHttpGet(validationUrl, true);
// if (a.Contains("PerformHttpGet"))
// {
// return Fail("PerformHttpGet err");
// }
// var serviceResponse = ServiceResponse.ParseResponse(a);
// AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item;
// var uid = authSuccessResponse.User;
string validationUrl = UrlUtil.ConstructValidateUrl(ticket, CasAuthentication.Gateway, CasAuthentication.Renew, new NameValueCollection());
var a = PerformHttpGet(validationUrl, true);
if (a.Contains("PerformHttpGet"))
{
return Fail("PerformHttpGet err");
}
var serviceResponse = ServiceResponse.ParseResponse(a);
AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item;
var uid = authSuccessResponse.User;
if (!uid.IsNullOrWhiteSpace())
{
#region 内部账户验证
@@ -311,5 +316,42 @@ namespace Learun.Application.WebApi.Modules.Hetian
return Success(true);
}
/// <summary>
/// 实习成绩
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
private Response GetRs(dynamic _)
{
var cj = internshipAchievementIBLL.GetMy(userInfo.account);
return Success<string>(cj);
}
/// <summary>
/// 人才需求
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
private Response GetRc(dynamic _)
{
var id = GetReqData();
if (id.IsNullOrWhiteSpace()) id = string.Empty;
var list = bC_PersonnelRequiementIBLL.GetList(id);
return Success(list);
}
/// <summary>
/// 供需见面
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
private Response GetGx(dynamic _)
{
var id = GetReqData();
if (id.IsNullOrWhiteSpace()) id = string.Empty;
var list = bC_SupplyAndDemandMettingIBLL.GetList(id);
return Success(list);
}
}
}