提交 ef1a2e31 编写于 作者: O o2sword

首页图片改为4张

上级 5f581c8b
......@@ -33,7 +33,8 @@ public class QueueSendDocumentNotify extends AbstractQueue<String> {
private static Logger logger = LoggerFactory.getLogger( QueueSendDocumentNotify.class );
private UserManagerService userManagerService = new UserManagerService();
public void execute( String documentId ) throws Exception {
@Override
public void execute(String documentId ) throws Exception {
logger.debug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>start QueueSendDocumentNotify:" + documentId );
if( StringUtils.isEmpty(documentId) ) {
logger.debug("can not send publish notify , document is NULL!" );
......
......@@ -54,8 +54,8 @@ public class DocumentPersistService {
}
if (ListTools.isNotEmpty(document.getPictureList())) {
document.setHasIndexPic(true);
if(document.getPictureList().size() > 3){
document.setIndexPics(StringUtils.join(document.getPictureList().subList(0, 2), ","));
if(document.getPictureList().size() > 4){
document.setIndexPics(StringUtils.join(document.getPictureList().subList(0, 3), ","));
}else{
document.setIndexPics(StringUtils.join(document.getPictureList(), ","));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册