1.代客下单 存单保存备注
This commit is contained in:
parent
f6e473b8bb
commit
f9931b50ea
|
|
@ -16,4 +16,5 @@ public class PendingDTO {
|
|||
@NotNull
|
||||
private Boolean isPending;
|
||||
private Integer orderId;
|
||||
private String note;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public interface TbCashierCartMapper extends BaseMapper<TbCashierCart> {
|
|||
List<CarVO> selectCar(@Param("shopId") Integer shopId);
|
||||
|
||||
@Select(" SELECT order_id orderId, pending_at, sum(total_amount) totalAmount, count(id) totalCount, sum(total_number) totalNumber from tb_cashier_cart where status = 'refund' and shop_id=#{shopId} and table_id=#{tableId} " +
|
||||
" GROUP BY order_id ORDER BY trade_day")
|
||||
" GROUP BY order_id ORDER BY id desc")
|
||||
List<PendingCountVO> countPending(@Param("shopId") Integer shopId, @Param("tableId") String tableId);
|
||||
|
||||
@Select("select a.*, b.spec_snap from tb_cashier_cart as a left join tb_product_sku as b on a.sku_id=b.id where a.shop_id=#{shopId} and a.status='refund';")
|
||||
|
|
|
|||
|
|
@ -985,6 +985,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
createOrderDTO.setShopId(pendingDTO.getShopId());
|
||||
createOrderDTO.setMasterId(pendingDTO.getMasterId());
|
||||
createOrderDTO.setVipUserId(pendingDTO.getVipUserId());
|
||||
createOrderDTO.setNote(pendingDTO.getNote());
|
||||
orderId = createOrder(createOrderDTO, true).getId();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue