소스 검색

修改问题

hlf 1 년 전
부모
커밋
7fc6b4363b
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/DeptAssessmentDeclarationServiceImpl.java

+ 4 - 1
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/DeptAssessmentDeclarationServiceImpl.java

@@ -66,7 +66,10 @@ public class DeptAssessmentDeclarationServiceImpl extends ServiceImpl<DeptAssess
 		deptAssessmentDeclaration.setCreateTime(DateUtil.date());
 		deptAssessmentDeclaration.setCreateTime(DateUtil.date());
 		List<DeptAssessmentDeclarationContent> deptAssessmentDeclarationContentList = new ArrayList<>();
 		List<DeptAssessmentDeclarationContent> deptAssessmentDeclarationContentList = new ArrayList<>();
 		JSONObject jsonArr = userService.pageList(1, 500, deptAssessmentDeclaration.getDeptId(), "", "", "", "", "", request);
 		JSONObject jsonArr = userService.pageList(1, 500, deptAssessmentDeclaration.getDeptId(), "", "", "", "", "", request);
-		JSONArray array = JSONUtil.parseArray(jsonArr);
+		JSONObject jsonArr1 = (JSONObject) jsonArr.get("data");
+		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--------------------------------------------------" + jsonArr1);
+		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + jsonArr1.get("records"));
+		JSONArray array = JSONUtil.parseArray(jsonArr.get("records"));
 		List<UserDTO> userList = JSONUtil.toList(array, UserDTO.class);
 		List<UserDTO> userList = JSONUtil.toList(array, UserDTO.class);
 		for (int i = 0; i < userList.size(); i++) {
 		for (int i = 0; i < userList.size(); i++) {
 			DeptAssessmentDeclarationContent deptAssessmentDeclarationContent = new DeptAssessmentDeclarationContent();
 			DeptAssessmentDeclarationContent deptAssessmentDeclarationContent = new DeptAssessmentDeclarationContent();