报错信息
vo
public class SchedulerInfoEntityVO {
private Long schedulerId;
/**
* 日期
*/
@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
private LocalDate date;
/**
* 酒店编号
*/
private String hotelNo;
/**
* 酒店名称
*/
private String hotelName;
/**
* 职位信息
*/
private String postInfo;
/**
* 工作人员
*/
private List<String> worker;
}
XML
<resultMap id="SchedulerInfoResultMap" type="com.homeinns.arrange.vo.SchedulerInfoEntityVO">
<result column="scheduler_id" property="schedulerId" />
<result column="post_info" property="postInfo" />
<result column="hotel_name" property="hotelName" />
<result column="hotel_no" property="hotelNo"/>
<result column="date" property="date"/>
<collection property="worker" ofType="String" >
<result column="worker"/>
</collection>
</resultMap>
<select id="findList" resultMap="SchedulerInfoResultMap">
select
masi.scheduler_id,
masi.post_info,
masi.hotel_name,
masi.hotel_no,
masi.date,
masi.worker
from manjush_arrange_scheduler_info masi
-- GROUP BY masi.hotel_no,masi.post_info,masi.hotel_name,masi.date
-- order by masi.date desc
</select>
找了各种贴以为是我的集合映射的不对。
把注释的代码删除后,就可以了
是注释的问题!!!!!!