32 lines
992 B
Java
32 lines
992 B
Java
package com.meiruo.cosmetics.mapper;
|
|
|
|
import com.meiruo.cosmetics.entity.Order;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Mapper
|
|
public interface OrderMapper {
|
|
|
|
Order selectById(@Param("id") Long id);
|
|
|
|
Order selectByOrderNo(@Param("orderNo") String orderNo);
|
|
|
|
List<Order> selectByUserId(@Param("userId") Long userId, @Param("status") Integer status);
|
|
|
|
List<Order> selectList(@Param("keyword") String keyword, @Param("status") Integer status);
|
|
|
|
int insert(Order order);
|
|
|
|
int update(Order order);
|
|
|
|
int updateStatus(@Param("id") Long id, @Param("status") Integer status);
|
|
|
|
int shipOrder(@Param("id") Long id, @Param("logisticsCompany") String logisticsCompany, @Param("trackingNo") String trackingNo);
|
|
|
|
List<Map<String, Object>> selectRevenueStatistics(@Param("type") String type);
|
|
|
|
List<Map<String, Object>> selectTopProducts(@Param("limit") Integer limit);
|
|
}
|