Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
liexin_scm_service
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
f892fe05
authored
May 22, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改更新逻辑
parent
3d79e732
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
app/Http/Model/CustomerModel.php
app/Http/Model/SupplierModel.php
app/Http/Model/CustomerModel.php
View file @
f892fe05
...
...
@@ -78,6 +78,10 @@ class CustomerModel extends Model
* 更新客户信息
*/
public
function
updateCustomerInfo
(
$arr
)
{
if
(
!
empty
(
$arr
[
'erp_client_sn'
]))
{
$this
->
cusSn2Redis
(
$arr
[
'erp_client_sn'
],
$arr
[
'erp_customer_id'
]);
$this
->
cusId2Redis
(
$arr
[
'erp_customer_id'
],
json_encode
(
$arr
));
}
return
$this
->
where
(
'erp_customer_id'
,
'='
,
$arr
)
->
update
(
$arr
);
}
...
...
app/Http/Model/SupplierModel.php
View file @
f892fe05
...
...
@@ -77,8 +77,11 @@ class SupplierModel extends Model
* 更新供应商信息
*/
public
function
updateSupplierInfo
(
$arr
)
{
if
(
!
empty
(
$arr
[
'erp_supplier_sn'
]))
{
$this
->
supSn2Redis
(
$arr
[
'erp_supplier_sn'
],
$arr
[
'supplier_id'
]);
$this
->
supId2Redis
(
$arr
[
'supplier_id'
],
json_encode
(
$arr
));
}
return
$this
->
where
(
'erp_supplier_id'
,
'='
,
$arr
)
->
update
(
$arr
);
}
/**
...
...
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