循环获得父节点的字段数据,必须加下标“[0]”手动指定行数才可获得数据
select * from truck_csi_orig_data where 1=1
${has($.batch_nums[0])?("and batch_num in ('"+replaceAll($.batch_nums[0],",", "','")+"')"):""}
把下标去掉就报错了
select * from truck_csi_orig_data where 1=1
${has($.batch_nums)?("and batch_num in ('"+replaceAll($.batch_nums,",", "','")+"')"):""}
麻烦管理员请解答一下,谢谢