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());