| | |
| | | TChargingPile chargingPile = chargingPileClient.getChargingPileById(chargingGun.getChargingPileId()).getData(); |
| | | SiteInfoVO data = chargingPileClient.getSiteInfoByNumber1(chargingPile.getCode().toString()).getData(); |
| | | data.setChargingGunId(id); |
| | | data.setSiteId(chargingGun.getId()); |
| | | data.setSiteId(chargingGun.getSiteId()); |
| | | data.setChargeMode(chargingGun.getChargeMode()); |
| | | List<TAppUserCar> cars = appUserCarService.list(new QueryWrapper<TAppUserCar>() |
| | | .eq("app_user_id",tokenService.getLoginUserApplet().getUserId()) |
| | |
| | | TAppCoupon appCoupon = tAppCouponService.getById(id); |
| | | return R.ok(appCoupon); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户优惠券 |
| | | * @param appCoupon |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateAppCoupon") |
| | | public R updateAppCoupon(@RequestBody TAppCoupon appCoupon){ |
| | | tAppCouponService.updateById(appCoupon); |
| | | return R.ok(); |
| | | } |
| | | } |
| | | |