From fb6db0c1c0474daff5a442450ca3d5cbaac71af8 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Mon, 4 Jan 2021 14:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../properties/PartyBuildingProperties.java | 41 ++++++++------ .../config/properties/ScoreProperties.java | 55 +++++++++++++++++++ 2 files changed, 80 insertions(+), 16 deletions(-) create mode 100644 src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java diff --git a/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java b/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java index 9dc7489..dbfee67 100644 --- a/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java +++ b/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java @@ -21,22 +21,7 @@ public class PartyBuildingProperties { private String title; private String servicecityUrl; private String logoUrl; - - public String getLogoUrl() { - return logoUrl == null ? "" : logoUrl; - } - - public void setLogoUrl(String logoUrl) { - this.logoUrl = logoUrl; - } - - public String getServicecityUrl() { - return servicecityUrl == null ? "" : servicecityUrl; - } - - public void setServicecityUrl(String servicecityUrl) { - this.servicecityUrl = servicecityUrl; - } + private String populationUrl; public Integer getPort() { return port; @@ -61,4 +46,28 @@ public class PartyBuildingProperties { public void setTitle(String title) { this.title = title; } + + public String getServicecityUrl() { + return servicecityUrl == null ? "" : servicecityUrl; + } + + public void setServicecityUrl(String servicecityUrl) { + this.servicecityUrl = servicecityUrl; + } + + public String getLogoUrl() { + return logoUrl == null ? "" : logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + } + + public String getPopulationUrl() { + return populationUrl == null ? "" : populationUrl; + } + + public void setPopulationUrl(String populationUrl) { + this.populationUrl = populationUrl; + } } diff --git a/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java b/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java new file mode 100644 index 0000000..9ad1d83 --- /dev/null +++ b/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java @@ -0,0 +1,55 @@ +package com.cm.bigdata.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * When you feel like quitting. Think about why you started + * 当你想要放弃的时候,想想当初你为何开始 + * + * @ClassName: ScoreProperties + * @Description: 系统配置 + * @Author: renpc + * @Date: 2020/12/21 15:53 下午 + * @Version: 1.0 + **/ +@Component +@ConfigurationProperties(prefix = "score") +public class ScoreProperties { + private Integer bossGrossscore; + private Integer personGrossscore; + private Integer meetingGrossscore; + private double bossEveryone; + + public Integer getBossGrossscore() { + return bossGrossscore; + } + + public void setBossGrossscore(Integer bossGrossscore) { + this.bossGrossscore = bossGrossscore; + } + + public Integer getPersonGrossscore() { + return personGrossscore; + } + + public void setPersonGrossscore(Integer personGrossscore) { + this.personGrossscore = personGrossscore; + } + + public Integer getMeetingGrossscore() { + return meetingGrossscore; + } + + public void setMeetingGrossscore(Integer meetingGrossscore) { + this.meetingGrossscore = meetingGrossscore; + } + + public double getBossEveryone() { + return bossEveryone; + } + + public void setBossEveryone(double bossEveryone) { + this.bossEveryone = bossEveryone; + } +}