提交 ed8af657 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 c3fece4c
......@@ -61,13 +61,6 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
@Override
public Boolean saveOrUpdate(SaveUpdateVideoLibraryForm form) {
VideoLibrary entity = new VideoLibrary();
if(StringUtils.isNotBlank(form.getAuthorNameAndId())){
String[] authorNameAndId = form.getAuthorNameAndId().split(",");
form.setAuthor(authorNameAndId[0]);
if(authorNameAndId.length > 1){
form.setAuthorId(authorNameAndId[1]);
}
}
BeanUtils.copyProperties(form, entity);
if(PriceOptionEnum.STATUS_0.getCode() == form.getPriceOption()){
entity.setRealPrice(new BigDecimal(0));
......
......@@ -4,7 +4,6 @@ import java.math.BigDecimal;
import java.util.List;
import com.zrqx.resource.commons.model.videolibrary.VideoLibraryDiyType;
import com.zrqx.resource.commons.model.videolibrary.VideoLibraryLabelContentDiyType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -38,20 +37,12 @@ public class SaveUpdateVideoLibraryForm {
private String video;
@ApiModelProperty("封面")
private String cover;
@ApiModelProperty(value = "分类id")
@ApiModelProperty(value = "分类")
private List<VideoLibraryDiyType> diyType;
@ApiModelProperty(value = "标签id")
private List<VideoLibraryLabelContentDiyType> label;
@ApiModelProperty("民族 1蒙古族 2侗族 3藏族 4朝鲜族 5土家族 6回族 7满族 8汉族")
private Integer nationsType;
@ApiModelProperty("售价选项 0 免费,1收费")
private Integer priceOption;
@ApiModelProperty("全文阅读权限 0 游客可见 1会员可见")
private Integer readTextPower;
@ApiModelProperty("video名称")
private String videoName;
@ApiModelProperty(value = "作者名称和id(用,隔开)")
private String authorNameAndId;
@ApiModelProperty("审核意见")
private String auditOpinion;
@ApiModelProperty("资源id")
......
......@@ -60,13 +60,6 @@ public class FgVideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,Stri
@Override
public boolean saveOrUpdate(SaveUpdateVideoLibraryForm form) {
VideoLibrary entity = new VideoLibrary();
if(StringUtils.isNotBlank(form.getAuthorNameAndId())){
String[] authorNameAndId = form.getAuthorNameAndId().split(",");
form.setAuthor(authorNameAndId[0]);
if(authorNameAndId.length > 1){
form.setAuthorId(authorNameAndId[1]);
}
}
BeanUtils.copyProperties(form, entity);
if(PriceOptionEnum.STATUS_0.getCode() == form.getPriceOption()){
entity.setRealPrice(new BigDecimal(0));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论