bug
This commit is contained in:
@@ -494,18 +494,36 @@ namespace Tnb.ProductionMgr
|
|||||||
.SetColumns(x => x.carry_status == ((int)EnumCarryStatus.空闲).ToString())
|
.SetColumns(x => x.carry_status == ((int)EnumCarryStatus.空闲).ToString())
|
||||||
.Where(x => x.carry_code==input.carry_code)
|
.Where(x => x.carry_code==input.carry_code)
|
||||||
.ExecuteCommandAsync();
|
.ExecuteCommandAsync();
|
||||||
|
|
||||||
|
|
||||||
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
|
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
||||||
{
|
{
|
||||||
carry_id = detail.member_carry_id
|
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
|
||||||
});
|
{
|
||||||
|
carry_id = carry.id
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
if (result.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
if (result.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
||||||
{
|
{
|
||||||
throw Oops.Bah(result.msg);
|
throw Oops.Bah(result.msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
|
||||||
|
{
|
||||||
|
carry_id = detail.member_carry_id
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
if (result.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
||||||
|
{
|
||||||
|
throw Oops.Bah(result.msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user