123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- package com.fjhx.claim.mapper;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.fjhx.claim.entity.Claim;
- import org.apache.ibatis.annotations.Param;
- import org.springblade.core.tenant.annotation.TenantIgnore;
- import java.math.BigDecimal;
- import java.util.List;
- import java.util.Map;
- /**
- * 到账认领
- */
- public interface ClaimMapper extends BaseMapper<Claim> {
- /**
- * 列表
- *
- * @param condition
- * @return
- */
- @TenantIgnore
- List<Claim> getList(Map<String, Object> condition);
- /**
- * 列表-总条数
- *
- * @param condition
- * @return
- */
- @TenantIgnore
- Integer getListCount(Map<String, Object> condition);
- /**
- * 通过合同id判断是否是首次认领
- *
- * @param contractId 合同id
- * @return
- */
- Integer getIsFirstClaim(@Param("contractId") String contractId);
- /**
- * 通过合同id查询已认领总金额
- *
- * @param contractId 合同id
- * @return
- */
- BigDecimal getClaimAmountByContractId(@Param("contractId") String contractId);
- /**
- * 修改认领数据
- *
- * @param claim
- */
- void updateClaimById(Claim claim);
- /**
- * 根据用户ID查询款项已结清的合同数据
- *
- * @param userIds 业务员ID
- * @param year 年度
- * @return
- */
- @TenantIgnore
- List<Claim> getByUserIds(@Param("userIds") List<String> userIds, @Param("year") String year);
- List<Map<String, Object>> getListSum(Map<String, Object> condition);
- }
|