Commit df28db26 by 阮思源

增加关键词相应内容字数限制

parent a95b689d
...@@ -161,6 +161,9 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -161,6 +161,9 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
if (null == setKeywordVO || setKeywordVO.check()) { if (null == setKeywordVO || setKeywordVO.check()) {
throw new BookBizException(BookBizException.PARAM_IS_NULL, "应用/作品信息为空"); throw new BookBizException(BookBizException.PARAM_IS_NULL, "应用/作品信息为空");
} }
if (setKeywordVO.getContent() != null && setKeywordVO.getContent().length() > 1000) {
throw new BookBizException(BookBizException.PARAM_IS_NULL, "回复内容超出限制!");
}
if (setKeywordVO.getClassifyId() == null) { if (setKeywordVO.getClassifyId() == null) {
setKeywordVO.setClassifyId(0L); setKeywordVO.setClassifyId(0L);
} }
...@@ -513,7 +516,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -513,7 +516,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
String bookName = bookGroupDTO.getBookName(); String bookName = bookGroupDTO.getBookName();
if (!ListUtils.isEmpty(bookGroupServeList)) { if (!ListUtils.isEmpty(bookGroupServeList)) {
if (!StringUtil.isEmpty(bookName)) { if (!StringUtil.isEmpty(bookName)) {
text = text + "《" + bookName + "》" + "配有以下资源服务,链接立即获取:\n"; text = text + "《" + bookName + "》" + "配有以下资源服务,点击链接立即获取:\n";
} }
int i = 1; int i = 1;
for (BookGroupServe bookGroupServe : bookGroupServeList) { for (BookGroupServe bookGroupServe : bookGroupServeList) {
......
...@@ -737,7 +737,16 @@ ...@@ -737,7 +737,16 @@
</select> </select>
<select id="getWechatGroupInfoMap" parameterType="list" resultType="com.pcloud.book.group.dto.GroupQrcodeInfo4Advertising"> <select id="getWechatGroupInfoMap" parameterType="list" resultType="com.pcloud.book.group.dto.GroupQrcodeInfo4Advertising">
select id groupQrcodeId, group_name groupName, qrcode_url qrcodeUrl from book_group_qrcode where id in SELECT
t.id groupQrcodeId,
t.group_name groupName,
t.qrcode_url qrcodeUrl,
bg.join_group_type joinGroupType
FROM
book_group_qrcode t
INNER JOIN book_group_classify t1 ON t.classify_id = t1.id
INNER JOIN book_group bg ON t1.book_group_id = bg.id
where t.id in
<foreach collection="list" separator="," open="(" close=")" item="id"> <foreach collection="list" separator="," open="(" close=")" item="id">
#{id} #{id}
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment