generated from youfool-project/youfool-prj-springboot3-template
feat: 录屏设置详情接口补充大屏关联展示字段
详情查询时关联 bs_screen 补充 ownerUnit、operatorUnit、adPlayTimeRange Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
3e7f0414db
commit
fce2858794
|
|
@ -54,4 +54,16 @@ public class RecordingConfigEntity extends SuperEntity {
|
|||
|
||||
@TableField("config_status")
|
||||
private Integer configStatus;
|
||||
|
||||
/** 业主单位(关联 bs_screen) */
|
||||
@TableField(exist = false)
|
||||
private String ownerUnit;
|
||||
|
||||
/** 运营单位(关联 bs_screen) */
|
||||
@TableField(exist = false)
|
||||
private String operatorUnit;
|
||||
|
||||
/** 广告播放时间段(关联 bs_screen) */
|
||||
@TableField(exist = false)
|
||||
private String adPlayTimeRange;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,6 +87,13 @@ public class RecordingConfigServiceImpl extends ServiceImpl<RecordingConfigMappe
|
|||
if (entity == null) {
|
||||
return RestResult.ok(null);
|
||||
}
|
||||
// 关联查询大屏信息补充展示字段
|
||||
ScreenEntity screen = screenMapper.selectById(entity.getScreenId());
|
||||
if (screen != null) {
|
||||
entity.setOwnerUnit(screen.getOwnerUnit());
|
||||
entity.setOperatorUnit(screen.getOperatorUnit());
|
||||
entity.setAdPlayTimeRange(screen.getAdPlayTimeRange());
|
||||
}
|
||||
return RestResult.ok(entity);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue