| | |
| | | Query query = new Query(); |
| | | Criteria[] ors = new Criteria[ids.size()]; |
| | | for (int i = 0; i < ids.size(); i++) { |
| | | ors[i] = Criteria.where("_id").is(ids.get(0)); |
| | | ors[i] = Criteria.where("_id").is(ids.get(i)); |
| | | } |
| | | query.addCriteria(new Criteria().orOperator(ors)); |
| | | return searchSpecialDao.findList(query); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void update(SearchSpecial special) { |
| | | public void updateSelective(SearchSpecial special) { |
| | | if (special.getUpdateTime() == null) { |
| | | special.setUpdateTime(new Date()); |
| | | } |
| | |
| | | throw new Exception("参数不完整"); |
| | | } |
| | | |
| | | if (special.getAlbumQuery() == null && special.getInternetQuery() == null && special.getShortQuery() == null) { |
| | | if (special.getContainerList() == null || special.getContainerList().size() == 0) { |
| | | throw new Exception("搜索条件不能都为空"); |
| | | } |
| | | |