质量统计
This commit is contained in:
12
ZR.Admin.WebApi/AutoMapperProfile/AutoMapperProfile.cs
Normal file
12
ZR.Admin.WebApi/AutoMapperProfile/AutoMapperProfile.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace ZR.Admin.WebApi.AutoMapperProfile
|
||||
{
|
||||
public class AutoMapperProfile : Profile
|
||||
{
|
||||
public AutoMapperProfile() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,21 @@ namespace ZR.Admin.WebApi.Controllers.mes.op.quality
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取缺陷项详情
|
||||
/// </summary>
|
||||
/// <param name="fkWorkorderId">工单</param>
|
||||
/// <param name="order">缺陷项类型</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("QueryDetailsOfDetectionItems")]
|
||||
public IActionResult QueryDetailsOfDetectionItems(string fkWorkorderId,int index)
|
||||
{
|
||||
List<DetailsOfDetectionDTO> data= operationService.QueryDetailsOfDetection(fkWorkorderId, index);
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text.Json.Serialization;
|
||||
using ZR.Admin.WebApi.AutoMapperProfile;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Admin.WebApi.Framework;
|
||||
@@ -90,6 +91,8 @@ builder.Services.AddMvc(options =>
|
||||
|
||||
builder.Services.AddSwaggerConfig();
|
||||
|
||||
builder.Services.AddAutoMapper(typeof(AutoMapperProfile));
|
||||
|
||||
var app = builder.Build();
|
||||
InternalApp.ServiceProvider = app.Services;
|
||||
InternalApp.Configuration = builder.Configuration;
|
||||
|
||||
Reference in New Issue
Block a user