a.id AS "id", a.name AS "name", a.sum AS "sum", a.continent_id AS "continent.id", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag", continent.name AS "continent.name" LEFT JOIN test_continent continent ON continent.id = a.continent_id INSERT INTO test_country( id, name, sum, continent_id, create_by, create_date, update_by, update_date, remarks, del_flag ) VALUES ( #{id}, #{name}, #{sum}, #{continent.id}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag} ) UPDATE test_country SET name = #{name}, sum = #{sum}, continent_id = #{continent.id}, update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks} WHERE id = #{id} DELETE FROM test_country WHERE id = #{id} UPDATE test_country SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}