|
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Slf4j
|
|
@@ -260,7 +261,16 @@ public class ZyActpatientController {
|
|
|
}
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("message", "根据病人门诊id或者住院号查询病人信息成功");
|
|
|
- resultMap.put("data", zyActpatientService.queryZyActpatientByInpatientNoOrMzNO(zyActpatient));
|
|
|
+ List<ZyActpatient> list=zyActpatientService.queryZyActpatientByInpatientNoOrMzNO(zyActpatient);
|
|
|
+ list.stream().forEach(z->{
|
|
|
+ if(StringUtils.isNotBlank(z.getWard())){
|
|
|
+ z.setWardName(zdUnitCodeService.queryDeptNameByIdInCache(z.getWard()));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(z.getZkDept())){
|
|
|
+ z.setZkDeptName(zdUnitCodeService.queryDeptNameByIdInCache(z.getZkDept()));
|
|
|
+ }
|
|
|
+ });
|
|
|
+ resultMap.put("data", list);
|
|
|
resultMap.put("total", zyActpatientService.queryCountByInpatientNoOrMzNO(zyActpatient));
|
|
|
return resultMap;
|
|
|
} catch (Exception e) {
|