farm模块-类型字段修改

This commit is contained in:
顾君禹
2025-08-25 11:28:04 +08:00
parent 7c3be5b624
commit 69e569b1c2
4 changed files with 66 additions and 66 deletions

View File

@@ -17,7 +17,7 @@ public class ModelPestDiseaseWeedPageReqVO extends PageParam {
private String cycleId; private String cycleId;
@Schema(description = "病虫草害类型", example = "2") @Schema(description = "病虫草害类型", example = "2")
private Integer type; private String type;
@Schema(description = "病虫草害名称", example = "芋艿") @Schema(description = "病虫草害名称", example = "芋艿")
private String name; private String name;

View File

@@ -1,63 +1,63 @@
package cn.iocoder.yudao.module.farm.controller.admin.modelpestdiseaseweed.vo; package cn.iocoder.yudao.module.farm.controller.admin.modelpestdiseaseweed.vo;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import cn.idev.excel.annotation.*; import cn.idev.excel.annotation.*;
@Schema(description = "管理后台 - 模型管理-病虫草害 Response VO") @Schema(description = "管理后台 - 模型管理-病虫草害 Response VO")
@Data @Data
@ExcelIgnoreUnannotated @ExcelIgnoreUnannotated
public class ModelPestDiseaseWeedRespVO { public class ModelPestDiseaseWeedRespVO {
@Schema(description = "基础id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2957") @Schema(description = "基础id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2957")
@ExcelProperty("基础id") @ExcelProperty("基础id")
private String id; private String id;
@Schema(description = "周期id", example = "11935") @Schema(description = "周期id", example = "11935")
@ExcelProperty("周期id") @ExcelProperty("周期id")
private String cycleId; private String cycleId;
@Schema(description = "病虫草害类型", example = "2") @Schema(description = "病虫草害类型", example = "2")
@ExcelProperty("病虫草害类型") @ExcelProperty("病虫草害类型")
private Integer type; private String type;
@Schema(description = "病虫草害名称", example = "芋艿") @Schema(description = "病虫草害名称", example = "芋艿")
@ExcelProperty("病虫草害名称") @ExcelProperty("病虫草害名称")
private String name; private String name;
@Schema(description = "病虫草害id", example = "20996") @Schema(description = "病虫草害id", example = "20996")
@ExcelProperty("病虫草害id") @ExcelProperty("病虫草害id")
private String pestsId; private String pestsId;
@Schema(description = "预警摘要说明", example = "你说的对") @Schema(description = "预警摘要说明", example = "你说的对")
@ExcelProperty("预警摘要说明") @ExcelProperty("预警摘要说明")
private String description; private String description;
@Schema(description = "创建时间") @Schema(description = "创建时间")
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "基地id", example = "22440") @Schema(description = "基地id", example = "22440")
@ExcelProperty("基地id") @ExcelProperty("基地id")
private String baseId; private String baseId;
@Schema(description = "基地", example = "张三") @Schema(description = "基地", example = "张三")
@ExcelProperty("基地") @ExcelProperty("基地")
private String baseName; private String baseName;
@Schema(description = "地块ID", example = "17998") @Schema(description = "地块ID", example = "17998")
@ExcelProperty("地块ID") @ExcelProperty("地块ID")
private String plotId; private String plotId;
@Schema(description = "地块", example = "赵六") @Schema(description = "地块", example = "赵六")
@ExcelProperty("地块") @ExcelProperty("地块")
private String plotName; private String plotName;
@Schema(description = "租户id", example = "31930") @Schema(description = "租户id", example = "31930")
@ExcelProperty("租户id") @ExcelProperty("租户id")
private String tenantId; private String tenantId;
} }

View File

@@ -14,7 +14,7 @@ public class ModelPestDiseaseWeedSaveReqVO {
private String cycleId; private String cycleId;
@Schema(description = "病虫草害类型", example = "2") @Schema(description = "病虫草害类型", example = "2")
private Integer type; private String type;
@Schema(description = "病虫草害名称", example = "芋艿") @Schema(description = "病虫草害名称", example = "芋艿")
private String name; private String name;

View File

@@ -34,7 +34,7 @@ public class ModelPestDiseaseWeedDO extends BaseDO {
/** /**
* 病虫草害类型 * 病虫草害类型
*/ */
private Integer type; private String type;
/** /**
* 病虫草害名称 * 病虫草害名称
*/ */