注塑空箱配送控制
This commit is contained in:
@@ -128,6 +128,7 @@ namespace Tnb.EquipMgr
|
||||
qrcode = a.qrcode,
|
||||
as_location_id = h.location_name,
|
||||
as_location_id_id = a.as_location_id,
|
||||
is_send = a.is_send==1 ? "是" : "否",
|
||||
}).ToPagedListAsync(input.currentPage,input.pageSize);
|
||||
return PageResult<EquipListOuput>.SqlSugarPageResult(result);
|
||||
|
||||
@@ -324,5 +325,15 @@ namespace Tnb.EquipMgr
|
||||
string qrcode = dic["qrcode"];
|
||||
return await _repository.GetSingleAsync(x => x.qrcode == qrcode);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> SaveSend(string id)
|
||||
{
|
||||
await _repository.AsSugarClient().Updateable<EqpEquipment>()
|
||||
.SetColumns(x => x.is_send == 1 - x.is_send)
|
||||
.Where(x => x.id == id)
|
||||
.ExecuteCommandAsync();
|
||||
return "成功";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user