Browse Source

总后台处方订单管理 未开方不返回处方图片

wjj 1 week ago
parent
commit
a086d49341

+ 3 - 0
fs-admin/src/main/java/com/fs/his/controller/FsPrescribeController.java

@@ -165,6 +165,9 @@ public class FsPrescribeController extends BaseController
         if (fsPatient!=null&&fsPatient.getIdCard()!=null){
             fsPrescribe.setIdCard(fsPatient.getIdCard().replaceAll("(\\d{4})\\d{10}(\\w{4})", "$1**********$2"));
         }
+        if (fsPrescribe.getStatus() == 0 || fsPrescribe.getStatus() == -2) {
+            fsPrescribe.setPrescribeImgUrl(null);
+        }
         return AjaxResult.success(fsPrescribe);
     }