|
@@ -9,6 +9,7 @@ import com.zanxiang.erp.base.ErpServer;
|
|
import com.zanxiang.erp.base.rpc.ISysUserRpc;
|
|
import com.zanxiang.erp.base.rpc.ISysUserRpc;
|
|
import com.zanxiang.erp.security.util.SecurityUtil;
|
|
import com.zanxiang.erp.security.util.SecurityUtil;
|
|
import com.zanxiang.game.module.base.pojo.enums.DeleteEnum;
|
|
import com.zanxiang.game.module.base.pojo.enums.DeleteEnum;
|
|
|
|
+import com.zanxiang.game.module.manage.enums.GameAuthEnum;
|
|
import com.zanxiang.game.module.manage.pojo.dto.GameDTO;
|
|
import com.zanxiang.game.module.manage.pojo.dto.GameDTO;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameAuthAddParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameAuthAddParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameAuthListParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameAuthListParam;
|
|
@@ -106,7 +107,6 @@ public class GameAuthServiceImpl extends ServiceImpl<GameAuthMapper, GameAuth> i
|
|
//修改
|
|
//修改
|
|
return super.update(new LambdaUpdateWrapper<GameAuth>()
|
|
return super.update(new LambdaUpdateWrapper<GameAuth>()
|
|
.set(GameAuth::getGameId, param.getGameId())
|
|
.set(GameAuth::getGameId, param.getGameId())
|
|
- .set(GameAuth::getUserId, param.getUserId())
|
|
|
|
.set(GameAuth::getUpdateBy, SecurityUtil.getUserId())
|
|
.set(GameAuth::getUpdateBy, SecurityUtil.getUserId())
|
|
.set(GameAuth::getUpdateTime, LocalDateTime.now())
|
|
.set(GameAuth::getUpdateTime, LocalDateTime.now())
|
|
.eq(GameAuth::getId, param.getId()));
|
|
.eq(GameAuth::getId, param.getId()));
|
|
@@ -130,6 +130,9 @@ public class GameAuthServiceImpl extends ServiceImpl<GameAuthMapper, GameAuth> i
|
|
gameAuthVO.setGameName(gameDTO == null ? null : gameDTO.getName());
|
|
gameAuthVO.setGameName(gameDTO == null ? null : gameDTO.getName());
|
|
Map<Long, String> userMap = sysUserRpc.getUserNameByIds(Collections.singletonList(gameAuthVO.getUserId())).getData();
|
|
Map<Long, String> userMap = sysUserRpc.getUserNameByIds(Collections.singletonList(gameAuthVO.getUserId())).getData();
|
|
gameAuthVO.setUserName(userMap.get(gameAuthVO.getUserId()));
|
|
gameAuthVO.setUserName(userMap.get(gameAuthVO.getUserId()));
|
|
|
|
+ GameAuthRole gameAuthRole = gameAuthRoleService.getOne(new LambdaQueryWrapper<GameAuthRole>()
|
|
|
|
+ .eq(GameAuthRole::getUserId, gameAuthVO.getUserId()));
|
|
|
|
+ gameAuthVO.setAuthType(GameAuthEnum.getByValue(gameAuthRole.getAuthType()));
|
|
return gameAuthVO;
|
|
return gameAuthVO;
|
|
}
|
|
}
|
|
|
|
|