bug
This commit is contained in:
@@ -598,7 +598,7 @@ namespace Tnb.ProductionMgr
|
||||
throw Oops.Bah("来源id为空");
|
||||
}
|
||||
|
||||
var db = _repository.AsSugarClient();
|
||||
var db = _repository.CopyNew();
|
||||
PrdMoTask moTask = await db.Queryable<PrdMoTask>().SingleAsync(x => x.id == input.requireId);
|
||||
if (moTask == null)
|
||||
{
|
||||
@@ -738,32 +738,38 @@ namespace Tnb.ProductionMgr
|
||||
}
|
||||
else
|
||||
{
|
||||
Result result = await _wmsCarryUnbindService.CarryCodeUnbindWithoutTran(new CarryCodeUnbindInput()
|
||||
{
|
||||
carry_id = detail.member_carry_id
|
||||
},db);
|
||||
|
||||
|
||||
if (result.code != HttpStatusCode.OK)
|
||||
{
|
||||
throw Oops.Bah(result.msg);
|
||||
}
|
||||
// Result result = await _wmsCarryUnbindService.CarryCodeUnbindWithoutTran(new CarryCodeUnbindInput()
|
||||
// {
|
||||
// carry_id = detail.member_carry_id
|
||||
// },db);
|
||||
//
|
||||
//
|
||||
// if (result.code != HttpStatusCode.OK)
|
||||
// {
|
||||
// throw Oops.Bah(result.msg);
|
||||
// }
|
||||
|
||||
int row = await db.Deleteable<WmsCarryCode>().Where(r => r.carry_id == detail.member_carry_id).ExecuteCommandAsync();
|
||||
Log.Information($"载具{detail.member_carry_id}已解绑,解绑条数{row}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
||||
{
|
||||
Result result = await _wmsCarryUnbindService.CarryCodeUnbindWithoutTran(new CarryCodeUnbindInput()
|
||||
{
|
||||
carry_id = carry.id
|
||||
},db);
|
||||
|
||||
|
||||
if (result.code != HttpStatusCode.OK)
|
||||
{
|
||||
throw Oops.Bah(result.msg);
|
||||
}
|
||||
// Result result = await _wmsCarryUnbindService.CarryCodeUnbindWithoutTran(new CarryCodeUnbindInput()
|
||||
// {
|
||||
// carry_id = carry.id
|
||||
// },db);
|
||||
//
|
||||
//
|
||||
// if (result.code != HttpStatusCode.OK)
|
||||
// {
|
||||
// throw Oops.Bah(result.msg);
|
||||
// }
|
||||
|
||||
int row = await db.Deleteable<WmsCarryCode>().Where(r => r.carry_id == carry.id).ExecuteCommandAsync();
|
||||
Log.Information($"载具{carry.id}已解绑,解绑条数{row}");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -774,22 +780,24 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
if (carry.carrystd_id==WmsWareHouseConst.CARRY_LXSTD_ID || carry.carrystd_id==WmsWareHouseConst.CARRY_LJSTD_ID)
|
||||
{
|
||||
Result result2 = await _wmsCarryUnbindService.CarryUnbindWithoutTran(new CarryBindInput()
|
||||
{
|
||||
org = prdFeedingH.org_id,
|
||||
create_id = prdFeedingH.create_id,
|
||||
carry_id = prdMaterialReceiptH.carry_id,
|
||||
carry_code = prdMaterialReceiptH.carry_code,
|
||||
carrystd_id = carry.carrystd_id,
|
||||
membercarry_code = "",
|
||||
membercarry_id = "",
|
||||
},db);
|
||||
|
||||
if (result2.code != HttpStatusCode.OK)
|
||||
{
|
||||
throw Oops.Bah(result2.msg);
|
||||
}
|
||||
// Result result2 = await _wmsCarryUnbindService.CarryUnbindWithoutTran(new CarryBindInput()
|
||||
// {
|
||||
// org = prdFeedingH.org_id,
|
||||
// create_id = prdFeedingH.create_id,
|
||||
// carry_id = prdMaterialReceiptH.carry_id,
|
||||
// carry_code = prdMaterialReceiptH.carry_code,
|
||||
// carrystd_id = carry.carrystd_id,
|
||||
// membercarry_code = "",
|
||||
// membercarry_id = "",
|
||||
// },db);
|
||||
//
|
||||
// if (result2.code != HttpStatusCode.OK)
|
||||
// {
|
||||
// throw Oops.Bah(result2.msg);
|
||||
// }
|
||||
|
||||
int row = await db.Deleteable<WmsCarryD>().Where(r => r.carry_id == prdMaterialReceiptH.carry_id).ExecuteCommandAsync();
|
||||
Log.Information($"载具{prdMaterialReceiptH.carry_id}已解绑,解绑条数{row}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user