bug: 78317政策课题查看更新记录显示问题
This commit is contained in:
+4
-4
@@ -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 + "\"");
|
||||||
|
|||||||
Reference in New Issue
Block a user