优化采购统计和销售统计的查询逻辑

This commit is contained in:
季圣华
2023-03-09 21:37:13 +08:00
parent 336d818eca
commit bf8d660367
4 changed files with 63 additions and 29 deletions

View File

@@ -30,7 +30,7 @@ public interface DepotItemMapperEx {
@Param("remark") String remark);
List<DepotItemVo4DetailByTypeAndMId> findDetailByDepotIdsAndMaterialIdList(
@Param("depotIdArray") String[] depotIdArray,
@Param("depotIdArray") Long[] depotIdArray,
@Param("sku") String sku,
@Param("batchNumber") String batchNumber,
@Param("number") String number,
@@ -41,7 +41,7 @@ public interface DepotItemMapperEx {
@Param("rows") Integer rows);
Long findDetailByDepotIdsAndMaterialIdCount(
@Param("depotIdArray") String[] depotIdArray,
@Param("depotIdArray") Long[] depotIdArray,
@Param("sku") String sku,
@Param("batchNumber") String batchNumber,
@Param("number") String number,
@@ -68,6 +68,7 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("depotList") List<Long> depotList,
@Param("amountApprovalFlag") Boolean amountApprovalFlag,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
@@ -78,6 +79,7 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("depotList") List<Long> depotList,
@Param("amountApprovalFlag") Boolean amountApprovalFlag);
BigDecimal buyOrSaleNumber(
@@ -87,6 +89,7 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("depotList") List<Long> depotList,
@Param("sumType") String sumType);
BigDecimal buyOrSalePrice(
@@ -96,6 +99,7 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray,
@Param("depotList") List<Long> depotList,
@Param("sumType") String sumType);
BigDecimal inOrOutPrice(