Browse Source

项目状态枚举

zyh
小久哥 3 years ago
parent
commit
13610a7bb6
  1. 26
      zsw-farm/zsw-farm-api/src/main/java/cn/iocoder/yudao/module/farm/enums/ProjectStateEnum.java
  2. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectBaseVO.java
  3. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectExcelVO.java
  4. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectExportReqVO.java
  5. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectPageReqVO.java
  6. 3
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectSearchPageReqVO.java
  7. 4
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/project/ProjectDO.java

26
zsw-farm/zsw-farm-api/src/main/java/cn/iocoder/yudao/module/farm/enums/ProjectStateEnum.java

@ -0,0 +1,26 @@
package cn.iocoder.yudao.module.farm.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
@Getter
public enum ProjectStateEnum {
PLAN(0,"计划中"),
READY(1,"进行中"),
STARTED(2,"已完成");
@JsonValue
@EnumValue
private final Integer code;
private final String desc;
ProjectStateEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
}

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectBaseVO.java

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.farm.controller.admin.project.vo; package cn.iocoder.yudao.module.farm.controller.admin.project.vo;
import cn.hutool.json.JSON; import cn.hutool.json.JSON;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
@ -24,7 +25,7 @@ public class ProjectBaseVO {
private String content; private String content;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private Integer state; private ProjectStateEnum state;
@ApiModelProperty("父级区域") @ApiModelProperty("父级区域")
private JSONArray areas; private JSONArray areas;

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectExcelVO.java

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.farm.controller.admin.project.vo; package cn.iocoder.yudao.module.farm.controller.admin.project.vo;
import cn.hutool.json.JSON; import cn.hutool.json.JSON;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
@ -26,7 +27,7 @@ public class ProjectExcelVO {
private String content; private String content;
@ExcelProperty("") @ExcelProperty("")
private Integer state; private ProjectStateEnum state;
private JSONArray areas; private JSONArray areas;
private JSONArray members; private JSONArray members;

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectExportReqVO.java

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.farm.controller.admin.project.vo; package cn.iocoder.yudao.module.farm.controller.admin.project.vo;
import cn.hutool.json.JSON; import cn.hutool.json.JSON;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
@ -20,7 +21,7 @@ public class ProjectExportReqVO {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String content; private String content;
private Integer state; private ProjectStateEnum state;
private JSONArray areas; private JSONArray areas;

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectPageReqVO.java

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.farm.controller.admin.project.vo; package cn.iocoder.yudao.module.farm.controller.admin.project.vo;
import cn.hutool.json.JSON; import cn.hutool.json.JSON;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
@ -22,7 +23,7 @@ public class ProjectPageReqVO extends PageParam {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String content; private String content;
private Integer state; private ProjectStateEnum state;
private JSONArray areas; private JSONArray areas;
private JSONArray members; private JSONArray members;

3
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/project/vo/ProjectSearchPageReqVO.java

@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.farm.controller.admin.project.vo;
import cn.hutool.json.JSON; import cn.hutool.json.JSON;
import cn.iocoder.yudao.framework.common.pojo.PageParam; import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
@ -27,7 +28,7 @@ public class ProjectSearchPageReqVO extends PageParam {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String content; private String content;
private Integer state; private ProjectStateEnum state;
private JSONArray areas; private JSONArray areas;

4
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/project/ProjectDO.java

@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.farm.dal.dataobject.project; package cn.iocoder.yudao.module.farm.dal.dataobject.project;
import cn.iocoder.yudao.module.farm.enums.ProjectStateEnum;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
@ -36,7 +37,8 @@ public class ProjectDO extends BaseDO {
* *
*/ */
private String content; private String content;
private Integer state;
private ProjectStateEnum state;
@ApiModelProperty("父级区域") @ApiModelProperty("父级区域")
@TableField(typeHandler = JacksonTypeHandler.class) @TableField(typeHandler = JacksonTypeHandler.class)

Loading…
Cancel
Save