Commit fb51d3a1 by 邓实川

部门判空

parent 2f7d76b6
......@@ -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