SQLines SQL Converter can help you convert SQL statements in MyBatis Mapper XML files from the source dialect to the target SQL dialect.
To run the conversion in command line:
# Convert multiple files ./sqlines -s=oracle -t=mysql -sl=mybatis -tl=mybatis -a -in=Project/*.xml -out=Converted/
See the command line options.