袁野 3 weeks ago
parent 5adf7c3718
commit 1714892f3f
  1. 4
      bweb/src/main/java/com/hfkj/controller/partner/PartnerController.java
  2. 2
      service/src/main/java/com/hfkj/service/partner/Impl/BsPartnerUserRecordServiceImpl.java
  3. 4
      service/src/main/java/com/hfkj/service/partner/Impl/PartnerServiceImpl.java
  4. 2
      service/src/main/java/com/hfkj/service/partner/PartnerService.java

@ -31,8 +31,8 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Controller @Controller
@RequestMapping(value = "/partner") @RequestMapping(value = "/partnerData")
@Api(value = "合伙人") @Api(value = "合伙人统计")
public class PartnerController { public class PartnerController {
private static final Logger log = LoggerFactory.getLogger(PartnerController.class); private static final Logger log = LoggerFactory.getLogger(PartnerController.class);

@ -96,6 +96,6 @@ public class BsPartnerUserRecordServiceImpl implements BsPartnerUserRecordServic
if (MapUtils.getInteger(map, "status") != null) { if (MapUtils.getInteger(map, "status") != null) {
criteria.andStatusEqualTo(MapUtils.getInteger(map, "status")); criteria.andStatusEqualTo(MapUtils.getInteger(map, "status"));
} }
return Collections.emptyList(); return bsPartnerUserRecordMapper.selectByExample(example);
} }
} }

@ -417,7 +417,7 @@ public class PartnerServiceImpl implements PartnerService {
} }
@Override @Override
public JSONObject dividendData(Long startTime, Long endTime) throws Exception { public List<JSONObject> dividendData(Long startTime, Long endTime) throws Exception {
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("startTime", startTime); params.put("startTime", startTime);
params.put("endTime", endTime); params.put("endTime", endTime);
@ -433,7 +433,7 @@ public class PartnerServiceImpl implements PartnerService {
goodObject.put("dividendGoldCoin", pres.stream().map(BsPartnerUserRecord::getGoldCoin).reduce(BigDecimal.ZERO, BigDecimal::add)); goodObject.put("dividendGoldCoin", pres.stream().map(BsPartnerUserRecord::getGoldCoin).reduce(BigDecimal.ZERO, BigDecimal::add));
return goodObject; return goodObject;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return null; return countRecords;
} }
// 竞选成功返利 // 竞选成功返利

@ -53,5 +53,5 @@ public interface PartnerService {
* @Author: Sum1Dream * @Author: Sum1Dream
* @Date: 2024/10/18 下午2:25 * @Date: 2024/10/18 下午2:25
*/ */
JSONObject dividendData(Long startTime, Long endTime) throws Exception; List<JSONObject> dividendData(Long startTime, Long endTime) throws Exception;
} }

Loading…
Cancel
Save