xml配置
<result column="IS_USE" jdbcType="BOOLEAN" property="isUse" />
sql
case
when
SROLEMOD.MODULE_ID is not null
then 1
else 0
end
AS IS_USE
这里的 1 代表true 0代表false
实体类
private boolean isUse;