Skip to content

Commit

Permalink
🐌 修改注释 / 文案
Browse files Browse the repository at this point in the history
  • Loading branch information
newbee-mall committed Jan 12, 2020
1 parent 9c8936c commit 28fd962
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public String cartListPage(HttpServletRequest request,
int priceTotal = 0;
List<NewBeeMallShoppingCartItemVO> myShoppingCartItems = newBeeMallShoppingCartService.getMyShoppingCartItems(user.getUserId());
if (!CollectionUtils.isEmpty(myShoppingCartItems)) {
//订单项总数
//购物项总数
itemsTotal = myShoppingCartItems.stream().mapToInt(NewBeeMallShoppingCartItemVO::getGoodsCount).sum();
if (itemsTotal < 1) {
return "error/error_5xx";
Expand Down Expand Up @@ -74,13 +74,13 @@ public Result updateNewBeeMallShoppingCartItem(@RequestBody NewBeeMallShoppingCa
NewBeeMallUserVO user = (NewBeeMallUserVO) httpSession.getAttribute(Constants.MALL_USER_SESSION_KEY);
newBeeMallShoppingCartItem.setUserId(user.getUserId());
//todo 判断数量
String saveResult = newBeeMallShoppingCartService.updateNewBeeMallCartItem(newBeeMallShoppingCartItem);
String updateResult = newBeeMallShoppingCartService.updateNewBeeMallCartItem(newBeeMallShoppingCartItem);
//修改成功
if (ServiceResultEnum.SUCCESS.getResult().equals(saveResult)) {
if (ServiceResultEnum.SUCCESS.getResult().equals(updateResult)) {
return ResultGenerator.genSuccessResult();
}
//修改失败
return ResultGenerator.genFailResult(saveResult);
return ResultGenerator.genFailResult(updateResult);
}

@DeleteMapping("/shop-cart/{newBeeMallShoppingCartItemId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public String updateNewBeeMallCartItem(NewBeeMallShoppingCartItem newBeeMallShop
//todo userId不同不能修改
newBeeMallShoppingCartItemUpdate.setGoodsCount(newBeeMallShoppingCartItem.getGoodsCount());
newBeeMallShoppingCartItemUpdate.setUpdateTime(new Date());
//保存记录
//修改记录
if (newBeeMallShoppingCartItemMapper.updateByPrimaryKeySelective(newBeeMallShoppingCartItemUpdate) > 0) {
return ServiceResultEnum.SUCCESS.getResult();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/mall/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
<a th:href="@{/index}">新蜂商城</a>
<a th:href="@{/admin}">后台管理系统</a>
<a href="https://edu.csdn.net/course/detail/26258">课程视频</a>
<a href="https://gitee.com/newbee-ltd/newbee-mall">课程文档</a>
<a href="https://juejin.im/book/5da2f9d4f265da5b81794d48?referrer=59199e22a22b9d0058279886">课程文档</a>
<a href="https://gitee.com/newbee-ltd/newbee-donate">捐赠</a>
<a href="https://gitee.com/newbee-ltd/newbee-mall/issues">问题反馈</a>
<a href="https://github.com/newbee-ltd/newbee-mall/issues">问题反馈</a>
<a href="https://github.com/newbee-ltd/newbee-mall">GitHub 地址</a>
<a href="https://gitee.com/newbee-ltd/newbee-mall">码云Gitee 地址</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/mall/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
<ul class="fl">
<li><a th:href="@{/index}">新蜂商城</a></li>
<li><a th:href="@{/admin}">后台管理系统</a></li>
<li><a href="https://edu.csdn.net/course/play/26258/326466">课程视频</a></li>
<li><a href="https://gitee.com/newbee-ltd/newbee-mall">课程文档</a></li>
<li><a href="https://edu.csdn.net/course/detail/26258">课程视频</a></li>
<a href="https://juejin.im/book/5da2f9d4f265da5b81794d48?referrer=59199e22a22b9d0058279886">课程文档</a>
<li><a href="https://gitee.com/newbee-ltd/newbee-donate">捐赠</a></li>
<li><a href="https://gitee.com/newbee-ltd/newbee-mall/issues">问题反馈</a></li>
<li><a href="https://github.com/newbee-ltd/newbee-mall/issues">问题反馈</a></li>
<li><a href="https://github.com/newbee-ltd/newbee-mall">GitHub 地址</a></li>
<li><a href="https://gitee.com/newbee-ltd/newbee-mall">码云Gitee 地址</a></li>
</ul>
Expand Down

0 comments on commit 28fd962

Please sign in to comment.