| 
														
															@@ -395,7 +395,9 @@ public class CouponController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                 if(couponService.addUserCoupon(userCouponParam) == 1) { 
														 | 
														
														 | 
														
															                                                 if(couponService.addUserCoupon(userCouponParam) == 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     //更新该优惠券的领取数量 
														 | 
														
														 | 
														
															                                                     //更新该优惠券的领取数量 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     Coupon coupon_up = new Coupon(); 
														 | 
														
														 | 
														
															                                                     Coupon coupon_up = new Coupon(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     coupon_up.setCouponId(couponId); 
														 | 
														
														 | 
														
															                                                     coupon_up.setCouponId(couponId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                                    logger.info("当前领取优惠券的模板ID:" + couponId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     couponCumulativeNum = couponCumulativeNum + 1; 
														 | 
														
														 | 
														
															                                                     couponCumulativeNum = couponCumulativeNum + 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     coupon_up.setCouponCumulativeNum(couponCumulativeNum); 
														 | 
														
														 | 
														
															                                                     coupon_up.setCouponCumulativeNum(couponCumulativeNum); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                                     couponService.updateCouponInfo(coupon_up); 
														 | 
														
														 | 
														
															                                                     couponService.updateCouponInfo(coupon_up); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -604,6 +606,16 @@ public class CouponController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                             userCoupon.setCouponIsUsed("1"); 
														 | 
														
														 | 
														
															                                             userCoupon.setCouponIsUsed("1"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                             couponService.updateCouponUserInfo(userCoupon); 
														 | 
														
														 | 
														
															                                             couponService.updateCouponUserInfo(userCoupon); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                             resultData = ResultData.success("核销成功!"); 
														 | 
														
														 | 
														
															                                             resultData = ResultData.success("核销成功!"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            UserCoupon u = new UserCoupon(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            u.setId(userCouponInfo.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            UserCoupon ucResult = couponService.selectUserCouponInfo(u); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            Coupon coupon_up = new Coupon(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            coupon_up.setCouponId(userCouponInfo.getCouponId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            Integer couponUseNum = ucResult.getCouponUseNum(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            couponUseNum = couponUseNum + 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            coupon_up.setCouponNum(couponUseNum); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                            couponService.updateCouponInfo(coupon_up); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         }else { 
														 | 
														
														 | 
														
															                                         }else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                             resultData = ResultData.error(CodeMsg.ERROR_VERIFICATION); 
														 | 
														
														 | 
														
															                                             resultData = ResultData.error(CodeMsg.ERROR_VERIFICATION); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         } 
														 | 
														
														 | 
														
															                                         } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -612,6 +624,19 @@ public class CouponController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         userCoupon.setCouponIsUsed("1"); 
														 | 
														
														 | 
														
															                                         userCoupon.setCouponIsUsed("1"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         couponService.updateCouponUserInfo(userCoupon); 
														 | 
														
														 | 
														
															                                         couponService.updateCouponUserInfo(userCoupon); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         resultData = ResultData.success("核销成功!"); 
														 | 
														
														 | 
														
															                                         resultData = ResultData.success("核销成功!"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        UserCoupon u = new UserCoupon(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        u.setId(userCouponInfo.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        UserCoupon ucResult = couponService.selectUserCouponInfo(u); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        Coupon coupon_up = new Coupon(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        coupon_up.setCouponId(ucResult.getCouponId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        Integer couponUseNum = ucResult.getCouponUseNum(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        logger.info("当前优惠券模板已使用次数:"+ couponUseNum.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        couponUseNum = couponUseNum + 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        logger.info("当前优惠券模板本次使用后次数:"+ couponUseNum.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        coupon_up.setCouponUseNum(couponUseNum); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                        couponService.updateCouponInfo(coupon_up); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     }else { 
														 | 
														
														 | 
														
															                                     }else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         //当前异业券不能在此异业端核销 
														 | 
														
														 | 
														
															                                         //当前异业券不能在此异业端核销 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                         resultData = ResultData.error(CodeMsg.ERROR_VERIFICATION); 
														 | 
														
														 | 
														
															                                         resultData = ResultData.error(CodeMsg.ERROR_VERIFICATION); 
														 |