Commit d87d7663 by 邓实川 Committed by chenzg

部门判空

parent 62bdb65d
......@@ -681,11 +681,12 @@ public class LoginController {
Integer upId = gw.getUpId();
ZzglBmgwM bm = ZzglBmgwM.builder().build()
.selectOne(new LambdaQueryWrapper<ZzglBmgwM>().eq(ZzglBmgwM::getId, upId));
qysDto.setBmName(bm.getName());
if (bm != null && bm.getName() != null)
qysDto.setBmName(bm.getName());
}
}
}
if (qys.size() == 0)
return ResultUtil.error("没有任何公司可以查看!");
qyzxEmpLogin1.setQys(qys);
......
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