Commit fd37ed3f authored by 黄奎's avatar 黄奎

11

parent a397d3b4
...@@ -127,4 +127,15 @@ namespace Mall.DataHelper.Import ...@@ -127,4 +127,15 @@ namespace Mall.DataHelper.Import
return model; return model;
} }
} }
/// <summary>
/// 载体导入帮助类
/// </summary>
public class CarrierHelper
{
public static List<RB_Building_Carrier_Extend> ImportYBCarrierData(string fileName, string tempFilePath)
{
return new List<RB_Building_Carrier_Extend>();
}
}
} }
...@@ -35,14 +35,14 @@ WHERE 1=1 ...@@ -35,14 +35,14 @@ WHERE 1=1
} }
else else
{ {
if (query.TenantId > 0) //if (query.TenantId > 0)
{ //{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.TenantId), query.TenantId); // builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.TenantId), query.TenantId);
} //}
if (query.MallBaseId > 0) //if (query.MallBaseId > 0)
{ //{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.MallBaseId), query.MallBaseId); // builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.MallBaseId), query.MallBaseId);
} //}
if (query.BrandCategory > 0) if (query.BrandCategory > 0)
{ {
builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.BrandCategory), (int)query.BrandCategory); builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.BrandCategory), (int)query.BrandCategory);
...@@ -77,14 +77,14 @@ WHERE 1=1 ...@@ -77,14 +77,14 @@ WHERE 1=1
} }
else else
{ {
if (query.TenantId > 0) //if (query.TenantId > 0)
{ //{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.TenantId), query.TenantId); // builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.TenantId), query.TenantId);
} //}
if (query.MallBaseId > 0) //if (query.MallBaseId > 0)
{ //{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.MallBaseId), query.MallBaseId); // builder.AppendFormat(" AND {0}={1} ", nameof(RB_BrandClass_Extend.MallBaseId), query.MallBaseId);
} //}
if (!string.IsNullOrEmpty(query.ClassName)) if (!string.IsNullOrEmpty(query.ClassName))
{ {
builder.AppendFormat(" AND {0} LIKE @Name ", nameof(RB_BrandClass_Extend.ClassName)); builder.AppendFormat(" AND {0} LIKE @Name ", nameof(RB_BrandClass_Extend.ClassName));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment