首检添加数据看板

This commit is contained in:
2024-06-07 11:04:26 +08:00
parent c93711290e
commit 769d2da1e0
344 changed files with 1772 additions and 2526 deletions

View File

@@ -1,13 +1,8 @@
using Infrastructure;
using Infrastructure.Constant;
using Infrastructure.Model;
using Infrastructure.Constant;
using IPTools.Core;
using Microsoft.AspNetCore.SignalR;
using System.ComponentModel;
using System.Diagnostics.Metrics;
using UAParser;
using ZR.Admin.WebApi.Extensions;
using ZR.Service.mes.qc;
using ZR.Service.mes.qc.IService;
using ZR.Service.System.IService;
@@ -118,22 +113,22 @@ namespace ZR.Admin.WebApi.Hubs
public async Task SaveCacheInformation_v1(string workorderid, string Moudle, string checkid)
{
//缓存key
string checkid_Key =checkid + "_" + workorderid + "_v1";
string checkid_Key = checkid + "_" + workorderid + "_v1";
if (CacheHelper.Exists(checkid_Key))
{
int sum = Convert.ToInt32(CacheHelper.GetCache(checkid_Key)) + 1;
logger.Info($"当前保存工单号{workorderid},检测项{checkid_Key},累加的数为{sum}");
CacheHelper.SetCache(checkid_Key, sum);
await firstFQCService.SaveinspectItem_v1(workorderid,Moudle, checkid_Key, sum);
await firstFQCService.SaveinspectItem_v1(workorderid, Moudle, checkid_Key, sum);
await Clients.All.SendAsync("GetCache_v1", Moudle, checkid_Key, sum);
}
else
{
CacheHelper.SetCache(checkid_Key, 1);
logger.Info($"当前保存工单号{workorderid},检测项{checkid_Key}累加的数为1");
await firstFQCService.SaveinspectItem_v1(workorderid, Moudle, checkid_Key, 1);
await firstFQCService.SaveinspectItem_v1(workorderid, Moudle, checkid_Key, 1);
await Clients.All.SendAsync("GetCache_v1", Moudle, checkid_Key, 1);
}
}