package com.imed.costaccount.mapper; import com.imed.costaccount.model.Allocation; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.imed.costaccount.model.vo.AfterAllocationVO; 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-24 16:05:16 */ @Mapper public interface AllocationMapper extends BaseMapper { /** * 分摊后查询列表 * @param dateYear 年 * @param dateMonth 月 * @param responsibilityCode 责任中心 * @param startIndex 开始索引 * @param pageSize 页数 * @param hospId 医院id * @return List */ List queryAfterAllocationList(@Param("dateYear") Integer dateYear, @Param("dateMonth") Integer dateMonth, @Param("responsibilityCode") String responsibilityCode, @Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize, Long hospId); /** * 总数 * @param dateYear 年 * @param dateMonth 月 * @param responsibilityCode 责任中心 * @param hospId 医院id * @return 总数 */ int queryAfterAllocationListCount(@Param("dateYear") Integer dateYear, @Param("dateMonth") Integer dateMonth, @Param("responsibilityCode") String responsibilityCode, @Param("hospId") Long hospId); /** * 总金额 * @param dateYear 年 * @param dateMonth 月 * @param responsibilityCode 责任中心 * @param hospId 医院id * @return 总数 */ BigDecimal queryAfterAllocationListSum(@Param("dateYear") Integer dateYear, @Param("dateMonth") Integer dateMonth, @Param("responsibilityCode") String responsibilityCode, @Param("hospId") Long hospId); }