GP12触摸屏,产线维修件优化

This commit is contained in:
2025-01-03 16:43:02 +08:00
parent 59960809b8
commit 7af537b1cb
50 changed files with 3745 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
using Microsoft.AspNetCore.Mvc;
using ZR.Model.Dto;
using ZR.Model.Business;
using ZR.Service.Business.IBusinessService;
using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters;
//创建时间2025-01-02
namespace ZR.Admin.WebApi.Controllers
{
/// <summary>
/// 质量GP12业务模块
/// </summary>
[Route("/mes/qc/gp12/QcGp12Controller")]
public class QcGp12Controller : BaseController
{
/// <summary>
/// 质量GP12业务模块接口
/// </summary>
private readonly IQcGp12Service _QcGp12Service;
public QcGp12Controller(IQcGp12Service QcGp12Service)
{
_QcGp12Service = QcGp12Service;
}
/// <summary>
/// 获取班组下拉
/// </summary>
/// <returns></returns>
[HttpGet("GetGroupOptions")]
[AllowAnonymous]
public IActionResult GetGroupOptions()
{
var response = _QcGp12Service.GetGroupOptions();
return SUCCESS(response);
}
/// <summary>
/// 获取站点下拉
/// </summary>
/// <returns></returns>
[HttpGet("GetStieOptions")]
[AllowAnonymous]
public IActionResult GetStieOptions()
{
var response = _QcGp12Service.GetStieOptions();
return SUCCESS(response);
}
/// <summary>
/// 获取缺陷项初始数据
/// </summary>
/// <returns></returns>
[HttpGet("GetDefectInitOptions")]
[AllowAnonymous]
public IActionResult GetDefectInitOptions()
{
var response = _QcGp12Service.GetDefectInitOptions();
return SUCCESS(response);
}
/// <summary>
/// 解析标签
/// </summary>
/// <param name="label">标签内容</param>
/// <param name="type">解析方式</param>
/// <returns></returns>
[HttpGet("AnalyzeLabel")]
[AllowAnonymous]
public IActionResult AnalyzeLabel(string label,int type)
{
var response = _QcGp12Service.AnalyzeLabelToDto(label,type);
return SUCCESS(response);
}
/// <summary>
/// 查询质量GP12工单业务模块列表
/// </summary>
/// <param name="parm"></param>
/// <returns></returns>
/* [HttpGet("list")]
public IActionResult QueryQcGp12ServiceWorkorder([FromQuery] QcGp12ServiceWorkorderQueryDto parm)
{
var response = _QcGp12Service.GetList(parm);
return SUCCESS(response);
}*/
/// <summary>
/// 添加质量GP12工单业务模块
/// </summary>
/// <returns></returns>
/* [HttpPost("post")]
public IActionResult AddQcGp12ServiceWorkorder([FromBody] QcGp12ServiceWorkorderDto parm)
{
var modal = parm.Adapt<QcGp12ServiceWorkorder>().ToCreate(HttpContext);
var response = _QcGp12ServiceWorkorderService.AddQcGp12ServiceWorkorder(modal);
return SUCCESS(response);
}*/
}
}