INSERT INTO land_auction (land_id, land_name, land_size, land_socket, auction_seq, resv_start_dt, resv_end_dt, auction_start_dt, auction_end_dt, currency_type, start_price, create_by, update_by) VALUES (#{landId}, #{landName}, #{landSize}, #{landSocket}, #{auctionSeq}, #{resvStartDt}, #{resvEndDt}, #{auctionStartDt}, #{auctionEndDt}, #{currencyType}, #{startPrice}, #{createBy}, #{updateBy}) INSERT INTO land_ownership_changes (land_id, land_name, building_id, building_name, user_guid, user_name, is_reserve, reservation_dt, create_by, update_by) VALUES (#{landId}, #{landName}, #{buildingId}, #{buildingName}, #{userGuid}, #{userName}, #{isReserve}, #{reservationDt}, #{createBy}, #{updateBy}) INSERT INTO message (target_id, type, content, language) VALUES (#{id}, 'LANDAUCTION', #{content}, #{language}) UPDATE land_auction SET resv_start_dt = #{resvStartDt} , resv_end_dt = #{resvEndDt} , auction_start_dt = #{auctionStartDt} , auction_end_dt = #{auctionEndDt} , currency_type = #{currencyType} , start_price = #{startPrice} , update_by = #{updateBy} , update_dt = NOW() WHERE id = #{id} UPDATE land_ownership_changes SET user_guid = #{userGuid} , reservation_dt = #{reservationDt} , update_by = #{updateBy} , update_dt = NOW() WHERE id = #{id} DELETE FROM message WHERE target_id = #{id} AND type = 'LANDAUCTION' UPDATE land_auction SET deleted = 1 ,status = 'CANCEL' , update_by = #{updateBy} , update_dt = NOW() WHERE id = #{id} UPDATE land_ownership_changes SET deleted = 1 ,status = 'CANCEL' , update_by = #{updateBy} , update_dt = NOW() WHERE id = #{id} UPDATE land_auction SET status = #{status} , bidder_guid = #{bidderGuid} , bidder_nickname = #{bidderNickname} , close_end_dt = #{closeEndDt, jdbcType=TIMESTAMP} , close_price = #{closePrice} where id = #{id} UPDATE land_ownership_changes SET status = #{status} where id = #{id}