Commit d952d20a authored by zhaochengming's avatar zhaochengming

省测--轮播图去重bug

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