|
|
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.izouma.nineth.config.MetaConstants;
|
|
|
import com.izouma.nineth.domain.Snapshot;
|
|
|
import com.izouma.nineth.dto.PageQuery;
|
|
|
-import com.izouma.nineth.dto.SnapshotDTO;
|
|
|
import com.izouma.nineth.exception.BusinessException;
|
|
|
import com.izouma.nineth.repo.MetaGameProcessRepo;
|
|
|
import com.izouma.nineth.repo.SnapshotRepo;
|
|
|
@@ -61,11 +60,8 @@ public class SnapshotController extends BaseController {
|
|
|
}
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
jsonArray.addAll(map);
|
|
|
- List<SnapshotDTO> snapshotDTOS = jsonArray.toJavaList(SnapshotDTO.class);
|
|
|
- ExcelUtils.export(response, snapshotDTOS);
|
|
|
- }
|
|
|
- if (2L == id) {
|
|
|
-
|
|
|
+ List<Snapshot> snapshot = jsonArray.toJavaList(Snapshot.class);
|
|
|
+ ExcelUtils.export(response, snapshot);
|
|
|
}
|
|
|
}
|
|
|
}
|