Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
ecd4f9e0
Commit
ecd4f9e0
authored
Nov 01, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd
parent
161e49d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+1
-4
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
ecd4f9e0
...
...
@@ -39,10 +39,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$op
=
isset
(
$this
->
setStorageType
[
$type
])
?
$this
->
setStorageType
[
$type
]
:
1
;
//默认增加库存
$goodsDao
->
db
->
doTransaction
();
$ret1
=
$goodsDao
->
updateStorage
(
$goodsId
,
$num
,
$op
);
$ret2
=
true
;
if
(
$op
==
1
)
{
//如果就库存调整
$ret2
=
$commonDao
->
updateStorage
(
$data
[
'goods_commonid'
],
$op
);
}
$ret2
=
$commonDao
->
updateStorage
(
$data
[
'goods_commonid'
],
$op
);
if
(
!
$ret1
||
!
$ret2
)
{
$goodsDao
->
db
->
doRollback
();
...
...
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