1.代客下单,支付,挂起,下单接口开发
This commit is contained in:
@@ -2,9 +2,20 @@ package cn.ysk.cashier.mybatis.mapper;
|
||||
|
||||
import cn.ysk.cashier.mybatis.entity.Activate;
|
||||
import cn.ysk.cashier.pojo.order.TbCashierCart;
|
||||
import cn.ysk.cashier.vo.CarVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbCashierCartMapper extends BaseMapper<TbCashierCart> {
|
||||
|
||||
|
||||
@Select("select table_id tableId,user_id userId, shop_Id as shopId,master_id as masterId,uuid,\n" +
|
||||
" TRIM(TRAILING ', ' FROM GROUP_CONCAT(name ORDER BY id SEPARATOR ', ')) AS productName,\n" +
|
||||
" pending_at as pendingAt,\n" +
|
||||
" ifnull(sum(total_amount),0) as totalAmount\n" +
|
||||
" from tb_cashier_cart where table_id is not null and shop_id = #{shopId} and status = 'refund' group by shop_Id, master_id order by trade_day desc")
|
||||
List<CarVO> selectCar(@Param("shopId") Integer shopId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user