| | |
| | | } |
| | | |
| | | // 每日上限校验(分别校验) |
| | | if (applyUser && userRule.getIsLimit() != null && userRule.getIsLimit() == 0) { |
| | | if (applyUser && userRule.getIsLimit() != null && userRule.getIsLimit() == 1) { |
| | | checkDailyLimitByRule(userId, unitId, userRule, userPointsChange); |
| | | } |
| | | if (applyProvider && providerRule.getIsLimit() != null && providerRule.getIsLimit() == 0) { |
| | | if (applyProvider && providerRule.getIsLimit() != null && providerRule.getIsLimit() == 1) { |
| | | checkDailyLimitByRule(providerId, providerId, providerRule, providerPointsChange); |
| | | } |
| | | |
| | |
| | | QueryWrapper<PointsFlow> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("deleted", 0) |
| | | .eq("user_id", userId) |
| | | .eq("unit_id", unitId) |
| | | // .eq("data_category", pointsRule.getRuleName()) |
| | | .eq("rule_id",pointsRule.getId()) |
| | | .eq("data_type", 0) |
| | | .ge("flow_time", startOfDay) |
| | | .le("flow_time", endOfDay); |
| | | if(StringUtils.hasText(unitId)){ |
| | | wrapper.eq("unit_id", unitId); |
| | | } |
| | | |
| | | List<PointsFlow> todayFlows = list(wrapper); |
| | | |