| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | |
| | | return success(result); |
| | | } |
| | | |
| | | /*@GetMapping("/net-factor/alarm") |
| | | * 判断 curCos 是否超上下限 |
| | | * {nodeName}功率因数超上限/下限。 |
| | | * |
| | | * 判断 curQ |
| | | * {nodeName}发生无功返送 |
| | | * |
| | | * */ |
| | | |
| | | @GetMapping("/gen-status/list") |
| | | @Operation(summary = "功率因数-发电机组实时状态") |
| | | public CommonResult<List<PowerGenStatusDTO>> getPowerGenStatusList(@RequestParam Map<String, Object> params) { |
| | |
| | | return success(ConvertUtils.sourceToTarget(list, PowerControlMainDTO.class)); |
| | | } |
| | | |
| | | @GetMapping("/control-main/update") |
| | | @PostMapping("/control-main/update") |
| | | @Operation(summary = "功率因数-管控变电站修改上下限") |
| | | public CommonResult<Boolean> updatePowerControlMain(PowerControlMainDTO dto) { |
| | | public CommonResult<Boolean> updatePowerControlMain(@RequestBody PowerControlMainDTO dto) { |
| | | if (StringUtils.isBlank(dto.getId())) { |
| | | return CommonResult.error(GlobalErrorCodeConstants.BAD_REQUEST); |
| | | } |