备忘&分享
@Insert({
"<script> ",
" insert into adas_2yy(trackid,uuid,geom,namec,ts) ",
" VALUES " ,
" <foreach collection='toyy' item='item' index='index' separator=','> ",
" ((${item.trackId}, ",
" #{item.uuid}, ",
" ST_GeomFromText( 'LineString(${item.geom})'), ",
" #{item.namec}, ",
" #{item.ts}) ",
" </foreach> ",
" </script> "
})