Commit 4e4a2dca authored by hanbing's avatar hanbing

适配车道数据表新增字段

parent 09734f43
...@@ -66,6 +66,8 @@ public class LaneInfoPO { ...@@ -66,6 +66,8 @@ public class LaneInfoPO {
*/ */
@ApiModelProperty(value = "车道宽度", notes = "") @ApiModelProperty(value = "车道宽度", notes = "")
private Double width = 0.0; private Double width = 0.0;
@ApiModelProperty(value = "wkt", notes = "")
private String wkt = "";
/** /**
* 创建时间 * 创建时间
*/ */
......
...@@ -15,12 +15,13 @@ ...@@ -15,12 +15,13 @@
<result property="rid" column="rid"/> <result property="rid" column="rid"/>
<result property="length" column="length"/> <result property="length" column="length"/>
<result property="width" column="width"/> <result property="width" column="width"/>
<result property="wkt" column="wkt"/>
<result property="gmtCreate" column="gmt_create"/> <result property="gmtCreate" column="gmt_create"/>
<result property="gmtModified" column="gmt_modified"/> <result property="gmtModified" column="gmt_modified"/>
</resultMap> </resultMap>
<insert id="insertBatch"> <insert id="insertBatch">
insert into t_base_lane_info(id,code,sort,type,dir,turn,category,cross_id,rid,length,width) insert into t_base_lane_info(id,code,sort,type,dir,turn,category,cross_id,rid,length,width,wkt)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.id},#{entity.code},#{entity.sort},#{entity.type},#{entity.dir},#{entity.turn},#{entity.category},#{entity.crossId},#{entity.rid},#{entity.length},#{entity.width}) (#{entity.id},#{entity.code},#{entity.sort},#{entity.type},#{entity.dir},#{entity.turn},#{entity.category},#{entity.crossId},#{entity.rid},#{entity.length},#{entity.width})
...@@ -34,21 +35,21 @@ ...@@ -34,21 +35,21 @@
<select id="selectByCrossIdAndDir" resultMap="BaseResultMap"> <select id="selectByCrossIdAndDir" resultMap="BaseResultMap">
select select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified id,code,sort,type,dir,turn,category,cross_id,rid,length,width,wkt,gmt_create,gmt_modified
from t_base_lane_info from t_base_lane_info
where cross_id = #{crossId} and dir = #{dir} and type = 2 where cross_id = #{crossId} and dir = #{dir} and type = 2
</select> </select>
<select id="selectBycrossId" resultMap="BaseResultMap"> <select id="selectBycrossId" resultMap="BaseResultMap">
select select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified id,code,sort,type,dir,turn,category,cross_id,rid,length,width,wkt,gmt_create,gmt_modified
from t_base_lane_info from t_base_lane_info
where cross_id = #{crossId} and type = 2 where cross_id = #{crossId} and type = 2
</select> </select>
<select id="selectByCrossIdDirCode" resultMap="BaseResultMap"> <select id="selectByCrossIdDirCode" resultMap="BaseResultMap">
select select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified id,code,sort,type,dir,turn,category,cross_id,rid,length,width,wkt,gmt_create,gmt_modified
from t_base_lane_info from t_base_lane_info
where cross_id = #{crossId} and dir = #{dir} and code = #{code} and type = 2 where cross_id = #{crossId} and dir = #{dir} and code = #{code} and type = 2
</select> </select>
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
</select> </select>
<select id="selectByLaneIds" resultMap="BaseResultMap"> <select id="selectByLaneIds" resultMap="BaseResultMap">
select id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified select id,code,sort,type,dir,turn,category,cross_id,rid,length,width,wkt,gmt_create,gmt_modified
from t_base_lane_info from t_base_lane_info
where id in where id in
<foreach collection="laneIds" item="laneId" separator="," open="(" close=")"> <foreach collection="laneIds" item="laneId" separator="," open="(" close=")">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment