| | |
| | | // 设置销售百分比和时间戳 |
| | | appSimpleActivityGoodsVo.setSalesPercent(salesPercent); |
| | | appSimpleActivityGoodsVo.setTimestamp(appSimpleActivityGoodsVo.getEndTime().getTime()); |
| | | //限购判断 |
| | | if(appSimpleActivityGoodsVo.getPurchaseLimitationFlag()==1){ |
| | | Integer buyNum = activityRecordService.getUserActivityGoodsNum(appSimpleActivityGoodsVo.getGoodsId(),appActivityGoodsPageDto.getActivityId(),appActivityGoodsPageDto.getUserId()); |
| | | Integer limitBuyNum = appSimpleActivityGoodsVo.getLimitNumber() - buyNum; |
| | | appSimpleActivityGoodsVo.setAvailableBuyNum(limitBuyNum); |
| | | } |
| | | } |
| | | // 返回结果 |
| | | return appSimpleGoodsVoList; |