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
84c407e6
authored
Jul 18, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' into ysx-供应商需求-20220707
parents
d75fe64a
3d9b3d91
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Controllers/Api/SupplierStatisticsApiController.php
app/Http/Services/SyncSupplierService.php
app/Http/Validators/SupplierValidator.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
84c407e6
...
...
@@ -297,6 +297,9 @@ class SupplierApiController extends Controller
{
$supplierName
=
trim
(
$request
->
get
(
'supplier_name'
));
$taxNumber
=
$request
->
get
(
'tax_number'
);
if
(
empty
(
$supplierName
)
&&
empty
(
$taxNumber
))
{
$this
->
response
(
0
,
'ok'
);
}
$supplierId
=
$request
->
get
(
'supplier_id'
);
$region
=
$request
->
get
(
'region'
);
$model
=
new
SupplierChannelModel
();
...
...
app/Http/Controllers/Api/SupplierStatisticsApiController.php
View file @
84c407e6
...
...
@@ -20,6 +20,7 @@ class SupplierStatisticsApiController extends Controller
public
function
GetSupplierStatistics
(
$request
)
{
ini_set
(
'memory_limit'
,
-
1
);
$service
=
new
SupplierStatisticsService
();
$statistics
=
$service
->
getSupplierListStatistics
();
$data
=
[];
...
...
app/Http/Services/SyncSupplierService.php
View file @
84c407e6
...
...
@@ -168,9 +168,12 @@ class SyncSupplierService
$data
[
'status'
]
=
SupplierChannelModel
::
STATUS_BLOCK
;
$data
[
'block_reason'
]
=
'一体化系统黑名单供应商'
;
}
else
{
//判断原来是拉黑状态,才变成审核中,因为有可能不是修改公司类型,只是修改公司性质
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_BLOCK
)
{
$data
[
'status'
]
=
SupplierChannelModel
::
STATUS_IN_REVIEW
;
}
}
}
$data
[
'sync_united_status'
]
=
SupplierChannelModel
::
SYNC_UNITED_STATUS_OK
;
$data
[
'group_code'
]
=
$groupCode
;
$data
[
'company_nature'
]
=
$syncResult
[
'company_nature'
];
...
...
app/Http/Validators/SupplierValidator.php
View file @
84c407e6
...
...
@@ -25,8 +25,9 @@ class SupplierValidator
return
null
;
}
$isAdd
=
empty
(
$
supplier
[
'supplier_id'
])
?
true
:
false
;
$isAdd
=
empty
(
$
validateData
[
'supplier_id'
])
?
true
:
false
;
if
(
$validateData
[
'supplier_name'
])
{
//新增的时候要先去检验下一体化的数据,如果是实体黑名单用户,那么就不允许新增
$regionType
=
$validateData
[
'region'
]
==
SupplierChannelModel
::
REGION_CN
?
1
:
2
;
//还要校验提交上来的公司是否有合法信息
...
...
@@ -45,6 +46,7 @@ class SupplierValidator
}
}
}
}
//没有忽略校验的权限并且供应商地区属于内地和港台才会去校验天眼查
if
(
!
checkPerm
(
'IgnoreCompanyCheck'
)
&&
in_array
(
$validateData
[
'region'
],
...
...
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