解决代码冲突
This commit is contained in:
@@ -318,7 +318,7 @@ namespace Tnb.WarehouseMgr
|
||||
x.bill_code = $"{groupCode}-1";
|
||||
}
|
||||
}
|
||||
else if ((moveNum >= areaPreTasks.Count && areaPreTasks.Count > 1) || moveNum < areaPreTasks.Count)
|
||||
else if ((moveNum >= areaPreTasks.Count && areaPreTasks.Count > 1) || moveNum <= areaPreTasks.Count)
|
||||
{
|
||||
string groupCode = await _billRullService.GetBillNumber(WmsWareHouseConst.WMS_TASK_EXECUTE_ENCODE);
|
||||
items.ForEach(x => x.is_chain = 1);
|
||||
|
||||
@@ -243,6 +243,7 @@ namespace Tnb.WarehouseMgr
|
||||
endlocation_id = ePoint?.location_id!,
|
||||
endlocation_code = ePoint?.location_code!,
|
||||
startpoint_id = sPoint?.id!,
|
||||
startpoint_code = sPoint?.point_code!,
|
||||
endpoint_id = ePoint?.id!,
|
||||
endpoint_code = ePoint?.point_code!,
|
||||
start_floor = sPoint?.floor.ToString(),
|
||||
@@ -391,7 +392,7 @@ namespace Tnb.WarehouseMgr
|
||||
var carryCodes = await _db.Queryable<BasLocation>().InnerJoin<WmsCarryCode>((a, b) => a.id == b.location_id)
|
||||
.InnerJoin<WmsCarryH>((a, b, c) => b.carry_id == c.id)
|
||||
.Where(filterExp)
|
||||
.Select((a, b, c) => new WmsCarryCode { carry_code = c.carry_code }, true)
|
||||
.Select<WmsCarryCode>()
|
||||
.ToListAsync();
|
||||
|
||||
List<WmsCheckstockD> outputs = carryCodes.GroupBy(g => new { g.material_code, g.code_batch, g.location_code, g.carry_id }).Select(x => new WmsCheckstockD
|
||||
|
||||
@@ -6,6 +6,7 @@ using JNPF.EventBus;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
@@ -267,6 +268,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> MESCreateInstock(MESCreateInstockInput input)
|
||||
{
|
||||
bool isSuccessFul = false;
|
||||
@@ -308,8 +310,8 @@ namespace Tnb.WarehouseMgr
|
||||
instock.location_id = loc.id;
|
||||
instock.biz_type = WmsWareHouseConst.BIZTYPE_WMSINSTOCK_ID;
|
||||
instock.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_INSTOCK_ENCODE).GetAwaiter().GetResult();
|
||||
instock.generate_type = "1";// 自动
|
||||
instock.sync_status = WmsWareHouseConst.SYNC_STATUS__NOTSYNC;//未同步
|
||||
instock.generate_type = "0";// 人工
|
||||
instock.sync_status = WmsWareHouseConst.SYNC_STATUS_NONEEDSYNC;//无需同步
|
||||
instock.print_status = WmsWareHouseConst.PRINT_STATUS_PRINTCOMPLETE;//已打印
|
||||
instock.status = WmsWareHouseConst.BILLSTATUS_ADD_ID;// 新增
|
||||
instock.create_time = DateTime.Now;
|
||||
@@ -347,7 +349,7 @@ namespace Tnb.WarehouseMgr
|
||||
instockCOdes.Add(c);
|
||||
}
|
||||
}
|
||||
string orgId = _userManager.User.OrganizeId;
|
||||
string orgId = _userManager.User?.OrganizeId ?? input.instock.org_id;
|
||||
_ = await _db.Insertable(instockCOdes).CallEntityMethod(it => it.Create(orgId)).ExecuteCommandAsync();
|
||||
|
||||
//生成预任务申请
|
||||
@@ -370,7 +372,7 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
WmsPretaskH preTask = new()
|
||||
{
|
||||
org_id = _userManager.User.OrganizeId,
|
||||
org_id = orgId,
|
||||
startlocation_id = sPoint?.location_id ?? string.Empty,
|
||||
startlocation_code = sPoint?.location_code ?? string.Empty,
|
||||
endlocation_id = ePoint?.location_id ?? string.Empty,
|
||||
@@ -387,7 +389,7 @@ namespace Tnb.WarehouseMgr
|
||||
area_code = it.Key,
|
||||
require_id = instock?.id ?? string.Empty,
|
||||
require_code = instock?.bill_code ?? string.Empty,
|
||||
create_id = _userManager.UserId,
|
||||
create_id = instock.create_id,
|
||||
create_time = DateTime.Now
|
||||
};
|
||||
return preTask;
|
||||
@@ -446,16 +448,16 @@ namespace Tnb.WarehouseMgr
|
||||
{
|
||||
WmsHandleCode handleCode = jo.Adapt<WmsHandleCode>();
|
||||
handleCode.id = SnowflakeIdHelper.NextId();
|
||||
handleCode.org_id = _userManager.User.OrganizeId;
|
||||
handleCode.org_id = orgId;
|
||||
handleCode.bill_id = operBillId;
|
||||
handleCode.create_id = _userManager.UserId;
|
||||
handleCode.create_id = instock.create_id;
|
||||
handleCode.create_time = DateTime.Now;
|
||||
preTaskUpInput.PreTaskHandleCodes.Add(handleCode);
|
||||
}
|
||||
}
|
||||
//生成载具条码记录
|
||||
List<WmsCarryCode> carryCodes = preTaskUpInput.PreTaskHandleCodes.Adapt<List<WmsCarryCode>>();
|
||||
|
||||
|
||||
carryCodes.ForEach(x =>
|
||||
{
|
||||
x.id = SnowflakeIdHelper.NextId();
|
||||
@@ -498,6 +500,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> MesFetchInOutStockInfoByBarCode(MaterialLabelQuery input)
|
||||
{
|
||||
if (input.IsNull())
|
||||
|
||||
@@ -13,6 +13,7 @@ using JNPF.VisualDev;
|
||||
using JNPF.VisualDev.Entitys;
|
||||
using JNPF.VisualDev.Interfaces;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
@@ -551,6 +552,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
//[NonUnify]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> MESCreateOutstock(MESCreateOutstockInput input)
|
||||
{
|
||||
bool isSuccessful = true;
|
||||
@@ -574,8 +576,8 @@ namespace Tnb.WarehouseMgr
|
||||
outstock.location_id = location.id;
|
||||
outstock.biz_type = WmsWareHouseConst.BIZTYPE_WMSOUTSTOCK_ID;
|
||||
outstock.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_OUTSTOCK_ENCODE).GetAwaiter().GetResult();
|
||||
outstock.generate_type = "1";// 自动
|
||||
outstock.sync_status = WmsWareHouseConst.SYNC_STATUS__NOTSYNC;//未同步
|
||||
outstock.generate_type = "0";// 自动
|
||||
outstock.sync_status = WmsWareHouseConst.SYNC_STATUS_NONEEDSYNC;//未同步
|
||||
outstock.status = WmsWareHouseConst.BILLSTATUS_ADD_ID;// 新增
|
||||
outstock.create_id = _userManager.UserId;
|
||||
outstock.create_time = DateTime.Now;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
@@ -114,6 +115,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> MESCarrySign(MESCarrySignInput input)
|
||||
{
|
||||
if (input.IsNull())
|
||||
|
||||
@@ -12,6 +12,7 @@ using JNPF.LinqBuilder;
|
||||
using JNPF.Logging;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
@@ -391,6 +392,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> MESKittingOutStk(List<MESKittingOutStkInput> input)
|
||||
{
|
||||
bool isSuccessFul = false;
|
||||
|
||||
Reference in New Issue
Block a user