jyy
2021-06-09 ec87cf1ee2b9382bf9d089711f0ff82ae8e7077c
zq-erp/src/main/java/com/matrix/system/app/vo/ServiceProjVo.java
@@ -39,9 +39,16 @@
    @ApiModelProperty(value = "快过期 1-是 2-否")
    private String isInvalid;
    @ApiModelProperty(value = "项目状态 有效/无效")
    private String status;
    public String getIsInvalid() {
        Date date = DateUtil.nextNDate(new Date(), 7);
        Date date = DateUtil.getDateAfterMonth(new Date(), 1);
        if (invalidTime != null) {
            if (new Date().after(invalidTime)) {
                return "3";
            }
            if (date.after(invalidTime)) {
                return "1";
            }
@@ -108,4 +115,16 @@
    public void setId(Long id) {
        this.id = id;
    }
    public String getStatus() {
        if ("有效".equals(status)) {
            return "1";
        } else {
            return "2";
        }
    }
    public void setStatus(String status) {
        this.status = status;
    }
}