| | |
| | | * 360全景url |
| | | */ |
| | | private String panoramic; |
| | | |
| | | /** |
| | | * 经度 |
| | | */ |
| | | private String longitude; |
| | | |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | private String latitude; |
| | | |
| | | } |
| | |
| | | slogan, |
| | | introduce, |
| | | picture, |
| | | panoramic, |
| | | panoramic,longitude,latitude, |
| | | ST_ASTEXT(position) as position |
| | | from |
| | | sys_farm |
| | |
| | | slogan, |
| | | introduce, |
| | | picture, |
| | | panoramic,longitude,latitude, |
| | | ST_ASTEXT(position) as position |
| | | from |
| | | sys_farm |
| | |
| | | city = #{farm.city}, |
| | | district = #{farm.district}, |
| | | panoramic = #{farm.panoramic}, |
| | | longitude = #{farm.longitude}, |
| | | latitude = #{farm.latitude}, |
| | | <if test="farm.position!=null and farm.position!=''"> |
| | | position = ST_GeomFromText(${farm.position}), |
| | | </if> |
| | |
| | | |
| | | <!--自定义新增农场围栏数据--> |
| | | <insert id="saveFarmInfo"> |
| | | insert into sys_farm (farm_name,farm_address,farm_area,slogan,introduce,picture,position,create_time,update_time,dept_id,province,city,district,panoramic) |
| | | insert into sys_farm (farm_name,farm_address,farm_area,slogan,introduce,picture,position, |
| | | create_time,update_time,dept_id,province,city,district,panoramic,longitude,latitude) |
| | | values |
| | | (#{farm.farmName},#{farm.farmAddress},#{farm.farmArea},#{farm.slogan},#{farm.introduce},#{farm.picture}, |
| | | <choose> |
| | |
| | | null, |
| | | </otherwise> |
| | | </choose> |
| | | #{farm.createTime},#{farm.updateTime},#{farm.deptId},#{farm.province},#{farm.city},#{farm.district},#{farm.panoramic}) |
| | | #{farm.createTime},#{farm.updateTime},#{farm.deptId},#{farm.province},#{farm.city},#{farm.district},#{farm.panoramic},#{farm.longitude},#{farm.latitude}) |
| | | </insert> |
| | | |
| | | <!--详情信息(自定义查询)--> |
| | |
| | | province, |
| | | city, |
| | | district, |
| | | panoramic, |
| | | panoramic,longitude,latitude, |
| | | ST_ASTEXT(position) as position,dept_id |
| | | from |
| | | sys_farm |