update[litemall-wx-api]: 调整order删除操作。

This commit is contained in:
Junling Bu
2018-04-07 11:13:29 +08:00
parent b184242ca6
commit 4a4bc70509
3 changed files with 5 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ public class WxGoodsController {
c.put("picList", comment.getPicUrls());
commentsVo.add(c);
}
Map<String, Object> commentList = new HashMap();
Map<String, Object> commentList = new HashMap<>();
commentList.put("count", commentCount);
commentList.put("data", commentsVo);
@@ -111,13 +111,13 @@ public class WxGoodsController {
// 记录用户的足迹
if(userId != null) {
LitemallFootprint footprint = new LitemallFootprint();
footprint.setAddTime(LocalDate.now());
footprint.setAddTime(LocalDateTime.now());
footprint.setUserId(userId);
footprint.setGoodsId(id);
footprintService.add(footprint);
}
Map<String, Object> data = new HashMap();
Map<String, Object> data = new HashMap<>();
data.put("info", info);
data.put("userHasCollect", userHasCollect);
data.put("issue", issue);

View File

@@ -37,7 +37,7 @@ public class WxHomeController {
*/
@RequestMapping("/index")
public Object index() {
Map<String, Object> data = new HashMap();
Map<String, Object> data = new HashMap<>();
List<LitemallAd> banner = adService.queryByApid(1);
data.put("banner", banner);

View File

@@ -353,9 +353,8 @@ public class WxOrderController {
// 订单order_status没有字段用于标识删除
// 而是存在专门的is_delete字段表示是否删除
order.setIsDelete(true);
orderService.deleteById(orderId);
orderService.update(order);
return ResponseUtil.ok();
}