记录一下使用mybatis plus 查询时使用in关键字的坑
@Select({"<script>",
"SELECT round( ifnull( sum( cny_pirce ), 0 ), 2 ) AS total",
"FROM `data` WHERE id IN ",
"<foreach item='item' index='index' collection='dataIdListStr' open='(' separator=',' close=')'>",
"#{item}",
"</foreach>",
"</script>"
})
Double getCurrentOrderFee(@Param("dataIdListStr") Integer[] dataIdList);