Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
07351378
Commit
07351378
authored
Dec 14, 2019
by
Junling Bu
Browse files
fix[litemall-admin-api]: 更新操作有误
parent
c4b6e64c
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/service/AdminGoodsService.java
View file @
07351378
...
...
@@ -187,7 +187,7 @@ public class AdminGoodsService {
attributeService
.
add
(
attribute
);
}
else
if
(
attribute
.
getDeleted
()){
attributeService
.
deleteBy
Gi
d
(
attribute
.
getId
());
attributeService
.
deleteBy
I
d
(
attribute
.
getId
());
}
else
if
(
attribute
.
getUpdateTime
()
==
null
){
attributeService
.
updateById
(
attribute
);
...
...
litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGoodsAttributeService.java
View file @
07351378
...
...
@@ -36,6 +36,10 @@ public class LitemallGoodsAttributeService {
goodsAttributeMapper
.
logicalDeleteByExample
(
example
);
}
public
void
deleteById
(
Integer
id
)
{
goodsAttributeMapper
.
logicalDeleteByPrimaryKey
(
id
);
}
public
void
updateById
(
LitemallGoodsAttribute
attribute
)
{
attribute
.
setUpdateTime
(
LocalDateTime
.
now
());
goodsAttributeMapper
.
updateByPrimaryKeySelective
(
attribute
);
...
...
Write
Preview
Supports
Markdown
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