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;
@Schema(description = "病虫草害类型", example = "2")
private Integer type;
private String type;
@Schema(description = "病虫草害名称", example = "芋艿")
private String name;

View File

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

View File

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

View File

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