进一步优化账户统计的查询逻辑

This commit is contained in:
季圣华
2023-10-20 19:36:37 +08:00
parent 7bc3ccd183
commit 8d835431a7
4 changed files with 83 additions and 130 deletions

View File

@@ -1,7 +1,7 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Account;
import com.jsh.erp.datasource.entities.AccountExample;
import com.jsh.erp.datasource.entities.DepotHead;
import com.jsh.erp.datasource.vo.AccountVo4InOutList;
import com.jsh.erp.datasource.vo.AccountVo4List;
import org.apache.ibatis.annotations.Param;
@@ -40,6 +40,18 @@ public interface AccountMapperEx {
@Param("endTime") String endTime,
@Param("forceFlag") Boolean forceFlag);
BigDecimal getAccountSumByDetail(
@Param("accountId") Long accountId,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("forceFlag") Boolean forceFlag);
List<DepotHead> getManyAccountSum(
@Param("accountId") Long accountId,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("forceFlag") Boolean forceFlag);
List<AccountVo4InOutList> findAccountInOutList(
@Param("accountId") Long accountId,
@Param("offset") Integer offset,