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
9e9031bf
authored
May 10, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改执行任务顺序
parent
ebb87f66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
app/Console/Commands/SetSupplierFollowUp.php
app/Http/Controllers/Filter/SupplierFilter.php
app/Console/Commands/SetSupplierFollowUp.php
View file @
9e9031bf
...
...
@@ -31,6 +31,10 @@ class SetSupplierFollowUp extends Command
public
function
handle
()
{
$service
=
new
DataService
();
$service
->
makeTempTagForSupplier
();
$service
->
transferAttachmentToNewTable
();
// $service->importSupplierLevel();
// $service->changeSupplierTypeByIsType();
// $service->transferPayType();
// $service->makeTempTagForSupplier();
}
}
app/Http/Controllers/Filter/SupplierFilter.php
View file @
9e9031bf
...
...
@@ -147,15 +147,15 @@ class SupplierFilter
$inUserIdSql
=
implode
(
','
,
$subordinateUserIds
);
$inCodeIdSql
=
"("
.
$inCodeIdSql
.
")"
;
$inUserIdSql
=
"("
.
$inUserIdSql
.
")"
;
//为啥下面所有获取数据源约束的语句都要加上status=-3
//是因为无论什么角色,都可以看到黑名单
//为啥下面所有获取数据源约束的语句都要加上status=-3
或者 -2
//是因为无论什么角色,都可以看到黑名单
和禁用供应商
if
(
$subordinateCodeIds
)
{
if
(
$canViewFakeSupplier
)
{
$query
->
whereRaw
(
DB
::
raw
(
"(create_uid in
$inUserIdSql
or purchase_uid in
$inCodeIdSql
or channel_uid REGEXP '
$likeSqlRaw
' or is_type = 1 or
status = -3
) "
));
or channel_uid REGEXP '
$likeSqlRaw
' or is_type = 1 or
(status = -3 or status = -2)
) "
));
}
else
{
$query
->
whereRaw
(
DB
::
raw
(
"(create_uid in
$inUserIdSql
or purchase_uid in
$inCodeIdSql
or channel_uid REGEXP '
$likeSqlRaw
' or
status = -3
) "
));
or channel_uid REGEXP '
$likeSqlRaw
' or
(status = -3 or status = -2)
) "
));
}
}
else
{
if
(
$canViewFakeSupplier
)
{
...
...
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