46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using DOAN.Admin.WebApi.Filters;
|
|
using DOAN.Service.Mobile;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using DOAN.Service.Mobile.IService;
|
|
using DOAN.Model.Mobile.Dto;
|
|
using DOAN.Service.MES.product.IService;
|
|
|
|
namespace DOAN.Admin.Mobile.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 移动端 报工
|
|
/// </summary>
|
|
|
|
[Route("mes/Mobile/ReportWork")]
|
|
public class PADReportWorkController : BaseController
|
|
{
|
|
/// <summary>
|
|
/// 报工表接口
|
|
/// </summary>
|
|
private readonly IPADReportWorkService padReportWorkService;
|
|
|
|
public PADReportWorkController(IPADReportWorkService padReportWorkService)
|
|
{
|
|
this.padReportWorkService = padReportWorkService;
|
|
}
|
|
|
|
|
|
//TODO 无需防错就报工
|
|
/// <summary>
|
|
/// 无需防错就报工
|
|
/// </summary>
|
|
/// <param name="wokorder">工单</param>
|
|
/// <param name="reportNum">报工数</param>
|
|
/// <returns></returns>
|
|
[HttpGet("no_errorProofingAndReportingReport")]
|
|
public IActionResult NoErrorProofingAndReportingReport(string workorder,int reportNum)
|
|
{
|
|
if (string.IsNullOrEmpty(workorder) || reportNum<=0)
|
|
throw new CustomException("workorder或者报工数为0");
|
|
var response = padReportWorkService.NoErrorProofingAndReportingReport(workorder, reportNum);
|
|
return SUCCESS(response);
|
|
}
|
|
}
|
|
}
|
|
|