采购收货,销售发货新增对外接口
This commit is contained in:
@@ -15,5 +15,9 @@ namespace Tnb.WarehouseMgr.Entities.Entity.Constraints
|
|||||||
/// 检验状态
|
/// 检验状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? check_conclusion { get; set; }
|
public int? check_conclusion { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 是否检验
|
||||||
|
/// </summary>
|
||||||
|
public int? is_check { get;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||||
|
|
||||||
|
namespace Tnb.WarehouseMgr.Interfaces
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 采购收货
|
||||||
|
/// </summary>
|
||||||
|
public interface IWmsPurchaseService
|
||||||
|
{
|
||||||
|
Task<dynamic> MesCheckdPurchaseCallback(MesCheckdCallbackUpinput input);
|
||||||
|
}
|
||||||
|
}
|
||||||
17
WarehouseMgr/Tnb.WarehouseMgr.Interfaces/IWmsSaleService.cs
Normal file
17
WarehouseMgr/Tnb.WarehouseMgr.Interfaces/IWmsSaleService.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||||
|
|
||||||
|
namespace Tnb.WarehouseMgr.Interfaces
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 销售发货
|
||||||
|
/// </summary>
|
||||||
|
public interface IWmsSaleService
|
||||||
|
{
|
||||||
|
Task<dynamic> MesCheckdSaleCallback(MesCheckdCallbackUpinput input);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
|||||||
using JNPF.Common.Contracts;
|
using JNPF.Common.Contracts;
|
||||||
using JNPF.Common.Core.Manager;
|
using JNPF.Common.Core.Manager;
|
||||||
using JNPF.Common.Dtos.VisualDev;
|
using JNPF.Common.Dtos.VisualDev;
|
||||||
|
using JNPF.Common.Extension;
|
||||||
using JNPF.FriendlyException;
|
using JNPF.FriendlyException;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Tnb.BasicData.Entities;
|
using Tnb.BasicData.Entities;
|
||||||
@@ -15,6 +16,7 @@ using Tnb.WarehouseMgr.Entities.Consts;
|
|||||||
using Tnb.WarehouseMgr.Entities.Dto;
|
using Tnb.WarehouseMgr.Entities.Dto;
|
||||||
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||||
using Tnb.WarehouseMgr.Entities.Entity.Constraints;
|
using Tnb.WarehouseMgr.Entities.Entity.Constraints;
|
||||||
|
using Tnb.WarehouseMgr.Entities.Enums;
|
||||||
using Tnb.WarehouseMgr.Interfaces;
|
using Tnb.WarehouseMgr.Interfaces;
|
||||||
|
|
||||||
namespace Tnb.WarehouseMgr
|
namespace Tnb.WarehouseMgr
|
||||||
@@ -120,7 +122,8 @@ namespace Tnb.WarehouseMgr
|
|||||||
|
|
||||||
protected async Task<bool> UpdateChackStatus<TEntity>(MesCheckdCallbackUpinput input) where TEntity : BaseEntity<string>, InOutCheckStatusUpdateEntity, new()
|
protected async Task<bool> UpdateChackStatus<TEntity>(MesCheckdCallbackUpinput input) where TEntity : BaseEntity<string>, InOutCheckStatusUpdateEntity, new()
|
||||||
{
|
{
|
||||||
return await _db.Updateable<TEntity>().SetColumns(it => it.check_conclusion == input.check_conclusion).Where(it => it.id == input.maintableid).ExecuteCommandHasChangeAsync();
|
var isOk = await _db.Updateable<TEntity>().SetColumns(it => it.check_conclusion == input.check_conclusion).Where(it => it.id == input.maintableid).ExecuteCommandHasChangeAsync();
|
||||||
|
return isOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 销售发货
|
/// 销售发货
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class WmsSaleService : WmsPurchaseAndSaleCommonService<WmsSaleD>
|
public class WmsSaleService : WmsPurchaseAndSaleCommonService<WmsSaleD>, IWmsSaleService
|
||||||
{
|
{
|
||||||
private readonly IWmsOutStockService _wmsOutStockService;
|
private readonly IWmsOutStockService _wmsOutStockService;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user