ADD-添加工位编号

master
liuwf 4 months ago
parent 5dbcb2f8a9
commit 3e94825c8a

@ -220,6 +220,7 @@ namespace SlnMesnac.Business
record.isChecked = logoConfig.IsChecked;
record.Result = hikFlag ? 1 : 0;
record.RecordTime = DateTime.Now;
record.ProductLine = config.ProductLine;
if (compressedImageData != null)
{
record.Picture = compressedImageData;

@ -26,6 +26,15 @@ namespace SlnMesnac.Config
}
/// <summary>
///工位编号
/// </summary>
public string ProductLine
{
get { return iniHelper.IniReadValue("system", "ProductLine"); }
set { iniHelper.IniWriteValue("system", "ProductLine", value); }
}
/// <summary>
/// 海康扫码器--IP
/// </summary>

@ -58,6 +58,10 @@ namespace SlnMesnac.Model.domain
[SugarColumn(ColumnName = "PICTURE")]
public Byte[]? Picture { get; set; }
/// <summary>
/// 工位编号
/// </summary>
[SugarColumn(ColumnName = "PRODUCT_LINE")]
public string ProductLine { get; set; }
}
}

@ -28,7 +28,7 @@ namespace SlnMesnac.Repository.service.Impl
//return list;
List<LogoIdentify> list = null;
list = await _rep.Context.Ado.SqlQueryAsync<LogoIdentify>("select ID,PRODUCT_CODE,MATERIAL_TYPE,IS_CHECKED,RESULT,RECORD_TIME,MATERIAL_NAME from LOGO_IDENTIFY where RECORD_TIME >= @RecordTime ", new { RecordTime = DateTime.Now.AddDays(-3) });
list = await _rep.Context.Ado.SqlQueryAsync<LogoIdentify>("select ID,PRODUCT_CODE,MATERIAL_TYPE,IS_CHECKED,RESULT,RECORD_TIME,MATERIAL_NAME,PRODUCT_LINE from LOGO_IDENTIFY where RECORD_TIME >= @RecordTime ", new { RecordTime = DateTime.Now.AddDays(-3) });
return list;
}
@ -45,7 +45,7 @@ namespace SlnMesnac.Repository.service.Impl
List<LogoIdentify> list = null;
list = await _rep.Context.Ado.SqlQueryAsync<LogoIdentify>("select ID,PRODUCT_CODE,MATERIAL_TYPE,IS_CHECKED,RESULT,RECORD_TIME,MATERIAL_NAME from LOGO_IDENTIFY where RECORD_TIME >= @RecordTime1 AND RECORD_TIME <= @RecordTime2 ", new { RecordTime1 = time1, RecordTime2 = time2 });
list = await _rep.Context.Ado.SqlQueryAsync<LogoIdentify>("select ID,PRODUCT_CODE,MATERIAL_TYPE,IS_CHECKED,RESULT,RECORD_TIME,MATERIAL_NAME,PRODUCT_LINE from LOGO_IDENTIFY where RECORD_TIME >= @RecordTime1 AND RECORD_TIME <= @RecordTime2 ", new { RecordTime1 = time1, RecordTime2 = time2 });
return list;

Loading…
Cancel
Save