Commit 4899ab91 authored by liudong1993's avatar liudong1993

收货地址 增加筛选条件

parent abcb1871
......@@ -40,6 +40,10 @@ namespace Mall.Repository.User
if (!string.IsNullOrEmpty(dmodel.Mobile)) {
where += $@" and {nameof(RB_Member_ShippingAddress.Mobile)} like '%{dmodel.Mobile}%'";
}
if (!string.IsNullOrEmpty(dmodel.Address))
{
where += $@" and {nameof(RB_Member_ShippingAddress.Address)} like '%{dmodel.Address}%'";
}
if (dmodel.UserId > 0) {
where += $@" and {nameof(RB_Member_ShippingAddress.UserId)} ={(int)dmodel.UserId}";
}
......@@ -75,6 +79,10 @@ namespace Mall.Repository.User
{
where += $@" and {nameof(RB_Member_ShippingAddress.Mobile)} like '%{dmodel.Mobile}%'";
}
if (!string.IsNullOrEmpty(dmodel.Address))
{
where += $@" and {nameof(RB_Member_ShippingAddress.Address)} like '%{dmodel.Address}%'";
}
if (dmodel.UserId > 0)
{
where += $@" and {nameof(RB_Member_ShippingAddress.UserId)} ={(int)dmodel.UserId}";
......
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