瀏覽代碼

fix: 订单详情返回院区信息

Walker 2 年之前
父節點
當前提交
8fad9c5dba

+ 8 - 0
onemini-hospital-empty/src/main/java/com/ywt/alipaympapi/service/impl/IsvRegisterServiceImpl.java

@@ -594,6 +594,14 @@ public class IsvRegisterServiceImpl implements IsvRegisterService {
                     if (hospital != null) {
                         subHospital = String.format("%s(%s)", hospital.getHospitalName(), hospital.getAddress());
                     }
+                } else {
+                    int hospitalId = item.getHospitalId();
+                    if (hospitalId == ConstantDef.TAIHE_HOSPITAL_ID) {
+                        Hospital hospital = systemSrv.getHospitalById(hospitalId);
+                        if (hospital != null) {
+                            subHospital = String.format("%s(%s)", hospital.getHospitalName(), hospital.getAddress());
+                        }
+                    }
                 }
                 data.setSubHospital(subHospital);
                 return data;