using Microsoft.AspNetCore.Mvc; using DOAN.Admin.WebApi.Filters; using DOAN.Service.JobKanban; using DOAN.Service.JobKanban.IService; using Aliyun.OSS; using NPOI.SS.Formula.Functions; //创建时间:2024-07-08 namespace DOAN.Admin.WebApi.Controllers.JobKanban { /// /// 客户信息 /// [AllowAnonymous] [Route("kanban/loginOrsetting")] public class LoginOrSetController : BaseController { /// /// 客户信息接口 /// private readonly ILoginOrSetService _LoginOrSetService; public LoginOrSetController(ILoginOrSetService LoginOrSetService) { _LoginOrSetService = LoginOrSetService; } /// /// 获取组 /// /// [HttpGet("get_group")] public IActionResult GetGroupList() { var response = _LoginOrSetService.GetGroupList(); return SUCCESS(response); } /// /// 获取组 /// /// [HttpGet("get_route")] public IActionResult GetRouteList() { var response = _LoginOrSetService.GetRouteList(); return SUCCESS(response); } /// /// 工单 /// /// /// /// [HttpGet("get_workorder")] public IActionResult GetWorkOrderList(DateTime today, string LineCode) { if (today == DateTime.MinValue || string.IsNullOrEmpty(LineCode)) { return SUCCESS(null); } var response = _LoginOrSetService.GetWorkOrderList(today, LineCode); return SUCCESS(response); } // 获取工单详情 [HttpGet("get_workorder_detail")] public IActionResult GetWorkOrderDetail(string workorder) { if (string.IsNullOrEmpty(workorder)) { return SUCCESS(null); } var response = _LoginOrSetService.GetWorkOrderDetail(workorder); return SUCCESS(response); } /// /// 开始完成 完成工单 /// /// /// 要改为的状态 /// [HttpGet("change_workorder_status")] public IActionResult ChangeWorkOrderStatus(string workorder, int status) { if (string.IsNullOrEmpty(workorder)) { return SUCCESS(null); } var response = _LoginOrSetService.ChangeWorkOrderStatus(workorder, status); return SUCCESS(response); } // 获取今日总任务数 ,剩余任务数 [HttpGet("get_num_list")] public IActionResult GetKanbanNum(DateTime today, string LineCode) { if (today == DateTime.MinValue || string.IsNullOrEmpty(LineCode)) { return SUCCESS(null); } var response = _LoginOrSetService.GetKanbanNum(today, LineCode); return SUCCESS(response); } //报工 } }