|
@@ -384,97 +384,10 @@ public class PatientInfoDjFacade extends PatientInfoServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
private List<RegisterInfoDTO> getRegisterInfo(SignInVO signInVO) {
|
|
|
- if (!signInVO.getHospitalCode().equals("33010400")) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- String retJson = " [{"
|
|
|
- + "\"hospitalCode\": \"X\","
|
|
|
- + "\"hospitalName\": \"江干区卫计局\","
|
|
|
- + "\"sonHospitalCode\": \"33010480\","
|
|
|
- + "\"sonHospitalName\": \"四季青街道社区卫生服务中心\","
|
|
|
- + "\"patientInfo\": {"
|
|
|
- + " \"birthday\": \"1984-10-08 10:20:23\","
|
|
|
- + "\"code\": \"1759\","
|
|
|
- + "\"idNo\": \"binglihao001\","
|
|
|
- + " \"hospitalCode\": \"33010480\","
|
|
|
- + " \"sex\": 1,"
|
|
|
- + " \"identityNum\": \"360827199603149901\","
|
|
|
- + " \"name\": \"刘亦菲1\""
|
|
|
- + "},"
|
|
|
- + "\"detail\": [{"
|
|
|
- + " \"hospitalDeptCode\": \"2127\","
|
|
|
- + " \"hospitalDeptName\": \"中医科\","
|
|
|
- // + " \"doctorInfo\": {"
|
|
|
- // + " \"code\": \"000\","
|
|
|
- // + " \"hospitalCode\": \"33010400\","
|
|
|
- // + " \"name\": \"普通\""
|
|
|
- // + "},"
|
|
|
- // + " \"recordId\": \"9043516\","
|
|
|
- + " \"recordTime\": \"2019-12-26 11:31:05\","
|
|
|
- + " \"registerNum\": \"15\""
|
|
|
- + "},{"
|
|
|
- + "\"hospitalDeptCode\": \"3005\","
|
|
|
- + " \"hospitalDeptName\": \"穴位埋线注射\","
|
|
|
- // + " \"doctorInfo\": {"
|
|
|
- // + "\"code\": \"000\","
|
|
|
- // + " \"hospitalCode\": \"33010400\","
|
|
|
- // + "\"name\": \"普通\""
|
|
|
- // + "},"
|
|
|
- // + " \"recordId\": \"9043512\","
|
|
|
- + " \"recordTime\": \"2019-12-05 12:23:09\","
|
|
|
- + " \"registerNum\": \"1\""
|
|
|
- + "}]"
|
|
|
- + "},"
|
|
|
- + "{"
|
|
|
- + " \"hospitalCode\": \"33010400\","
|
|
|
- + "\"hospitalName\": \"江干区卫计局\","
|
|
|
- + " \"sonHospitalCode\": \"33010450\","
|
|
|
- + " \"sonHospitalName\": \"九堡街道社区卫生服务中心\","
|
|
|
- + "\"patientInfo\": {"
|
|
|
- + " \"birthday\": \"1984-10-08 10:20:23\","
|
|
|
- + "\"code\": \"1759\","
|
|
|
- + " \"idNo\": \"binglihao001\","
|
|
|
- + " \"hospitalCode\": \"33010450\","
|
|
|
- + " \"sex\": 1,"
|
|
|
- + " \"identityNum\": \"360827199603149901\","
|
|
|
- + " \"name\": \"刘亦菲1\""
|
|
|
- + "},"
|
|
|
- + " \"detail\": [{"
|
|
|
- + " \"hospitalDeptCode\": \"3005\","
|
|
|
- + "\"hospitalDeptName\": \"穴位埋线注射\","
|
|
|
- // + " \"doctorInfo\": {"
|
|
|
- // + " \"code\": \"000\","
|
|
|
- // + " \"hospitalCode\": \"33010400\","
|
|
|
- // + " \"name\": \"普通\""
|
|
|
- // + "},"
|
|
|
- // + " \"recordId\": \"9043516\","
|
|
|
- + " \"recordTime\": \"2019-12-05 12:29:55\","
|
|
|
- + " \"registerNum\": \"1\""
|
|
|
- + "},{"
|
|
|
- + " \"hospitalDeptCode\": \"2284\","
|
|
|
- + " \"hospitalDeptName\": \"中心全科\","
|
|
|
- // + " \"doctorInfo\": {"
|
|
|
- // + " \"code\": \"000\","
|
|
|
- // + " \"hospitalCode\": \"33010400\","
|
|
|
- // + " \"name\": \"普通\""
|
|
|
- // + "},"
|
|
|
- // + "\"recordId\": \"9043512\","
|
|
|
- + " \"recordTime\": \"2019-12-05 12:23:09\","
|
|
|
- + " \"registerNum\": \"1\""
|
|
|
- + "}]"
|
|
|
- + "}"
|
|
|
- + "]";
|
|
|
-
|
|
|
- // List<RegisterInfoDTO> rifList = GsonUtil.toList(retJson, RegisterInfoDTO.class);
|
|
|
- List<RegisterInfoDTO> rifList = JSON.parseArray(retJson, RegisterInfoDTO.class);
|
|
|
- System.out.println(rifList);
|
|
|
- if (StringUtil.isBlank(signInVO.getSonHospitalCode())) {
|
|
|
- return rifList;
|
|
|
- }
|
|
|
|
|
|
- Map<String, List<RegisterInfoDTO>> registerInfoDTOListMap = rifList.stream().collect(Collectors.groupingBy(RegisterInfoDTO::getSonHospitalCode));
|
|
|
|
|
|
- return registerInfoDTOListMap.get(signInVO.getSonHospitalCode());
|
|
|
+
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
/**
|