| | |
| | | * @param siteId |
| | | * @return |
| | | */ |
| | | @PostMapping("/getDetailBySiteId") |
| | | @GetMapping("/getDetailBySiteId") |
| | | public R<TAccountingStrategyDetail> getDetailBySiteId(@RequestParam("siteId") Integer siteId){ |
| | | Site site = siteService.getById(siteId); |
| | | TAccountingStrategy accountingStrategy = accountingStrategyService.getById(site.getAccountingStrategyId()); |
| | |
| | | * @param code 设备编号 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getDetailByCode") |
| | | public R<TAccountingStrategyDetail> getDetailByPileId(@RequestParam("code") String code){ |
| | | @GetMapping("/getDetailByCode") |
| | | public R<TAccountingStrategyDetail> getDetailByCode(@RequestParam("code") String code){ |
| | | // 查询桩 |
| | | TChargingPile chargingPile = chargingPileService.getOne(Wrappers.lambdaQuery(TChargingPile.class) |
| | | .eq(TChargingPile::getCode,code) |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/getListByAccountingStrategyId") |
| | | @GetMapping("/getListByAccountingStrategyId") |
| | | public R<List<TAccountingStrategyDetail>> getListByAccountingStrategyId(@RequestParam("id") Integer id){ |
| | | List<TAccountingStrategyDetail> list = accountingStrategyDetailService.list(new LambdaQueryWrapper<TAccountingStrategyDetail>().eq(TAccountingStrategyDetail::getAccountingStrategyId, id)); |
| | | return R.ok(list); |
| | |
| | | * @param code |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-accounting-strategy-detail/getDetailListByCode") |
| | | @GetMapping("/getDetailListByCode") |
| | | public R<List<TAccountingStrategyDetail>> getDetailListByCode(@RequestParam("code") String code){ |
| | | // 查询桩 |
| | | TChargingPile chargingPile = chargingPileService.getOne(Wrappers.lambdaQuery(TChargingPile.class) |