2024-02-14 12:10:15 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ai.da.common.enums.OrderStatusEnum;
|
2024-11-18 16:20:25 +08:00
|
|
|
import com.ai.da.common.enums.ProductEnum;
|
2024-03-15 15:38:56 +08:00
|
|
|
import com.ai.da.common.response.PageBaseResponse;
|
2024-02-20 10:35:50 +08:00
|
|
|
import com.ai.da.mapper.primary.entity.OrderInfo;
|
2024-03-15 15:38:56 +08:00
|
|
|
import com.ai.da.model.dto.QueryPageByTimeDTO;
|
2024-02-14 12:10:15 +08:00
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public interface OrderInfoService extends IService<OrderInfo> {
|
|
|
|
|
|
2024-03-06 20:56:22 +08:00
|
|
|
OrderInfo createOrderByProductId(Integer productId, String paymentType);
|
2024-02-14 12:10:15 +08:00
|
|
|
|
2024-11-18 16:20:25 +08:00
|
|
|
OrderInfo createOrderByProductId(Integer amount, String paymentType, ProductEnum product);
|
|
|
|
|
|
2024-02-14 12:10:15 +08:00
|
|
|
void saveCodeUrl(String orderNo, String codeUrl);
|
|
|
|
|
|
|
|
|
|
List<OrderInfo> listOrderByCreateTimeDesc();
|
|
|
|
|
|
|
|
|
|
void updateStatusByOrderNo(String orderNo, OrderStatusEnum orderStatus);
|
|
|
|
|
|
|
|
|
|
String getOrderStatus(String orderNo);
|
|
|
|
|
|
|
|
|
|
List<OrderInfo> getNoPayOrderByDuration(int minutes, String paymentType);
|
|
|
|
|
|
|
|
|
|
OrderInfo getOrderByOrderNo(String orderNo);
|
2024-03-01 17:31:26 +08:00
|
|
|
|
2024-03-15 15:38:56 +08:00
|
|
|
PageBaseResponse<OrderInfo> getOrderByPage(QueryPageByTimeDTO queryPageByTimeDTO);
|
2024-03-01 17:31:26 +08:00
|
|
|
|
|
|
|
|
void updateOrderNoById(Long id, String orderNo);
|
2024-11-18 16:20:25 +08:00
|
|
|
|
|
|
|
|
void updateTotalFeeByOrderNo(String orderNo);
|
|
|
|
|
|
2024-02-14 12:10:15 +08:00
|
|
|
}
|