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

Commit 3ff32db5 authored by 姜秀龙's avatar 姜秀龙

Merge remote-tracking branch 'origin/container-test' into container-test

parents b85888dc 20e123ea
...@@ -104,4 +104,7 @@ public interface AdamCaomeiBadgeMapper extends BaseMapper<AdamCaomeiBadge> { ...@@ -104,4 +104,7 @@ public interface AdamCaomeiBadgeMapper extends BaseMapper<AdamCaomeiBadge> {
"values (#{userId}, #{badgeId}, #{source}, now())" "values (#{userId}, #{badgeId}, #{source}, now())"
}) })
int insertUserBadge(@Param("userId") String userId, @Param("badgeId") String badgeId, @Param("source") Integer source); int insertUserBadge(@Param("userId") String userId, @Param("badgeId") String badgeId, @Param("source") Integer source);
@Select("select title from kylin_performances where performances_id = #{performanceId}")
String selectKylinPerformanceTitleById(@Param("performanceId") String performanceId);
} }
...@@ -812,6 +812,11 @@ public class AdamRdmService { ...@@ -812,6 +812,11 @@ public class AdamRdmService {
if (vo != null) { if (vo != null) {
return vo.getTitle(); return vo.getTitle();
} }
// 从数据库查询
String title = adamCaomeiBadgeMapper.selectKylinPerformanceTitleById(performanceId);
if (!StringUtils.isEmpty(title)) {
return title;
}
return null; return null;
} catch (Exception e) { } catch (Exception e) {
log.warn("[getPerformanceTitleById] 读取演出缓存失败, performanceId: {}", performanceId, e); log.warn("[getPerformanceTitleById] 读取演出缓存失败, performanceId: {}", performanceId, e);
......
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