提交 6b899c78 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 f139a8a4
...@@ -79,6 +79,8 @@ public class FgAudioLibraryVO { ...@@ -79,6 +79,8 @@ public class FgAudioLibraryVO {
private Integer clickNum; private Integer clickNum;
@ApiModelProperty("时长") @ApiModelProperty("时长")
private String timeLength; private String timeLength;
@ApiModelProperty("当前时长")
private Long currentTimeLength;
@ApiModelProperty("全文阅读权限 0 游客可见 1会员可见") @ApiModelProperty("全文阅读权限 0 游客可见 1会员可见")
private Integer readTextPower; private Integer readTextPower;
......
...@@ -29,6 +29,7 @@ import com.zrqx.resource.fg.service.marketing.FgPromotionService; ...@@ -29,6 +29,7 @@ import com.zrqx.resource.fg.service.marketing.FgPromotionService;
import com.zrqx.resource.fg.service.organmemberrecord.FgOrganMemberRecordService; import com.zrqx.resource.fg.service.organmemberrecord.FgOrganMemberRecordService;
import com.zrqx.resource.fg.service.qrcode.FgQrCodeService; import com.zrqx.resource.fg.service.qrcode.FgQrCodeService;
import com.zrqx.resource.fg.service.record.FgRecordService; import com.zrqx.resource.fg.service.record.FgRecordService;
import com.zrqx.resource.fg.service.videolibrary.FgVideoLibraryService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -57,6 +58,9 @@ public class FgAudioLibraryController { ...@@ -57,6 +58,9 @@ public class FgAudioLibraryController {
private FgRelationAuthorService relationAuthorService; private FgRelationAuthorService relationAuthorService;
@Autowired @Autowired
private FgQrCodeService qrCodeService; private FgQrCodeService qrCodeService;
@Autowired
private FgVideoLibraryService videoService;
@ApiOperation("根据id查找音频") @ApiOperation("根据id查找音频")
@GetMapping("/get/{oid}") @GetMapping("/get/{oid}")
...@@ -78,6 +82,11 @@ public class FgAudioLibraryController { ...@@ -78,6 +82,11 @@ public class FgAudioLibraryController {
example.createCriteria().andEqualTo("resourceId", oid); example.createCriteria().andEqualTo("resourceId", oid);
List<RelationAuthor> authorList = relationAuthorService.selectByExample(example); List<RelationAuthor> authorList = relationAuthorService.selectByExample(example);
vo.setAuthorList(authorList); vo.setAuthorList(authorList);
//查询当前时长
Long currentTimeLength = videoService.selectCurrentTimeLength(oid);
if(currentTimeLength == null) {
currentTimeLength = 0L;
}
//获取评分与评论数TODO //获取评分与评论数TODO
//保存机构用户浏览记录 //保存机构用户浏览记录
/*FgSaveOrganMemberRecordForm form = new FgSaveOrganMemberRecordForm(); /*FgSaveOrganMemberRecordForm form = new FgSaveOrganMemberRecordForm();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论