挂单报错fix
This commit is contained in:
@@ -21,6 +21,17 @@ public interface TbCashierCartMapper extends BaseMapper<TbCashierCart> {
|
||||
List<CarVO> selectCar(@Param("shopId") Integer shopId);
|
||||
|
||||
|
||||
@Select("<script> select\n" +
|
||||
" a.id orderId,b.pending_at pendingAt, sum(b.total_amount) totalAmount,\n" +
|
||||
" count(b.id) totalCount, sum(b.total_number) totalNumber, a.remark\n" +
|
||||
" from tb_order_info a\n" +
|
||||
" JOIN tb_cashier_cart b on a.id=b.order_id\n" +
|
||||
" where a.shop_id=#{shopId} and a.`status`='pending'\n" +
|
||||
" and a.trade_day=#{day} and a.use_type=#{useType}\n" +
|
||||
" <if test=\"tableId != null and tableId != ''\">\n" +
|
||||
" and a.table_id=#{tableId}\n" +
|
||||
" </if>\n" +
|
||||
" GROUP BY a.id ORDER BY a.id desc</script>")
|
||||
List<PendingCountVO> countPending(@Param("shopId") Integer shopId, @Param("tableId") String tableId, @Param("day") String day, @Param("useType") String useType);
|
||||
|
||||
@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';")
|
||||
|
||||
Reference in New Issue
Block a user