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
532835a5
Commit
532835a5
authored
Nov 26, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw
parent
b2f7916c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
Goods.php
application/models/DAO/Goods.php
+1
-0
GoodsCommon.php
application/models/DAO/GoodsCommon.php
+1
-0
No files found.
application/models/DAO/Goods.php
View file @
532835a5
...
...
@@ -44,6 +44,7 @@ class GoodsModel extends \DAO\AbstractModel {
}
else
{
//调整库存预警为不需要预警
$updateSql
=
'goods_storage_alarm =0'
;
}
$updateSql
=
$updateSql
.
",goods_edittime="
.
TIMESTAMP
;
$updateAllSql
=
"UPDATE
{
$this
->
_tableName
}
set
{
$updateSql
}
where
{
$whereSql
}
"
;
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
query
(
$updateAllSql
);
}
...
...
application/models/DAO/GoodsCommon.php
View file @
532835a5
...
...
@@ -43,6 +43,7 @@ class GoodsCommonModel extends \DAO\AbstractModel {
}
else
{
$updateSql
=
'goods_storage_alarm = 0'
;
}
$updateSql
=
$updateSql
.
",goods_edittime="
.
TIMESTAMP
;
$updateAllSql
=
"UPDATE
{
$this
->
_tableName
}
set
{
$updateSql
}
where
{
$whereSql
}
"
;
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
query
(
$updateAllSql
);
}
...
...
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