|
|
|
@ -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());
|
|
|
|
|