bug fixed

This commit is contained in:
병준 박 2022-08-25 02:36:56 +00:00
parent 3638e0b80a
commit f22dbaae89
2 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,9 @@ impl Repository {
if let Some(sp) = &s.name_like { if let Some(sp) = &s.name_like {
q = q.filter(member_classes::dsl::name.like(sp)); 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) q.count().get_result(conn)
@ -86,6 +89,9 @@ impl Repository {
if let Some(sp) = &s.name_like { if let Some(sp) = &s.name_like {
q = q.filter(member_classes::dsl::name.like(sp)); 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 { if let Some(p) = &find_all.pagination {

View File

@ -69,6 +69,9 @@ impl Repository {
if let Some(sp) = &s.name_like { if let Some(sp) = &s.name_like {
q = q.filter(member_levels::dsl::name.like(sp)); 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) q.count().get_result(conn)
@ -86,6 +89,9 @@ impl Repository {
if let Some(sp) = &s.name_like { if let Some(sp) = &s.name_like {
q = q.filter(member_levels::dsl::name.like(sp)); 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 { if let Some(p) = &find_all.pagination {