齐套分拣和齐套入库的bug,注释了质检定时相关部分
This commit is contained in:
@@ -216,7 +216,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
if (kittingOut != null)
|
if (kittingOut != null)
|
||||||
{
|
{
|
||||||
var locaion = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == kittingOut.location_id);
|
var locaion = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == kittingOut.location_id);
|
||||||
if (locaion?.is_type.ToEnum<EnumLocationType>() != EnumLocationType.存储库位)
|
if (locaion !=null && locaion.is_type.ToEnum<EnumLocationType>() != EnumLocationType.存储库位)
|
||||||
{
|
{
|
||||||
kittingOut.status = WmsWareHouseConst.BILLSTATUS_TOBESHIPPED_ID;
|
kittingOut.status = WmsWareHouseConst.BILLSTATUS_TOBESHIPPED_ID;
|
||||||
|
|
||||||
|
|||||||
@@ -949,6 +949,11 @@ public static class StringExtensions
|
|||||||
return (T)System.Enum.Parse(typeof(T), value, true);
|
return (T)System.Enum.Parse(typeof(T), value, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static T ToEnumWithNull<T>(this string? value)
|
||||||
|
{
|
||||||
|
return (T)System.Enum.Parse(typeof(T), value, true);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 转换,来自Abp
|
#region 转换,来自Abp
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ namespace Tnb.TaskScheduler.Listener
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成质检任务
|
/// 生成质检任务
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class QcTaskTimeWorker : ISpareTimeWorker
|
public class QcTaskTimeWorker //: ISpareTimeWorker
|
||||||
{
|
{
|
||||||
private ISqlSugarClient repository => App.GetService<ISqlSugarClient>();
|
private ISqlSugarClient repository => App.GetService<ISqlSugarClient>();
|
||||||
|
|
||||||
[SpareTime("0 0 0 * * ?", "生成质检任务", ExecuteType = SpareTimeExecuteTypes.Serial, StartNow = false)]
|
//[SpareTime("0 0 0 * * ?", "生成质检任务", ExecuteType = SpareTimeExecuteTypes.Serial, StartNow = false)]
|
||||||
public async void CreateTask(SpareTimer timer, long count)
|
public async void CreateTask(SpareTimer timer, long count)
|
||||||
{
|
{
|
||||||
var timeTaskEntity = await repository.Queryable<TimeTaskEntity>().Where(p => p.Id == timer.WorkerName && p.EnabledMark == 1).FirstAsync();
|
var timeTaskEntity = await repository.Queryable<TimeTaskEntity>().Where(p => p.Id == timer.WorkerName && p.EnabledMark == 1).FirstAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user