| | |
| | | }
|
| | |
|
| | |
|
| | | |
| | | @Transactional
|
| | | @Override
|
| | | public List<UserSystemCouponVO> getUserCouponVOList(long start, int count, Long uid)
|
| | | throws UserSystemCouponException, Exception {
|
| | |
| | |
|
| | | } else if (CouponTypeEnum.rebatePercentCoupon == type) {
|
| | | // 返利奖励券- 跳转至订单到账界面
|
| | | jumpLink.put("state", 2);
|
| | | jumpLink.put("state", "2");
|
| | |
|
| | | jumpBtn = new HashMap<String, Object>();
|
| | | jumpBtn.put("params", jumpLink);
|
| | |
| | | return hasCoupon;
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public List<UserSystemCouponVO> getOrderCouponList(Long uid) throws UserSystemCouponException, Exception {
|
| | | if (uid == null) {
|
| | |
| | | return getEnableListByCouponId(uid, 1, couponList);
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception {
|
| | |
|
| | |
| | | return list;
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void useGoodsCoupon(Long uid, Long id, Long goodId) throws UserSystemCouponException, Exception {
|
| | | if (uid == null) {
|
| | |
| | | }
|
| | | userRecordVO.setCouponEffect("返利¥" + hongBao.setScale(2, BigDecimal.ROUND_DOWN) + "已返" + percent + "%");
|
| | |
|
| | | // 跳转福利中心
|
| | | JumpDetailV2 welfareCore = jumpDetailV2Service.getByTypeCache("welfareCore");
|
| | | // 资金明细
|
| | | JumpDetailV2 welfareCore = jumpDetailV2Service.getByTypeCache("capitalDetails");
|
| | | Map<String, Object> jumpWelfare = new HashMap<String, Object>();
|
| | | jumpWelfare.put("jumpDetail", welfareCore);
|
| | | Map<String, Object> jumpparms = new HashMap<String, Object>();
|
| | |
| | | return userRecordVO;
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public UserSystemCouponRecordVO getFreeCouponRecord(String orderNo) throws UserSystemCouponException, Exception {
|
| | |
|
| | |
| | | return userRecordVO;
|
| | | }
|
| | |
|
| | | |
| | | @Transactional
|
| | | @Override
|
| | | public void activatedWelfareFreeCoupon(Long uid) {
|
| | | if (uid == null) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void updateStateByDrawback(String orderNo) throws Exception {
|
| | |
|
| | |
| | | sendBackCoupon(record.getUserSystemCoupon());
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void updateStateByArrivalAccount(String orderNo) throws Exception {
|
| | |
|
| | |
| | | userSystemCouponRecordService.updateByPrimaryKeySelective(record);
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void updateCounponInvalid(Long uid) {
|
| | | List<UserSystemCoupon> list = userSystemCouponMapper.getCounponNowInvalid(uid);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void sendBackTimeOutCoupon(Long uid) {
|
| | | // 超过120秒 未被匹配的券
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment,
|
| | | Long auctionId) throws Exception{
|