|
@@ -914,6 +914,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if (param.getCompanyCustomerId() != null) {
|
|
if (param.getCompanyCustomerId() != null) {
|
|
|
//预付金
|
|
//预付金
|
|
|
if (param.getPayType().equals("5")) {
|
|
if (param.getPayType().equals("5")) {
|
|
|
|
|
+ if (param.getPrepaidAmount() == null){
|
|
|
|
|
+ return R.error("支付方式为定金时,预付金额不能为空");
|
|
|
|
|
+ }
|
|
|
boolean b = param.getPrepaidAmount().compareTo(storeOrder.getTotalPrice()) >= 0;
|
|
boolean b = param.getPrepaidAmount().compareTo(storeOrder.getTotalPrice()) >= 0;
|
|
|
if (b) {
|
|
if (b) {
|
|
|
return R.error("定金不能大于等于订单总价");
|
|
return R.error("定金不能大于等于订单总价");
|
|
@@ -1677,7 +1680,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if (prescribeDataScrm == null){
|
|
if (prescribeDataScrm == null){
|
|
|
return R.error("处方信息为空,制单失败");
|
|
return R.error("处方信息为空,制单失败");
|
|
|
}
|
|
}
|
|
|
- if (prescribeDataScrm.getStatus()!=1||prescribeDataScrm.getDoctorConfirm()!=1){
|
|
|
|
|
|
|
+ if (prescribeDataScrm.getDoctorConfirm() != null && prescribeDataScrm.getDoctorConfirm() == 2) {
|
|
|
|
|
+ // 不做任何拦截
|
|
|
|
|
+ } else if (prescribeDataScrm.getStatus()!=1||prescribeDataScrm.getDoctorConfirm()!=1){
|
|
|
return R.error("关联处方还在开方中,请稍后刷新页面重试");
|
|
return R.error("关联处方还在开方中,请稍后刷新页面重试");
|
|
|
}
|
|
}
|
|
|
//创建订单后,重置客户信息表的流程状态为"待完善"
|
|
//创建订单后,重置客户信息表的流程状态为"待完善"
|