前端
{{item.value}}
data中:
{
yearData:[],//用来接收数组
queryParam:{
yearList:'',//v-model中的值
}
}
传递的时候需要处理下:将数组转为字符串,在传递到后台
this.queryParam.yearList= this.yearData.toString()
后台:
query中接受:
@TableField(exist = false)
private List yearList;
xml中:
and art.heating_year in #{year}
最终列表页面展示
以上描述是个人理解,有问题加qq 876942434,一起进步~



