视觉设备判定记录
This commit is contained in:
@@ -3356,6 +3356,13 @@ namespace Tnb.ProductionMgr
|
||||
public async Task<dynamic> VisionResult(MarkingLabelInput input)
|
||||
{
|
||||
Log.Information($"视觉设备判定参数:{JsonConvert.SerializeObject(input)}");
|
||||
PrdVisionResultRecord reocrd = new PrdVisionResultRecord();
|
||||
reocrd.id = SnowflakeIdHelper.NextId();
|
||||
reocrd.info = input.mark_code;
|
||||
reocrd.result = input.result;
|
||||
reocrd.create_time = DateTime.Now;
|
||||
reocrd.num = int.Parse(input.station_id);
|
||||
await _db.Insertable(reocrd).ExecuteCommandAsync();
|
||||
return $"接收到参数:{JsonConvert.SerializeObject(input)}";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user