导出时间字段问题处理

master
Leon 3 years ago
parent 8cdf55f55b
commit e441d075af

@ -87,7 +87,14 @@ public class ExportAspect {
}//for
//-------------------------------------------------------------------------------------------------------------------
Object result = joinPoint.proceed(args);
JSONObject resultJson = JSON.parseObject(JSON.toJSONString(result));
JSONObject resultJson = JSON.parseObject(JSON.toJSONStringWithDateFormat(result, "yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteDateUseDateFormat));
switch (exportCode) {
case "SfcDispatch":
resultJson = JSON.parseObject(JSON.toJSONString(result));
break;
default:
break;
}
if (resultJson.get("data") instanceof List) {
List dataList = (List)resultJson.get("data");
exportData(exportCode, dataList, request, attributes.getResponse());

Loading…
Cancel
Save