|
@@ -477,6 +477,7 @@ public class FsPackageOrderServiceImpl implements IFsPackageOrderService
|
|
|
return R.error("您正在咨询此医生,请先结束当前订单");
|
|
|
}
|
|
|
}
|
|
|
+ //私域下套餐包(可覆盖医生信息 使用销售绑定的医生信息)
|
|
|
if (fsPackage.getIsShow()==0){
|
|
|
if (param.getCompanyId()==null||param.getCompanyUserId()==null){
|
|
|
return R.error("商品信息过期");
|
|
@@ -485,7 +486,11 @@ public class FsPackageOrderServiceImpl implements IFsPackageOrderService
|
|
|
if (companyUser==null){
|
|
|
return R.error("商品信息过期");
|
|
|
}
|
|
|
+ //获取销售绑定医生
|
|
|
+ if (companyUser.getDoctorId() != null) {
|
|
|
+ doctor = doctorMapper.selectFsDoctorByDoctorId(companyUser.getDoctorId());
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -507,7 +512,11 @@ public class FsPackageOrderServiceImpl implements IFsPackageOrderService
|
|
|
order.setOrderSn(orderSn);
|
|
|
order.setStoreId(fsPackage.getStoreId());
|
|
|
order.setUserId(param.getUserId());
|
|
|
- order.setDoctorId(param.getDoctorId());
|
|
|
+ if (doctor != null) {
|
|
|
+ order.setDoctorId(doctor.getDoctorId());
|
|
|
+ } else {
|
|
|
+ order.setDoctorId(param.getDoctorId());
|
|
|
+ }
|
|
|
order.setPackageId(param.getPackageId());
|
|
|
order.setPackageName(fsPackage.getPackageName());
|
|
|
order.setTotalPrice(fsPackage.getTotalPrice());
|