package com.imed.costaccount.mapper; import com.imed.costaccount.model.IncomeCollection; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.imed.costaccount.model.dto.CollectDTO; import com.imed.costaccount.model.vo.CodeAndNameVO; import com.imed.costaccount.model.vo.CollectedVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.math.BigDecimal; import java.util.List; /** * 归集后列表 * * @author huangrui * @date 2021-08-09 15:26:28 */ @Mapper public interface IncomeCollectionMapper extends BaseMapper { /** * 分页List * * @param collectDTO {@link CollectDTO} * @return {@link CollectedVO} */ List getCollectList(@Param("collectDTO") CollectDTO collectDTO); /** * 总数 * @param collectDTO {@link CollectDTO} * @return */ int getCollectListCount(@Param("collectDTO") CollectDTO collectDTO); /** * 计算总金额 * @param collectDTO {@link CollectDTO} * @return */ BigDecimal getTotalAmount(@Param("collectDTO") CollectDTO collectDTO); /** * 纵向计算所有的amount * @param responsibilityCode * @param accountingCodes * @param hospId * @param date * @return */ BigDecimal getCountByResponseAndAccounts(@Param("responsibilityCode") String responsibilityCode, @Param("accountingCodes") List accountingCodes, @Param("hospId") Long hospId, @Param("date") String date); List getResponsibility(@Param("hospId") Long hospId, @Param("responsibilityCode") String responsibilityCode, @Param("date") String date); List getAccount(@Param("hospId") Long hospId, @Param("date") String date); BigDecimal getCountAccountAndResponsibilities(@Param("hospId") Long hospId, @Param("date") String date, @Param("code") String code, @Param("responsibilityCodes") List responsibilityCodes); BigDecimal getCountByResponsibilitiesAndAccounts(@Param("responsibilityCodes") List responsibilityCodes, @Param("accountingCodes") List accountingCodes, @Param("hospId") Long hospId, @Param("date") String date); }