作者同步问题1
This commit is contained in:
parent
8195f66ed1
commit
1d0b90881b
@ -26,8 +26,7 @@ public class addClinicalVideoApp {
|
||||
|
||||
// 是否外部链接(0:否 1:是)
|
||||
@JsonProperty("isLink")
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
private Integer isLink = 0;
|
||||
private Integer isLink;
|
||||
|
||||
// 外部链接地址
|
||||
@JsonProperty("isLinkUrl")
|
||||
|
||||
@ -587,6 +587,10 @@ public class CaseClinicalVideoService {
|
||||
// 检测签名
|
||||
Video.checkSign(request,secretKey,r,objectMapper);
|
||||
|
||||
if (r.getIsLink() == null){
|
||||
r.setIsLink(0);
|
||||
}
|
||||
|
||||
// 获取视频数据
|
||||
LambdaQueryWrapper<CaseClinicalVideoModel> videoQueryWrapper = new LambdaQueryWrapper<>();
|
||||
videoQueryWrapper.eq(CaseClinicalVideoModel::getVideoNo, r.getVideoNo());
|
||||
@ -616,8 +620,6 @@ public class CaseClinicalVideoService {
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
LocalDateTime pushDate = LocalDateTime.parse(r.getPushDate(), formatter);
|
||||
caseClinicalVideo.setPushDate(pushDate);
|
||||
caseClinicalVideo.setIsLink(r.getIsLink());
|
||||
caseClinicalVideo.setIsLinkUrl(r.getIsLinkUrl());
|
||||
caseClinicalVideoDao.updateById(caseClinicalVideo);
|
||||
|
||||
// 此处视频被删除过,也需要处理一下作者
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user