注塑空箱配送控制

This commit is contained in:
2024-10-12 11:34:57 +08:00
parent 16d0cae943
commit 10d7470b56
4 changed files with 20 additions and 1 deletions

View File

@@ -225,6 +225,8 @@ public partial class EquipListOuput
public string? as_location_id { get; set; }
public string? as_location_id_id { get; set; }
public string is_send { get; set; }
}

View File

@@ -233,4 +233,10 @@ public partial class EqpEquipment : BaseEntity<string>
/// 截料阀
/// </summary>
public string stop_valve { get; set; }
/// <summary>
/// 注塑空载具是否配送
/// </summary>
public int is_send { get; set; }
}

View File

@@ -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 "成功";
}
}
}