Commit d952d20a authored by zhaochengming's avatar zhaochengming

省测--轮播图去重bug

parent f4bba379
......@@ -16,6 +16,7 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
/**
* @author:zhaochengming
......@@ -94,7 +95,13 @@ public class OcpTenantIocnServiceImpl extends ServiceImpl<OcpTenantIocnMapper, O
byte[] iocn = tenantIocn.getIocn();
list.add(iocn);
}
return list;
for (byte[] bytes : list) {
if (!(list.contains(bytes))){
list.add(bytes);
}
}
return list;
}
}
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