@@ -56,10 +56,6 @@ public enum ProjectStatusEnum { | |||||
*/ | */ | ||||
ARCHIVED(30000, "已归档"); | ARCHIVED(30000, "已归档"); | ||||
public static void main(String[] args) { | |||||
System.out.println(Arrays.stream(ProjectStatusEnum.values()).filter(w -> w.getCode() >= 10010).collect(Collectors.toList())); | |||||
} | |||||
private Integer code; | private Integer code; | ||||
private String desc; | private String desc; | ||||
@@ -87,4 +83,8 @@ public enum ProjectStatusEnum { | |||||
return null; | return null; | ||||
} | } | ||||
public boolean eq(int code) { | |||||
return this.getCode().equals(code); | |||||
} | |||||
} | } |
@@ -76,8 +76,7 @@ public class AnnualPlanLibManage { | |||||
item.setDeclaredAmount(w.getDeclareAmount()); | item.setDeclaredAmount(w.getDeclareAmount()); | ||||
item.setBuildOrg(w.getBuildOrgName()); | item.setBuildOrg(w.getBuildOrgName()); | ||||
item.setCreateOn(w.getCreateOn()); | item.setCreateOn(w.getCreateOn()); | ||||
// TODO 是否开启项目申报 | |||||
item.setIsStartDeclaredProject(true); | |||||
item.setIsStartDeclaredProject(!IN_THE_ANNUAL_PLAN.eq(w.getStatus())); | |||||
result.getRecords().add(item); | result.getRecords().add(item); | ||||
}); | }); | ||||
return result; | return result; | ||||