| | |
| | | public void changeState(@RequestBody CoachChangeStateVO dto) { |
| | | pmdsService.changeState(dto); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/pointMerchars/goodsList") |
| | | public List<PointsMerchandise> goodsList() { |
| | | return pmdsService.list(); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | */ |
| | |
| | | private ICouponService couponService; |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/pointMerchars/getDetailsOfExchange") |
| | | public ExchangeDetailsVo getIntegralExchangeDetails(@RequestBody Integer appUserId) throws ParseException { |
| | |
| | | detailsResponse.setUseStatus(pointsMerchandise.getStatus() == 1 ? 2 : 1); |
| | | detailsResponse.setGoodType(merchandise.getType()); |
| | | if (merchandise.getType() == 3) { |
| | | detailsResponse.setCodeType(3); |
| | | detailsResponse.setDataId(pointsMerchandise.getPointsMerchandiseId()); |
| | | detailsResponse.setCardType(merchandise.getCardType()); |
| | | List<Integer> sids = new ArrayList<>(); |
| | | detailsResponse.setUserId(appUserId); |
| | |
| | | detailsResponse.setEndTime(simpleDateFormat.format(vipDetail.getEndTime())); |
| | | detailsResponse.setUseStatus(vipDetail.getStatus()==1?2:1); |
| | | detailsResponse.setGoodType(3); |
| | | detailsResponse.setCardType(3); |
| | | // 表明是会员赠送的门票 |
| | | detailsResponse.setExchangeType(4); |
| | | // 全国通用 |
| | |
| | | upmseService.save(merchandise); |
| | | return merchandise.getId(); |
| | | } |
| | | |
| | | @PostMapping("/base/pointMerchars/saveDetailsUserPointMercaseList") |
| | | public Boolean saveDetailsUserPointMercaseList(@RequestBody List<UserPointsMerchandise> merchandises) { |
| | | for (UserPointsMerchandise merchandise : merchandises) { |
| | |
| | | } |
| | | return storeVos; |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |