|
@@ -3,6 +3,7 @@ package com.zanxiang.sdk.service.Impl;
|
|
|
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.util.DateUtil;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.mybatis.entity.GameUser;
|
|
|
import com.zanxiang.mybatis.entity.GameUserRole;
|
|
@@ -68,8 +69,8 @@ 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())
|
|
|
- .set(param.getRoleGradeUpdateTime() != null, GameUserRole::getUpdateTime, param.getRoleGradeUpdateTime())
|
|
|
+ .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())
|