Mybatis plus 获取字段为空
resultMap 则不会进行 resultMap 的自动构建并注入,typeHandler
@TableName 注解 将下面属性autoResultMap设置为true
/**
* 是否自动构建 resultMap 并使用,
* 只生效与 mp 自动注入的 method,
* 如果设置 resultMap 则不会进行 resultMap 的自动构建并注入,
* 只适合个别字段 设置了 typeHandler 或 jdbcType 的情况
*
* @since 3.1.2
*/
boolean autoResultMap() default false;
字段名与属性名不一致
/**
/**
* @TableField 中的value属性与字段名字一致
* 或者驼峰命名
*/
@TableField(typeHandler = ArrayLongTypeHandler.class, jdbcType= JdbcType.VARCHAR ,value = "tagid_list")
private Long[] tagidList;