Operator '!=' cannot be applied to 'int', 'null'

运算符“!=”不能应用于“int”,“null”

lqw.eq(bo.getClassId() != null, StudentClass::getClassId, bo.getClassId());

 

把实体类中int型数据改成Long型

private Long classId;

 

posted @ 2022-12-01 14:08  霍根施拉格  阅读(2135)  评论(0)    收藏  举报