86 lines
2.5 KiB
C#
86 lines
2.5 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using New_College.Common;
|
|
using New_College.Common.Helper;
|
|
using New_College.IServices;
|
|
using New_College.Services;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace New_College.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 健康检查
|
|
/// </summary>
|
|
[Route("[controller]")]
|
|
[ApiController]
|
|
public class HealthCheckController : ControllerBase
|
|
{
|
|
private readonly IT_EnrollmentPlaneServices t_EnrollmentPlane;
|
|
|
|
private readonly ID_LongIdMapServices d_LongIdMapServices;
|
|
|
|
private readonly IV_CustomerInfoServices v_CustomerInfoServices;
|
|
public HealthCheckController(IT_EnrollmentPlaneServices t_EnrollmentPlaneServices, ID_LongIdMapServices d_LongIdMapServices, IV_CustomerInfoServices _CustomerInfoServices)
|
|
{
|
|
t_EnrollmentPlane = t_EnrollmentPlaneServices;
|
|
this.d_LongIdMapServices = d_LongIdMapServices;
|
|
v_CustomerInfoServices = _CustomerInfoServices;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 健康检查接口
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public IActionResult Get()
|
|
{
|
|
|
|
return Ok();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="code"></param>
|
|
/// <returns></returns>
|
|
//[HttpGet("GetCode")]
|
|
//public IActionResult GetCode([FromQuery] string code)
|
|
//{
|
|
// var str = UniversityCodeConvertRules.UniversityCodeConvertRulesMap(code);
|
|
// return Ok(str);
|
|
//}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public async Task<bool> Post()
|
|
{
|
|
// return t_EnrollmentPlane.Import();
|
|
// return t_EnrollmentPlane.Importuniverbaseinfo();
|
|
|
|
// return t_EnrollmentPlane.universitydetailupdate();
|
|
|
|
//return t_EnrollmentPlane.tradeupadte();
|
|
|
|
// return t_EnrollmentPlane.categoryupdate();
|
|
|
|
|
|
//return d_LongIdMapServices.UpdateUniveristyInf();
|
|
//更新院校分数线
|
|
// await d_LongIdMapServices.UpdateSchoolScoreLine23("河南省","理科");
|
|
|
|
//await d_LongIdMapServices.PlanNeedProSync("河南省", 2024, "文科", "本科二批");
|
|
// await d_LongIdMapServices.SyncnewNeedProSData("河南省", 2024, "文科", "本科一批");
|
|
|
|
// await v_CustomerInfoServices.CustomeBillExport();
|
|
|
|
await d_LongIdMapServices.UpdatePlanProInf();
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|
|
} |