mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 02:32:57 +08:00
学员案例查询
This commit is contained in:
@@ -26,32 +26,11 @@ class CasesServiceImplTest {
|
||||
|
||||
@Test
|
||||
void queryPageCasesV2() throws JsonProcessingException {
|
||||
String jsonStr = "{\n" +
|
||||
"\t\"pageIndex\": 1,\n" +
|
||||
"\t\"pageSize\": 10,\n" +
|
||||
"\t\"isTop\": false,\n" +
|
||||
"\t\"orderField\": \"excellent\",\n" +
|
||||
"\t\"majorType\": \"\",\n" +
|
||||
"\t\"orgDomainDtos\": [],\n" +
|
||||
"\t\"orderAsc\": false,\n" +
|
||||
"\t\"excellent\": true,\n" +
|
||||
"\t\"years\": [2023],\n" +
|
||||
"\t\"breCommend\": true,\n" +
|
||||
"\t\"caseType\": \"\",\n" +
|
||||
"\t\"authorName\": \"\",\n" +
|
||||
"\t\"notInIds\": [],\n" +
|
||||
"\t\"type\": \"recommend\",\n" +
|
||||
"\t\"userId\": \"\",\n" +
|
||||
"\t\"parent\": \"\",\n" +
|
||||
"\t\"children\": [],\n" +
|
||||
"\t\"name\": \"\",\n" +
|
||||
"\t\"firstId\": \"\",\n" +
|
||||
"\t\"secondId\": \"\",\n" +
|
||||
"\t\"threeId\": \"\"\n" +
|
||||
"}";
|
||||
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
|
||||
CasePageVo pageVo = mapper.readValue(jsonStr, CasePageVo.class);
|
||||
pageVo.setUserId("965342027497607168");
|
||||
PageList<Cases> casesV2 = casesService.queryPageCasesV2(pageVo);
|
||||
System.out.println(casesV2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user