feat(profitsharing, mobile, pc): 为对象添加景区名称信息

- 在 ProfitSharingConfigController 中,为分页查询结果添加景区名称信息
- 在 AppScenicServiceImpl 中,为额外设备列表添加景区名称信息
- 在 SourceServiceImpl 中,为资源响应对象添加景区名称信息

这些修改增强了对象数据,使其包含相关的景区名称,提高了数据的完整性和可读性。
This commit is contained in:
2025-09-08 14:37:53 +08:00
parent 1fbe7c86d5
commit c28efbbb9c
3 changed files with 22 additions and 0 deletions

View File

@@ -306,6 +306,8 @@ public class AppScenicServiceImpl implements AppScenicService {
}
List<DeviceRespVO> extraDeviceList = extraDeviceMapper.listExtraDeviceByScenicId(scenicId);
for (DeviceRespVO deviceRespVO : extraDeviceList) {
ScenicV2DTO scenicBasic = scenicRepository.getScenicBasic(deviceRespVO.getScenicId());
deviceRespVO.setScenicName(scenicBasic.getName());
if (redisTemplate.hasKey("ext_device:online:"+deviceRespVO.getNo())) {
String onlineTs = redisTemplate.opsForValue().get("ext_device:online:"+deviceRespVO.getNo());
if (!StringUtils.isNumeric(onlineTs)) {