修复了海外标准法规,配置标准后,在此节点没有显示此标准的问题

This commit is contained in:
zhaokaiyao@91isoft.com
2021-07-26 20:07:38 +08:00
parent 6c4ad93812
commit 9cd93436c4
5 changed files with 34 additions and 11 deletions
@@ -273,15 +273,19 @@ public class AttFileEOController {
String waterFilePath = newFilePath + attFileEO.getOldFileName();
// 添加水印
String userMsg = "";
String date="";
TsUser tsUser = userDao.selectById(userId);
if (tsUser != null) {
userMsg = tsUser.getUname() + ",";
if (StringUtils.isNotEmpty(tsUser.getWorkNum())) {
userMsg += tsUser.getWorkNum() + ",";
}
}else {
//没有用户信息时
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
date = df.format(new Date());
}
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
String date = df.format(new Date());
String waterContent = userMsg + date;
//2020年9月5日 去掉水印处理
//2021年7月25日要求下载生成水印