Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Submarine server put QueryResult into JsonResponse, return to Submarine web front-end.
QueryResult java class is template class,
public class QueryResult<T> { private List<T> records; private long total;
now, QueryResult.java has a problem; records is List<T>.
1. every return JsonResponse, Submarine web front-end always received a list object.
2. QueryResult param is <T>, but records is List<T>. The two are not uniform.
So, I think we need to change
private List<T> records;
TO
private T records;