| | |
| | | VipDetail vipDetailServiceById = vipDetailService.getById(userCoupon.getVipDetailId()); |
| | | vipDetailServiceById.setUseTime(new Date()); |
| | | vipDetailServiceById.setStatus(2); |
| | | vipDetailServiceById.setOperatorId(0); |
| | | vipDetailService.updateById(vipDetailServiceById); |
| | | } |
| | | |
| | | } |
| | | @GetMapping("/base/coupon/updateTypeOther/{id}/{operatorId}/{storeId}/{siteId}") |
| | | void updateTypeOther(@PathVariable("id")Long id,@PathVariable("operatorId")Integer operatorId, |
| | | @PathVariable("storeId")Integer storeId,@PathVariable("siteId")Integer siteId){ |
| | | couponService.updateType(id); |
| | | UserCoupon userCoupon = userCouponService.getById(id); |
| | | if (userCoupon.getIsVipGrant()!=null&& userCoupon.getIsVipGrant()==1){ |
| | | VipDetail vipDetailServiceById = vipDetailService.getById(userCoupon.getVipDetailId()); |
| | | vipDetailServiceById.setUseTime(new Date()); |
| | | vipDetailServiceById.setStatus(2); |
| | | vipDetailServiceById.setOperatorId(operatorId); |
| | | vipDetailServiceById.setUseStoreId(storeId); |
| | | if (siteId!=0){ |
| | | vipDetailServiceById.setUseSiteId(siteId); |
| | | } |
| | | vipDetailService.updateById(vipDetailServiceById); |
| | | } |
| | | |