去除引用common.props
This commit is contained in:
@@ -9,9 +9,7 @@ using JNPF.VisualDev.Interfaces;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
using Tnb.EquipMgr.Entities;
|
||||
using Tnb.EquipMgr.Entities.Dto;
|
||||
using Tnb.EquipMgr.Interfaces;
|
||||
using Tnb.ProductionMgr.Entities;
|
||||
|
||||
namespace Tnb.EquipMgr
|
||||
{
|
||||
@@ -21,7 +19,7 @@ namespace Tnb.EquipMgr
|
||||
[ApiDescriptionSettings(Tag = ModuleConsts.Tag, Area = ModuleConsts.Area, Order = 700)]
|
||||
[Route("api/[area]/[controller]/[action]")]
|
||||
[OverideVisualDev(ModuleId)]
|
||||
public class ToolMoldReturnService : IOverideVisualDevService, IToolMoldReturnService,IDynamicApiController, ITransient
|
||||
public class ToolMoldReturnService : IOverideVisualDevService, IToolMoldReturnService, IDynamicApiController, ITransient
|
||||
{
|
||||
private const string ModuleId = "27275901607701";
|
||||
private readonly ISqlSugarClient _db;
|
||||
@@ -40,7 +38,7 @@ namespace Tnb.EquipMgr
|
||||
_visualDevService = visualDevService;
|
||||
OverideFuncs.CreateAsync = Create;
|
||||
}
|
||||
|
||||
|
||||
private async Task<dynamic> Create(VisualDevModelDataCrInput input)
|
||||
{
|
||||
DbResult<bool> result = await _db.Ado.UseTranAsync(async () =>
|
||||
@@ -60,7 +58,7 @@ namespace Tnb.EquipMgr
|
||||
{
|
||||
await _db.Updateable<ToolMolds>()
|
||||
.SetColumns(x => x.mold_status == Tnb.BasicData.DictConst.ZKTypeId)
|
||||
.SetColumnsIF(!string.IsNullOrEmpty(locationId),x=>x.location_id==locationId)
|
||||
.SetColumnsIF(!string.IsNullOrEmpty(locationId), x => x.location_id == locationId)
|
||||
.Where(X => X.id == moldId).ExecuteCommandAsync();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user