| | |
| | | doc.setHandoutId(handoutId); |
| | | doc.setStatus(ResItemDoc.STATUS_LINEUP); |
| | | save(doc); |
| | | // 将文档id放进缓存 |
| | | // 将文档id放进缓存 |
| | | cacheService.lstRightPush(RES_DOC_CONVER_LST, handoutId); |
| | | return doc.getDocId(); |
| | | } |
| | |
| | | HandoutConverTask task = new HandoutConverTask(); |
| | | |
| | | task.setCreateTime(new Date()); |
| | | task.setUpdateTime(new Date()); |
| | | task.setHandoutId(handout.getHandoutId()); |
| | | task.setHandoutUrl(handout.getFullPath()); |
| | | task.setStatus(HandoutConverTask.STATUS_DRAFT); |
| | |
| | | |
| | | ResItemDoc doc = read(ResItemDoc.class, id); |
| | | |
| | | TraceUtils.setUpdateTrace(doc); |
| | | // TraceUtils.setUpdateTrace(doc); |
| | | |
| | | doc.setName(name); |
| | | |
| | |
| | | public String readAccessPath(String resId, String attribute) { |
| | | ResItemDoc resItemDoc = read(ResItemDoc.class, resId); |
| | | if (ResItemDoc.STATUS_DRAFT != resItemDoc.getStatus()) { |
| | | return null; |
| | | ResFile resFile = read(ResFile.class,resItemDoc.getOrigFileId()); |
| | | return resFile.getPath(); |
| | | // return null; |
| | | } |
| | | SchHandout schHandout = read(SchHandout.class, resItemDoc.getHandoutId()); |
| | | |
| | |
| | | return Res.FILE_TYPE_DOC; |
| | | } |
| | | |
| | | @Scheduled(cron = "0/2 * * * * ?") // 每10秒执行一次 |
| | | @Scheduled(cron = "0/2 * * * * ?") // 每10秒执行一次 |
| | | public void doTimer() { |
| | | |
| | | String id = cacheService.lstLeftPop(RES_DOC_CONVER_LST); |