1
This commit is contained in:
@@ -72,22 +72,24 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
var loc = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == carry.location_id);
|
||||
loc.is_use = (int)EnumCarryStatus.空闲;
|
||||
carry.location_id = null;
|
||||
carry.location_code = null;
|
||||
await _db.Updateable(loc).UpdateColumns(it => it.is_use).ExecuteCommandAsync();
|
||||
await _db.Updateable(carry).UpdateColumns(it => new { it.location_id,it.location_code }).ExecuteCommandAsync();
|
||||
}
|
||||
carry.location_id = null;
|
||||
carry.location_code = null;
|
||||
await _db.Updateable(carry).UpdateColumns(it => new { it.location_id, it.location_code }).ExecuteCommandAsync();
|
||||
var disTask = await _db.Queryable<WmsDistaskH>().SingleAsync(it => it.id == input.disTaskId);
|
||||
if (disTask != null)
|
||||
{
|
||||
if (_dicBizType.ContainsKey(disTask.biz_type))
|
||||
{
|
||||
WareHouseUpInput upInput = new() {
|
||||
WareHouseUpInput upInput = new()
|
||||
{
|
||||
loginType = "web",
|
||||
bizTypeId = disTask.biz_type,
|
||||
requireId = disTask.require_id,
|
||||
bizTypeId = disTask.biz_type,
|
||||
requireId = disTask.require_id,
|
||||
carryIds = new List<string> { input.carryId },
|
||||
distaskCodes = input.distaskCodes };
|
||||
distaskCodes = input.distaskCodes
|
||||
};
|
||||
await DoUpdate(upInput); //回更业务
|
||||
//switch (_dicBizType[disTask.biz_type])
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user