yjwang 1 giorno fa
parent
commit
91cd60de53

+ 13 - 0
fs-qw-task/src/main/java/com/fs/app/controller/CommonController.java

@@ -28,6 +28,8 @@ import com.fs.his.service.IFsInquiryOrderService;
 import com.fs.his.service.IFsUserWxService;
 import com.fs.his.utils.qrcode.QRCodeUtils;
 import com.fs.hisStore.config.MedicalMallConfig;
+import com.fs.hisStore.domain.FsStoreOrderScrm;
+import com.fs.hisStore.service.impl.FsStoreOrderScrmServiceImpl;
 import com.fs.qw.domain.QwCompany;
 import com.fs.qw.domain.QwExternalContact;
 import com.fs.qw.mapper.QwExternalContactMapper;
@@ -151,6 +153,9 @@ public class CommonController {
     @Autowired
     private IFsCourseWatchLogService courseWatchLogService;
 
+    @Autowired
+    private FsStoreOrderScrmServiceImpl fsStoreOrderScrmService;
+
     /**
      * 获取跳转微信小程序的链接地址
      */
@@ -437,4 +442,12 @@ public class CommonController {
         courseWatchLogService.scheduleUpdateDurationToDatabaseText();
     }
 
+    @GetMapping("/erp/{orderId}")
+    public R erp(@PathVariable Long orderId){
+        FsStoreOrderScrm storeOrderScrm =new FsStoreOrderScrm();
+        storeOrderScrm.setId(orderId);
+        storeOrderScrm.setUserAddress("测试- --- --11111");
+        fsStoreOrderScrmService.pushOrderAddressToErp(storeOrderScrm);
+        return null;
+    }
 }