Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
35457e10
authored
Oct 20, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
14dc0f93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
app/Http/Services/AdminUserService.php
app/Http/Services/DataService.php
app/Http/Services/DepartmentService.php
app/Http/Services/AdminUserService.php
View file @
35457e10
...
@@ -49,7 +49,7 @@ class AdminUserService
...
@@ -49,7 +49,7 @@ class AdminUserService
$count
=
$userInfoModel
->
leftJoin
(
'lie_intracode'
,
'user_info.userId'
,
'='
,
'lie_intracode.admin_id'
)
$count
=
$userInfoModel
->
leftJoin
(
'lie_intracode'
,
'user_info.userId'
,
'='
,
'lie_intracode.admin_id'
)
->
where
(
'lie_intracode.code_id'
,
$codeId
)
->
where
(
'lie_intracode.code_id'
,
$codeId
)
->
where
(
'user_info.status'
,
4
)
->
where
(
'lie_intracode.code_id'
,
'!='
,
''
)
->
count
();
->
where
(
'user_info.status'
,
4
)
->
where
(
'lie_intracode.code_id'
,
'!='
,
''
)
->
count
();
return
$count
?
true
:
false
;
return
(
bool
)
$count
;
}
}
...
@@ -64,7 +64,6 @@ class AdminUserService
...
@@ -64,7 +64,6 @@ class AdminUserService
$users
=
array_merge
(
$usersMarket
,
$usersOperation
);
$users
=
array_merge
(
$usersMarket
,
$usersOperation
);
$userIds
=
array_column
(
$users
,
'userId'
);
$userIds
=
array_column
(
$users
,
'userId'
);
$intracodeModel
=
new
IntracodeModel
();
$intracodeModel
=
new
IntracodeModel
();
$users
=
$intracodeModel
->
getEncodeByUserIds
(
$userIds
);
return
$intracodeModel
->
getEncodeByUserIds
(
$userIds
);
return
$users
;
}
}
}
}
\ No newline at end of file
app/Http/Services/DataService.php
View file @
35457e10
...
@@ -192,7 +192,6 @@ class DataService
...
@@ -192,7 +192,6 @@ class DataService
'Aegis Components Inc'
,
'Aegis Components Inc'
,
'深圳市亿博创电子公司'
,
'深圳市亿博创电子公司'
,
];
];
//构建插入数据
//构建插入数据
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
=
new
SupplierChannelModel
();
foreach
(
$supplierNames
as
$supplierName
)
{
foreach
(
$supplierNames
as
$supplierName
)
{
...
@@ -289,7 +288,7 @@ class DataService
...
@@ -289,7 +288,7 @@ class DataService
$msg
=
new
AMQPMessage
(
$message
,
$msg
=
new
AMQPMessage
(
$message
,
array
(
'content_type'
=>
'text/plain'
));
array
(
'content_type'
=>
'text/plain'
));
$
result
=
$
channel
->
basic_publish
(
$msg
,
''
,
'supplier_zhuanmai_update'
);
$channel
->
basic_publish
(
$msg
,
''
,
'supplier_zhuanmai_update'
);
}
}
}
}
...
...
app/Http/Services/DepartmentService.php
View file @
35457e10
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
namespace
App\Http\Services
;
namespace
App\Http\Services
;
use
App\Model\BrandModel
;
use
App\Model\DepartmentModel
;
use
App\Model\DepartmentModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierContactModel
;
use
App\Model\UserInfoModel
;
use
App\Model\UserInfoModel
;
use
DB
;
use
Illuminate\Support\Facades\
DB
;
//部门数据服务
//部门数据服务
class
DepartmentService
class
DepartmentService
...
...
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