GP12触摸屏,产线维修件优化
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12BaseDefect")]
|
||||
public class QcGp12BaseDefectController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12基础缺陷项接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12BaseDefectService _QcGp12BaseDefectService;
|
||||
|
||||
public QcGp12BaseDefectController(IQcGp12BaseDefectService QcGp12BaseDefectService)
|
||||
{
|
||||
_QcGp12BaseDefectService = QcGp12BaseDefectService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础缺陷项列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basedefect:list")]
|
||||
public IActionResult QueryQcGp12BaseDefect([FromQuery] QcGp12BaseDefectQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12BaseDefectService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础缺陷项详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basedefect:query")]
|
||||
public IActionResult GetQcGp12BaseDefect(int Id)
|
||||
{
|
||||
var response = _QcGp12BaseDefectService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12BaseDefect>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12基础缺陷项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basedefect:add")]
|
||||
[Log(Title = "质量GP12基础缺陷项", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12BaseDefect([FromBody] QcGp12BaseDefectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseDefect>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12BaseDefectService.AddQcGp12BaseDefect(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12基础缺陷项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basedefect:edit")]
|
||||
[Log(Title = "质量GP12基础缺陷项", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12BaseDefect([FromBody] QcGp12BaseDefectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseDefect>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12BaseDefectService.UpdateQcGp12BaseDefect(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12基础缺陷项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basedefect:delete")]
|
||||
[Log(Title = "质量GP12基础缺陷项", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12BaseDefect(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12BaseDefectService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12BaseGroup")]
|
||||
public class QcGp12BaseGroupController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12班组接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12BaseGroupService _QcGp12BaseGroupService;
|
||||
|
||||
public QcGp12BaseGroupController(IQcGp12BaseGroupService QcGp12BaseGroupService)
|
||||
{
|
||||
_QcGp12BaseGroupService = QcGp12BaseGroupService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12班组列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basegroup:list")]
|
||||
public IActionResult QueryQcGp12BaseGroup([FromQuery] QcGp12BaseGroupQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12BaseGroupService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12班组详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basegroup:query")]
|
||||
public IActionResult GetQcGp12BaseGroup(int Id)
|
||||
{
|
||||
var response = _QcGp12BaseGroupService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12BaseGroup>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12班组
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basegroup:add")]
|
||||
[Log(Title = "质量GP12班组", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12BaseGroup([FromBody] QcGp12BaseGroupDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseGroup>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12BaseGroupService.AddQcGp12BaseGroup(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12班组
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basegroup:edit")]
|
||||
[Log(Title = "质量GP12班组", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12BaseGroup([FromBody] QcGp12BaseGroupDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseGroup>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12BaseGroupService.UpdateQcGp12BaseGroup(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12班组
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basegroup:delete")]
|
||||
[Log(Title = "质量GP12班组", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12BaseGroup(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12BaseGroupService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12BaseLabelAnalysis")]
|
||||
public class QcGp12BaseLabelAnalysisController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12基础标签解析接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12BaseLabelAnalysisService _QcGp12BaseLabelAnalysisService;
|
||||
|
||||
public QcGp12BaseLabelAnalysisController(IQcGp12BaseLabelAnalysisService QcGp12BaseLabelAnalysisService)
|
||||
{
|
||||
_QcGp12BaseLabelAnalysisService = QcGp12BaseLabelAnalysisService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础标签解析列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12baselabelanalysis:list")]
|
||||
public IActionResult QueryQcGp12BaseLabelAnalysis([FromQuery] QcGp12BaseLabelAnalysisQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12BaseLabelAnalysisService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础标签解析详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12baselabelanalysis:query")]
|
||||
public IActionResult GetQcGp12BaseLabelAnalysis(int Id)
|
||||
{
|
||||
var response = _QcGp12BaseLabelAnalysisService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12BaseLabelAnalysis>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12基础标签解析
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12baselabelanalysis:add")]
|
||||
[Log(Title = "质量GP12基础标签解析", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12BaseLabelAnalysis([FromBody] QcGp12BaseLabelAnalysisDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseLabelAnalysis>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12BaseLabelAnalysisService.AddQcGp12BaseLabelAnalysis(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12基础标签解析
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12baselabelanalysis:edit")]
|
||||
[Log(Title = "质量GP12基础标签解析", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12BaseLabelAnalysis([FromBody] QcGp12BaseLabelAnalysisDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseLabelAnalysis>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12BaseLabelAnalysisService.UpdateQcGp12BaseLabelAnalysis(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12基础标签解析
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12baselabelanalysis:delete")]
|
||||
[Log(Title = "质量GP12基础标签解析", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12BaseLabelAnalysis(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12BaseLabelAnalysisService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12BaseSite")]
|
||||
public class QcGp12BaseSiteController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12基础站点接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12BaseSiteService _QcGp12BaseSiteService;
|
||||
|
||||
public QcGp12BaseSiteController(IQcGp12BaseSiteService QcGp12BaseSiteService)
|
||||
{
|
||||
_QcGp12BaseSiteService = QcGp12BaseSiteService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础站点列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basesite:list")]
|
||||
public IActionResult QueryQcGp12BaseSite([FromQuery] QcGp12BaseSiteQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12BaseSiteService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12基础站点详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basesite:query")]
|
||||
public IActionResult GetQcGp12BaseSite(int Id)
|
||||
{
|
||||
var response = _QcGp12BaseSiteService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12BaseSite>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12基础站点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basesite:add")]
|
||||
[Log(Title = "质量GP12基础站点", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12BaseSite([FromBody] QcGp12BaseSiteDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseSite>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12BaseSiteService.AddQcGp12BaseSite(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12基础站点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basesite:edit")]
|
||||
[Log(Title = "质量GP12基础站点", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12BaseSite([FromBody] QcGp12BaseSiteDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12BaseSite>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12BaseSiteService.UpdateQcGp12BaseSite(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12基础站点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12basesite:delete")]
|
||||
[Log(Title = "质量GP12基础站点", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12BaseSite(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12BaseSiteService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
98
ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12Controller.cs
Normal file
98
ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12Controller.cs
Normal 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);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12LogWorkorder")]
|
||||
public class QcGp12LogWorkorderController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12工单操作日志接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12LogWorkorderService _QcGp12LogWorkorderService;
|
||||
|
||||
public QcGp12LogWorkorderController(IQcGp12LogWorkorderService QcGp12LogWorkorderService)
|
||||
{
|
||||
_QcGp12LogWorkorderService = QcGp12LogWorkorderService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单操作日志列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12logworkorder:list")]
|
||||
public IActionResult QueryQcGp12LogWorkorder([FromQuery] QcGp12LogWorkorderQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12LogWorkorderService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单操作日志详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12logworkorder:query")]
|
||||
public IActionResult GetQcGp12LogWorkorder(string Id)
|
||||
{
|
||||
var response = _QcGp12LogWorkorderService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12LogWorkorder>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12工单操作日志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12logworkorder:add")]
|
||||
[Log(Title = "质量GP12工单操作日志", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12LogWorkorder([FromBody] QcGp12LogWorkorderDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12LogWorkorder>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12LogWorkorderService.AddQcGp12LogWorkorder(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12工单操作日志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12logworkorder:edit")]
|
||||
[Log(Title = "质量GP12工单操作日志", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12LogWorkorder([FromBody] QcGp12LogWorkorderDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12LogWorkorder>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12LogWorkorderService.UpdateQcGp12LogWorkorder(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12工单操作日志
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12logworkorder:delete")]
|
||||
[Log(Title = "质量GP12工单操作日志", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12LogWorkorder(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12LogWorkorderService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12RecordLabelScan")]
|
||||
public class QcGp12RecordLabelScanController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12扫码标签记录接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12RecordLabelScanService _QcGp12RecordLabelScanService;
|
||||
|
||||
public QcGp12RecordLabelScanController(IQcGp12RecordLabelScanService QcGp12RecordLabelScanService)
|
||||
{
|
||||
_QcGp12RecordLabelScanService = QcGp12RecordLabelScanService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12扫码标签记录列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordlabelscan:list")]
|
||||
public IActionResult QueryQcGp12RecordLabelScan([FromQuery] QcGp12RecordLabelScanQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12RecordLabelScanService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12扫码标签记录详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordlabelscan:query")]
|
||||
public IActionResult GetQcGp12RecordLabelScan(string Id)
|
||||
{
|
||||
var response = _QcGp12RecordLabelScanService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12RecordLabelScan>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12扫码标签记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordlabelscan:add")]
|
||||
[Log(Title = "质量GP12扫码标签记录", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12RecordLabelScan([FromBody] QcGp12RecordLabelScanDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12RecordLabelScan>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12RecordLabelScanService.AddQcGp12RecordLabelScan(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12扫码标签记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordlabelscan:edit")]
|
||||
[Log(Title = "质量GP12扫码标签记录", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12RecordLabelScan([FromBody] QcGp12RecordLabelScanDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12RecordLabelScan>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12RecordLabelScanService.UpdateQcGp12RecordLabelScan(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12扫码标签记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordlabelscan:delete")]
|
||||
[Log(Title = "质量GP12扫码标签记录", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12RecordLabelScan(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12RecordLabelScanService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12RecordWorkorderDefect")]
|
||||
public class QcGp12RecordWorkorderDefectController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12工单缺陷项记录接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12RecordWorkorderDefectService _QcGp12RecordWorkorderDefectService;
|
||||
|
||||
public QcGp12RecordWorkorderDefectController(IQcGp12RecordWorkorderDefectService QcGp12RecordWorkorderDefectService)
|
||||
{
|
||||
_QcGp12RecordWorkorderDefectService = QcGp12RecordWorkorderDefectService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单缺陷项记录列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordworkorderdefect:list")]
|
||||
public IActionResult QueryQcGp12RecordWorkorderDefect([FromQuery] QcGp12RecordWorkorderDefectQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12RecordWorkorderDefectService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单缺陷项记录详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordworkorderdefect:query")]
|
||||
public IActionResult GetQcGp12RecordWorkorderDefect(string Id)
|
||||
{
|
||||
var response = _QcGp12RecordWorkorderDefectService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12RecordWorkorderDefect>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12工单缺陷项记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordworkorderdefect:add")]
|
||||
[Log(Title = "质量GP12工单缺陷项记录", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12RecordWorkorderDefect([FromBody] QcGp12RecordWorkorderDefectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12RecordWorkorderDefect>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12RecordWorkorderDefectService.AddQcGp12RecordWorkorderDefect(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12工单缺陷项记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordworkorderdefect:edit")]
|
||||
[Log(Title = "质量GP12工单缺陷项记录", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12RecordWorkorderDefect([FromBody] QcGp12RecordWorkorderDefectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12RecordWorkorderDefect>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12RecordWorkorderDefectService.UpdateQcGp12RecordWorkorderDefect(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12工单缺陷项记录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12recordworkorderdefect:delete")]
|
||||
[Log(Title = "质量GP12工单缺陷项记录", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12RecordWorkorderDefect(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12RecordWorkorderDefectService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12ServiceStatistics")]
|
||||
public class QcGp12ServiceStatisticsController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12统计报表业务模块接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12ServiceStatisticsService _QcGp12ServiceStatisticsService;
|
||||
|
||||
public QcGp12ServiceStatisticsController(IQcGp12ServiceStatisticsService QcGp12ServiceStatisticsService)
|
||||
{
|
||||
_QcGp12ServiceStatisticsService = QcGp12ServiceStatisticsService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12统计报表业务模块列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12servicestatistics:list")]
|
||||
public IActionResult QueryQcGp12ServiceStatistics([FromQuery] QcGp12ServiceStatisticsQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12ServiceStatisticsService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12统计报表业务模块详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12servicestatistics:query")]
|
||||
public IActionResult GetQcGp12ServiceStatistics(string Id)
|
||||
{
|
||||
var response = _QcGp12ServiceStatisticsService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12ServiceStatistics>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12统计报表业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12servicestatistics:add")]
|
||||
[Log(Title = "质量GP12统计报表业务模块", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12ServiceStatistics([FromBody] QcGp12ServiceStatisticsDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12ServiceStatistics>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12ServiceStatisticsService.AddQcGp12ServiceStatistics(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12统计报表业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12servicestatistics:edit")]
|
||||
[Log(Title = "质量GP12统计报表业务模块", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12ServiceStatistics([FromBody] QcGp12ServiceStatisticsDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12ServiceStatistics>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12ServiceStatisticsService.UpdateQcGp12ServiceStatistics(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12统计报表业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12servicestatistics:delete")]
|
||||
[Log(Title = "质量GP12统计报表业务模块", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12ServiceStatistics(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12ServiceStatisticsService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
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>
|
||||
[Verify]
|
||||
[Route("/mes/qc/gp12/QcGp12ServiceWorkorder")]
|
||||
public class QcGp12ServiceWorkorderController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12工单业务模块接口
|
||||
/// </summary>
|
||||
private readonly IQcGp12ServiceWorkorderService _QcGp12ServiceWorkorderService;
|
||||
|
||||
public QcGp12ServiceWorkorderController(IQcGp12ServiceWorkorderService QcGp12ServiceWorkorderService)
|
||||
{
|
||||
_QcGp12ServiceWorkorderService = QcGp12ServiceWorkorderService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单业务模块列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12serviceworkorder:list")]
|
||||
public IActionResult QueryQcGp12ServiceWorkorder([FromQuery] QcGp12ServiceWorkorderQueryDto parm)
|
||||
{
|
||||
var response = _QcGp12ServiceWorkorderService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询质量GP12工单业务模块详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12serviceworkorder:query")]
|
||||
public IActionResult GetQcGp12ServiceWorkorder(string Id)
|
||||
{
|
||||
var response = _QcGp12ServiceWorkorderService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<QcGp12ServiceWorkorder>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加质量GP12工单业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12serviceworkorder:add")]
|
||||
[Log(Title = "质量GP12工单业务模块", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddQcGp12ServiceWorkorder([FromBody] QcGp12ServiceWorkorderDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12ServiceWorkorder>().ToCreate(HttpContext);
|
||||
|
||||
var response = _QcGp12ServiceWorkorderService.AddQcGp12ServiceWorkorder(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新质量GP12工单业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12serviceworkorder:edit")]
|
||||
[Log(Title = "质量GP12工单业务模块", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateQcGp12ServiceWorkorder([FromBody] QcGp12ServiceWorkorderDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<QcGp12ServiceWorkorder>().ToUpdate(HttpContext);
|
||||
var response = _QcGp12ServiceWorkorderService.UpdateQcGp12ServiceWorkorder(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除质量GP12工单业务模块
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:qcgp12serviceworkorder:delete")]
|
||||
[Log(Title = "质量GP12工单业务模块", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteQcGp12ServiceWorkorder(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _QcGp12ServiceWorkorderService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user