修改发起拼单的逻辑

This commit is contained in:
keivn 2021-12-30 23:53:57 +08:00
parent 09c94fccfc
commit 25c0586d55
3 changed files with 5 additions and 6 deletions

View File

@ -102,7 +102,7 @@ public class POrderController extends BaseController
@PostMapping("/takeOrder")
public AjaxResult takeOrder(@RequestBody POrder pOrder)
{
return pOrderService.takeOrder(pOrder);
return toAjax(pOrderService.takeOrder(pOrder));
}
/**
* 修改订单信息

View File

@ -82,5 +82,5 @@ public interface IPOrderService
* @param pOrder 订单信息
* @return 结果
*/
public AjaxResult takeOrder(POrder pOrder);
public int takeOrder(POrder pOrder);
}

View File

@ -181,12 +181,11 @@ public class POrderServiceImpl implements IPOrderService
* @return 结果
*/
@Override
public AjaxResult takeOrder(POrder pOrder)
public int takeOrder(POrder pOrder)
{
// String driverOpenId = pOrder.getDriverOpenId();
pOrder.setIsTake("1");
pOrderMapper.takeOrderById(pOrder);
return null ;
return pOrderMapper.takeOrderById(pOrder);
}