소스 검색

feat : sdk修改

bilingfeng 2 년 전
부모
커밋
f41a5efd19
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/Impl/GameUserRoleServiceImpl.java

+ 1 - 3
game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/Impl/GameUserRoleServiceImpl.java

@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.zanxiang.module.redis.service.IDistributedLockComponent;
-import com.zanxiang.module.util.DateUtil;
 import com.zanxiang.module.util.JsonUtil;
 import com.zanxiang.mybatis.entity.GameUser;
 import com.zanxiang.mybatis.entity.GameUserRole;
@@ -78,11 +77,10 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
                     .set(GameUserRole::getRoleLevel, param.getRoleLevel())
                     .set(GameUserRole::getServerId, param.getServerId())
                     .set(GameUserRole::getServerName, param.getServerName())
-                    .set(param.getRoleCreateTime() != null, GameUserRole::getCreateTime, param.getRoleCreateTime() == null ? null : DateUtil.secondToLocalDateTime(param.getRoleCreateTime()))
-                    .set(param.getRoleGradeUpdateTime() != null, GameUserRole::getUpdateTime, param.getRoleGradeUpdateTime() == null ? null : DateUtil.secondToLocalDateTime(param.getRoleGradeUpdateTime()))
                     .set(param.getRoleVipLevel() != null, GameUserRole::getRoleVipLevel, param.getRoleVipLevel())
                     .set(param.getRolePower() != null, GameUserRole::getRolePower, param.getRolePower())
                     .set(param.getPlatformCoin() != null, GameUserRole::getPlatformCoin, param.getPlatformCoin())
+                    .set(GameUserRole::getUpdateTime, LocalDateTime.now())
                     .eq(GameUserRole::getGameId, userData.getGameId())
                     .eq(GameUserRole::getRoleId, param.getRoleId())
             );