|
@@ -22,20 +22,24 @@ CREATE PROCEDURE sp_city_data(IN n INT)
|
|
|
|
|
|
SET @wcmdocument_offset_num = ifnull((SELECT max(offset_num) FROM data_migration_offset WHERE table_name = 'wcmdocument'), 0);
|
|
|
SET @docIdOffset = @wcmdocument_offset_num;
|
|
|
+ #附件迁移
|
|
|
+ SET @maxAppendixId= IFNULL((SELECT MAX(appendixId) from trs_hycloud_iip.wcmappendix),0);
|
|
|
+ SET @appendixIdOffset = @maxAppendixId - @prevAppendixId;
|
|
|
+ call sp_data_migration_wcmappendix(@prevAppendixId, @appendixIdOffset, @docIdOffset);
|
|
|
+ #处理素材表
|
|
|
+ SET @maxNAppendixId= IFNULL((SELECT MAX(appendixId) from trs_hycloud_iip.wcmappendix),0);
|
|
|
+ SET @nappendixIdOffset = @maxNAppendixId - @prevMaterialquoteId;
|
|
|
+ call sp_data_migration_xwcmmaterial(@prevMaterialquoteId, @nappendixIdOffset, @docIdOffset);
|
|
|
+
|
|
|
+ #mas视频迁移
|
|
|
SET @maxMasId = IFNULL((SELECT MAX(ID) from trs_mas.mas_masid),0);
|
|
|
SET @masIdOffset = @maxMasId - @prevMasId;
|
|
|
SET @maxMasVideoId = IFNULL((SELECT MAX(ID) from trs_mas.mas_videostream),0);
|
|
|
SET @masVideoIdOffset = @maxMasVideoId - @prevMasVideoId;
|
|
|
- SET @maxNAppendixId= IFNULL((SELECT MAX(appendixId) from trs_hycloud_iip.wcmappendix),0);
|
|
|
- SET @nappendixIdOffset = @maxNAppendixId - @prevMaterialquoteId;
|
|
|
- SET @maxAppendixId= IFNULL((SELECT MAX(appendixId) from trs_hycloud_iip.wcmappendix),0);
|
|
|
- SET @appendixIdOffset = @maxAppendixId - @prevAppendixId;
|
|
|
-
|
|
|
- #处理素材表
|
|
|
- call sp_data_migration_xwcmmaterial(@prevMaterialquoteId, @nappendixIdOffset, @docIdOffset);
|
|
|
call sp_data_migration_masid(@prevMasId, @masIdOffset);
|
|
|
call sp_data_migration_masvideo(@prevMasVideoId, @masVideoIdOffset);
|
|
|
- call sp_data_migration_wcmappendix(@prevAppendixId, @appendixIdOffset, @docIdOffset);
|
|
|
+ call sp_data_migration_mas_videostream(@prevMasVideoId, @masVideoIdOffset);
|
|
|
+ call sp_data_migration_mas_videostream(@prevMasVideoId, @masVideoIdOffset);
|
|
|
|
|
|
END $$
|
|
|
DELIMITER ;
|