feat (farm): 删除冗余代码 (补充提交)
- 数字驾驶舱-告警/预警统计
This commit is contained in:
@@ -147,7 +147,16 @@ public class ApiController {
|
||||
return deviceInfoService.getDeviceMonitoring(req);// TODO: 2025/9/25
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/digital-cockpit/chart/warning-message")
|
||||
@Operation(summary = "数字驾驶舱-告警/预警统计")
|
||||
public CommonResult<WarningMessageRespVO> getMessageWarning(@Valid WarningMessageReqVO req) {
|
||||
WarningMessageRespVO res = new WarningMessageRespVO();
|
||||
res.setEnvironmentWarning(0);
|
||||
res.setWeatherWarning(0);
|
||||
res.setDeviceAlarm(0);
|
||||
res.setPestDiseaseAlarm(0);
|
||||
return CommonResult.success(res);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.iocoder.yudao.module.farm.controller.admin.api.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description: TODO
|
||||
* @author: binda
|
||||
* @date: 2025/9/27 13:57
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class WarningMessageReqVO {
|
||||
@Schema(description = "基地D")
|
||||
@NotNull(message = "基地D: 不能为空")
|
||||
private String baseId;
|
||||
@Schema(description = "租户ID")
|
||||
@NotNull(message = "租户ID: 不能为空")
|
||||
private String tenantId;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.iocoder.yudao.module.farm.controller.admin.api.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description: TODO
|
||||
* @author: binda
|
||||
* @date: 2025/9/27 13:56
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class WarningMessageRespVO {
|
||||
@Schema(description = "气象预警")
|
||||
private Integer weatherWarning;
|
||||
@Schema(description = "环境预警")
|
||||
private Integer environmentWarning;
|
||||
@Schema(description = "设备告警")
|
||||
private Integer deviceAlarm;
|
||||
@Schema(description = "病虫告警")
|
||||
private Integer pestDiseaseAlarm;
|
||||
}
|
||||
Reference in New Issue
Block a user