resultMap标签中里的collection标签使用非Java自定义类对象
<resultMap id="reportListMap" type="com.jianxinyun.health.operation.server.api.system.vo.ReportListVo">
<id column="id" property="id" />
<result column="planExecuteName" property="planExecuteName" />
<result column="times" property="times" />
<result column="organName" property="organName" />
<result column="supervisionTime" property="supervisionTime" />
<collection property="formNames" ofType="java.lang.String">
<result column="formName"/>
</collection>
</resultMap>
formName是查出的列名,formNames是类中属性集合的名称
在自定义类中用List接收数据
@ApiModelProperty(value = "")
private List<String> formNames;