Commit 1451c344 authored by 吴春's avatar 吴春

提交代码

parent e787c30c
...@@ -22,7 +22,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -22,7 +22,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 地铁线路 /// 地铁线路
/// </summary> /// </summary>
public int MetroNum { get; set; } public string MetroNum { get; set; }
/// <summary> /// <summary>
......
...@@ -22,7 +22,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -22,7 +22,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 地铁线路 /// 地铁线路
/// </summary> /// </summary>
public int MetroNum { get; set; } public string MetroNum { get; set; }
/// <summary> /// <summary>
......
...@@ -42,9 +42,9 @@ namespace Mall.Repository.TradePavilion ...@@ -42,9 +42,9 @@ namespace Mall.Repository.TradePavilion
{ {
builder.Append($" AND {nameof(RB_CarrierMetroApplyFor_Extend.CarrierId)}={query.CarrierId}"); builder.Append($" AND {nameof(RB_CarrierMetroApplyFor_Extend.CarrierId)}={query.CarrierId}");
} }
if (query.MetroNum > 0) if (!string.IsNullOrWhiteSpace(query.MetroNum))
{ {
builder.Append($" AND {nameof(RB_CarrierMetroApplyFor_Extend.MetroNum)}={query.MetroNum}"); builder.Append($" AND {nameof(RB_CarrierMetroApplyFor_Extend.MetroNum)} like '%{query.MetroNum}%'");
} }
if (!string.IsNullOrWhiteSpace(query.MetroName)) if (!string.IsNullOrWhiteSpace(query.MetroName))
{ {
......
...@@ -42,9 +42,9 @@ namespace Mall.Repository.TradePavilion ...@@ -42,9 +42,9 @@ namespace Mall.Repository.TradePavilion
{ {
builder.Append($" AND {nameof(RB_CarrierMetro_Extend.CarrierId)}={query.CarrierId}"); builder.Append($" AND {nameof(RB_CarrierMetro_Extend.CarrierId)}={query.CarrierId}");
} }
if (query.MetroNum > 0) if (!string.IsNullOrWhiteSpace(query.MetroNum))
{ {
builder.Append($" AND {nameof(RB_CarrierMetro_Extend.MetroNum)}={query.MetroNum}"); builder.Append($" AND {nameof(RB_CarrierMetro_Extend.MetroNum)} like '%{query.MetroNum}%'");
} }
if (!string.IsNullOrWhiteSpace(query.MetroName)) if (!string.IsNullOrWhiteSpace(query.MetroName))
{ {
...@@ -83,9 +83,9 @@ namespace Mall.Repository.TradePavilion ...@@ -83,9 +83,9 @@ namespace Mall.Repository.TradePavilion
{ {
builder.Append($" AND {nameof(RB_CarrierMetro_Extend.CarrierId)}={query.CarrierId}"); builder.Append($" AND {nameof(RB_CarrierMetro_Extend.CarrierId)}={query.CarrierId}");
} }
if (query.MetroNum > 0) if (!string.IsNullOrWhiteSpace(query.MetroNum))
{ {
builder.Append($" AND {nameof(RB_CarrierMetro_Extend.MetroNum)}={query.MetroNum}"); builder.Append($" AND {nameof(RB_CarrierMetro_Extend.MetroNum)} like '%{query.MetroNum}%'");
} }
if (!string.IsNullOrWhiteSpace(query.MetroName)) if (!string.IsNullOrWhiteSpace(query.MetroName))
{ {
......
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