提交 dabc2ef2 authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 a6b73794
......@@ -155,6 +155,7 @@ public class VideoLibraryController {
example.createCriteria().andIn("id", form.getIds());
VideoLibrary entity = new VideoLibrary();
entity.setRealPrice(form.getRealPrice());
entity.setPriceOption(form.getPriceOption());
entity.setUpdateTime(new Date());
if(!service.UpdateByExampleSelective(entity,example)){
throw new BaseException("操作失败");
......
......@@ -176,9 +176,11 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
obj.setUploadTime(new Date());
obj.setStatus(LibraryStatusEnum.STATUS_0.getCode());
obj.setResourceType(AllResourceTypeEnum.VIDEO.getCode());
obj.setBrowseNum(50);
obj.setBrowseNum(0);
obj.setReadTextPower(1);
obj.setClickNum(50);
obj.setClickNum(0);
obj.setPriceOption(0);
obj.setRealPrice(new BigDecimal(0.00));
obj.setSalesNum(0);
obj.setVideoName(form.getNames().get(i));
mapper.insert(obj);
......
......@@ -23,4 +23,6 @@ public class BatchUpdateVideoLibraryForm {
private BigDecimal realPrice;
@ApiModelProperty("全文阅读权限 0 游客可见 1会员可见")
private Integer readTextPower;
@ApiModelProperty("售价选项 0 免费,1收费")
private Integer priceOption;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论