表1有config字段,参考表2

其中domain1有一个属性即config,映射了表2

关联查询:

SELECT t1 FROM schema_name.table1 t1 LEFT JOIN t1.config c ORDER BY c.listOrder