|
|
@@ -5,13 +5,16 @@ import cn.hnthyy.thmz.Utils.WindowsUtil;
|
|
|
import cn.hnthyy.thmz.comment.UserLoginToken;
|
|
|
import cn.hnthyy.thmz.entity.his.zy.PatientMiSfz;
|
|
|
import cn.hnthyy.thmz.enums.GenderEnum;
|
|
|
+import cn.hnthyy.thmz.service.his.zy.APatientMiService;
|
|
|
import cn.hnthyy.thmz.service.his.zy.PatientMiSfzService;
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.ResourceUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Slf4j
|
|
|
@@ -19,6 +22,7 @@ import java.util.Map;
|
|
|
public class PatientMiSzController {
|
|
|
@Autowired
|
|
|
private PatientMiSfzService patientMiSfzService;
|
|
|
+ private APatientMiService aPatientMiService;
|
|
|
/**
|
|
|
* 查询用户的身份证信息
|
|
|
* @return
|
|
|
@@ -34,6 +38,13 @@ public class PatientMiSzController {
|
|
|
}
|
|
|
try {
|
|
|
PatientMiSfz patientMiSfz=patientMiSfzService.queryPatientMiSfzByPatientId(patientId);
|
|
|
+ if (patientMiSfz == null) {
|
|
|
+ List<String> stringList = aPatientMiService.queryInPatientNoByMzNo(patientId);
|
|
|
+ if (CollUtil.isNotEmpty(stringList)) {
|
|
|
+ String patNO = stringList.get(0);
|
|
|
+ patientMiSfz = patientMiSfzService.queryByPatNo(patNO,patientId);
|
|
|
+ }
|
|
|
+ }
|
|
|
if(patientMiSfz!=null){
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("message", "查询用户的身份证信息成功");
|