|
@@ -166,10 +166,13 @@ public class OrderHandler {
|
|
|
|
|
|
List<CartDto> tempCarts = new ArrayList<CartDto>();
|
|
List<CartDto> tempCarts = new ArrayList<CartDto>();
|
|
for (CartDto cartDto : cartDtos) {
|
|
for (CartDto cartDto : cartDtos) {
|
|
- if (cartDto.getProductStatus() != null ) {
|
|
|
|
|
|
+ if (cartDto.getProductStatus() != null && cartDto.getProductStatus().intValue() == 1) {
|
|
total += cartDto.getCartNum() * cartDto.getProductPrice();
|
|
total += cartDto.getCartNum() * cartDto.getProductPrice();
|
|
sum++;
|
|
sum++;
|
|
tempCarts.add(cartDto);
|
|
tempCarts.add(cartDto);
|
|
|
|
+ }else if(cartDto.getProductStatus().intValue() != 1){
|
|
|
|
+ msg.setMessage(ResultInfo.cartNoStatusError);
|
|
|
|
+ return msg;
|
|
}
|
|
}
|
|
String[] els = element.split("-");
|
|
String[] els = element.split("-");
|
|
for(String el : els){
|
|
for(String el : els){
|
|
@@ -339,6 +342,9 @@ public class OrderHandler {
|
|
item.setItemProductPrice(cartDto.getProductDiscount());
|
|
item.setItemProductPrice(cartDto.getProductDiscount());
|
|
item.setItemColorId(cartDto.getCartColorId());
|
|
item.setItemColorId(cartDto.getCartColorId());
|
|
list.add(item);
|
|
list.add(item);
|
|
|
|
+ }else if(cartDto.getProductStatus().intValue() != 1){
|
|
|
|
+ msg.setMessage(ResultInfo.cartNoStatusError);
|
|
|
|
+ return msg;
|
|
}
|
|
}
|
|
if(cartDto.getProductType() == 100){ //当订单中有电动牙刷时,isContainProduct为true
|
|
if(cartDto.getProductType() == 100){ //当订单中有电动牙刷时,isContainProduct为true
|
|
isContainProduct = true;
|
|
isContainProduct = true;
|