fix(新手引导): 新手引导,步骤为初始值时,增加记录操作

This commit is contained in:
lan-yonghui 2023-05-23 08:09:51 +08:00 committed by fit2-zhao
parent bbfd7e09b6
commit 5c51b6f461
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ public class NoviceService {
NoviceStatistics noviceStatistics = noviceInfo.get(0); NoviceStatistics noviceStatistics = noviceInfo.get(0);
noviceStatistics.setGuideNum(noviceStatistics.getGuideNum() + 1); noviceStatistics.setGuideNum(noviceStatistics.getGuideNum() + 1);
noviceStatistics.setUpdateTime(systemTime); noviceStatistics.setUpdateTime(systemTime);
if(noviceStatistics.getGuideStep() == 0) {
noviceStatistics.setGuideStep(noviceRequest.getGuideStep());
}
NoviceStatisticsExample example = new NoviceStatisticsExample(); NoviceStatisticsExample example = new NoviceStatisticsExample();
example.createCriteria().andUserIdEqualTo(SessionUtils.getUserId()).andIdEqualTo(noviceStatistics.getId()); example.createCriteria().andUserIdEqualTo(SessionUtils.getUserId()).andIdEqualTo(noviceStatistics.getId());