Commit 82a8111a authored by 赵啸非's avatar 赵啸非

重构部分功能模块

parent a4672230
Pipeline #2336 canceled with stages
......@@ -92,8 +92,6 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
return params;
}
@Override
protected void saveAfter(MatterDatumEntity entity, Context context) throws AppException {
statDatumCount(entity,context);
......@@ -101,6 +99,15 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
super.saveAfter(entity, context);
}
@Override
protected void updateBefore(MatterDatumEntity entity, Context context) throws AppException {
super.updateBefore(entity, context);
}
@Override
protected void updateAfter(MatterDatumEntity entity, Context context) throws AppException {
addPubdatum(entity, context);
......@@ -333,11 +340,11 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
String mergedoc = rootPath + mergedocPath;
//转换预览图片
String fileName = RandomUtil.randomNumbers(12) + ".jpg";
String preView = this.filePath + "/preview/" + fileName;
String preView = this.filePath + "file/preview/" + fileName;
WordUtil.convertWordToJPEG(mergedoc, preView);
log.info("preView:" + mergedocPath);
//下载地址拼装
String returnStr = mergedocPath + ";" + "/preview/" + fileName;
String returnStr = mergedocPath + ";" + "file/preview/" + fileName;
return returnStr;
} catch (Exception e) {
log.error("渲染模板失败:", e);
......
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