|
@@ -349,6 +349,12 @@ public class OrderHandler {
|
|
|
for(CouponItemDto couponItemDto : couponItemDtoList){
|
|
|
boolean flag = true;
|
|
|
|
|
|
+ if(couponItemDto.getCouponIsUniversal() == 2){
|
|
|
+ if(!couponItemService.isUniversal(couponItemDto.getCouponId(),cartDtos)){
|
|
|
+ flag = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if(total >= couponItemDto.getCouponConsumeEnough()){
|
|
|
|
|
@@ -747,6 +753,13 @@ public class OrderHandler {
|
|
|
msg.setMessage(ResultInfo.COUPON_CONSUME_NO_ENOUGH);
|
|
|
return msg;
|
|
|
}
|
|
|
+
|
|
|
+ if(couponItemDto.getCouponIsUniversal() == 2){
|
|
|
+ if(!couponItemService.isUniversal(couponItemDto.getCouponId(),cartDtos)){
|
|
|
+ msg.setMessage(ResultInfo.COUPON_NO_TOOTH_AMOUNT);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if(couponItemDto.getCouponIsNewPeople() == 1){
|
|
|
if(member.getUserIdentity() != 1 || !brush1Flag || !brush2Flag){
|
|
@@ -1093,10 +1106,10 @@ public class OrderHandler {
|
|
|
* @return
|
|
|
*/
|
|
|
private void addFullReduction(Integer type, List<CartDto> cartDtos,Integer num[]){
|
|
|
- switch (type){
|
|
|
- case 5 :
|
|
|
- addCartDtos(cartDtos,322,1);
|
|
|
- break;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1109,12 +1122,12 @@ public class OrderHandler {
|
|
|
|
|
|
|
|
|
|
|
|
- case 1 :
|
|
|
- addCartDtos(cartDtos,314,num[0]);
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|