Explorar el Código

Merge remote-tracking branch 'origin/dev0.0.1' into dev0.0.1

xufeng hace 2 años
padre
commit
5eb96da09e

+ 5 - 0
game-module/game-manage/pom.xml

@@ -32,6 +32,11 @@
             <artifactId>zx-oss</artifactId>
             <artifactId>zx-oss</artifactId>
             <version>1.0.0-SNAPSHOT</version>
             <version>1.0.0-SNAPSHOT</version>
         </dependency>
         </dependency>
+        <dependency>
+            <groupId>com.zanxiang.module</groupId>
+            <artifactId>zx-web</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
         <!-- 谷歌http工具类 -->
         <!-- 谷歌http工具类 -->
         <dependency>
         <dependency>
             <groupId>cn.hutool</groupId>
             <groupId>cn.hutool</groupId>

+ 2 - 1
game-module/game-manage/src/main/java/com/zanxiang/manage/service/Impl/GameServiceImpl.java

@@ -508,7 +508,8 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements Ga
     public Boolean statusUpdate(Long id, Integer status) {
     public Boolean statusUpdate(Long id, Integer status) {
         return super.update(new LambdaUpdateWrapper<Game>()
         return super.update(new LambdaUpdateWrapper<Game>()
                 .set(Game::getStatus, status)
                 .set(Game::getStatus, status)
-                .set(Game::getUpdateTime, LocalDateTime.now()));
+                .set(Game::getUpdateTime, LocalDateTime.now())
+                .eq(Game::getId, id));
     }
     }
 
 
 }
 }