修改发起拼单的逻辑
This commit is contained in:
parent
09c94fccfc
commit
25c0586d55
@ -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));
|
||||
}
|
||||
/**
|
||||
* 修改订单信息
|
||||
|
@ -82,5 +82,5 @@ public interface IPOrderService
|
||||
* @param pOrder 订单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public AjaxResult takeOrder(POrder pOrder);
|
||||
public int takeOrder(POrder pOrder);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user