delete from screen_customer_grid where CUSTOMER_ID = #{customerId} AND GRID_ID IN #{item} insert into screen_customer_grid ( ID, CUSTOMER_ID, GRID_ID, GRID_NAME, PARENT_AGENCY_ID, AREA_MARKS, CENTER_MARK, PARTY_MARK, 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.parentAgencyId}, #{item.areaMarks}, #{item.centerMark}, #{item.partyMark}, 0, 0, 'APP_USER', now(), 'APP_USER', now(), #{item.dataEndTime} )