From 13fce7e5526de855f36e62fa0abb6864a15ef818 Mon Sep 17 00:00:00 2001
From: hjl <1657978663@qq.com>
Date: 星期五, 19 七月 2024 18:19:59 +0800
Subject: [PATCH] fix: 学习端bug

---
 ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TIntegralRecordServiceImpl.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TIntegralRecordServiceImpl.java b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TIntegralRecordServiceImpl.java
index f220658..9e8f189 100644
--- a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TIntegralRecordServiceImpl.java
+++ b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TIntegralRecordServiceImpl.java
@@ -11,6 +11,7 @@
 import org.springframework.transaction.annotation.Transactional;
 
 import javax.annotation.Resource;
+import java.util.List;
 
 /**
  * <p>
@@ -28,12 +29,13 @@
 
     @Override
     public IPage<TIntegralRecord> integralDetail(Page<TIntegralRecord> page, Integer userId, String time) {
+
         return baseMapper.integralDetail(userId, time, page);
     }
 
     @Override
     @Transactional(rollbackFor = Exception.class)
-    public Boolean add(String integral, String method, Integer gameId, Integer storyId, Integer difficulty) {
+    public Boolean add(String integral, String method, Integer gameId, Integer storyId, Integer difficulty, Integer storyType) {
         TIntegralRecord integralRecord = new TIntegralRecord();
         integralRecord.setIntegral(integral);
         integralRecord.setMethod(method);
@@ -41,6 +43,7 @@
         integralRecord.setGameId(gameId);
         integralRecord.setStoryId(storyId);
         integralRecord.setGameDifficulty(difficulty);
+        integralRecord.setStoryType(storyType);
         return this.save(integralRecord);
     }
 }

--
Gitblit v1.7.1