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
b4f6c175
authored
Sep 16, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改状态
parent
d5b8cbec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
app/Http/Services/SkuService.php
app/Model/ManualPutawaySkuLog.php
app/Http/Services/SkuService.php
View file @
b4f6c175
...
...
@@ -339,7 +339,7 @@ class SkuService extends BaseService
'sku_id'
=>
$skuId
,
'cp_time'
=>
$data
[
'cp_time'
],
];
ManualPutawaySkuLog
::
addManualPutawaySkuLog
(
$skuId
,
$supplierCodes
[
$key
]);
ManualPutawaySkuLog
::
addManualPutawaySkuLog
(
$skuId
,
$supplierCodes
[
$key
]
,
1
);
}
}
else
{
foreach
(
$skuIds
as
$key
=>
$skuId
)
{
...
...
app/Model/ManualPutawaySkuLog.php
View file @
b4f6c175
...
...
@@ -14,7 +14,7 @@ class ManualPutawaySkuLog extends Model
public
$timestamps
=
false
;
public
static
function
addManualPutawaySkuLog
(
$skuId
,
$supplierCode
=
''
)
public
static
function
addManualPutawaySkuLog
(
$skuId
,
$supplierCode
=
''
,
$isNew
=
0
)
{
if
(
empty
(
$supplierCode
))
{
...
...
@@ -25,7 +25,7 @@ class ManualPutawaySkuLog extends Model
$manualPutawaySkuLog
=
self
::
where
(
'sku_id'
,
$skuId
)
->
first
();
if
(
$manualPutawaySkuLog
)
{
self
::
where
(
'sku_id'
,
$skuId
)
->
update
([
'is_new'
=>
1
,
'is_new'
=>
$isNew
,
'update_time'
=>
time
(),
]);
return
;
...
...
@@ -34,7 +34,7 @@ class ManualPutawaySkuLog extends Model
'sku_id'
=>
$skuId
,
'supplier_code'
=>
$supplierCode
,
'create_time'
=>
time
(),
'is_new'
=>
1
,
'is_new'
=>
$isNew
,
]);
}
}
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