记得上下班打卡 | git大法好,push需谨慎

Commit 78542784 authored by jiangxiulong's avatar jiangxiulong

演出详情id错误返回查询失败

parent 5b0146d6
...@@ -109,7 +109,7 @@ public class KylinPerformancesController { ...@@ -109,7 +109,7 @@ public class KylinPerformancesController {
@RequestParam("longitudeFrom") Double longitudeFrom @RequestParam("longitudeFrom") Double longitudeFrom
) { ) {
HashMap<String, Object> result = kylinPerformancesService.detail(performancesId, latitudeFrom, longitudeFrom); HashMap<String, Object> result = kylinPerformancesService.detail(performancesId, latitudeFrom, longitudeFrom);
if (result.size() > 0) { if (result != null) {
return ResponseDto.success(result); return ResponseDto.success(result);
} else { } else {
return ResponseDto.failure("获取演出详情失败"); return ResponseDto.failure("获取演出详情失败");
......
...@@ -183,9 +183,13 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM ...@@ -183,9 +183,13 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
PerformanceVo.class, PerformanceVo.class,
PerformanceVo.class.getSimpleName() PerformanceVo.class.getSimpleName()
); );
roadShowId = performancesInfo.getRoadShowId(); if (performancesInfo == null) {
return null;
} else {
roadShowId = performancesInfo.getRoadShowId();
redisUtil.hset(KylinRedisConst.PERFORMANCES, performancesId, performancesInfo); redisUtil.hset(KylinRedisConst.PERFORMANCES, performancesId, performancesInfo);
}
} else { } else {
roadShowId = performancesInfo.getRoadShowId(); roadShowId = performancesInfo.getRoadShowId();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment