| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.domain.TOrderSale; |
| | | import com.ruoyi.system.export.SumGeneratorClient; |
| | | import com.ruoyi.system.export.SumGeneratorDetailClient; |
| | | import com.ruoyi.system.query.*; |
| | | import com.ruoyi.system.vo.*; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | * @author xiaochen |
| | | * @since 2024-08-14 |
| | | */ |
| | | @Mapper |
| | | public interface TOrderSaleMapper extends BaseMapper<TOrderSale> { |
| | | |
| | | /** |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | AmountSumVO amountSum(@Param("query") TOrderMealQuery query); |
| | | AmountSumVO amountSum(@Param("query") TOrderSaleQuery query); |
| | | |
| | | /** |
| | | * 查询销售销售量统计 |
| | |
| | | * @return |
| | | */ |
| | | List<TDataGeneratorVO> saleGeneratorListExport(@Param("query")TDataGeneratorQuery query); |
| | | |
| | | /** |
| | | * 销售利润详情列表 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<GoodsProfitVO> profitDetails(@Param("query")ProfitDetailsQuery query, @Param("pageInfo")PageInfo<GoodsProfitVO> pageInfo); |
| | | |
| | | /** |
| | | * 查询利润详情统计 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Map<String, Double> profitDetailsStatistics(@Param("query")ProfitDetailsQuery query); |
| | | |
| | | /** |
| | | * 导出 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | List<GoodsProfitVO> profitDetailsExport(@Param("query")ProfitDetailsQuery query); |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(@Param("shopId")Long shopId); |
| | | |
| | | Map<String, Double> getDataGeneratorSaleDetailOrderMoney(@Param("query")TDataGeneratorSaleQuery query); |
| | | |
| | | /** |
| | | * 导出汇总 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | List<SumGeneratorDetailClient> sumExport(@Param("query") ProfitDetailsQuery query); |
| | | } |