xiao547607 4 gadi atpakaļ
vecāks
revīzija
693c55741e

+ 2 - 0
common/src/main/java/com/jpsoft/bus/modules/bus/entity/ShiftInfo.java

@@ -68,4 +68,6 @@ public class ShiftInfo implements Serializable {
     private String endStationName;
     @ApiModelProperty(value = "间隔时间(分钟)")
     private Integer interval;
+    @ApiModelProperty(value = "半径(米)")
+    private Integer radius;
 }

+ 6 - 1
common/src/main/resources/mapper/bus/ShiftInfo.xml

@@ -26,6 +26,7 @@
 			<result property="currentStationName" column="current_station_name" />
 			<result property="endStationName" column="end_station_name" />
 			<result property="interval" column="interval_" />
+			<result property="radius" column="radius_" />
 			</resultMap>
 	<insert id="insert" parameterType="com.jpsoft.bus.modules.bus.entity.ShiftInfo">
 	<!--
@@ -36,7 +37,7 @@
 	<![CDATA[
 		insert into bus_shift_info
 	    (id_,driver_id,vehicle_id,route_id,start_station_id,current_station_id,current_station_status,status_,end_station_id,create_by,create_time,update_by,update_time,del_flag,finish_time,
-	    interval_
+	    interval_,radius_
 	    )
 		values
 		(
@@ -56,6 +57,7 @@
 ,#{delFlag,jdbcType= NUMERIC }
 ,#{finishTime,jdbcType= TIMESTAMP }
 ,#{interval,jdbcType= NUMERIC }
+,#{radius,jdbcType= NUMERIC }
 		)
 	]]>
 	</insert>
@@ -110,6 +112,9 @@
 			<if test="interval!=null">
 				interval_=#{interval,jdbcType= NUMERIC },
 			</if>
+			<if test="radius!=null">
+				radius_=#{radius,jdbcType= NUMERIC },
+			</if>
 		</set>
 	where id_=#{id}
 	</update>