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
0e62f33e
Commit
0e62f33e
authored
Jul 23, 2018
by
Menethil
Browse files
修复价格计算错误
parent
713d7156
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCartController.java
View file @
0e62f33e
...
...
@@ -8,6 +8,7 @@ import org.linlinjava.litemall.db.service.*;
import
org.linlinjava.litemall.core.util.JacksonUtil
;
import
org.linlinjava.litemall.core.util.ResponseUtil
;
import
org.linlinjava.litemall.wx.annotation.LoginUser
;
import
org.linlinjava.litemall.wx.service.SystemConfig
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -469,8 +470,8 @@ public class WxCartController {
// 根据订单商品总价计算运费,满88则免运费,否则8元;
BigDecimal
freightPrice
=
new
BigDecimal
(
0.00
);
if
(
checkedGoodsPrice
.
compareTo
(
new
BigDecimal
(
88.00
))
==
-
1
)
{
freightPrice
=
new
BigDecimal
(
8.00
);
if
(
checkedGoodsPrice
.
compareTo
(
SystemConfig
.
getFreightLimit
())
<
0
)
{
freightPrice
=
SystemConfig
.
getFreight
(
);
}
// 可以使用的其他钱,例如用户积分
...
...
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