This commit is contained in:
2024-06-29 16:42:15 +08:00
parent 4fb28a1fe3
commit c0a1efb77c
2 changed files with 13 additions and 7 deletions

View File

@@ -477,6 +477,11 @@ namespace Tnb.ProductionMgr
// .Where(x => x.carry_id == detail.member_carry_id)
// .ExecuteCommandAsync();
await db.Updateable<WmsCarryH>()
.SetColumns(x => x.carry_status == ((int)EnumCarryStatus.).ToString())
.Where(x => x.id==detail.member_carry_id)
.ExecuteCommandAsync();
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
{
carry_id = detail.member_carry_id
@@ -517,7 +522,8 @@ namespace Tnb.ProductionMgr
List<PrdMaterialReceiptD> dList = await db.Queryable<PrdMaterialReceiptD>()
.Where(x => x.material_receipt_id == prdMaterialReceiptH.id).ToListAsync();
List<String> carryIds = dList.Select(x => x.member_carry_id).ToList();
//List<String> carryIds = dList.Select(x => x.member_carry_id).ToList();
List<String> carryIds = new List<string>();
carryIds.Add(prdMaterialReceiptH.carry_id);
// foreach (var item in dList)
// {

View File

@@ -1697,12 +1697,12 @@ namespace Tnb.ProductionMgr
{
// if (dic.TryGetValue(prdMoTask.workline_id, out string value))
// {
materialBoxCode = await _redisData.GetHash("value", "WBZX_x1_take_tp");
if (materialBoxCode == null || materialBoxCode.IsEmpty())
{
throw Oops.Bah("托盘条码信息未空");
}
report.material_box_code = materialBoxCode;
// materialBoxCode = await _redisData.GetHash("value", "WBZX_x1_take_tp");
// if (materialBoxCode == null || materialBoxCode.IsEmpty())
// {
// throw Oops.Bah("托盘条码信息未空");
// }
report.material_box_code = input.material_box_code;
// }
// else
// {