重写,在线开发删除接口
This commit is contained in:
@@ -179,20 +179,19 @@ public class RunService : IRunService, ITransient
|
||||
var jArr = JArray.Parse(entity.Tables);
|
||||
if (!input.station_code.IsNullOrWhiteSpace())
|
||||
{
|
||||
|
||||
|
||||
if (jArr?.FirstOrDefault()?.Value<string>("table") == "eqp_equipment")
|
||||
{
|
||||
sql += $" where station_code='{input.station_code}' or station_code=''";
|
||||
}
|
||||
}
|
||||
if (!input.process_code.IsNullOrWhiteSpace())
|
||||
{
|
||||
if (jArr?.FirstOrDefault()?.Value<string>("table") == "bas_process")
|
||||
{
|
||||
//sql += $" where station_code='{input.station_code}' or station_code=''";
|
||||
//sql += $" and station_code='{input.station_code}' or station_code=''";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
realList = _databaseService.GetInterFaceData(link, sql, input, templateInfo.ColumnData.Adapt<MainBeltViceQueryModel>(), new List<IConditionalModel>(), tableFieldKeyValue);
|
||||
|
||||
|
||||
@@ -2902,15 +2901,15 @@ public class RunService : IRunService, ITransient
|
||||
{
|
||||
jarr = JArray.Parse(itemValue);
|
||||
}
|
||||
|
||||
|
||||
// 多选时为模糊查询
|
||||
if (model.multiple)
|
||||
{
|
||||
if (jarr?.Children() != null && jarr?.Children().ToList().Count > 1)
|
||||
{
|
||||
var values = string.Join(",", jarr.ToList().Select(t => t.Value<string>()));
|
||||
conModels.Add(new ConditionalModel { FieldName= item.Key, ConditionalType= ConditionalType.In, FieldValue=values });
|
||||
|
||||
conModels.Add(new ConditionalModel { FieldName = item.Key, ConditionalType = ConditionalType.In, FieldValue = values });
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2934,7 +2933,7 @@ public class RunService : IRunService, ITransient
|
||||
{
|
||||
var values = string.Join(",", jarr.ToList().Select(t => t.Value<string>()));
|
||||
conModels.Add(new ConditionalModel { FieldName = item.Key, ConditionalType = ConditionalType.In, FieldValue = values });
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<ProjectReference Include="..\..\common\Tnb.Common.Core\Tnb.Common.Core.csproj" />
|
||||
<ProjectReference Include="..\..\extend\Tnb.Extend.Interfaces\Tnb.Extend.Interfaces.csproj" />
|
||||
<ProjectReference Include="..\..\message\Tnb.Message.Interfaces\Tnb.Message.Interfaces.csproj" />
|
||||
<ProjectReference Include="..\..\ProductionMgr\Tnb.ProductionMgr.Interfaces\Tnb.ProductionMgr.Interfaces.csproj" />
|
||||
<ProjectReference Include="..\Tnb.VisualDev.Engine\Tnb.VisualDev.Engine.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using JNPF.Common.Configuration;
|
||||
using System.Data;
|
||||
using JNPF.Common.Configuration;
|
||||
using JNPF.Common.Const;
|
||||
using JNPF.Common.Core.Manager;
|
||||
using JNPF.Common.Core.Manager.Files;
|
||||
@@ -33,6 +34,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SqlSugar;
|
||||
using Tnb.ProductionMgr.Interfaces;
|
||||
using Yitter.IdGenerator;
|
||||
|
||||
namespace JNPF.VisualDev
|
||||
@@ -104,6 +106,8 @@ namespace JNPF.VisualDev
|
||||
/// </summary>
|
||||
private readonly ITenant _db;
|
||||
|
||||
private readonly IPrdMoService _prdMoService;
|
||||
|
||||
/// <summary>
|
||||
/// 初始化一个<see cref="VisualDevModelDataService"/>类型的新实例.
|
||||
/// </summary>
|
||||
@@ -119,7 +123,8 @@ namespace JNPF.VisualDev
|
||||
ICacheManager cacheManager,
|
||||
IFlowTaskService flowTaskService,
|
||||
IFileManager fileManager,
|
||||
ISqlSugarClient context)
|
||||
ISqlSugarClient context,
|
||||
IPrdMoService prdMoService)
|
||||
{
|
||||
_visualDevRepository = visualDevRepository;
|
||||
_visualDevService = visualDevService;
|
||||
@@ -133,6 +138,7 @@ namespace JNPF.VisualDev
|
||||
_fileManager = fileManager;
|
||||
_dataInterfaceService = dataInterfaceService;
|
||||
_db = context.AsTenant();
|
||||
_prdMoService = prdMoService;
|
||||
}
|
||||
|
||||
#region Get
|
||||
|
||||
Reference in New Issue
Block a user