From 84969ddd2232a2eaffaab9076acd1d3709625ccc Mon Sep 17 00:00:00 2001 From: duhui Date: Wed, 9 Jun 2021 10:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E6=8F=B4=E5=8A=A9=E8=AE=B0?= =?UTF-8?q?=E5=BD=95,=E4=BF=AE=E8=A1=8C=E5=90=8D=E5=AD=97=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jieling/logic/dao/root/GuildHelpLog.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/root/GuildHelpLog.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/root/GuildHelpLog.java index 8134da878..c3b2ab1e3 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/root/GuildHelpLog.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/root/GuildHelpLog.java @@ -8,10 +8,10 @@ public class GuildHelpLog { private String targetName; private int logTime; // time private int type; // 援助类型 - private int helpPracticeLevel; - private int targetPracticeLevel; + private Integer helpPracticeLevel; + private Integer targetPracticeLevel; - public GuildHelpLog(int helpId, int targetId, String helperName, String targetName, int logTime, int type, int helpPracticeLevel, int targetPracticeLevel) { + public GuildHelpLog(int helpId, int targetId, String helperName, String targetName, int logTime, int type, Integer helpPracticeLevel, Integer targetPracticeLevel) { this.helpId = helpId; this.targetId = targetId; this.helperName = helperName; @@ -50,11 +50,17 @@ public class GuildHelpLog { return type; } - public int getHelpPracticeLevel() { + public Integer getHelpPracticeLevel() { + if (helpPracticeLevel == null){ + helpPracticeLevel = 1; + } return helpPracticeLevel; } - public int getTargetPracticeLevel() { + public Integer getTargetPracticeLevel() { + if (targetPracticeLevel == null){ + targetPracticeLevel = 1; + } return targetPracticeLevel; } }