bug: 78317政策课题查看更新记录显示问题

This commit is contained in:
wxyclub
2023-11-14 13:53:52 +08:00
parent 02db88e2a3
commit 8a25004f71
@@ -454,12 +454,12 @@ public class SarLawsTopicServiceImpl extends ServiceImpl<SarLawsTopicMapper, Sar
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String oldDateStr = null; String oldDateStr = null;
String newDateStr = null; String newDateStr = null;
if (newValue != null) { if (oldValue != null) {
Date oldDate = (Date) newValue; Date oldDate = (Date) oldValue;
oldDateStr = sdf.format(oldDate); oldDateStr = sdf.format(oldDate);
} }
if (oldValue!= null) { if (newValue!= null) {
Date newDate = (Date) oldValue; Date newDate = (Date) newValue;
newDateStr = sdf.format(newDate); newDateStr = sdf.format(newDate);
} }
changes.add(annotationsByType.value() + "\"" + oldDateStr + "\"改为\"" + newDateStr + "\""); changes.add(annotationsByType.value() + "\"" + oldDateStr + "\"改为\"" + newDateStr + "\"");