|
|
@@ -6,7 +6,7 @@
|
|
|
<insert id="insertAllTeaStaff" parameterType="java.lang.Long">
|
|
|
insert into xjr_oa_news_relation (id, news_id, user_id, create_date, read_mark)
|
|
|
(select
|
|
|
- UNIX_TIMESTAMP()*(FLOOR(RAND() * (1000 - 1 + 1)) + 1)*(FLOOR(RAND() * (1000 - 1 + 1)) + 1),
|
|
|
+ UUID(),
|
|
|
#{newsId},
|
|
|
t.id,
|
|
|
NOW(),
|
|
|
@@ -20,7 +20,7 @@
|
|
|
<insert id="insertDeptUser">
|
|
|
insert into xjr_oa_news_relation (id, news_id, user_id, create_date, read_mark)
|
|
|
(select
|
|
|
- UNIX_TIMESTAMP()*(FLOOR(RAND() * (1000 - 1 + 1)) + 1)*(FLOOR(RAND() * (1000 - 1 + 1)) + 1),
|
|
|
+ UUID(),
|
|
|
#{newsId},
|
|
|
t.id,
|
|
|
NOW(),
|
|
|
@@ -43,7 +43,7 @@
|
|
|
<insert id="insertClassUser">
|
|
|
insert into xjr_oa_news_relation (id, news_id, user_id, create_date, read_mark)
|
|
|
(select
|
|
|
- UNIX_TIMESTAMP()*(FLOOR(RAND() * (1000 - 1 + 1)) + 1)*(FLOOR(RAND() * (1000 - 1 + 1)) + 1),
|
|
|
+ UUID(),
|
|
|
#{newsId},
|
|
|
t.id,
|
|
|
NOW(),
|
|
|
@@ -64,7 +64,7 @@
|
|
|
<insert id="insertPersonl">
|
|
|
insert into xjr_oa_news_relation (id, news_id, user_id, create_date, read_mark)
|
|
|
(select
|
|
|
- UNIX_TIMESTAMP()*(FLOOR(RAND() * (1000 - 1 + 1)) + 1)*(FLOOR(RAND() * (1000 - 1 + 1)) + 1),
|
|
|
+ UUID(),
|
|
|
#{newsId},
|
|
|
t.id,
|
|
|
NOW(),
|