Commit 6b7025b7 by caojingji

修改伴随任务结果取值时去重的方法

parent cebd037d
......@@ -227,7 +227,7 @@ public class TogetherScheduledService {
* @param list
* @return
*/
public static List<TogetherTaskResult> removeDuplicate(List<TogetherTaskResult> list) {
public static List<TogetherTaskResult> removeDuplicate(List<TogetherTaskResult> list) {
for ( int i = 0 ; i < list.size() - 1 ; i ++ ) {
for ( int j = list.size() - 1 ; j > i; j -- ) {
if (list.get(j).getObjectValue().equals(list.get(i).getObjectValue())&&list.get(j).getObjectType().equals(list.get(i).getObjectType())) {
......
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