Commit 1ea1c297 authored by jiawei's avatar jiawei

审核分页列表查询,用content来搜索,不用name搜索

parent 51fcca0b
......@@ -86,7 +86,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
}
if (StringUtils.isNotBlank(name)) {
// ew.and(i -> i.like("b.name", name).or().like("c.user_name", name));
ew.and(i -> i.like("b.content", name).or().like("c.user_name", name));
ew.and(i -> i.like("a.content", name).or().like("c.user_name", name));
}
if (status != null) {
ew.eq(status != null, "a.status", status.name());
......@@ -98,7 +98,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
public void accept(QueryWrapper<Audit> auditQueryWrapper) {
auditQueryWrapper.eq("audit_id", id).eq("a.type", type.name());
if (StringUtils.isNotBlank(name)) {
auditQueryWrapper.and(i -> i.like("b.name", name).or().like("c.user_name", name));
// auditQueryWrapper.and(i -> i.like("b.name", name).or().like("c.user_name", name));
auditQueryWrapper.and(i -> i.like("a.content", name).or().like("c.user_name", name));
}
if (status != null) {
auditQueryWrapper.eq(status != null, "a.status", status.name());
......
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