Commit 2ef25784 by 谢海旭

5.8.0 版本内容维护

1 parent bd3b14dc
-- 标签包含 '1'(轻改) 的员工,合并为一条 INSERT 语句:轻改》精品升级
select concat(
'INSERT INTO dj_car_life_staff_account_scene (account_record_id, base_scene_code, scene_type) VALUES ',
GROUP_CONCAT(
concat('(', id, ', ''100101'', 1)')
SEPARATOR ', '
),
';'
) AS insert_sql
FROM dj_smartcarlife.dj_car_life_staff_account_record
where deleted_flag = 'N'
and staff_scene_label is not null
and staff_scene_label != ''
and FIND_IN_SET('1', staff_scene_label) > 0;
-- 标签包含 '0'(会员权益/升级) 的员工,插入四个场景:会员权益/升级》1.售前会员权益升级 2.售后会员权益升级 3.售前延保 4.售后延保
select concat('INSERT INTO dj_car_life_staff_account_scene (account_record_id, base_scene_code, scene_type) VALUES ',
'(', id, ', ''110101'', 0),',
'(', id, ', ''110102'', 0),',
'(', id, ', ''110201'', 0),',
'(', id, ', ''110202'', 0);') as insert_sql
from dj_smartcarlife.dj_car_life_staff_account_record
where deleted_flag = 'N'
and staff_scene_label is not null
and staff_scene_label != ''
and FIND_IN_SET('0', staff_scene_label) > 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!