xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.nuvole.four.mapper;
 
import com.nuvole.four.domain.ActivityFee;
import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto;
import com.nuvole.four.domain.query.ActivityFeeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
/**
 * @Description 费率补贴活动Mapper
 * @Author dqh
 * @Date 2024-04-13 21:33:08
 */
@Mapper
public interface ActivityFeeMapper {
    int deleteByPrimaryKey(Long id);
 
    int insert(ActivityFee record);
 
    int insertSelective(ActivityFee record);
 
    ActivityFee selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(ActivityFee record);
 
    int updateByPrimaryKey(ActivityFee record);
 
    /**
     * 查询列表
     *
     * @param query
     * @return 查询结果
     */
    List<ActivityFee> selectList(ActivityFeeQuery query);
 
    /**
     * 方法描述: 查询活动表的额度
     *
     * @date  2024-04-14 15:25
     **/
    List<ActivityDistributeBudgetDto> getActivityFeeDetail(Long orgId);
 
    /**
     * 方法描述: 根据活动id,orgId查询活动
     *
     * @date  2024-04-17 10:15
     **/
    @Select("select * from activity_fee where id = #{activityId} and org_id = #{orgId}")
    ActivityFee getActivityFeeByIdAndOrgId(@Param("activityId") Long activityId,@Param("orgId") Long orgId);
 
    /**
     * 方法描述: 查询活动列表(包含已分配的)
     * 根据orgId进行权限列表控制
     *
     * @date  2024-04-22 10:57
     **/
    List<ActivityFee> selectActivityWithDistribute(ActivityFeeQuery query);
}