insert into owner_withdrawal_info(
mp_id, withdrawal_encountered_problem, shortage_or_arrears,
road_name, lane, door, room, door_room_number, owner_address
) values (
#{mpId}, #{withdrawalEncounteredProblem}, #{shortageOrArrears},
#{roadName}, #{lane}, #{door}, #{room}, #{doorRoomNumber}, #{ownerAddress}
)
insert into owner_withdrawal_info(
mp_id, withdrawal_encountered_problem, shortage_or_arrears,
road_name, lane, door, room, door_room_number, owner_address
) values
( #{item.mpId}, #{item.withdrawalEncounteredProblem}, #{item.shortageOrArrears},
#{item.roadName}, #{item.lane}, #{item.door}, #{item.room}, #{item.doorRoomNumber}, #{item.ownerAddress} )
update owner_withdrawal_info t
t.mp_id = #{mpId},
t.withdrawal_encountered_problem = #{withdrawalEncounteredProblem},
t.shortage_or_arrears = #{shortageOrArrears},
t.road_name = #{roadName},
t.lane = #{lane},
t.door = #{door},
t.room = #{room},
t.door_room_number = #{doorRoomNumber},
t.owner_address = #{ownerAddress},
t.update_time = CURRENT_TIMESTAMP
where 1 = 1
and t.id = #{id}
and t.mp_id = #{mpId}
delete from owner_withdrawal_info t
where 1 = 1
and t.id = #{id}
and t.mp_id = #{mpId}