From 4adb0063ef324e235218cc73eea63e39a6e8e59f Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 26 Aug 2022 18:44:55 +0800 Subject: [PATCH] 微调字段 --- snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java | 2 +- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml | 3 ++- snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/param/BlogFriendshipLinkParam.java | 4 ++-- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/param/BlogArticleAddDto.java | 4 ++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java index 2c91a8f..c3a5a3a 100644 --- a/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java +++ b/snowy-base/snowy-core/src/main/java/vip/xiaonuo/core/consts/MyConstant.java @@ -80,7 +80,7 @@ List<Integer> FileTypeList = new ArrayList(5) {{ add(FileType.fileTypeMarkDown_1); add(FileType.fileTypeHtml_2); - add(fileTypeVideo_3); + add(FileType.fileTypeVideo_3); add(FileType.fileTypeMp3_4); add(FileType.fileTypePictures_5); add(FileType.fileTypeTalking_9); diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/param/BlogArticleAddDto.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/param/BlogArticleAddDto.java index b52fcee..9a6f9be 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/param/BlogArticleAddDto.java +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/param/BlogArticleAddDto.java @@ -65,6 +65,10 @@ */ private Long coverFileId; + private String pictureIds; + + private String videoIds; + /** * 发布时间 */ diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml index 4d3da7a..c6b5fc8 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml @@ -12,7 +12,7 @@ ( SELECT t.id, - count(t.id) count + count(t.id) `count` FROM blog_article a, blog_article_type t @@ -28,6 +28,7 @@ ) t2 on t1.id = t2.id + where t1.is_show_face = 1 ORDER BY t1.top_value ASC, t1.create_date DESC diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/param/BlogFriendshipLinkParam.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/param/BlogFriendshipLinkParam.java index 0026d35..34c3ae9 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/param/BlogFriendshipLinkParam.java +++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/param/BlogFriendshipLinkParam.java @@ -56,7 +56,7 @@ /** * url地址 */ - @Size(max = 50, groups = {add.class, edit.class}) + @Size(max = 200, groups = {add.class, edit.class}) @NotBlank(message = "url地址不能为空,请检查url参数", groups = {add.class, edit.class}) @Pattern(regexp = "^$|^((https|http)?:\\/\\/)[^\\s]+", message = "url格式错误", groups = {add.class}) private String url; @@ -64,7 +64,7 @@ /** * 头像地址 */ - @Size(max = 50, groups = {add.class, edit.class}) + @Size(max = 200, groups = {add.class, edit.class}) @Pattern(regexp = "^$|^((https|http)?:\\/\\/)[^\\s]+", message = "头像格式错误", groups = {add.class}) private String avatar; -- Gitblit v1.9.1