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
392e10de
authored
Dec 27, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
90855e10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/Http/Controllers/Api/ChainApiController.php
app/Http/Controllers/Filter/ChainFilter.php
app/Http/Controllers/Api/ChainApiController.php
View file @
392e10de
...
@@ -48,6 +48,7 @@ class ChainApiController extends Controller
...
@@ -48,6 +48,7 @@ class ChainApiController extends Controller
'check_content'
,
'check_content'
,
'chain_id'
,
'chain_id'
,
]);
]);
$map
[
'check_content'
]
=
trim
(
$map
[
'check_content'
]);
if
(
empty
(
$map
[
'check_content'
])
&&
$map
[
'status'
]
==
3
)
{
if
(
empty
(
$map
[
'check_content'
])
&&
$map
[
'status'
]
==
3
)
{
$this
->
response
(
-
1
,
'跟进内容不能为空'
);
$this
->
response
(
-
1
,
'跟进内容不能为空'
);
}
}
...
...
app/Http/Controllers/Filter/ChainFilter.php
View file @
392e10de
...
@@ -30,7 +30,7 @@ class ChainFilter
...
@@ -30,7 +30,7 @@ class ChainFilter
if
(
!
empty
(
$map
[
'supplier_type'
]))
{
if
(
!
empty
(
$map
[
'supplier_type'
]))
{
$query
->
where
(
'supplier_type'
,
$map
[
'supplier_type'
]);
$query
->
where
(
'supplier_type'
,
$map
[
'supplier_type'
]);
}
}
if
(
!
empty
(
$map
[
'check_status'
]))
{
if
(
(
isset
(
$map
[
'check_status'
])
&&
$map
[
'check_status'
]
===
'0'
)
||
!
empty
(
$map
[
'check_status'
]))
{
$query
->
where
(
'check_status'
,
$map
[
'check_status'
]);
$query
->
where
(
'check_status'
,
$map
[
'check_status'
]);
}
}
if
((
isset
(
$map
[
'is_entity'
])
&&
$map
[
'is_entity'
]
===
'0'
)
||
!
empty
(
$map
[
'is_entity'
]))
{
if
((
isset
(
$map
[
'is_entity'
])
&&
$map
[
'is_entity'
]
===
'0'
)
||
!
empty
(
$map
[
'is_entity'
]))
{
...
...
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