You've already forked FrameTour-BE
景区账号添加问题
This commit is contained in:
@@ -103,6 +103,12 @@ public class AppScenicServiceImpl implements AppScenicService {
|
||||
|
||||
ScenicLoginRespVO scenicLoginRespVO = new ScenicLoginRespVO();
|
||||
BeanUtil.copyProperties(scenicAccount,scenicLoginRespVO);
|
||||
List<Long> scenicIds = scenicAccountMapper.getAccountRelations(scenicAccount.getId());
|
||||
if (!scenicIds.isEmpty()) {
|
||||
scenicLoginRespVO.setScenicId(scenicIds);
|
||||
} else {
|
||||
scenicLoginRespVO.setScenicId(List.of(scenicAccount.getId()));
|
||||
}
|
||||
scenicLoginRespVO.setToken(token);
|
||||
return ApiResponse.success(scenicLoginRespVO);
|
||||
}
|
||||
|
Reference in New Issue
Block a user