update 更新记录-时间格式

This commit is contained in:
liao
2023-09-27 16:25:52 +08:00
parent 996be11ef6
commit 7288b7d78a
@@ -597,7 +597,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
// 增加入库记录
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String now = dateFormat.format(new Date());
String content = loginUser.getNameWorkNo() + " " + now + " 入库" +
standardNumber + "" + standardName + "";
@@ -693,7 +693,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
// 组装更新内容
StringBuilder recordBuffer = new StringBuilder();
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String now = dateFormat.format(new Date());
recordBuffer.append(loginUser.getNameWorkNo() + " " + now + " 修改" +
standardNumber + "" + standardName + "");