zhangqin 1 тиждень тому
батько
коміт
43190a26b3

+ 7 - 0
fs-service/src/main/resources/application-dev-yjb.yml

@@ -156,3 +156,10 @@ openIM:
     userID: imAdmin
 #是否为新商户,新商户不走mpOpenId
 isNewWxMerchant: true
+
+hospital580:
+    url: https://ehospital-openapi-test.sq580.com
+    clientId: yjbz_15700159162_test
+    secretKey: ESzFwwum4Jz95f4ubg4rP7lQG4LZsWFv
+    storeId: 17478
+    callbackUrl: http://v78ee625.natappfree.cc/hospital580/sync/medicine

+ 4 - 1
fs-user-app/src/main/java/com/fs/app/controller/store/StoreOrderScrmController.java

@@ -211,7 +211,10 @@ public class StoreOrderScrmController extends AppBaseController {
             if (ObjectUtil.isEmpty(prescribe)){
                 Hospital580PrescriptionScrmEntity byId = orderScrmService.getById(order.getPrescribeId());
                 prescribe = new FsPrescribeScrm();
-                prescribe.setPatientId(byId.getPreId());
+                prescribe.setPrescribeId(byId.getPreId());
+                prescribe.setPrescribeCode(byId.getSerialNo());
+                prescribe.setRpId(byId.getSerialNo());
+                prescribe.setRpId(byId.getSerialNo());
             }
         }
         //处理是否可以申请售后