首检添加数据看板
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user