| | |
| | | res.setCoverPageUrl(coverPageUrl); |
| | | res.setItemDestId(resItemId); |
| | | res.setName(name); |
| | | res.setStatus(Res.STATUS_CONVER); |
| | | res.setStatus(Res.STATUS_DRAFT); |
| | | res.setType(type); |
| | | res.setResDirId(dirId); |
| | | res.setRemark(remark); |
| | |
| | | TraceUtils.setCreateTrace(res); |
| | | res.setItemDestId(resItemId); |
| | | res.setName(name); |
| | | res.setStatus(Res.STATUS_CONVER); |
| | | res.setStatus(Res.STATUS_DRAFT); |
| | | res.setType(type); |
| | | res.setLibId(dir.getLibId()); |
| | | res.setResDirId(dirId); |
| | |
| | | ResLib lib = this.getResLib(libType, ownerId); |
| | | |
| | | StringBuffer hql = new StringBuffer( |
| | | "from Res where deleteFlag is false and name like ? and libId=? and status=? order by updateTime desc"); |
| | | "from Res where deleteFlag is false and name like ? and libId like ? and status=? order by updateTime desc"); |
| | | |
| | | List<Object> args = CollectionUtils.newList(keyword + "%", lib == null ? null : lib.getLibId(),Res.STATUS_DRAFT); |
| | | List<Object> args = CollectionUtils.newList(keyword + "%", lib == null ? "%" : lib.getLibId() + "%",Res.STATUS_DRAFT); |
| | | |
| | | if (!StringUtils.isEmpty(resType)) { |
| | | hql.append(" and type=?"); |
| | |
| | | public int listResCountByLib(String libType, String ownerId, String text, String resType) { |
| | | ResLib lib = this.getResLib(libType, ownerId); |
| | | |
| | | StringBuffer hql = new StringBuffer("from Res where deleteFlag is false and libId=? order by updateTime desc"); |
| | | StringBuffer hql = new StringBuffer("from Res where deleteFlag is false and libId like ? order by updateTime desc"); |
| | | |
| | | List<Object> args = CollectionUtils.newList(null == lib ? null : lib.getLibId()); |
| | | List<Object> args = CollectionUtils.newList(null == lib ? "%" : lib.getLibId()+"%"); |
| | | |
| | | if (!StringUtils.isEmpty(resType)) { |
| | | hql.append(" and type=?"); |