id, pl_no, park_area_code, berth_no, car_no, order_id, is_occupy, road_position,
direction, park_type, berth_address, remark, data_state, create_time, car_status,
create_op, modify_time, modify_op, opt_flg, pda_in_time, eqp_in_time, eqp_out_time,
pda_out_time, pay_status, car_number_color
update tp_p_berths
set data_state=0
where 1=1
and park_area_code IN
#{parkAreaCode}
SELECT LAST_INSERT_ID()
insert into tp_p_berths (pl_no, park_area_code, berth_no,
road_position, direction,
park_type,data_state,
create_time,
create_op)
values
(#{berth.plNo,jdbcType=VARCHAR},
#{berth.parkAreaCode,jdbcType=VARCHAR},
#{berth.berthNo,jdbcType=VARCHAR},
#{berth.roadPosition,jdbcType=CHAR},
#{berth.direction,jdbcType=CHAR},
#{berth.parkType,jdbcType=CHAR},
#{berth.dataState,jdbcType=INTEGER},
#{berth.createTime,jdbcType=TIMESTAMP},
#{berth.createOp,jdbcType=BIGINT})
update tp_p_berths
pl_no = #{plNo,jdbcType=VARCHAR},
park_area_code = #{parkAreaCode,jdbcType=VARCHAR},
berth_no = #{berthNo,jdbcType=VARCHAR},
car_no = #{carNo,jdbcType=VARCHAR},
order_id = #{orderId,jdbcType=VARCHAR},
is_occupy = #{isOccupy,jdbcType=CHAR},
road_position = #{roadPosition,jdbcType=CHAR},
direction = #{direction,jdbcType=CHAR},
park_type = #{parkType,jdbcType=CHAR},
berth_address = #{berthAddress,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
data_state = #{dataState,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
car_status = #{carStatus,jdbcType=VARCHAR},
create_op = #{createOp,jdbcType=BIGINT},
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
modify_op = #{modifyOp,jdbcType=BIGINT},
opt_flg = #{optFlg,jdbcType=CHAR},
pda_in_time = #{pdaInTime,jdbcType=TIMESTAMP},
eqp_in_time = #{eqpInTime,jdbcType=TIMESTAMP},
eqp_out_time = #{eqpOutTime,jdbcType=TIMESTAMP},
pda_out_time = #{pdaOutTime,jdbcType=TIMESTAMP},
pay_status = #{payStatus,jdbcType=VARCHAR},
car_number_color = #{carNumberColor,jdbcType=INTEGER},
where pl_no = #{plNo} and berth_no = #{berthNo} and (order_id is null or order_id = '')
update tp_p_berths
set eqp_out_time = null
where pl_no = #{plNo} and berth_no = #{berthNo}
update tp_p_berths
car_no = #{carNo,jdbcType=VARCHAR},
car_number_color = #{carNumberColor,jdbcType=INTEGER},
where order_id = #{orderId} and data_state = 1