Commit c73a7739 by wangli

简化代码

1 parent fa287c0e
...@@ -240,13 +240,10 @@ public class EngineerServiceImpl implements EngineerService { ...@@ -240,13 +240,10 @@ public class EngineerServiceImpl implements EngineerService {
LambdaQueryWrapper<EngineerInfo> lqw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<EngineerInfo> lqw = new LambdaQueryWrapper<>();
lqw.in(groupIds != null && !groupIds.isEmpty(), EngineerInfo::getGroupId, groupIds); lqw.in(groupIds != null && !groupIds.isEmpty(), EngineerInfo::getGroupId, groupIds);
if (kind != null && !key.isEmpty()) { lqw.eq(kind != null && !kind.isEmpty(), EngineerInfo::getKind, (kind.equals("fullJob")) ? 1 : 2);
Integer k = (kind.equals("fullJob")) ? 1 : 2;
lqw.eq(EngineerInfo::getKind, k);
}
if (key != null && !key.isEmpty()) { if (key != null && !key.isEmpty()) {
lqw.and(wrapper1 -> lqw.and(w ->
wrapper1.like(EngineerInfo::getPhone, key) w.like(EngineerInfo::getPhone, key)
.or() .or()
.like(EngineerInfo::getName, key) .like(EngineerInfo::getName, key)
.or() .or()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!