| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @PostMapping("/calc") |
| | | @Operation(summary = "阶梯电价测算:分档累计 + 优惠策略") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-basedata:query')") |
| | | public CommonResult<MesPdPriceCalcRespVO> calcPrice(@Valid @RequestBody MesPdPriceCalcReqVO calcReqVO) { |
| | | return success(priceService.calcPrice(calcReqVO)); |
| | | } |