List<Comment> checkListItemCommentsList = new ArrayList<Comment>();
if(checklistItemIdsList.size() > 1000){
while(checklistItemIdsList.size()>1000){
List<String> subList = checklistItemIdsList.subList(0, 1000);
checkListItemCommentsList.addAll(commentDao.getCommentByEntities(subList,
GlobalConstant.ENTITY_MODIFIED_INSTANCE_CHECKLIST_ITEM, !userAccess ? "E" : "I"));
checklistItemIdsList.subList(0, 1000).clear();
}
}
checkListItemCommentsList.addAll(commentDao.getCommentByEntities(checklistItemIdsList,
GlobalConstant.ENTITY_MODIFIED_INSTANCE_CHECKLIST_ITEM, !userAccess ? "E" : "I"));
Map<String, Boolean> hasComments = new HashMap<String, Boolean>();
if(!CollectionUtils.isEmpty(checkListItemCommentsList)){
for(Comment comment : checkListItemCommentsList){
key = comment.getEntityId() + "_" + comment.getEntityType();
if(!hasComments.containsKey(key)){
hasComments.put(key, true);
}
}
}
List<PendingCheckListItemsTO> pendingCheckListItems = new ArrayList<>();
if(!CollectionUtils.isEmpty(pendingCheckListItemTaskTOs)){
//map the comment to checklist item comment respectively
for(PendingCheckListItemsTO pendingChecklistItemTO : pendingCheckListItemTaskTOs){
Long checklistItemId = pendingChecklistItemTO.getCheckListItemId();
if(checklistItemId != null){
key = checklistItemId + "_" + GlobalConstant.ENTITY_MODIFIED_INSTANCE_CHECKLIST_ITEM;
}
if(hasComments.containsKey(key)){
pendingChecklistItemTO.setCommentAvailable(hasComments.get(key));
}
pendingCheckListItems.add(pendingChecklistItemTO);
}
}
相关推荐
本文档“Modeling Facial Expressions in 3D Avatars.pdf”主要讲述了一种通过2D图片来驱动3D虚拟形象表情的方法。以下是根据提供的文件信息,详细介绍相关知识点: 标题:“Modeling Facial Expressions in 3D ...
Expressions of Faraday’s law of induction in media,张涛,,Problem with existing expression of Faraday’s law of induction in media was shown. Reactions (magnetization, polarization, induced ...
there is also some content that may be suitable for intermediate users, or for people who wish to understand how to translate what they know about regular expressions from prior experience into any of...
在本教程“Sams Teach Yourself Regular Expressions in 10 Minutes”中,你将深入学习如何高效地利用正则表达式进行数据验证、文本分析和数据提取。 一、基础概念 1. 元字符:正则表达式中的特殊字符,如`.`代表...
Expert system for automatic analysis of facial expressions
Lambda Expressions in Java 8 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
A clustered index is like a telephone directory in which all of the rows for customers with the same last name are clustered together in the same part of the book. Just as the organization of a ...
A Tour of C++ (2nd Edition) (C++ In-Depth Series) By 作者: Bjarne Stroustrup ISBN-10 书号: 0134997832 ISBN-13 书号: 9780134997834 Edition 版本: 2 出版日期: 2018-07-09 pages 页数: 815 In A Tour of ...
例如,列表`(A B (C D E))`就是一个S-表达式,其中包含两个原子`A`和`B`,以及一个内部列表`(C D E)`。 **S-函数**:是用于处理S-表达式的函数,通常采用递归的方式定义。这些函数可以执行诸如构建、拆分、查询或...
Since its debut in 2000, C# has become a language of unusual flexibility and breadth, but its continual growth means there’s always more to learn. Organized around concepts and use cases, this ...
If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and ...
ChinaMobilePhoneNumberRegex, Regular expressions that match the mobile phone number in mainland China.
Regular expressions are patterns or templates that allow you to define a set of rules in a natural yet vague way, giving you the ability to match and validate text. Therefore, they have been ...
正则表达式之道(A Tao of Regular Expressions).htm
This easy-to-follow guide is a great place from which to familiarize yourself with the core concepts of regular expressions and to master its implementation with the features of Java 9. You will ...
This updated edition of Java in a Nutshell not only helps experienced Java programmers get the most out of Java versions 9 through 11, it’s also a learning path for new developers. Chock full of ...
Lambda Expressions in Java 8 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Lambda Expressions in Java 8 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除