|
|
@@ -1042,19 +1042,9 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService {
|
|
|
}
|
|
|
|
|
|
if (fsStoreOrderMapper.insertFsStoreOrder(order) > 0) {
|
|
|
- try {
|
|
|
+ if(CloudHostUtils.hasCloudHostName("金牛明医")){
|
|
|
//信息采集 发送药师im
|
|
|
- FsUserInformationCollection fsUserInformationCollectionParam = new FsUserInformationCollection();
|
|
|
- fsUserInformationCollectionParam.setPackageOrderId(packageOrder.getOrderId());
|
|
|
- fsUserInformationCollectionParam.setPackageOrderCode(packageOrder.getOrderSn());
|
|
|
- List<FsUserInformationCollection> fsUserInformationCollections = fsUserInformationCollectionMapper.selectFsUserInformationCollectionList(fsUserInformationCollectionParam);
|
|
|
- if (!fsUserInformationCollections.isEmpty()) {
|
|
|
- for (FsUserInformationCollection collection : fsUserInformationCollections) {
|
|
|
- openIMService.sendUserInformation(collection.getUserId(),collection.getDoctorType2Id(),collection.getId());
|
|
|
- }
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("信息采集 通知药师发送失败:{}",e.getMessage());
|
|
|
+ doctorSendIm(packageOrder);
|
|
|
}
|
|
|
if (packageOrder.getCycle() >= followRate) {
|
|
|
FsFollow fsFollow = new FsFollow();
|
|
|
@@ -1140,6 +1130,23 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService {
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ private void doctorSendIm(FsPackageOrder packageOrder) {
|
|
|
+ try {
|
|
|
+ //信息采集 发送药师im
|
|
|
+ FsUserInformationCollection fsUserInformationCollectionParam = new FsUserInformationCollection();
|
|
|
+ fsUserInformationCollectionParam.setPackageOrderId(packageOrder.getOrderId());
|
|
|
+ fsUserInformationCollectionParam.setPackageOrderCode(packageOrder.getOrderSn());
|
|
|
+ List<FsUserInformationCollection> fsUserInformationCollections = fsUserInformationCollectionMapper.selectFsUserInformationCollectionList(fsUserInformationCollectionParam);
|
|
|
+ if (!fsUserInformationCollections.isEmpty()) {
|
|
|
+ for (FsUserInformationCollection collection : fsUserInformationCollections) {
|
|
|
+ openIMService.sendUserInformation(collection.getUserId(),collection.getDoctorType2Id(),collection.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("信息采集 通知药师发送失败:{}",e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@SuppressWarnings("all")
|
|
|
@Override
|
|
|
public String importSroreOrder(List<FsStoreProductDeliverExcelVO> list, Long storeId, Long companyId) {
|