批量修改订单状态
parent
11f69ca5f0
commit
6df5c5d556
|
|
@ -409,6 +409,15 @@ public class BizOrderController extends BaseController {
|
|||
return toAjax(bizOrderService.deleteBizOrderByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改订单状态为已完成
|
||||
*/
|
||||
@Log(title = "订单", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/orderStatus/update/{ids}")
|
||||
public AjaxResult updateOrderStatus(@PathVariable Long[] ids) {
|
||||
return toAjax(bizOrderService.updateOrderStatus(ids));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 去配送
|
||||
|
|
|
|||
|
|
@ -78,4 +78,6 @@ public interface IBizOrderService
|
|||
public int arrived(Map map);
|
||||
|
||||
Map<String,Long> getOrderStaticsByDriver();
|
||||
|
||||
public int updateOrderStatus(Long[] ids);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -486,6 +486,20 @@ public class BizOrderServiceImpl implements IBizOrderService {
|
|||
return bizOrderMapper.update(null, updateWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改订单状态
|
||||
* @param ids 订单id
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOrderStatus(Long[] ids) {
|
||||
UpdateWrapper<BizOrder> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.in("id", (Object[]) ids);
|
||||
updateWrapper.set("order_status", "3"); //状态改为已完成
|
||||
return bizOrderMapper.update(null, updateWrapper);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除订单信息
|
||||
*
|
||||
|
|
@ -758,7 +772,6 @@ public class BizOrderServiceImpl implements IBizOrderService {
|
|||
bizOrder.setOrderSn(orderSn);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int goDelivery(Map map){
|
||||
BizDriver bizDriver = bizDriverMapper.selectByUserId(SecurityUtils.getUserId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue