From 5c51b6f4619f8e5ce0698f2dd424419b432f37c2 Mon Sep 17 00:00:00 2001 From: lan-yonghui Date: Tue, 23 May 2023 08:09:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=B0=E6=89=8B=E5=BC=95=E5=AF=BC):=20?= =?UTF-8?q?=E6=96=B0=E6=89=8B=E5=BC=95=E5=AF=BC=EF=BC=8C=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E4=B8=BA=E5=88=9D=E5=A7=8B=E5=80=BC=E6=97=B6=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=AE=B0=E5=BD=95=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/novice/service/NoviceService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/novice/service/NoviceService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/novice/service/NoviceService.java index 9ba90357b9..0476a67c58 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/novice/service/NoviceService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/novice/service/NoviceService.java @@ -55,6 +55,9 @@ public class NoviceService { NoviceStatistics noviceStatistics = noviceInfo.get(0); noviceStatistics.setGuideNum(noviceStatistics.getGuideNum() + 1); noviceStatistics.setUpdateTime(systemTime); + if(noviceStatistics.getGuideStep() == 0) { + noviceStatistics.setGuideStep(noviceRequest.getGuideStep()); + } NoviceStatisticsExample example = new NoviceStatisticsExample(); example.createCriteria().andUserIdEqualTo(SessionUtils.getUserId()).andIdEqualTo(noviceStatistics.getId());