From 6922917abd80d12a5d87cc2f8d0390c55694a95a Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 19 Apr 2021 17:04:47 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java b/zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java index a6ae967..4854fa2 100644 --- a/zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java +++ b/zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java @@ -36,6 +36,30 @@ @ApiModelProperty(value = "图片") private String img; + @ApiModelProperty(value = "快过期 1-是 2-否") + private String isInvalid; + + @ApiModelProperty(value = "项目状态 有效/无效") + private String status; + + public String getIsInvalid() { + Date date = DateUtil.getDateAfterMonth(new Date(), 1); + if (invalidTime != null) { + if (new Date().after(invalidTime)) { + return "3"; + } + + if (date.after(invalidTime)) { + return "1"; + } + } + return "2"; + } + + public void setIsInvalid(String isInvalid) { + this.isInvalid = isInvalid; + } + public String getName() { return name; } @@ -91,4 +115,12 @@ public void setId(Long id) { this.id = id; } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } } -- Gitblit v1.9.1