Commit 870ec51e authored by 廖旭伟's avatar 廖旭伟

修改申请数据没有存储证照文件路径的bug

parent 1c6d7e12
......@@ -220,9 +220,15 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
String paths = preview(docTemplate, context,hasPDF);
String[] vals = paths.split(";");
if(vals.length==3) {
//有pdf时
applyLogEntity.setCertificateUrl(vals[2]);
applyLogEntity.setPreviewUrl(vals[1]);
}
if(vals.length==2) {
//无pdf时
applyLogEntity.setCertificateUrl(vals[0]);
applyLogEntity.setPreviewUrl(vals[1]);
}
applyLogEntity.setCreateTime(new Date());
applyLogEntity.setRecordStatus(YesNoEnum.NO.getValue());
if(context!=null && context.getUser()!=null) {
......
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