feat: 在线支付订单提交后,不支付的,师傅端点接单键提示(待支付后再接单)

This commit is contained in:
Yifei Kuang 2024-12-01 16:37:47 +08:00
parent ff366f9ec5
commit a13ac431dc
1 changed files with 8 additions and 0 deletions

View File

@ -1397,6 +1397,14 @@ public class OrderMasterController extends BaseController {
}catch (Exception e){ }catch (Exception e){
logger.error("下单报错:" + ExceptionUtils.getMessage(e)); logger.error("下单报错:" + ExceptionUtils.getMessage(e));
} }
// 判断是否是在线支付订单--如果是在线支付,且未付款,则需要提示支付后接单
if(PayTypeEnum.WX_LITE.getCode().equals(model.getPayType())){
// 查询财务信息
FinancialMaster financialMaster = financialMasterService.selectByOrderMasterId(model.getId());
if(!PayStatus.PAID.getCode().equals(financialMaster.getPayStatus())){
return AjaxResult.error("待支付后再接单!");
}
}
} }
return AjaxResult.success(""); return AjaxResult.success("");
} catch (Exception e) { } catch (Exception e) {