delete from screen_party_user_rank_data where CUSTOMER_ID = #{customerId} AND GRID_ID = #{gridId} AND USER_ID = #{userId} insert into screen_party_user_rank_data ( ID, CUSTOMER_ID, GRID_ID, GRID_NAME, ORG_ID, ORG_NAME, PARTY_FLAG, USER_ID, SURNAME, `NAME`, USER_NAME, POINT_TOTAL, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DATA_END_TIME ) values ( (SELECT REPLACE(UUID(), '-', '') AS id), #{customerId}, #{item.gridId}, #{item.gridName}, #{item.orgId}, #{item.orgName}, #{item.partyFlag}, #{item.userId}, #{item.surname}, #{item.name}, #{item.userName}, #{item.pointTotal}, 0, 0, 'APP_USER', now(), 'APP_USER', now(), #{item.dataEndTime} )