|
@@ -112,7 +112,7 @@ public class CartHandlers {
|
|
return remsg;
|
|
return remsg;
|
|
}
|
|
}
|
|
//如果模板id等于金牌会模板id,则该用户为金牌会员下线
|
|
//如果模板id等于金牌会模板id,则该用户为金牌会员下线
|
|
- if (user.getUserDealers() != null && user.getTemplateId() != null
|
|
|
|
|
|
+ if (user.getUserDealers() != null && user.getTemplateId() != null
|
|
&& templateId == user.getTemplateId().intValue() && user.getUserResType().intValue() == 3) {
|
|
&& templateId == user.getTemplateId().intValue() && user.getUserResType().intValue() == 3) {
|
|
//若果是金牌会员下线,产品的价格就以优惠价显示
|
|
//若果是金牌会员下线,产品的价格就以优惠价显示
|
|
for (CartDto cartDto : cartList) {
|
|
for (CartDto cartDto : cartList) {
|
|
@@ -137,19 +137,19 @@ public class CartHandlers {
|
|
for (CartDto cartDto : cartList) {
|
|
for (CartDto cartDto : cartList) {
|
|
|
|
|
|
//如果购买过订单,则滤芯的价格可按折扣价购买
|
|
//如果购买过订单,则滤芯的价格可按折扣价购买
|
|
- if (orderNum > 0) {
|
|
|
|
- if (cartDto.getProductType().intValue() == 2) {
|
|
|
|
- UserGiftDto userGiftDto = new UserGiftDto();
|
|
|
|
- userGiftDto.setUserLevel(3);
|
|
|
|
- userGiftDto.setUserProductId(cartDto.getCartProductId());
|
|
|
|
- userGiftDto.setUserColorId(cartDto.getCartColorId());
|
|
|
|
- //根据商品id和会员等级查询礼品信息
|
|
|
|
- userGiftDto = productInfoService.selectUserGift(userGiftDto);
|
|
|
|
- if (userGiftDto != null) {
|
|
|
|
- cartDto.setProductDiscount(userGiftDto.getUserDiscount());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// if (orderNum > 0) {
|
|
|
|
+// if (cartDto.getProductType().intValue() == 2) {
|
|
|
|
+// UserGiftDto userGiftDto = new UserGiftDto();
|
|
|
|
+// userGiftDto.setUserLevel(3);
|
|
|
|
+// userGiftDto.setUserProductId(cartDto.getCartProductId());
|
|
|
|
+// userGiftDto.setUserColorId(cartDto.getCartColorId());
|
|
|
|
+// //根据商品id和会员等级查询礼品信息
|
|
|
|
+// userGiftDto = productInfoService.selectUserGift(userGiftDto);
|
|
|
|
+// if (userGiftDto != null) {
|
|
|
|
+// cartDto.setProductDiscount(userGiftDto.getUserDiscount());
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
if (cartDto.getProductStatus() != null && cartDto.getProductStatus() == 1) { // 产品状态:在售
|
|
if (cartDto.getProductStatus() != null && cartDto.getProductStatus() == 1) { // 产品状态:在售
|
|
total += cartDto.getCartNum() * cartDto.getProductDiscount();
|
|
total += cartDto.getCartNum() * cartDto.getProductDiscount();
|