|
@@ -1,8 +1,6 @@
|
|
|
using AutoMapper;
|
|
|
-using Microsoft.AspNetCore.Http;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using Newtonsoft.Json;
|
|
|
-using NPOI.SS.Formula.Functions;
|
|
|
using SqlSugar;
|
|
|
using System.Text.RegularExpressions;
|
|
|
using wms.api.Job;
|
|
@@ -31,52 +29,51 @@ namespace wms.api.Controllers
|
|
|
private readonly ICPService _cpService;
|
|
|
private readonly ILogger<CpController> _logger;
|
|
|
private readonly IMapper _mapper;
|
|
|
- static object lockerSalesDocTrans = new object();
|
|
|
- static object lockerSalesBackDocTrans = new object();
|
|
|
- static object lockerComPushApiResInfo = new object();
|
|
|
- static object lockerStockChange = new object();
|
|
|
- static object lockerMesReleaseFlag = new object();
|
|
|
-
|
|
|
- static object lockerStockStateChange = new object();
|
|
|
- static object lockerPdaCpGroupStock = new object(); //pda空托or 物料 or 间隔板组盘
|
|
|
- static object lockerPdaTrayTaskOut = new object(); //pda空托 or 间隔板出库
|
|
|
- static object lockerWCS_InTaskInfo = new object(); //入库任务
|
|
|
- static object lockerGetCpTunnelList = new object(); //巷道锁
|
|
|
- static object lockerCpCompleteTask = new object();
|
|
|
- static object lockerCpApplyStockInLoc = new object();
|
|
|
- static object lockerCpManualTaskOut = new object();
|
|
|
- static object lockerCpSrmPickOutCompleted = new object();
|
|
|
- static object lockerMoveTask = new object();
|
|
|
- static object lockerSalesDocOutTask = new object();
|
|
|
- static object lockerCpSyncMaterInfoList = new object();
|
|
|
- static object lockerCpCancelOrComplet = new object();
|
|
|
- static object lockerCpCarryTask = new object();
|
|
|
- static object lockerUpdatePuchState = new object();
|
|
|
- static object lockerForceCancelTask = new object();
|
|
|
- static object lockerDeleteStockInfo = new object();
|
|
|
- static object lockerUpdateStockState = new object();
|
|
|
- static object lockerUpdateCellState = new object();
|
|
|
- static object lockerDataSwapCell = new object();
|
|
|
- static object lockerDataBasePatch = new object();
|
|
|
- static object lockerDataMoveCell = new object();
|
|
|
- static object lockerErpCancelStock = new object();
|
|
|
- static object lockerPdaStockInBack = new object();
|
|
|
- static object lockerPreLockedStock = new object();
|
|
|
- static object lockerMoveTaskInfo = new object();
|
|
|
- static object lockerTrayPortageTask = new object();
|
|
|
- static object lockerTrayPortageTaskCheck = new object();
|
|
|
-
|
|
|
-
|
|
|
- static object lockerPalletAutoInTask = new object();
|
|
|
- static object lockWcsUploadInfo = new object();
|
|
|
- static object lockLabellingMachine = new object();
|
|
|
- static object lockerHandErrTask = new object();
|
|
|
- static object lockerPalletManualMoveTask = new object();
|
|
|
- static object lockerFlowDataMoveJob = new object();
|
|
|
- static object lockerProductBoxDetailUploadJob = new object();
|
|
|
-
|
|
|
-
|
|
|
- Repository<cpSysJob> _sysJobrepository => new Repository<cpSysJob>();
|
|
|
+ private static object lockerSalesDocTrans = new object();
|
|
|
+ private static object lockerSalesBackDocTrans = new object();
|
|
|
+ private static object lockerComPushApiResInfo = new object();
|
|
|
+ private static object lockerStockChange = new object();
|
|
|
+ private static object lockerMesReleaseFlag = new object();
|
|
|
+
|
|
|
+ private static object lockerStockStateChange = new object();
|
|
|
+ private static object lockerPdaCpGroupStock = new object(); //pda空托or 物料 or 间隔板组盘
|
|
|
+ private static object lockerPdaTrayTaskOut = new object(); //pda空托 or 间隔板出库
|
|
|
+ private static object lockerWCS_InTaskInfo = new object(); //入库任务
|
|
|
+ private static object lockerGetCpTunnelList = new object(); //巷道锁
|
|
|
+ private static object lockerCpCompleteTask = new object();
|
|
|
+ private static object lockerCpApplyStockInLoc = new object();
|
|
|
+ private static object lockerCpManualTaskOut = new object();
|
|
|
+ private static object lockerCpSrmPickOutCompleted = new object();
|
|
|
+ private static object lockerMoveTask = new object();
|
|
|
+ private static object lockerSalesDocOutTask = new object();
|
|
|
+ private static object lockerCpSyncMaterInfoList = new object();
|
|
|
+ private static object lockerCpCancelOrComplet = new object();
|
|
|
+ private static object lockerCpCarryTask = new object();
|
|
|
+ private static object lockerUpdatePuchState = new object();
|
|
|
+ private static object lockerForceCancelTask = new object();
|
|
|
+ private static object lockerDeleteStockInfo = new object();
|
|
|
+ private static object lockerUpdateStockState = new object();
|
|
|
+ private static object lockerUpdateCellState = new object();
|
|
|
+ private static object lockerDataSwapCell = new object();
|
|
|
+ private static object lockerDataBasePatch = new object();
|
|
|
+ private static object lockerDataMoveCell = new object();
|
|
|
+ private static object lockerErpCancelStock = new object();
|
|
|
+ private static object lockerPdaStockInBack = new object();
|
|
|
+ private static object lockerPreLockedStock = new object();
|
|
|
+ private static object lockerMoveTaskInfo = new object();
|
|
|
+ private static object lockerTrayPortageTask = new object();
|
|
|
+ private static object lockerTrayPortageTaskCheck = new object();
|
|
|
+
|
|
|
+ private static object lockerPalletAutoInTask = new object();
|
|
|
+ private static object lockWcsUploadInfo = new object();
|
|
|
+ private static object lockLabellingMachine = new object();
|
|
|
+ private static object lockerHandErrTask = new object();
|
|
|
+ private static object lockerPalletManualMoveTask = new object();
|
|
|
+ private static object lockerFlowDataMoveJob = new object();
|
|
|
+ private static object lockerProductBoxDetailUploadJob = new object();
|
|
|
+
|
|
|
+ private Repository<cpSysJob> _sysJobrepository => new Repository<cpSysJob>();
|
|
|
+
|
|
|
public CpController(ICPService cpService, ILogger<CpController> logger, IMapper mapper) : base(cpService)
|
|
|
{
|
|
|
_cpService = cpService;
|
|
@@ -147,13 +144,13 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
if (_cpService.SyncMaterInfo(resbody.ResData))
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return result.ToCamelCaseString();
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 成品库主数据接收
|
|
|
/// </summary>
|
|
@@ -164,6 +161,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<CpSyncMaterInfoListRequest, SRes>(lockerCpSyncMaterInfoList, "CpSyncMaterInfoList", request.MatCode, request, _cpService.SyncMaterInfoList);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 销售单信息传输接口
|
|
|
/// </summary>
|
|
@@ -182,6 +180,7 @@ namespace wms.api.Controllers
|
|
|
// return ComPushApiResInfo(new ComPushApiResInfoRequest() { ApiId = "SalesDocTrans", ReqId = Guid.NewGuid().ToString(), ResCode = ResponseStatusCodeEnum.Fail.GetDescription() });
|
|
|
//}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 销售单下发出库任务
|
|
|
/// </summary>
|
|
@@ -195,8 +194,9 @@ namespace wms.api.Controllers
|
|
|
return ConcurrencyReqControl<SalesDocOutTaskRequest, SRes>(lockerSalesDocOutTask, "SalesDocOutTask", request.SalesDoc, request, _cpService.SalesDocOutTask);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
- ///单据预锁库存(手动按钮触发)
|
|
|
+ ///单据预锁库存(手动按钮触发)
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|
|
|
/// <returns></returns>
|
|
@@ -205,6 +205,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<PreLockedStockRequest, SRes>(lockerPreLockedStock, "PreLockedStock", request.BillCode, request, _cpService.PreLockedStock);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 销售出库信息反馈接口/呆滞料/异常料出库反馈接口
|
|
|
/// </summary>
|
|
@@ -267,6 +268,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 退售单信息传输接口
|
|
|
/// </summary>
|
|
@@ -277,6 +279,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<SalesDocTransRequest, SRes>(lockerSalesBackDocTrans, "SalesBackDocTrans", reqDto.BillCode, reqDto, _cpService.SalesBackDocTrans);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 销售退货入库信息反馈接口
|
|
|
/// </summary>
|
|
@@ -291,6 +294,7 @@ namespace wms.api.Controllers
|
|
|
SRes resbody = JsonConvert.DeserializeObject<SRes>(WmsServiceExportApi(dtolist));
|
|
|
return resbody;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 销售余料回库入库信息反馈接口
|
|
|
/// </summary>
|
|
@@ -305,6 +309,7 @@ namespace wms.api.Controllers
|
|
|
SRes resbody = JsonConvert.DeserializeObject<SRes>(WmsServiceExportApi(dtolist));
|
|
|
return resbody;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 接收回馈接口
|
|
|
/// </summary>
|
|
@@ -318,6 +323,7 @@ namespace wms.api.Controllers
|
|
|
return JsonConvert.DeserializeObject<SRes>(WmsServiceExportApi(reqDto));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 呆滞料/异常料出库接口
|
|
|
/// </summary>
|
|
@@ -328,6 +334,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<ErrorMaterialStockOutRequest, SRes>(lockerComPushApiResInfo, "CpErrorMaterialStockOut", reqDto.BillCode, reqDto, _cpService.ErrorMaterialStockOut);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 库存改判
|
|
|
/// </summary>
|
|
@@ -347,8 +354,9 @@ namespace wms.api.Controllers
|
|
|
[HttpPost]
|
|
|
public SRes MesReleaseFlag(MesReleaseFlagDto reqDto)
|
|
|
{
|
|
|
- lock(lockerMesReleaseFlag) { return _cpService.MesReleaseFlag(reqDto); }
|
|
|
+ lock (lockerMesReleaseFlag) { return _cpService.MesReleaseFlag(reqDto); }
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 改判反馈接口
|
|
|
/// </summary>
|
|
@@ -435,6 +443,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 实时库存查询接口
|
|
|
/// </summary>
|
|
@@ -445,6 +454,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return _cpService.GetCurStockList(reqDto);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 移库货位上报MES接口
|
|
|
/// </summary>
|
|
@@ -516,6 +526,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 放行/冻结单传输接口
|
|
|
/// </summary>
|
|
@@ -526,6 +537,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<StockStateChangeRequest, StockStateChangeResponse>(lockerStockStateChange, "CpStockStateChange", reqDto.BillCode, reqDto, _cpService.StockStateChange);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 同步箱号信息(人工入库使用)
|
|
|
/// </summary>
|
|
@@ -554,6 +566,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 成品入库反馈接口
|
|
|
/// </summary>
|
|
@@ -590,6 +603,7 @@ namespace wms.api.Controllers
|
|
|
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// ERP取消出库
|
|
|
/// </summary>
|
|
@@ -605,6 +619,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
|
|
|
#region 手持机操作功能
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// PDA 组盘绑定(只组盘)
|
|
|
/// </summary>
|
|
@@ -638,11 +653,11 @@ namespace wms.api.Controllers
|
|
|
return new SRes() { ResCode = ResponseStatusCodeEnum.Fail.GetHashCode(), ResMsg = tt.ResMsg };
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
return _cpService.PdaGroupStock(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 空托盘 or 间隔板出库
|
|
|
/// </summary>
|
|
@@ -656,6 +671,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.PdaTrayTaskOut(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// PDA 退料
|
|
|
/// </summary>
|
|
@@ -669,9 +685,11 @@ namespace wms.api.Controllers
|
|
|
return _cpService.PdaStockInBack(request);
|
|
|
}
|
|
|
}
|
|
|
- #endregion
|
|
|
+
|
|
|
+ #endregion 手持机操作功能
|
|
|
|
|
|
#region WCS调用
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 获取入库任务
|
|
|
/// </summary>
|
|
@@ -682,6 +700,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<TrayGroupOutRequest, SRes>(lockerWCS_InTaskInfo, "WCS_InTaskInfo" + request.Equip, request.Code, request, _cpService.InsertWCSInTask);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// WCS信息上传(称重)
|
|
|
/// </summary>
|
|
@@ -709,6 +728,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.LabellingMachine(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 获取巷道
|
|
|
/// </summary>
|
|
@@ -722,6 +742,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.GetCpTunnelPriorityList(reqEntity);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 分配货位
|
|
|
/// </summary>
|
|
@@ -732,6 +753,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return ConcurrencyReqControl<CpApplyStockInLocRequest, SRes<CpApplyStockInLocResponse>>(lockerCpApplyStockInLoc, "CpApplyStockInLoc", "分配货位" + request.TunnelNum, request, _cpService.CpApplyStockInLoc);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 完成任务
|
|
|
/// </summary>
|
|
@@ -751,6 +773,7 @@ namespace wms.api.Controllers
|
|
|
return res;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 堆垛机出库放货完成
|
|
|
/// </summary>
|
|
@@ -764,6 +787,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.CpSrmPickOutCompleted(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 移库任务申请
|
|
|
/// </summary>
|
|
@@ -777,6 +801,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.WcsMoveTask(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 修改任务状态
|
|
|
/// </summary>
|
|
@@ -790,6 +815,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.UpdateTaskState(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 手动移库确定
|
|
|
/// </summary>
|
|
@@ -817,6 +843,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.CpCancelTaskVerify(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 成品库 执行任务(开放wcs调用,前端不调用)
|
|
|
/// </summary>
|
|
@@ -830,7 +857,8 @@ namespace wms.api.Controllers
|
|
|
return _cpService.CpCarryTaskInfo(request);
|
|
|
}
|
|
|
}
|
|
|
- #endregion
|
|
|
+
|
|
|
+ #endregion WCS调用
|
|
|
|
|
|
/// <summary>
|
|
|
/// 手动出库确定
|
|
@@ -888,10 +916,11 @@ namespace wms.api.Controllers
|
|
|
[HttpPost]
|
|
|
public SRes CpWareCellInit(int row, int col, int deot, int rowcount, int tun)
|
|
|
{
|
|
|
- return _cpService.CpWareCellInit(row,col, deot, rowcount, tun);
|
|
|
+ return _cpService.CpWareCellInit(row, col, deot, rowcount, tun);
|
|
|
}
|
|
|
|
|
|
#region 异常处理
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 强制取消任务
|
|
|
/// </summary>
|
|
@@ -905,6 +934,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.ForceCancelTask(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 删除库存信息
|
|
|
/// </summary>
|
|
@@ -918,6 +948,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.DeleteStockInfo(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 修改库存状态
|
|
|
/// </summary>
|
|
@@ -931,6 +962,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.UpdateStockState(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 修改货位状态
|
|
|
/// </summary>
|
|
@@ -944,6 +976,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.UpdateCellState(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 货位数据互换
|
|
|
/// </summary>
|
|
@@ -957,6 +990,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.DataSwapCell(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 补数据
|
|
|
/// </summary>
|
|
@@ -970,6 +1004,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.DataBasePatch(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
[HttpPost]
|
|
|
public SRes UpdatePurchState(UpdatePurchStateRequestdto request)
|
|
|
{
|
|
@@ -978,6 +1013,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.UpdatePurchState(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 货位数据转移
|
|
|
/// </summary>
|
|
@@ -991,6 +1027,7 @@ namespace wms.api.Controllers
|
|
|
return _cpService.DataMoveCell(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 修改任务目标地址
|
|
|
/// </summary>
|
|
@@ -1005,10 +1042,10 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- #endregion
|
|
|
+ #endregion 异常处理
|
|
|
|
|
|
#region 定时器
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 启用job
|
|
|
/// </summary>
|
|
@@ -1028,6 +1065,7 @@ namespace wms.api.Controllers
|
|
|
JobScheduler.Start(sysjob.Code, Type.GetType("wms.api.Job.PostJob"), sysjob.CronExpression);
|
|
|
return res.ToCamelCaseString();
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 执行job
|
|
|
/// </summary>
|
|
@@ -1081,6 +1119,7 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
return new List<dto.response.hj.SysJobDto>();
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 获取执行状态
|
|
|
/// </summary>
|
|
@@ -1108,9 +1147,11 @@ namespace wms.api.Controllers
|
|
|
return "Stop";
|
|
|
}
|
|
|
}
|
|
|
- #endregion
|
|
|
+
|
|
|
+ #endregion 定时器
|
|
|
|
|
|
#region 时效调用接口
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 托盘搬运任务
|
|
|
/// </summary>
|
|
@@ -1121,10 +1162,9 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
lock (lockerPalletAutoInTask)
|
|
|
{
|
|
|
- return _cpService.TrayPortageTask(request);
|
|
|
+ return _cpService.TrayPortageTask(request);
|
|
|
}
|
|
|
//return ConcurrencyReqControl<TrayGroupOutRequest, SRes>(lockerTrayPortageTask, "TrayPortageTask", request.Equip, request, _cpService.TrayPortageTask);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -1156,7 +1196,8 @@ namespace wms.api.Controllers
|
|
|
}
|
|
|
//return ConcurrencyReqControl<PalletAutoTaskRequest, SRes>(lockerPalletAutoInTask, "PalletAutoInTask", request.Equip, request, _cpService.PalletAutoInTask);
|
|
|
}
|
|
|
- #endregion
|
|
|
+
|
|
|
+ #endregion 时效调用接口
|
|
|
|
|
|
/// <summary>
|
|
|
/// 成品整箱上传接口
|
|
@@ -1228,7 +1269,6 @@ namespace wms.api.Controllers
|
|
|
itemreq.OvcFlag = item.First().OvcFlag.ToString();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
var laydetail = new LayerListItem()
|
|
|
{
|
|
|
LayerCode = item.Key.Layer.ToString().PadLeft(2, '0'),
|
|
@@ -1274,7 +1314,6 @@ namespace wms.api.Controllers
|
|
|
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -1334,7 +1373,6 @@ namespace wms.api.Controllers
|
|
|
itemreq.OvcFlag = item.First().OvcFlag.ToString();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
var laydetail = new LayerListItem()
|
|
|
{
|
|
|
LayerCode = item.Key.Layer.ToString().PadLeft(2, '0'),
|
|
@@ -1355,12 +1393,10 @@ namespace wms.api.Controllers
|
|
|
if (resbody.ResCode == 200)
|
|
|
{
|
|
|
_logger.LogInformation("推送箱号:" + itemreq.HuNr + "反馈:" + resbody.ResMsg);
|
|
|
-
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
_logger.LogInformation("推送箱号:" + itemreq.HuNr + "反馈:" + resbody.ResMsg);
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1417,7 +1453,7 @@ namespace wms.api.Controllers
|
|
|
_cpService.UpdateBoxFail(item.Key);
|
|
|
_cpService.UpdateBoxItemsModelColumns(new sqlsugar.model.UpdateModelColumns<cpBoxItems>()
|
|
|
{
|
|
|
- Columns = it => new cpBoxItems { UpLoadFlag = 1, EditTime = DateTime.Now,Memo = "临时箱推送MES失败,自动设置成异常箱" },
|
|
|
+ Columns = it => new cpBoxItems { UpLoadFlag = 1, EditTime = DateTime.Now, Memo = "临时箱推送MES失败,自动设置成异常箱" },
|
|
|
WhereExpression = it => it.HuNr == item.Key
|
|
|
});
|
|
|
}
|
|
@@ -1429,14 +1465,13 @@ namespace wms.api.Controllers
|
|
|
WhereExpression = it => it.HuNr == item.Key
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 监控遗留的库存数据
|
|
|
/// </summary>
|
|
@@ -1447,6 +1482,7 @@ namespace wms.api.Controllers
|
|
|
{
|
|
|
return _cpService.MonitorLeftStock(request);
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 手动出库数据反馈(分发)
|
|
|
/// </summary>
|
|
@@ -1513,7 +1549,6 @@ namespace wms.api.Controllers
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 成品人工口上成品码垛托盘PDA提交接口(MES调用)
|
|
|
/// </summary>
|
|
@@ -1541,5 +1576,14 @@ namespace wms.api.Controllers
|
|
|
return _cpService.FlowDataMoveJob(request);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 触发自动校秤任务
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public SRes TriggerAutoCalibration()
|
|
|
+ {
|
|
|
+ return _cpService.TriggerAutoCalibration();
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
+}
|