|
@@ -29,6 +29,7 @@
|
|
|
<result property="ticketDownStationId" column="ticket_down_station_id"/>
|
|
|
<result property="ticketUpStationName" column="ticket_up_station_name"/>
|
|
|
<result property="ticketDownStationName" column="ticket_down_station_name"/>
|
|
|
+ <result property="ticketType" column="ticket_type"/>
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.bus.modules.bus.entity.PassengerInfo">
|
|
|
<!--
|
|
@@ -40,7 +41,7 @@
|
|
|
insert into bus_passenger_info
|
|
|
(id_,vehicle_shift_id,vehicle_lib_id,vehicle_person_id,user_id,image_url,up_time,down_time,up_station_id,
|
|
|
down_station_id,status_,pay_status,create_by,create_time,update_by,update_time,del_flag,
|
|
|
- ticket_up_station_id,ticket_down_station_id,local_image_url)
|
|
|
+ ticket_up_station_id,ticket_down_station_id,local_image_url,ticket_type)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -63,6 +64,7 @@
|
|
|
,#{ticketUpStationId,jdbcType=VARCHAR}
|
|
|
,#{ticketDownStationId,jdbcType=VARCHAR}
|
|
|
,#{localImageUrl,jdbcType=VARCHAR}
|
|
|
+ ,#{ticketType,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -129,7 +131,9 @@
|
|
|
<if test="ticketDownStationId!=null">
|
|
|
ticket_down_station_id=#{ticketDownStationId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="ticketType!=null">
|
|
|
+ ticket_type=#{ticketType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|