Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dca1ded1
authored
Jan 19, 2026
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
82e5a38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
app/Logic/SystemNoticeLogic.php
app/Logic/SystemNoticeLogic.php
View file @
dca1ded1
...
@@ -323,7 +323,7 @@ class SystemNoticeLogic
...
@@ -323,7 +323,7 @@ class SystemNoticeLogic
static
public
function
getAllUser
()
static
public
function
getAllUser
()
{
{
return
DB
::
table
(
'user_info'
)
->
where
(
'status'
,
0
)
->
whereIn
(
'department_name'
,[
'产品'
,
'技术'
,
'前端'
,
'后台'
,
'测试'
])
->
orderBy
(
'userId'
,
'desc'
)
->
pluck
(
'name'
,
'name'
);
return
DB
::
table
(
'user_info'
)
->
where
(
'status'
,
0
)
->
orderBy
(
'userId'
,
'desc'
)
->
pluck
(
'name'
,
'name'
);
}
}
static
public
function
setSystemInfo
(
$data
)
static
public
function
setSystemInfo
(
$data
)
...
@@ -356,6 +356,18 @@ class SystemNoticeLogic
...
@@ -356,6 +356,18 @@ class SystemNoticeLogic
//韦伯系统是所有的,通知所有人
//韦伯系统是所有的,通知所有人
$allUpdate
=
$systemUpdateModel
->
getWhereObj
(
$where
)
->
get
()
->
toArray
();
$allUpdate
=
$systemUpdateModel
->
getWhereObj
(
$where
)
->
get
()
->
toArray
();
// 查找所有通知用户邮箱和ID
$sendUser
=
DB
::
table
(
't_user_perm'
)
->
where
(
'begDate'
,
'<='
,
$date
)
->
where
(
'endDate'
,
'>='
,
$date
)
->
select
(
'username'
,
'userId'
)
->
get
();
$createNotice
->
createNoticeSaveData
(
$allUpdate
,
$date
,
'韦伯系统'
,
json_encode
(
$sendUser
));
return
[];
if
(
!
empty
(
$allUpdate
)){
if
(
!
empty
(
$allUpdate
)){
// 查找所有通知用户邮箱和ID
// 查找所有通知用户邮箱和ID
$sendUser
=
DB
::
table
(
't_user_perm'
)
->
where
(
'begDate'
,
'<='
,
$date
)
$sendUser
=
DB
::
table
(
't_user_perm'
)
->
where
(
'begDate'
,
'<='
,
$date
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment