|
@@ -238,16 +238,10 @@ public class OrderHandler {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(fl){
|
|
|
|
- cid.setIsCanUsed(1);
|
|
|
|
-// couponItemDtoList.add(cid);
|
|
|
|
- }else{
|
|
|
|
|
|
+ if(!fl){
|
|
cid.setIsCanUsed(2);
|
|
cid.setIsCanUsed(2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
- cid.setIsCanUsed(1);
|
|
|
|
-// couponItemDtoList.add(cid);
|
|
|
|
}
|
|
}
|
|
couponItemDtoList.add(cid);
|
|
couponItemDtoList.add(cid);
|
|
}
|
|
}
|
|
@@ -342,8 +336,8 @@ public class OrderHandler {
|
|
return msg;
|
|
return msg;
|
|
}
|
|
}
|
|
|
|
|
|
- if(Integer.valueOf(temp.getExchangeColorId()) != null && Integer.valueOf(temp.getExchangeColorId())!=0){
|
|
|
|
- ProductColor productColor = productColorService.selectProductColorById(temp.getExchangeColorId());
|
|
|
|
|
|
+ if(temp.getExchangeColorId() != null && !"".equals(temp.getExchangeColorId())){
|
|
|
|
+ ProductColor productColor = productColorService.selectProductColorById(Integer.valueOf(temp.getExchangeColorId()));
|
|
CartDto cartDto = new CartDto();
|
|
CartDto cartDto = new CartDto();
|
|
cartDto.setCartProductId(productColor.getColorProductId());
|
|
cartDto.setCartProductId(productColor.getColorProductId());
|
|
cartDto.setCartColorId(productColor.getColorId());
|
|
cartDto.setCartColorId(productColor.getColorId());
|