|
@@ -89,11 +89,11 @@ CREATE PROCEDURE update_data_relation_appendix_2(
|
|
|
THEN
|
|
|
SET @metaTableExists = (SELECT count(1) from information_schema.tables where table_schema = 'trs_hycloud_iip' and table_name = concat('wcmmetatable', f_TABLENAME, citySuffix) );
|
|
|
|
|
|
- select CONCAT('开始更新 :', @metaTableExists, '====:','wcmmetatable', f_TABLENAME, citySuffix, '-字段名称:', f_FIELDNAME) info;
|
|
|
+ select CONCAT('开始更新 :', @metaTableExists, '====:','wcmmetatable', f_TABLENAME, citySuffix, '-字段名称:', f_FIELDNAME, ';字段类型:', f_FIELDTYPE) info;
|
|
|
IF (@metaTableExists > 0)
|
|
|
then
|
|
|
#相关图片
|
|
|
- if f_FIELDTYPE = 32
|
|
|
+ if (f_FIELDTYPE = 32)
|
|
|
then
|
|
|
set @u_p_sql = CONCAT('UPDATE trs_hycloud_iip.wcmmetatable',f_TABLENAME, citySuffix,' a,
|
|
|
relphoto_doc b
|
|
@@ -104,7 +104,7 @@ CREATE PROCEDURE update_data_relation_appendix_2(
|
|
|
deallocate prepare stmt;
|
|
|
end if;
|
|
|
#相关视频
|
|
|
- if f_FIELDTYPE = 20
|
|
|
+ if (f_FIELDTYPE = 20)
|
|
|
then
|
|
|
set @u_v_sql = CONCAT('UPDATE trs_hycloud_iip.wcmmetatable',f_TABLENAME, citySuffix,' a,
|
|
|
relvideo_doc b
|