using Business.SystemJob; using Microsoft.AspNetCore.Mvc; using Volo.Abp; using Volo.Abp.AspNetCore.Mvc; namespace Business.Controllers { /// /// 系统定时任务接口 /// [RemoteService] [Area("Business")] [Route("api/business/systemquartzjob")] public class SystemJobController : AbpController { private readonly ISystemJobAppService _SystemJobAppService; public SystemJobController(ISystemJobAppService SystemJobAppService) { _SystemJobAppService = SystemJobAppService; } /// /// 定时同步WMS物料订单等基础数据到MySQL /// /// [HttpGet] [Route("syncwmsdatatomysql")] public string SyncWMSDataToMySQL() { return _SystemJobAppService.SyncWMSDataToMySQL(); } /// /// 定时创建NLog日志按月分表 /// /// [HttpGet] [Route("loginstall")] public string LogInstall() { return _SystemJobAppService.LogInstall(); } /// /// 定时同步MySQL基础数据到MongoDB /// /// [HttpGet] [Route("syncbasedatatomongodb")] public string SyncBaseDataToMongoDB() { return _SystemJobAppService.SyncBaseDataToMongoDB(); } } }