|
@@ -30,6 +30,8 @@ import com.fs.company.vo.FsStoreProductStatisticsVO;
|
|
|
import com.fs.config.cloud.CloudHostProper;
|
|
import com.fs.config.cloud.CloudHostProper;
|
|
|
import com.fs.core.config.WxPayProperties;
|
|
import com.fs.core.config.WxPayProperties;
|
|
|
import com.fs.core.utils.OrderCodeUtils;
|
|
import com.fs.core.utils.OrderCodeUtils;
|
|
|
|
|
+import com.fs.doctor.domain.DoctorMsg;
|
|
|
|
|
+import com.fs.doctor.mapper.DoctorMsgMapper;
|
|
|
import com.fs.erp.domain.*;
|
|
import com.fs.erp.domain.*;
|
|
|
import com.fs.erp.dto.*;
|
|
import com.fs.erp.dto.*;
|
|
|
import com.fs.erp.dto.df.*;
|
|
import com.fs.erp.dto.df.*;
|
|
@@ -302,6 +304,9 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private FsUserInformationCollectionMapper userInformationCollectionMapper;
|
|
private FsUserInformationCollectionMapper userInformationCollectionMapper;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private DoctorMsgMapper doctorMsgMapper;
|
|
|
|
|
+
|
|
|
//ERP 类型到服务的映射
|
|
//ERP 类型到服务的映射
|
|
|
private Map<Integer, IErpOrderService> erpServiceMap;
|
|
private Map<Integer, IErpOrderService> erpServiceMap;
|
|
|
@PostConstruct
|
|
@PostConstruct
|
|
@@ -903,6 +908,14 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService {
|
|
|
if (prescribeId != null) {
|
|
if (prescribeId != null) {
|
|
|
redisCache.setCacheObject("collectionPrescribeId:" + prescribeId, collection);
|
|
redisCache.setCacheObject("collectionPrescribeId:" + prescribeId, collection);
|
|
|
}
|
|
}
|
|
|
|
|
+ DoctorMsg msg = new DoctorMsg();
|
|
|
|
|
+ String name = collection.getUserName() != null ? collection.getUserName() : "-";
|
|
|
|
|
+ msg.setTitle("用户信息采集开方");
|
|
|
|
|
+ msg.setType(1);
|
|
|
|
|
+ msg.setContent("患者:" + name + "的信息采集,前往开方");
|
|
|
|
|
+ msg.setDoctorId(collection.getDoctorId());
|
|
|
|
|
+ msg.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
+ doctorMsgMapper.insertDoctorMsg(msg);
|
|
|
}
|
|
}
|
|
|
order.setStatus(2);
|
|
order.setStatus(2);
|
|
|
order.setPayDelivery(packageOrder.getPayDelivery());
|
|
order.setPayDelivery(packageOrder.getPayDelivery());
|