72 lines
1.7 KiB
C#
72 lines
1.7 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
||
|
||
using DOAN.Admin.WebApi.Filters;
|
||
using DOAN.Service.JobKanban;
|
||
using DOAN.Service.JobKanban.IService;
|
||
using Aliyun.OSS;
|
||
|
||
//创建时间:2024-07-08
|
||
namespace DOAN.Admin.WebApi.Controllers.JobKanban
|
||
{
|
||
/// <summary>
|
||
/// 客户信息
|
||
/// </summary>
|
||
[AllowAnonymous]
|
||
[Route("kanban/loginOrsetting")]
|
||
public class LoginOrSetController : BaseController
|
||
{
|
||
/// <summary>
|
||
/// 客户信息接口
|
||
/// </summary>
|
||
private readonly ILoginOrSetService _LoginOrSetService;
|
||
|
||
public LoginOrSetController(ILoginOrSetService LoginOrSetService)
|
||
{
|
||
_LoginOrSetService = LoginOrSetService;
|
||
}
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 获取组
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
[HttpGet("get_group")]
|
||
public IActionResult GetGroupList()
|
||
{
|
||
|
||
var response = _LoginOrSetService.GetGroupList();
|
||
return SUCCESS(response);
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 获取组
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
[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);
|
||
}
|
||
|
||
|
||
|
||
|
||
}
|
||
} |