mapper连接表的问题
2017-02-07 本文已影响4人
CodingHou
mapper连接表的问题:
要连接两个表进行查询, 这时候要写出要展示的两个表的字段, 参见SettleOrderVOMapper
当作过滤条件的字段不需要放到BaseResultMap中,不然会报set错误,要排序的话,将pageable放到map中,传入
${pageable.orderProperty} ${pageable.orderDirection}

mapper连接表的问题:
要连接两个表进行查询, 这时候要写出要展示的两个表的字段, 参见SettleOrderVOMapper
当作过滤条件的字段不需要放到BaseResultMap中,不然会报set错误,要排序的话,将pageable放到map中,传入
${pageable.orderProperty} ${pageable.orderDirection}