| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public List<StrategyPicture> getStrategyPictureListCache() {
|
| | | return strategyPictureMapper.selectStrategyPictureList();
|
| | | public List<StrategyPicture> getTextStrategyPictureListCache() {
|
| | | List<StrategyPicture> list = strategyPictureMapper.selectStrategyPictureList();
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | if (list.get(i).getType() != StrategyPicture.TYPE_TEXT) {
|
| | | list.remove(i);
|
| | | i--;
|
| | | }
|
| | | }
|
| | | return list;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<StrategyPicture> getVideoStrategyPictureListCache() {
|
| | | List<StrategyPicture> list = strategyPictureMapper.selectStrategyPictureList();
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | if (list.get(i).getType() != StrategyPicture.TYPE_VIDEO) {
|
| | | list.remove(i);
|
| | | i--;
|
| | | }
|
| | | }
|
| | | return list;
|
| | | }
|
| | |
|
| | | }
|