修改发起拼单的逻辑

This commit is contained in:
keivn 2021-12-30 23:37:11 +08:00
parent b590ec9677
commit 09c94fccfc
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ public class IPCommonServiceImpl implements IPCommonService {
logger.info("订单:" + orderNum+" 已经有司机接单,请联系司机。");
return AjaxResult.error("订单已经有司机接单,请联系司机。");
}else {
/*校验是否可以取消*/
Map<String , Integer> info = pCommonMapper.queryOrderMemberStateByOpenId(commonVO);
if(info != null && info.get("state") == 0){

View File

@ -42,8 +42,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectPOrderVo">
select
id, order_num, departure, destination, departure_time, member, state,creater_name,creater_phone,creater_openid
isDelete, create_user, create_time, update_user, update_time
id, order_num, departure, destination, departure_time, member,state,creater_openid,isDelete,creater_name,creater_phone ,
driver_id, create_user, create_time, update_user, update_time ,driver_open_id
from p_order
</sql>