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
d7702f49
Commit
d7702f49
authored
Jul 16, 2018
by
Junling Bu
Browse files
fix[litemall-wx-api]:添加新的收货地址时设置添加时间
parent
f33e1db6
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxAddressController.java
View file @
d7702f49
...
...
@@ -11,6 +11,7 @@ import org.linlinjava.litemall.wx.annotation.LoginUser;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -154,6 +155,7 @@ public class WxAddressController {
if
(
address
.
getId
()
==
null
||
address
.
getId
().
equals
(
0
))
{
address
.
setId
(
null
);
address
.
setAddTime
(
LocalDateTime
.
now
());
address
.
setUserId
(
userId
);
addressService
.
add
(
address
);
}
else
{
...
...
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