This commit is contained in:
alex
2023-06-26 11:48:46 +08:00
parent 9e2b534e96
commit d7c43a8c51
6 changed files with 285 additions and 8 deletions

View File

@@ -32,8 +32,8 @@ namespace Tnb.WarehouseMgr
[HttpGet]
public async Task<dynamic> GetDisTasksByCarryId([FromRoute] string carryId)
{
var items = await _db.Queryable<WmsDistaskH>().Where(it => it.carry_id == carryId && it.status == WmsWareHouseConst.TASK_BILL_STATUS_COMPLE_ID && it.is_sign == 0).ToArrayAsync();
return items;
var item = await _db.Queryable<WmsDistaskH>().FirstAsync(it => it.carry_id == carryId && it.status == WmsWareHouseConst.TASK_BILL_STATUS_COMPLE_ID && it.is_sign == 0);
return item;
}
[HttpPost]
public async Task SaveData()