| | |
| | | for(YdProductVo ydProductVo : records){ |
| | | ydProductVo.setProfitT(prifitT); |
| | | |
| | | if(ydProductVo.getTotalT().compareTo(BigDecimal.ZERO) < 1) { |
| | | if(ydProductVo.getSurplusT().compareTo(BigDecimal.ZERO) < 1) { |
| | | ydProductVo.setStatus(2); |
| | | } |
| | | } |
| | |
| | | Date endTime = DateUtil.offsetDay(workTime, proCycle); |
| | | ydProductVo.setEndTime(endTime); |
| | | |
| | | if (ydProductVo.getTotalT().compareTo(BigDecimal.ZERO) < 1) { |
| | | if (ydProductVo.getSurplusT().compareTo(BigDecimal.ZERO) < 1) { |
| | | ydProductVo.setStatus(2); |
| | | } else { |
| | | ydProductVo.setStatus(1); |
| | | } |
| | | return Result.ok(ydProductVo); |
| | | } |
| | |
| | | "USDT", 1, 3, ydOrderEntity.getId()); |
| | | |
| | | yunDingProducter.sendYunDingUsdtProfit(ydOrderEntity.getId()); |
| | | yunDingProducter.sendYunDingAutoAgent(ydOrderEntity.getMemberId()); |
| | | return Result.ok("支付成功"); |
| | | } |
| | | |
| | |
| | | |
| | | memberEntity.setAgentLevel(id.intValue()); |
| | | LoginUserUtils.resetAppLoginUser(memberEntity); |
| | | yunDingProducter.sendYunDingAutoAgent(memberId); |
| | | yunDingProducter.sendYunDingUsdtProfit(orderEntity.getId()); |
| | | return Result.ok("购买成功"); |
| | | } |