把 用户表的所有人插入一条消息
INSERT INTO sys_message (
SUBJECT,
send_resource,
bus_id,
user_id,
content,
push_date,
push_time,
created_by,
created_date,
last_updated_by,
last_updated_date,
push_status,
type
) SELECT
'消息测试3',
'CrmCusActivity',
2,
a.id,
'即将于2016年07月07日日举办消息测试2(活动),请邀约相关客户参加',
now(),
now(),
10000000070200,
now(),
10000000070200,
now(),
'Y',
'系统管理员'
FROM
kn_employee a