| | |
| | | @GetMapping("/electricity-type/get") |
| | | @Operation(summary = "获得用电类型") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdElectricityTypeRespVO> getElectricityType(@RequestParam("id") Long id) { |
| | | return success(electricityTypeService.getElectricityType(id)); |
| | | } |
| | | |
| | | @GetMapping("/electricity-type/page") |
| | | @Operation(summary = "获得用电类型分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdElectricityTypeRespVO>> getElectricityTypePage(@Valid MesPdElectricityTypePageReqVO pageReqVO) { |
| | | return success(electricityTypeService.getElectricityTypePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/electricity-type/list") |
| | | @Operation(summary = "获得用电类型列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdElectricityTypeDO>> getElectricityTypeList() { |
| | | return success(electricityTypeService.getElectricityTypeList()); |
| | | } |
| | |
| | | @GetMapping("/voltage-level/get") |
| | | @Operation(summary = "获得电压等级") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdVoltageLevelRespVO> getVoltageLevel(@RequestParam("id") Long id) { |
| | | return success(voltageLevelService.getVoltageLevel(id)); |
| | | } |
| | | |
| | | @GetMapping("/voltage-level/page") |
| | | @Operation(summary = "获得电压等级分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdVoltageLevelRespVO>> getVoltageLevelPage(@Valid MesPdVoltageLevelPageReqVO pageReqVO) { |
| | | return success(voltageLevelService.getVoltageLevelPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/voltage-level/list") |
| | | @Operation(summary = "获得电压等级列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdVoltageLevelDO>> getVoltageLevelList() { |
| | | return success(voltageLevelService.getVoltageLevelList()); |
| | | } |
| | |
| | | @GetMapping("/service-package/get") |
| | | @Operation(summary = "获得服务套餐") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdServicePackageRespVO> getServicePackage(@RequestParam("id") Long id) { |
| | | return success(servicePackageService.getServicePackage(id)); |
| | | } |
| | | |
| | | @GetMapping("/service-package/page") |
| | | @Operation(summary = "获得服务套餐分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdServicePackageRespVO>> getServicePackagePage(@Valid MesPdServicePackagePageReqVO pageReqVO) { |
| | | return success(servicePackageService.getServicePackagePage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/service-package/list") |
| | | @Operation(summary = "获得服务套餐列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<List<MesPdServicePackageDO>> getServicePackageList() { |
| | | return success(servicePackageService.getServicePackageList()); |
| | | } |
| | |
| | | @GetMapping("/price-standard/get") |
| | | @Operation(summary = "获得定价标准") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdPriceStandardRespVO> getPriceStandard(@RequestParam("id") Long id) { |
| | | return success(priceStandardService.getPriceStandard(id)); |
| | | } |
| | | |
| | | @GetMapping("/price-standard/page") |
| | | @Operation(summary = "获得定价标准分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdPriceStandardRespVO>> getPriceStandardPage(@Valid MesPdPriceStandardPageReqVO pageReqVO) { |
| | | return success(priceStandardService.getPriceStandardPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/discount-policy/get") |
| | | @Operation(summary = "获得优惠策略") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdDiscountPolicyRespVO> getDiscountPolicy(@RequestParam("id") Long id) { |
| | | return success(discountPolicyService.getDiscountPolicy(id)); |
| | | } |
| | | |
| | | @GetMapping("/discount-policy/page") |
| | | @Operation(summary = "获得优惠策略分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdDiscountPolicyRespVO>> getDiscountPolicyPage(@Valid MesPdDiscountPolicyPageReqVO pageReqVO) { |
| | | return success(discountPolicyService.getDiscountPolicyPage(pageReqVO)); |
| | | } |
| | |
| | | @GetMapping("/tiered-price/get") |
| | | @Operation(summary = "获得阶梯电价") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdTieredPriceRespVO> getTieredPrice(@RequestParam("id") Long id) { |
| | | return success(tieredPriceService.getTieredPrice(id)); |
| | | } |
| | | |
| | | @GetMapping("/tiered-price/page") |
| | | @Operation(summary = "获得阶梯电价分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<PageResult<MesPdTieredPriceRespVO>> getTieredPricePage(@Valid MesPdTieredPricePageReqVO pageReqVO) { |
| | | return success(tieredPriceService.getTieredPricePage(pageReqVO)); |
| | | } |