|
|
@ -157,7 +157,7 @@ SELECT top 1 v.Id |
|
|
|
( |
|
|
|
select ROW_NUMBER() OVER(order by a.[CreationTime]) as row_number, |
|
|
|
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 |
|
|
|
join FisAssemblyCfgGroup g on g.Id = a.GroupId |
|
|
|
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, |
|
|
|
a.Id, g.GroupCode, a.ErpAssemblyCode, a.ErpAssemblyName, |
|
|
|
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 |
|
|
|
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 |
|
|
|
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); |
|
|
|
} |
|
|
|
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) |
|
|
|
{ |
|
|
|
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>
|
|
|
|
/// <param name="files">导入文件</param>
|
|
|
|
/// <returns>执行成功返回真</returns>
|
|
|
|
/// <param name="files"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("import-erp-assembly-group")] |
|
|
|
[DisableRequestSizeLimit] |
|
|
|