wms基础数据基类改为基础配置基类,同时增加不同业务的启用、禁用功能
This commit is contained in:
@@ -17,10 +17,20 @@ namespace Tnb.WarehouseMgr
|
||||
/// Wms基础数据基类
|
||||
/// </summary>
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
public class WmsBasicDataBase<TEntity> : BaseWareHouseService where TEntity : BaseEntity<string>, IUpdateEnabledEntity, new()
|
||||
public class WmsBasicConfBase<TEntity> : BaseWareHouseService where TEntity : BaseEntity<string>, IUpdateEnabledEntity, new()
|
||||
{
|
||||
protected ISqlSugarClient DbContext { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
/// <param name="input">
|
||||
/// <br/>{
|
||||
/// <br/> strategyType:入库策略 1、入库 2我、出库(出入库策略参数,其它接口可忽略)
|
||||
/// <br/> ids:选中的主键pkId列表
|
||||
/// <br/> status:状态 0:禁用 1:启用
|
||||
/// <br/>}
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<bool> IsEnabledMark(ModifyEnabledInput input)
|
||||
{
|
||||
23
WarehouseMgr/Tnb.WarehouseMgr/WmsCheckSignConfigService.cs
Normal file
23
WarehouseMgr/Tnb.WarehouseMgr/WmsCheckSignConfigService.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.VisualDev;
|
||||
using SqlSugar;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
|
||||
namespace Tnb.WarehouseMgr
|
||||
{
|
||||
/// <summary>
|
||||
/// 盘点签收配置
|
||||
/// </summary>
|
||||
[OverideVisualDev(ModuleConsts.MODULE_WMSCHECKSIGNCONFIG_ID)]
|
||||
public class WmsCheckSignConfigService : WmsBasicConfBase<WmsCheckSignConfig>
|
||||
{
|
||||
public WmsCheckSignConfigService(ISqlSugarRepository<WmsCheckSignConfig> repo)
|
||||
{
|
||||
DbContext = repo.AsSugarClient();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// 齐套配套方案服务
|
||||
/// </summary>
|
||||
[OverideVisualDev(ModuleId)]
|
||||
public class WmsCollocationSchemeSevice : BaseWareHouseService, IWmsCollocationSchemeSevice
|
||||
public class WmsCollocationSchemeSevice : WmsBasicConfBase<WmsCollocationSchemeH>, IWmsCollocationSchemeSevice
|
||||
{
|
||||
private const string ModuleId = "26167204892965";
|
||||
private readonly ISqlSugarClient _db;
|
||||
@@ -36,7 +36,7 @@ namespace Tnb.WarehouseMgr
|
||||
)
|
||||
{
|
||||
_repository = repository;
|
||||
_db = repository.AsSugarClient();
|
||||
DbContext = _db = repository.AsSugarClient();
|
||||
_runService = runService;
|
||||
_visualDevService = visualDevService;
|
||||
OverideFuncs.CreateAsync = Create;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Tnb.WarehouseMgr
|
||||
/// <summary>
|
||||
/// 电梯业务类
|
||||
/// </summary>
|
||||
public class WmsElevatorService : WmsBasicDataBase<WmsElevatorH>
|
||||
public class WmsElevatorService : WmsBasicConfBase<WmsElevatorH>
|
||||
{
|
||||
public WmsElevatorService(ISqlSugarRepository<WmsElevatorH> repo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user