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