update sys_farm set farm_name = #{farm.farmName}, farm_address = #{farm.farmAddress}, farm_area = #{farm.farmArea}, slogan = #{farm.slogan}, introduce = #{farm.introduce}, picture = #{farm.picture}, position = ST_GeomFromText(${farm.position}), update_time = #{farm.updateTime} where id = #{farm.id} insert into sys_farm (farm_name,farm_address,farm_area,slogan,introduce,picture,position,create_time,update_time,dept_id) values (#{farm.farmName},#{farm.farmAddress},#{farm.farmArea},#{farm.slogan},#{farm.introduce},#{farm.picture}, ST_GeomFromText(${farm.position}), null, #{farm.createTime},#{farm.updateTime},#{farm.deptId})