| | |
| | |
|
| | | @Resource
|
| | | private CommonOrderCountService commonOrderCountService;
|
| | |
|
| | | |
| | | @Override
|
| | | public int insertSelective(UserSystemCoupon record) {
|
| | | return userSystemCouponMapper.insertSelective(record);
|
| | |
| | | }
|
| | |
|
| | | // 结束日期
|
| | | String endDay = DateUtil.plusDay(coupon.getExpiryDay(), new Date());
|
| | | // 今天在内 减去一天
|
| | | String endDay = DateUtil.plusDay(coupon.getExpiryDay() - 1, new Date());
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
| | | Date endTime = format.parse(endDay);
|
| | |
|
| | |
| | | updateCounponInvalid(uid);
|
| | | // 退回券
|
| | | sendBackTimeOutCoupon(uid);
|
| | | // 活动领取券
|
| | | receivedCoupon(uid);
|
| | |
|
| | | // 订单相关的券
|
| | | List<SystemCoupon> couponList = systemCouponService.getOrderCouponList();
|
| | |
| | | updateCounponInvalid(uid);
|
| | | // 退回券
|
| | | sendBackTimeOutCoupon(uid);
|
| | | |
| | | // 活动领取券
|
| | | receivedCoupon(uid);
|
| | |
|
| | | // 商品相关的券
|
| | | List<SystemCoupon> couponList = systemCouponService.getGoodsCouponList();
|
| | |
| | | String progressMsg = "";
|
| | | String progressColor = "";
|
| | | // 跳转奖励券规则
|
| | | userRecordVO.setRuleLink(configService.get("reward_coupon_help"));
|
| | | userRecordVO.setRuleLink(configService.get("free_coupon_help"));
|
| | |
|
| | | // 进度: 1 灰色 2 红色 3 绿色
|
| | | String progressState1 = "3";
|
| | |
| | | // 结束日期
|
| | | Date endTime = null;
|
| | | try {
|
| | | String endDay = DateUtil.plusDay(expiryDay, new Date());
|
| | | // 今天在内 减去一天
|
| | | String endDay = DateUtil.plusDay(expiryDay - 1, new Date());
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
| | | endTime = format.parse(endDay);
|
| | | } catch (ParseException e) {
|
| | |
| | | // 结束日期
|
| | | Date endTime = null;
|
| | | try {
|
| | | String endDay = DateUtil.plusDay(expiryDay, new Date());
|
| | | // 今天在内 减去一天
|
| | | String endDay = DateUtil.plusDay(expiryDay - 1, new Date());
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
| | | endTime = format.parse(endDay);
|
| | | } catch (ParseException e) {
|
| | |
| | | stateActivated = 0;
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | // 结束日期
|
| | | String endDay = DateUtil.plusDay(systemCoupon.getExpiryDay(), new Date());
|
| | | // 今天在内 减去一天
|
| | | String endDay = DateUtil.plusDay(systemCoupon.getExpiryDay() - 1, new Date());
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
| | | Date endTime = format.parse(endDay);
|
| | |
|
| | |
| | | userInfoExtraService.saveUserInfoExtra(userInfoExtra);
|
| | |
|
| | | }
|
| | |
|
| | | |
| | | |
| | | }
|