|
|
@@ -36,16 +36,16 @@ public class EarlyWarningController { |
|
|
|
private final IEarlyWarningRecordsService earlyWarningRecordsService; |
|
|
|
|
|
|
|
@ApiOperation(value = "预警规则获取", notes = "预警规则获取") |
|
|
|
@GetMapping("/detail/{areaCode}") |
|
|
|
public List<WflowEarlyWarningVO> detail(@PathVariable String areaCode) { |
|
|
|
return earlyWarningService.detailByRegion(areaCode); |
|
|
|
@GetMapping("/detail/{mhUnitId}") |
|
|
|
public List<WflowEarlyWarningVO> detail(@PathVariable Long mhUnitId) { |
|
|
|
return earlyWarningService.detailByMhUnitId(mhUnitId); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "预警规则保存", notes = "预警规则保存") |
|
|
|
@PostMapping("/save") |
|
|
|
@WebLog("预警规则保存") |
|
|
|
public String save(@Validated @RequestBody WflowEarlyWarningDTO dto) { |
|
|
|
return earlyWarningService.saveByDto(dto); |
|
|
|
return earlyWarningService.saveByMhUnit(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "预警记录查询", notes = "预警记录查询") |
|
|
|