|
@@ -1,10 +1,12 @@
|
|
package cn.hnthyy.thmz.controller.mz;
|
|
package cn.hnthyy.thmz.controller.mz;
|
|
|
|
|
|
import cn.hnthyy.thmz.comment.UserLoginToken;
|
|
import cn.hnthyy.thmz.comment.UserLoginToken;
|
|
|
|
+import cn.hnthyy.thmz.entity.his.mz.CodeNameEntity;
|
|
import cn.hnthyy.thmz.entity.his.mz.Employee;
|
|
import cn.hnthyy.thmz.entity.his.mz.Employee;
|
|
import cn.hnthyy.thmz.entity.his.mz.MzPatientMi;
|
|
import cn.hnthyy.thmz.entity.his.mz.MzPatientMi;
|
|
import cn.hnthyy.thmz.entity.his.mz.MzZyReq;
|
|
import cn.hnthyy.thmz.entity.his.mz.MzZyReq;
|
|
import cn.hnthyy.thmz.enums.GenderEnum;
|
|
import cn.hnthyy.thmz.enums.GenderEnum;
|
|
|
|
+import cn.hnthyy.thmz.service.his.RegionService;
|
|
import cn.hnthyy.thmz.service.his.ResponceTypeService;
|
|
import cn.hnthyy.thmz.service.his.ResponceTypeService;
|
|
import cn.hnthyy.thmz.service.his.mz.EmployeeService;
|
|
import cn.hnthyy.thmz.service.his.mz.EmployeeService;
|
|
import cn.hnthyy.thmz.service.his.mz.MzPatientMiService;
|
|
import cn.hnthyy.thmz.service.his.mz.MzPatientMiService;
|
|
@@ -18,6 +20,7 @@ import org.springframework.web.bind.annotation.*;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
@RestController
|
|
@RestController
|
|
@@ -32,6 +35,8 @@ public class ZyReqController {
|
|
private MzPatientMiService mzPatientMiService;
|
|
private MzPatientMiService mzPatientMiService;
|
|
@Autowired
|
|
@Autowired
|
|
private ResponceTypeService responceTypeService;
|
|
private ResponceTypeService responceTypeService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private RegionService regionService;
|
|
/**
|
|
/**
|
|
* 查询病人的住院证
|
|
* 查询病人的住院证
|
|
*
|
|
*
|
|
@@ -115,6 +120,7 @@ public class ZyReqController {
|
|
MzPatientMi mzPatientMi = mzPatientMiService.queryByPatientId(patientId);
|
|
MzPatientMi mzPatientMi = mzPatientMiService.queryByPatientId(patientId);
|
|
mzPatientMi.setGender(GenderEnum.getGenderByCode(mzPatientMi.getSex()).name);
|
|
mzPatientMi.setGender(GenderEnum.getGenderByCode(mzPatientMi.getSex()).name);
|
|
mzPatientMi.setResponseTypeName(responceTypeService.queryMzNameByCode(mzPatientMi.getResponseType()));
|
|
mzPatientMi.setResponseTypeName(responceTypeService.queryMzNameByCode(mzPatientMi.getResponseType()));
|
|
|
|
+ mzPatientMi.setFullAddress(regionService.queryAll().stream().collect(Collectors.toMap(CodeNameEntity::getCode, CodeNameEntity::getName)),new StringBuffer());
|
|
resultMap.put("mzPatientMi", mzPatientMi);
|
|
resultMap.put("mzPatientMi", mzPatientMi);
|
|
return resultMap;
|
|
return resultMap;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|