package com.panzhihua.service_community.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO;
|
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCountDTO;
|
import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO;
|
import com.panzhihua.common.model.dtos.community.integral.admin.PageComActIntegralTradeDTO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_community.model.dos.ComActIntegralUserTradeDO;
|
|
/**
|
* @auther lyq
|
* @create 2021-07-28 16:03:18
|
* @describe 用户积分账户交易记录服务类
|
*/
|
public interface ComActIntegralUserTradeService extends IService<ComActIntegralUserTradeDO> {
|
|
/**
|
* 查询用户某个时间段交易数量
|
*
|
* @param integralCountDTO
|
* 请求参数
|
* @return 交易数量
|
*/
|
Integer getIntegralCount(ComActIntegralCountDTO integralCountDTO);
|
|
/**
|
* 添加用户积分交易记录
|
*
|
* @param userId
|
* 用户id
|
* @param integralId
|
* 积分账户id
|
* @param communityId
|
* 社区id
|
* @param serviceId
|
* 交易业务id
|
* @param serviceType
|
* 交易业务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.社区活动-居民身份参与 " +
|
* "5.社区活动-党员身份参与 6.社区活动-志愿者身份参与 7.参与调查问卷 8.取消活动 9.参与单位党员活动)
|
* @param amount
|
* 交易积分数量
|
* @param changeType
|
* 变动类型(1.增加 2.减少)
|
* @param remark
|
* 交易备注
|
* @param identityType
|
* 交易身份类型(1.居民 2.党员 3.志愿者)
|
* @param createBy
|
* 操作人id
|
*/
|
Long addIntegralTradeRecord(Long userId, Long integralId, Long communityId, Long serviceId, Integer serviceType,
|
Integer amount, Integer changeType, String remark, Integer identityType, Long createBy);
|
|
/**
|
* 小程序-查询用户社区积分明细
|
*
|
* @param communityTradeDTO
|
* 请求参数
|
* @return 用户社区积分明细
|
*/
|
R getIntegralCommunityTradeApplets(ComActIntegralCommunityRankDTO communityTradeDTO);
|
|
/**
|
* 社区后台-分页查询社区下积分明细记录
|
*
|
* @param integralRuleDTO
|
* 请求参数
|
* @return 社区下积分明细记录
|
*/
|
R getIntegralTradeListAdmin(PageComActIntegralTradeDTO integralRuleDTO);
|
|
/**
|
* 给用户添加积分
|
*
|
* @param integralUserDTO
|
* 请求参数
|
* @return 添加积分结果
|
*/
|
R addIntegralTradeAdmin(AddComActIntegralUserDTO integralUserDTO);
|
|
/**
|
* 获取积分详情
|
* @param id
|
* @return
|
*/
|
R getUserIntegralDetail(Long id);
|
}
|