Commit 5ddeaa01 authored by liudong1993's avatar liudong1993

素材1

parent edbfc33d
...@@ -24,8 +24,7 @@ namespace Mall.Repository.Product ...@@ -24,8 +24,7 @@ namespace Mall.Repository.Product
public List<RB_Material_Info_Extend> GetPageList(int pageIndex, int pageSize, out long rowCount, RB_Material_Info_Extend dmodel) public List<RB_Material_Info_Extend> GetPageList(int pageIndex, int pageSize, out long rowCount, RB_Material_Info_Extend dmodel)
{ {
string where = $" 1=1 and {nameof(RB_Material_Info.Status)}=0"; string where = $" 1=1 and {nameof(RB_Material_Info.Status)}=0";
if (dmodel.Id >= 100)
{
if (dmodel.TenantId > 0) if (dmodel.TenantId > 0)
{ {
where += $@" and {nameof(RB_Material_Info.TenantId)}={dmodel.TenantId}"; where += $@" and {nameof(RB_Material_Info.TenantId)}={dmodel.TenantId}";
...@@ -34,7 +33,6 @@ namespace Mall.Repository.Product ...@@ -34,7 +33,6 @@ namespace Mall.Repository.Product
{ {
where += $@" and {nameof(RB_Material_Info.MallBaseId)}={dmodel.MallBaseId}"; where += $@" and {nameof(RB_Material_Info.MallBaseId)}={dmodel.MallBaseId}";
} }
}
if (dmodel.Id > 0) { if (dmodel.Id > 0) {
where += $@" and {nameof(RB_Material_Info.Id)}={dmodel.Id}"; where += $@" and {nameof(RB_Material_Info.Id)}={dmodel.Id}";
} }
......
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