bug fixed
This commit is contained in:
parent
3638e0b80a
commit
f22dbaae89
|
@ -69,6 +69,9 @@ impl Repository {
|
|||
if let Some(sp) = &s.name_like {
|
||||
q = q.filter(member_classes::dsl::name.like(sp));
|
||||
}
|
||||
if let Some(sp) = s.show {
|
||||
q = q.filter(member_classes::dsl::show.eq(sp));
|
||||
}
|
||||
}
|
||||
|
||||
q.count().get_result(conn)
|
||||
|
@ -86,6 +89,9 @@ impl Repository {
|
|||
if let Some(sp) = &s.name_like {
|
||||
q = q.filter(member_classes::dsl::name.like(sp));
|
||||
}
|
||||
if let Some(sp) = s.show {
|
||||
q = q.filter(member_classes::dsl::show.eq(sp));
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(p) = &find_all.pagination {
|
||||
|
|
|
@ -69,6 +69,9 @@ impl Repository {
|
|||
if let Some(sp) = &s.name_like {
|
||||
q = q.filter(member_levels::dsl::name.like(sp));
|
||||
}
|
||||
if let Some(sp) = s.show {
|
||||
q = q.filter(member_levels::dsl::show.eq(sp));
|
||||
}
|
||||
}
|
||||
|
||||
q.count().get_result(conn)
|
||||
|
@ -86,6 +89,9 @@ impl Repository {
|
|||
if let Some(sp) = &s.name_like {
|
||||
q = q.filter(member_levels::dsl::name.like(sp));
|
||||
}
|
||||
if let Some(sp) = s.show {
|
||||
q = q.filter(member_levels::dsl::show.eq(sp));
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(p) = &find_all.pagination {
|
||||
|
|
Loading…
Reference in New Issue
Block a user