Commit c73a7739 by wangli

简化代码

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