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
0597d925
authored
Jan 04, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
72cd6358
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
app/Http/Services/DataService.php
app/Model/SupplierContactModel.php
app/Http/Services/DataService.php
View file @
0597d925
...
@@ -1435,14 +1435,14 @@ class DataService
...
@@ -1435,14 +1435,14 @@ class DataService
// 获取该供应商的所有采购跟单员
// 获取该供应商的所有采购跟单员
$contacts
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplier
->
supplier_id
)
$contacts
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplier
->
supplier_id
)
->
where
(
'channel_user_type'
,
4
)
->
where
(
'channel_user_type'
,
4
)
->
whereIn
(
'can_check_uids'
,[
"10009"
,
"10546"
])
->
get
();
->
get
();
// 如果有采购跟单员,就删除它们
// 如果有采购跟单员,就删除它们
foreach
(
$contacts
as
$contact
)
{
foreach
(
$contacts
as
$contact
)
{
//如果can_check_uids不在 10009 / 10546
if
(
$contact
->
can_check_uids
!=
10009
&&
$contact
->
can_check_uids
!=
10546
)
{
continue
;
}
//判断创建时间是不是2025年1月3日的时间戳之前创建的
//判断创建时间是不是2025年1月3日的时间戳之前创建的
//如果是的话,那么就改成普通采购员
//如果是的话,那么就改成普通采购员
if
(
$contact
->
add_time
<
strtotime
(
'2025-01-02'
))
{
if
(
$contact
->
add_time
<
strtotime
(
'2025-01-02'
))
{
...
...
app/Model/SupplierContactModel.php
View file @
0597d925
...
@@ -10,6 +10,7 @@ class SupplierContactModel extends Model
...
@@ -10,6 +10,7 @@ class SupplierContactModel extends Model
protected
$connection
=
'web'
;
protected
$connection
=
'web'
;
protected
$table
=
'supplier_contact'
;
protected
$table
=
'supplier_contact'
;
public
$timestamps
=
false
;
public
$timestamps
=
false
;
protected
$primaryKey
=
'contact_id'
;
const
CHANNEL_USER_TYPE_LIEXIN
=
1
;
const
CHANNEL_USER_TYPE_LIEXIN
=
1
;
const
CHANNEL_USER_TYPE_JD
=
2
;
const
CHANNEL_USER_TYPE_JD
=
2
;
...
...
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