生产工艺查询

This commit is contained in:
quowingwang 2026-01-20 16:11:20 +08:00
parent aa3bf64bdd
commit 59634efa31
2 changed files with 12 additions and 9 deletions

View File

@ -8,7 +8,8 @@ namespace RIZO.Admin.WebApi.PLC.Controllers
/// <summary>
/// 产线PLC生产参数数据表
/// </summary>
[Route("mes/PlcProductionData")]
[Route("plc/PlcProductionData")]
[AllowAnonymous]
public class PlcProductionDataController : BaseController
{
/// <summary>

View File

@ -1,22 +1,23 @@
using AspNetCoreRateLimit;
using Infrastructure.Converter;
using MDM;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Localization;
using NLog.Web;
using SqlSugar;
using System.Globalization;
using System.Text.Json;
using RIZO.Admin.WebApi.Extensions;
using RIZO.Admin.WebApi.PLC;
using RIZO.Admin.WebApi.PLC.Model;
using RIZO.Admin.WebApi.PLC.Service;
using RIZO.Admin.WebApi.PLC.Service.IService;
using RIZO.Common.Cache;
using RIZO.Common.DynamicApiSimple.Extens;
using RIZO.Infrastructure.WebExtensions;
using RIZO.Mall;
using RIZO.ServiceCore.Signalr;
using RIZO.ServiceCore.SqlSugar;
using RIZO.Mall;
using RIZO.Admin.WebApi.PLC;
using MDM;
using RIZO.Admin.WebApi.PLC.Model;
using RIZO.Admin.WebApi.PLC.Service;
using SqlSugar;
using System.Globalization;
using System.Text.Json;
//using SQLitePCL;
var builder = WebApplication.CreateBuilder(args);
@ -32,6 +33,7 @@ builder.Services.AddControllers();
builder.Services.Configure<List<PlcConfig>>(builder.Configuration.GetSection("PlcConfigs"));
builder.Services.Configure<GlobalPlcConfig>(builder.Configuration.GetSection("GlobalPlcConfig"));
builder.Services.AddSingleton<PlcService>();
builder.Services.AddScoped<IPlcProductionDataService, PlcProductionDataService>();
// 新增注册PLC后台监听服务项目启动自动执行
//builder.Services.AddHostedService<PlcHostedService>();
// ==========================