bug
This commit is contained in:
@@ -61,11 +61,15 @@ namespace Tnb.ProductionMgr
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetWeight(string device, string jihao)
|
||||
{
|
||||
EqpDaq eqpDaq1 = await _repository.AsSugarClient().Queryable<EqpDaq>().Where(x => x.equip_code == device && x.label_name.Contains("允许称重")).FirstAsync();
|
||||
EqpDaq eqpDaq1 = await _repository.AsSugarClient().Queryable<EqpDaq>().
|
||||
LeftJoin<EqpEquipment>((x,y)=>x.equip_id==y.id).
|
||||
Where((x,y) => y.code == device && x.label_name.Contains("允许称重")).FirstAsync();
|
||||
if (eqpDaq1 == null)
|
||||
{
|
||||
throw Oops.Bah("未在数据采集中设置允许称重标签点");
|
||||
}
|
||||
|
||||
device = eqpDaq1.equip_code;
|
||||
Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = device,
|
||||
|
||||
Reference in New Issue
Block a user