优化首页的统计接口,提高查询速度

This commit is contained in:
jishenghua
2024-04-27 00:58:11 +08:00
parent 4fe3408a25
commit a6334c7345
9 changed files with 233 additions and 212 deletions

View File

@@ -241,18 +241,7 @@ public interface DepotHeadMapperEx {
List<DepotHead> getDepotHeadListByCreator(@Param("creatorArray") String[] creatorArray);
BigDecimal getBuyAndSaleBasicStatistics(
@Param("type") String type,
@Param("subType") String subType,
@Param("hasSupplier") Integer hasSupplier,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("forceFlag") Boolean forceFlag);
BigDecimal getBuyAndSaleRetailStatistics(
@Param("type") String type,
@Param("subType") String subType,
List<InOutPriceVo> getBuyAndSaleStatisticsList(
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,

View File

@@ -4,6 +4,7 @@ import com.jsh.erp.datasource.entities.*;
import com.jsh.erp.datasource.vo.DepotItemStockWarningCount;
import com.jsh.erp.datasource.vo.DepotItemVo4Stock;
import com.jsh.erp.datasource.vo.DepotItemVoBatchNumberList;
import com.jsh.erp.datasource.vo.InOutPriceVo;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
@@ -133,17 +134,7 @@ public interface DepotItemMapperEx {
@Param("depotList") List<Long> depotList,
@Param("forceFlag") Boolean forceFlag);
BigDecimal inOrOutPrice(
@Param("type") String type,
@Param("subType") String subType,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("forceFlag") Boolean forceFlag);
BigDecimal inOrOutRetailPrice(
@Param("type") String type,
@Param("subType") String subType,
List<InOutPriceVo> inOrOutPriceList(
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,

View File

@@ -0,0 +1,27 @@
package com.jsh.erp.datasource.vo;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Author jishenghua
* @Date 2024-04-26 22:23
*/
@Data
public class InOutPriceVo {
private Long id;
private BigDecimal discountLastMoney;
private BigDecimal totalPrice;
private String type;
private String subType;
private Date operTime;
}