|
|
@@ -0,0 +1,31 @@
|
|
|
+-- 修复人事处“招聘信息”列表空缩略图与旧 GIF 占位。
|
|
|
+SET NAMES utf8mb4;
|
|
|
+
|
|
|
+CREATE TABLE IF NOT EXISTS sp_gzhx_apps_mig_next.hotfix_20261119_hr_recruit_list_thumbnail_backup
|
|
|
+LIKE sp_gzhx_apps_mig_next.article;
|
|
|
+
|
|
|
+INSERT IGNORE INTO sp_gzhx_apps_mig_next.hotfix_20261119_hr_recruit_list_thumbnail_backup
|
|
|
+SELECT a.*
|
|
|
+FROM sp_gzhx_apps_mig_next.article a
|
|
|
+JOIN sp_gzhx_apps_mig_next.website_navigation n ON n.navigationid = a.navigationid
|
|
|
+WHERE n.websiteid = 10065 AND n.navigationid = 2819
|
|
|
+ AND a.dcode IN (61, 31)
|
|
|
+ AND (a.thumbnail IS NULL OR a.thumbnail = '' OR LOWER(a.thumbnail) LIKE '%.gif');
|
|
|
+
|
|
|
+START TRANSACTION;
|
|
|
+
|
|
|
+UPDATE sp_gzhx_apps_mig_next.article a
|
|
|
+JOIN sp_gzhx_apps_mig_next.website_navigation n ON n.navigationid = a.navigationid
|
|
|
+SET a.thumbnail = '/main/dist/websites/images/renshichu/recruit-default.jpg',
|
|
|
+ a.last_change_time = NOW()
|
|
|
+WHERE n.websiteid = 10065 AND n.navigationid = 2819
|
|
|
+ AND a.dcode IN (61, 31)
|
|
|
+ AND (a.thumbnail IS NULL OR a.thumbnail = '' OR LOWER(a.thumbnail) LIKE '%.gif');
|
|
|
+
|
|
|
+COMMIT;
|
|
|
+
|
|
|
+SELECT 'thumbnail_count' AS check_name, COUNT(*) AS total,
|
|
|
+ SUM(thumbnail = '/main/dist/websites/images/renshichu/recruit-default.jpg') AS fallback_count
|
|
|
+FROM sp_gzhx_apps_mig_next.article a
|
|
|
+JOIN sp_gzhx_apps_mig_next.website_navigation n ON n.navigationid = a.navigationid
|
|
|
+WHERE n.websiteid = 10065 AND n.navigationid = 2819 AND a.dcode IN (61, 31);
|