delete from fact_index_service_ablity_org_monthly where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId} AND QUARTER_ID = #{quarterId} AND YEAR_ID = #{yearId} AND AGENCY_ID IN #{item} insert into fact_index_service_ablity_org_monthly ( ID, CUSTOMER_ID, AGENCY_ID, PARENT_ID, MONTH_ID, QUARTER_ID, YEAR_ID, ACTIVITY_COUNT, DATA_TYPE, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) values ( (SELECT REPLACE(UUID(), '-', '') AS id), #{customerId}, #{item.agencyId}, #{item.parentId}, #{item.monthId}, #{item.quarterId}, #{item.yearId}, #{item.activityCount}, #{item.dataType}, 0, 0, 'APP_USER', now(), 'APP_USER', now() )