|
@ -157,7 +157,7 @@ SELECT top 1 v.Id |
|
|
( |
|
|
( |
|
|
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, |
|
|
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, |
|
|
a.Id, a.ErpAssemblyCode, a.ErpAssemblyName, a.ErpAssemblyVersion, |
|
|
a.Id, a.ErpAssemblyCode, a.ErpAssemblyName, a.ErpAssemblyVersion, |
|
|
g.GroupCode, g.VehicleModel, g.IsDisable, g.CreationTime |
|
|
g.GroupCode, g.VehicleModel, g.IsDisable, g.CreationTime ,g.SpecExplain,g.ColorExplain |
|
|
from FisAssemblyCfgErp a |
|
|
from FisAssemblyCfgErp a |
|
|
join FisAssemblyCfgGroup g on g.Id = a.GroupId |
|
|
join FisAssemblyCfgGroup g on g.Id = a.GroupId |
|
|
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} |
|
|
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} |
|
@ -190,10 +190,10 @@ SELECT top 1 v.Id |
|
|
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, |
|
|
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, |
|
|
a.Id, g.GroupCode, a.ErpAssemblyCode, a.ErpAssemblyName, |
|
|
a.Id, g.GroupCode, a.ErpAssemblyCode, a.ErpAssemblyName, |
|
|
p.PartCode, pc.PartName, p.PartNum, |
|
|
p.PartCode, pc.PartName, p.PartNum, |
|
|
g.VehicleModel, g.IsDisable, g.CreationTime |
|
|
g.VehicleModel, g.IsDisable, g.CreationTime,g.SpecExplain,g.ColorExplain |
|
|
from FisAssemblyCfgErp a |
|
|
from FisAssemblyCfgErp a |
|
|
join FisAssemblyCfgGroup g on g.Id = a.GroupId |
|
|
join FisAssemblyCfgGroup g on g.Id = a.GroupId |
|
|
join FisAssemblyCfgPart p on a.Id = p.AssemblyCfgErpId |
|
|
left join FisAssemblyCfgPart p on a.Id = p.AssemblyCfgErpId |
|
|
left join FisPartCfg pc on p.PartCode = pc.PartCode |
|
|
left join FisPartCfg pc on p.PartCode = pc.PartCode |
|
|
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} |
|
|
where g.IsDeleted = 0 and g.IsDisable <> 1 {0} |
|
|
";
|
|
|
";
|
|
@ -218,6 +218,14 @@ SELECT top 1 v.Id |
|
|
{ |
|
|
{ |
|
|
where += string.Format(" and g.VehicleModel = '{0}'", input.VehicleModelCode); |
|
|
where += string.Format(" and g.VehicleModel = '{0}'", input.VehicleModelCode); |
|
|
} |
|
|
} |
|
|
|
|
|
if (!string.IsNullOrEmpty(input.SpecExplain)) |
|
|
|
|
|
{ |
|
|
|
|
|
where += string.Format(" and g.SpecExplain = '{0}'", input.SpecExplain); |
|
|
|
|
|
} |
|
|
|
|
|
if (!string.IsNullOrEmpty(input.ColorExplain)) |
|
|
|
|
|
{ |
|
|
|
|
|
where += string.Format(" and g.ColorExplain = '{0}'", input.ColorExplain); |
|
|
|
|
|
} |
|
|
if (input.BeginCreateTime != null) |
|
|
if (input.BeginCreateTime != null) |
|
|
{ |
|
|
{ |
|
|
where += string.Format(" and g.CreationTime >= '{0}'", ((DateTime)input.BeginCreateTime).ToString("yyyy-MM-dd HH:mm:ss")); |
|
|
where += string.Format(" and g.CreationTime >= '{0}'", ((DateTime)input.BeginCreateTime).ToString("yyyy-MM-dd HH:mm:ss")); |
|
@ -677,10 +685,10 @@ SELECT top 1 v.Id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 导入
|
|
|
/// 总成组导入
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="files">导入文件</param>
|
|
|
/// <param name="files"></param>
|
|
|
/// <returns>执行成功返回真</returns>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("import-erp-assembly-group")] |
|
|
[Route("import-erp-assembly-group")] |
|
|
[DisableRequestSizeLimit] |
|
|
[DisableRequestSizeLimit] |
|
|