提交 08b76b3e authored 作者: 任建彩's avatar 任建彩

feat:全部资源包

1.resource
上级 e4125a31
...@@ -218,13 +218,13 @@ public interface ResourceRelationMapper extends BaseMapper<ResourceRelation> { ...@@ -218,13 +218,13 @@ public interface ResourceRelationMapper extends BaseMapper<ResourceRelation> {
+ "</script>") + "</script>")
List<ResourceRelationVO> getResourceRelationProject(@Param("oid") String oid, @Param("resourceType") String resourceType); List<ResourceRelationVO> getResourceRelationProject(@Param("oid") String oid, @Param("resourceType") String resourceType);
@Select("<script>" @Select("<script>"
+ "SELECT id ,resourceId,resourceType,createdTime,sort,creater,createrId " + "SELECT ar.id ,ar.resourceId,ar.resourceType,ar.createdTime,ar.sort,ar.creater,ar.createrId "
+ "FROM res_resource_relation ar " + "FROM res_resource_relation ar "
+ "left join res_goods_library_label_content_diy_type co on ar.resourceId = co.labelId " + "left join res_goods_library_label_content_diy_type co on ar.resourceId = co.labelId "
+ "WHERE 1=1 " + "WHERE 1=1 "
+ "eq(objectId,form.resourceId)" + "eq(objectId,form.resourceId)"
+ "<if test='" + MapperConstants.NOT_BLANK + "(form.resourceType)'> " + "<if test='" + MapperConstants.NOT_BLANK + "(form.resourceType)'> "
+ " AND resourceType = #{form.resourceType} " + " AND ar.resourceType = #{form.resourceType} "
+ "</if>" + "</if>"
+ " LIKE(co.labelContentDiyTypeCode,form.labelCode) " + " LIKE(co.labelContentDiyTypeCode,form.labelCode) "
+ " order by sort desc " + " order by sort desc "
......
...@@ -52,4 +52,6 @@ public class SaveUpdateAudioLibraryForm { ...@@ -52,4 +52,6 @@ public class SaveUpdateAudioLibraryForm {
private List<AudioLabelPO> labelList; private List<AudioLabelPO> labelList;
@ApiModelProperty("来源") @ApiModelProperty("来源")
private String source; private String source;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -104,6 +104,8 @@ public class SaveUpdateEbookForm { ...@@ -104,6 +104,8 @@ public class SaveUpdateEbookForm {
private String languages; private String languages;
@ApiModelProperty(value = "图组图片") @ApiModelProperty(value = "图组图片")
private List<String> imgList; private List<String> imgList;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
/*@ApiModelProperty(value = "作者名称和id(用,隔开)") /*@ApiModelProperty(value = "作者名称和id(用,隔开)")
private String authorNameAndId; private String authorNameAndId;
@ApiModelProperty(value = "译者名称和id(用,隔开)") @ApiModelProperty(value = "译者名称和id(用,隔开)")
......
...@@ -27,6 +27,8 @@ public class SaveUpdateGoodsLibraryForm { ...@@ -27,6 +27,8 @@ public class SaveUpdateGoodsLibraryForm {
private String synopsis; private String synopsis;
@ApiModelProperty("状态1已上架,2已下架") @ApiModelProperty("状态1已上架,2已下架")
private Integer status; private Integer status;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty("标签id") @ApiModelProperty("标签id")
private List<GoodsLibraryLabelContentDiyTypePO> labelList; private List<GoodsLibraryLabelContentDiyTypePO> labelList;
} }
...@@ -35,6 +35,8 @@ public class SaveUpdatePdfLibraryForm { ...@@ -35,6 +35,8 @@ public class SaveUpdatePdfLibraryForm {
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("pdf名称") @ApiModelProperty("pdf名称")
private String pdfName; private String pdfName;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty(value = "作者集合") @ApiModelProperty(value = "作者集合")
private List<RelationAuthor> authorList; private List<RelationAuthor> authorList;
} }
...@@ -32,6 +32,8 @@ public class SaveProjectLibraryForm { ...@@ -32,6 +32,8 @@ public class SaveProjectLibraryForm {
private Integer template; private Integer template;
@ApiModelProperty("状态 0下线,1上线") @ApiModelProperty("状态 0下线,1上线")
private String status; private String status;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty("自定义模块名称") @ApiModelProperty("自定义模块名称")
private List<SaveDiyModelForm> diyModelList; private List<SaveDiyModelForm> diyModelList;
} }
...@@ -31,6 +31,8 @@ public class UpdateProjectLibraryForm { ...@@ -31,6 +31,8 @@ public class UpdateProjectLibraryForm {
private Integer template; private Integer template;
@ApiModelProperty("状态 0下线,1上线") @ApiModelProperty("状态 0下线,1上线")
private String status; private String status;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty("新增/修改自定义模块") @ApiModelProperty("新增/修改自定义模块")
private List<SaveDiyModelForm> diyModelList; private List<SaveDiyModelForm> diyModelList;
@ApiModelProperty("删除自定义模块") @ApiModelProperty("删除自定义模块")
......
...@@ -47,5 +47,7 @@ public class SaveUpdateVideoLibraryForm { ...@@ -47,5 +47,7 @@ public class SaveUpdateVideoLibraryForm {
private List<VideoLabelPO> labelList; private List<VideoLabelPO> labelList;
@ApiModelProperty("来源") @ApiModelProperty("来源")
private String source; private String source;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -72,4 +72,6 @@ public class AudioLibrary { ...@@ -72,4 +72,6 @@ public class AudioLibrary {
private Integer departmentId; private Integer departmentId;
@ApiModelProperty(value = "部门") @ApiModelProperty(value = "部门")
private String departmentCode; private String departmentCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -97,4 +97,7 @@ public class Ebook { ...@@ -97,4 +97,7 @@ public class Ebook {
private Integer sales; private Integer sales;
@ApiModelProperty("阅读人数") @ApiModelProperty("阅读人数")
private Integer readerNum; private Integer readerNum;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -42,4 +42,6 @@ public class GoodsLibrary { ...@@ -42,4 +42,6 @@ public class GoodsLibrary {
private Date updateTime; private Date updateTime;
@ApiModelProperty(value = "二维码") @ApiModelProperty(value = "二维码")
private String qrCode; private String qrCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -46,4 +46,6 @@ public class PdfLibrary { ...@@ -46,4 +46,6 @@ public class PdfLibrary {
private Integer departmentId; private Integer departmentId;
@ApiModelProperty(value = "部门") @ApiModelProperty(value = "部门")
private String departmentCode; private String departmentCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -44,4 +44,6 @@ public class ProjectLibrary extends BasePO { ...@@ -44,4 +44,6 @@ public class ProjectLibrary extends BasePO {
private Integer departmentId; private Integer departmentId;
@ApiModelProperty(value = "部门") @ApiModelProperty(value = "部门")
private String departmentCode; private String departmentCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -74,4 +74,6 @@ public class VideoLibrary { ...@@ -74,4 +74,6 @@ public class VideoLibrary {
private Integer departmentId; private Integer departmentId;
@ApiModelProperty(value = "部门") @ApiModelProperty(value = "部门")
private String departmentCode; private String departmentCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -49,6 +49,8 @@ public class ResourceRelationVO { ...@@ -49,6 +49,8 @@ public class ResourceRelationVO {
private Integer browseNum; private Integer browseNum;
@ApiModelProperty("所属图书") @ApiModelProperty("所属图书")
private String source; private String source;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
//查看全部资源需要 //查看全部资源需要
@ApiModelProperty(value = "资源包下关联的资源") @ApiModelProperty(value = "资源包下关联的资源")
......
...@@ -54,4 +54,6 @@ public class AudioLibraryOneVO { ...@@ -54,4 +54,6 @@ public class AudioLibraryOneVO {
private List<RelationAuthor> authorList; private List<RelationAuthor> authorList;
@ApiModelProperty("广告语") @ApiModelProperty("广告语")
private String adSlogan; private String adSlogan;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -178,4 +178,6 @@ public class EbookVO { ...@@ -178,4 +178,6 @@ public class EbookVO {
private String projectId; private String projectId;
@ApiModelProperty("专题名称") @ApiModelProperty("专题名称")
private String projectName; private String projectName;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -38,4 +38,6 @@ public class GoodsLibraryVO { ...@@ -38,4 +38,6 @@ public class GoodsLibraryVO {
private List<Integer> labelContentDiyTypeIds; private List<Integer> labelContentDiyTypeIds;
@ApiModelProperty("二维码") @ApiModelProperty("二维码")
private String qrCode; private String qrCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -30,6 +30,8 @@ public class PdfLibraryOneVO { ...@@ -30,6 +30,8 @@ public class PdfLibraryOneVO {
private List<String> diyTypeCode; private List<String> diyTypeCode;
@ApiModelProperty("pdf名称") @ApiModelProperty("pdf名称")
private String pdfName; private String pdfName;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty(value = "作者集合") @ApiModelProperty(value = "作者集合")
private List<RelationAuthor> authorList; private List<RelationAuthor> authorList;
} }
...@@ -39,6 +39,8 @@ public class ProjectLibraryVO { ...@@ -39,6 +39,8 @@ public class ProjectLibraryVO {
private Date updatedTime; private Date updatedTime;
@ApiModelProperty("浏览数量") @ApiModelProperty("浏览数量")
private Integer browseNum; private Integer browseNum;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
@ApiModelProperty("自定义模块集合") @ApiModelProperty("自定义模块集合")
private List<ProjectDiyModelVO> dms; private List<ProjectDiyModelVO> dms;
@ApiModelProperty("专题关联资源集合") @ApiModelProperty("专题关联资源集合")
......
...@@ -61,4 +61,6 @@ public class VideoLibraryOneVO { ...@@ -61,4 +61,6 @@ public class VideoLibraryOneVO {
private List<Integer> labelContentDiyTypeIds; private List<Integer> labelContentDiyTypeIds;
@ApiModelProperty("来源") @ApiModelProperty("来源")
private String source; private String source;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -94,4 +94,6 @@ public class VideoLibraryVO { ...@@ -94,4 +94,6 @@ public class VideoLibraryVO {
private String imgPath; private String imgPath;
@ApiModelProperty("二维码") @ApiModelProperty("二维码")
private String qrCode; private String qrCode;
@ApiModelProperty("下载状态 0:下载 1:禁止下载")
private String isDownload;
} }
...@@ -249,6 +249,7 @@ public class AudioLibrarySerivceImpl extends ServiceImpl<AudioLibraryMapper, Aud ...@@ -249,6 +249,7 @@ public class AudioLibrarySerivceImpl extends ServiceImpl<AudioLibraryMapper, Aud
entity.setStatus(LibraryStatusEnum.STATUS_0.getCode()); entity.setStatus(LibraryStatusEnum.STATUS_0.getCode());
entity.setCreatedTime(new Date()); entity.setCreatedTime(new Date());
entity.setUpdateTime(new Date()); entity.setUpdateTime(new Date());
entity.getIsDownload("0")
if (StringUtils.isNotBlank(f.getAudioName())) { if (StringUtils.isNotBlank(f.getAudioName())) {
entity.setName(f.getAudioName().substring(0, f.getAudioName().lastIndexOf("."))); entity.setName(f.getAudioName().substring(0, f.getAudioName().lastIndexOf(".")));
} }
......
...@@ -156,6 +156,7 @@ public class PdfLibrarySerivceImpl extends ServiceImpl<PdfLibraryMapper, PdfLibr ...@@ -156,6 +156,7 @@ public class PdfLibrarySerivceImpl extends ServiceImpl<PdfLibraryMapper, PdfLibr
BeanUtils.copyProperties(f, obj); BeanUtils.copyProperties(f, obj);
obj.setCreatedTime(new Date()); obj.setCreatedTime(new Date());
obj.setStatus(LibraryStatusEnum.STATUS_0.getCode()); obj.setStatus(LibraryStatusEnum.STATUS_0.getCode());
obj.setIsDownload("0");
ObjectMapper mapper1 = new ObjectMapper(); ObjectMapper mapper1 = new ObjectMapper();
String jsonString = systemAdminClient.infoJson(Integer.parseInt(tokenManager.getUserId())); String jsonString = systemAdminClient.infoJson(Integer.parseInt(tokenManager.getUserId()));
try { try {
......
...@@ -271,6 +271,7 @@ public class VideoLibrarySerivceImpl extends ServiceImpl<VideoLibraryMapper, Vid ...@@ -271,6 +271,7 @@ public class VideoLibrarySerivceImpl extends ServiceImpl<VideoLibraryMapper, Vid
entity.setStatus(LibraryStatusEnum.STATUS_0.getCode()); entity.setStatus(LibraryStatusEnum.STATUS_0.getCode());
entity.setCreatedTime(new Date()); entity.setCreatedTime(new Date());
entity.setCreatedTime(new Date()); entity.setCreatedTime(new Date());
entity.setIsDownload("0");
if (StringUtils.isNotBlank(f.getVideoName())) { if (StringUtils.isNotBlank(f.getVideoName())) {
entity.setName(f.getVideoName().substring(0, f.getVideoName().lastIndexOf("."))); entity.setName(f.getVideoName().substring(0, f.getVideoName().lastIndexOf(".")));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论