Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
7c2c6e55
authored
Dec 05, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新部门数量
parent
fba939e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
app/Console/Commands/updateDepartmentNum.php
app/Console/Commands/updateDepartmentNum.php
0 → 100644
View file @
7c2c6e55
<?php
namespace
App\Console\Commands
;
use
App\Admin\Service\AutoAssignCustomerService
;
use
Illuminate\Console\Command
;
class
updateDepartmentNum
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'command:updateDepartmentNum'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Command description'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return int
*/
public
function
handle
()
{
echo
date
(
"Y-m-d H:i:s"
)
.
"更新部门数量开始"
.
PHP_EOL
;
AutoAssignCustomerService
::
updateDepartmentNum
();
echo
date
(
"Y-m-d H:i:s"
)
.
"更新部门数量结束"
.
PHP_EOL
;
return
0
;
}
}
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