Commit d7702f49 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx-api]:添加新的收货地址时设置添加时间

parent f33e1db6
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment