| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.webmanage.common.PageResult; |
| | | import com.webmanage.dto.AddPointsFlowDTO; |
| | | import com.webmanage.dto.DeductUserPointsDTO; |
| | | import com.webmanage.dto.PointsFlowQueryDTO; |
| | | import com.webmanage.entity.PointsFlow; |
| | | import com.webmanage.entity.UserPoints; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | List<PointsFlow> getPointsFlowByUnitId(Long unitId); |
| | | |
| | | /** |
| | | * 记录积分流水 |
| | | */ |
| | | boolean recordPointsFlow(Long userId, Long unitId, String flowType, String pointsSource, |
| | | Integer pointsValue, String orderId, String description); |
| | | |
| | | /** |
| | | * 新增积分流水(根据规则自动计算) |
| | |
| | | boolean addPointsFlowByRule(AddPointsFlowDTO addPointsFlowDTO); |
| | | |
| | | /** |
| | | * 扣减用户积分 |
| | | */ |
| | | boolean deductUserPoints(DeductUserPointsDTO deductDTO); |
| | | |
| | | /** |
| | | * 获取用户积分统计 |
| | | */ |
| | | Integer getUserPointsTotal(Long userId); |
| | | UserPoints getUserPointsTotal(String userId); |
| | | |
| | | /** |
| | | * 获取单位积分统计 |
| | | */ |
| | | Integer getUnitPointsTotal(Long unitId); |
| | | UserPoints getUnitPointsTotal(Long unitId); |
| | | |
| | | /** |
| | | * 获取积分流水数据类目列表 |
| | | */ |
| | | List<String> getPointsFlowCategories(); |
| | | } |