Commit 810166cb authored by 黄奎's avatar 黄奎

页面修改

parent 00aee436
...@@ -84,17 +84,17 @@ namespace Mall.Repository.Product ...@@ -84,17 +84,17 @@ namespace Mall.Repository.Product
if (!string.IsNullOrEmpty(dmodel.OrderNo)) if (!string.IsNullOrEmpty(dmodel.OrderNo))
{ {
where += $@" and o.{nameof(RB_Goods_Order.OrderNo)} like @OrderNo "; where += $@" and o.{nameof(RB_Goods_Order.OrderNo)} like @OrderNo ";
parameters.Add("OrderNo", "%" + dmodel.OrderNo.Trim() + "%"); parameters.Add("OrderNo", "%" + Common.Plugin.StringHelper.ReplaceEmoji(dmodel.OrderNo.Trim())+ "%");
} }
if (!string.IsNullOrEmpty(dmodel.MerchantsNo)) if (!string.IsNullOrEmpty(dmodel.MerchantsNo))
{ {
where += $@" and o.{nameof(RB_Goods_Order.MerchantsNo)} like @MerchantsNo "; where += $@" and o.{nameof(RB_Goods_Order.MerchantsNo)} like @MerchantsNo ";
parameters.Add("MerchantsNo", "%" + dmodel.MerchantsNo.Trim() + "%"); parameters.Add("MerchantsNo", "%" + Common.Plugin.StringHelper.ReplaceEmoji(dmodel.MerchantsNo.Trim()) + "%");
} }
if (!string.IsNullOrEmpty(dmodel.UserName)) if (!string.IsNullOrEmpty(dmodel.UserName))
{ {
where += $@" and u.{nameof(RB_Member_User.Name)} like @UserName "; where += $@" and u.{nameof(RB_Member_User.Name)} like @UserName ";
parameters.Add("UserName", "%" + dmodel.UserName.Trim() + "%"); parameters.Add("UserName", "%" + Common.Plugin.StringHelper.ReplaceEmoji(dmodel.UserName.Trim()) + "%");
} }
if (dmodel.UserId > 0) if (dmodel.UserId > 0)
{ {
...@@ -103,12 +103,12 @@ namespace Mall.Repository.Product ...@@ -103,12 +103,12 @@ namespace Mall.Repository.Product
if (!string.IsNullOrEmpty(dmodel.GoodsName)) if (!string.IsNullOrEmpty(dmodel.GoodsName))
{ {
where += $@" and od.{nameof(RB_Goods_OrderDetail.GoodsName)} like @GoodsName "; where += $@" and od.{nameof(RB_Goods_OrderDetail.GoodsName)} like @GoodsName ";
parameters.Add("GoodsName", "%" + dmodel.GoodsName.Trim() + "%"); parameters.Add("GoodsName", "%" + Common.Plugin.StringHelper.ReplaceEmoji(dmodel.GoodsName.Trim()) + "%");
} }
if (!string.IsNullOrEmpty(dmodel.Consignee)) if (!string.IsNullOrEmpty(dmodel.Consignee))
{ {
where += $@" and o.{nameof(RB_Goods_Order.Consignee)} like @Consignee "; where += $@" and o.{nameof(RB_Goods_Order.Consignee)} like @Consignee ";
parameters.Add("Consignee", "%" + dmodel.Consignee.Trim() + "%"); parameters.Add("Consignee", "%" + Common.Plugin.StringHelper.ReplaceEmoji(dmodel.Consignee.Trim()) + "%");
} }
if (!string.IsNullOrEmpty(dmodel.Mobile)) if (!string.IsNullOrEmpty(dmodel.Mobile))
{ {
......
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