| | |
| | | package com.se.nsl.domain.po; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.netty.util.internal.StringUtil; |
| | |
| | | private Short type; |
| | | |
| | | @ApiModelProperty("空间位置") |
| | | @TableField(value = "st_astext(geom)", select = true) |
| | | private String geom; |
| | | |
| | | public Region() { |
| | |
| | | this.geom = geom; |
| | | } |
| | | |
| | | public void setGeomWkt(String wkt) { |
| | | this.geom = StringUtil.isNullOrEmpty(wkt) ? "null" : String.format("ST_GeomFromText('%s')", wkt.trim()); |
| | | public void setGeomText() { |
| | | this.geom = StringUtil.isNullOrEmpty(this.geom) ? "null" : String.format("ST_GeomFromText('%s')", this.geom.trim()); |
| | | } |
| | | } |