代码BUG修改
This commit is contained in:
parent
fa0cac97c0
commit
f7d797490d
|
@ -1,6 +1,5 @@
|
|||
package com.alive.server;
|
||||
|
||||
import com.alive.server.service.TelegramServer;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -8,9 +7,6 @@ import org.springframework.beans.factory.annotation.Value;
|
|||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.telegram.telegrambots.meta.TelegramBotsApi;
|
||||
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
|
||||
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession;
|
||||
|
||||
|
||||
@Order(2) //通过order注解指定执行顺序
|
||||
|
|
|
@ -10,7 +10,6 @@ import com.alive.server.service.WalletService;
|
|||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.db.entity.Vo.UserVo;
|
||||
import com.alive.db.jooq.tables.pojos.TMemberPojo;
|
||||
import com.alive.db.jooq.tables.records.ActivityLogRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberRecord;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
@ -47,6 +46,7 @@ public class AccountController {
|
|||
@Autowired
|
||||
private WalletService walletService;
|
||||
|
||||
|
||||
@GetMapping("randomCode")
|
||||
@ApiOperation("获取钱包签名串")
|
||||
public UserVo randomCode(String account) {
|
||||
|
@ -174,7 +174,7 @@ public class AccountController {
|
|||
RedisUtil.setEx(redisKey, token, 30);
|
||||
}
|
||||
//校验一下是否有统计表
|
||||
walletService.verifyActivityStatisticsRecord(memberRecord.getAccount());
|
||||
//walletService.verifyActivityStatisticsRecord(memberRecord.getAccount());
|
||||
AccountSignInResp resp = new AccountSignInResp();
|
||||
resp.setToken(token);
|
||||
return resp;
|
||||
|
@ -212,7 +212,7 @@ public class AccountController {
|
|||
.where(T_MEMBER.ID.eq(referMember.getId())).execute();
|
||||
|
||||
//开始判断有没有做任务
|
||||
ActivityLogRecord activityLog = dslContext.selectFrom(ACTIVITY_LOG)
|
||||
/* ActivityLogRecord activityLog = dslContext.selectFrom(ACTIVITY_LOG)
|
||||
.where(ACTIVITY_LOG.ADDRESS.eq(tMemberRecord.getAccount())
|
||||
.and(ACTIVITY_LOG.CONFIG_TYPE.eq(9).and(ACTIVITY_LOG.TYPE.eq(1)))).fetchAny();
|
||||
if(activityLog != null){
|
||||
|
@ -222,7 +222,7 @@ public class AccountController {
|
|||
//开始增加奖励统计
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(activityLog.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(activityLog.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(activityLog.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(activityLog.getSuperiorAddress())).execute();
|
||||
}
|
||||
}*/
|
||||
map.put("result",tMemberRecord.getReferId().equals(0) ? false : true);
|
||||
return map;
|
||||
}
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.server.api.account.ActivityReq;
|
||||
import com.alive.server.api.account.ActivityTaskReq;
|
||||
import com.alive.server.api.account.UserInviteReq;
|
||||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.commons.model.BasePageReq;
|
||||
import com.alive.db.entity.Vo.ActivityOutcomeVo;
|
||||
import com.alive.db.entity.Vo.ActivityTaskVo;
|
||||
import com.alive.db.entity.Vo.InviteCountVo;
|
||||
import com.alive.db.entity.Vo.RankingSummaryVo;
|
||||
import com.alive.server.service.ActivityService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
@ -16,7 +10,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
|
@ -30,28 +23,6 @@ public class ActivityController {
|
|||
@Autowired
|
||||
private ActivityService activityService;
|
||||
|
||||
@GetMapping("findActivityList")
|
||||
@ApiOperation("查询活动列表")
|
||||
public ActivityOutcomeVo findActivityList(ActivityReq activityReq) {
|
||||
ActivityOutcomeVo activityOutcomeVo = new ActivityOutcomeVo();
|
||||
activityReq.setType(activityReq.getType() == null ? 1 : activityReq.getType());
|
||||
activityReq.setAddress(!StringUtils.isBlank(activityReq.getAddress()) ? activityReq.getAddress().toLowerCase() : null);
|
||||
activityOutcomeVo.setActivityConfigVos(activityService.findActivityList(activityReq));
|
||||
activityService.countActivity(activityOutcomeVo,activityReq);
|
||||
return activityOutcomeVo;
|
||||
}
|
||||
|
||||
@Login
|
||||
@PostMapping("startTheTask")
|
||||
@ApiOperation("开始活动任务")
|
||||
public ActivityTaskVo startTheTask(@RequestBody @Validated ActivityTaskReq activityTaskReq) {
|
||||
ActivityTaskVo activityOutcomeVo = new ActivityTaskVo();
|
||||
activityTaskReq.setAddress(!StringUtils.isBlank(activityTaskReq.getAddress()) ? activityTaskReq.getAddress().toLowerCase() : null);
|
||||
activityService.startTheTask(activityOutcomeVo,activityTaskReq);
|
||||
return activityOutcomeVo;
|
||||
}
|
||||
|
||||
|
||||
@Login
|
||||
@GetMapping("invitation")
|
||||
@ApiOperation("邀请页面")
|
||||
|
@ -63,11 +34,4 @@ public class ActivityController {
|
|||
return activityOutcomeVo;
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("ranking")
|
||||
@ApiOperation("排行榜")
|
||||
public RankingSummaryVo ranking(BasePageReq req, UserInviteReq userInviteReq) {
|
||||
userInviteReq.setAddress(!StringUtils.isBlank(userInviteReq.getAddress()) ? userInviteReq.getAddress().toLowerCase() : null);
|
||||
return activityService.ranking(req,userInviteReq);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.util.IntegerUtil;
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.server.config.DiscordConfig;
|
||||
import com.alive.server.dto.UserDto;
|
||||
import com.alive.server.service.DiscordService;
|
||||
import com.alive.server.service.MemberService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/api/discord")
|
||||
@Api(tags = "discord服务")
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
@CrossOrigin(origins = "*")
|
||||
public class DiscordController extends BaseComponent {
|
||||
|
||||
@Autowired
|
||||
private DiscordService discordService;
|
||||
|
||||
@Autowired
|
||||
private MemberService memberService;
|
||||
|
||||
/**
|
||||
* 授权回调地址
|
||||
* @param code
|
||||
* @param state
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("authorizationCallbacksToken")
|
||||
@ApiOperation("授权回调地址")
|
||||
public Map<String,Boolean> authorizationCallbacksToken(String code,String state) {
|
||||
//防止用户频繁请求授权
|
||||
String key = "AUTHORIZATIONCALLBACKSTOKEN"+state;
|
||||
Integer value = IntegerUtil.getInteger(RedisUtil.get(key),0);
|
||||
value = value + 1;
|
||||
//防止用户频繁请求授权
|
||||
RedisUtil.setEx(key,value.toString(),60 * 3);
|
||||
|
||||
Map<String,Boolean> map = new HashMap<>();
|
||||
try {
|
||||
state = state.toLowerCase();
|
||||
//根据code换取token
|
||||
discordService.getTokenByCode(code,state);
|
||||
if(memberService.countDiscordUser(state) != 0){
|
||||
UserDto userDto = discordService.findUser(state);
|
||||
//判断Discord是否已绑定
|
||||
discordService.bindUser(userDto.getId());
|
||||
memberService.renewalUserDiscord(state,userDto.getId());
|
||||
}
|
||||
map.put("result",true);
|
||||
}catch (Exception e){
|
||||
DiscordConfig.deleteAccessToken(state);
|
||||
DiscordConfig.deleteRefreshToken(state);
|
||||
Assert.isTrue(false,e.getMessage());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,9 +2,7 @@ package com.alive.server.api;
|
|||
|
||||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.db.entity.Vo.InvitationCodeVo;
|
||||
import com.alive.db.entity.Vo.InviteVo;
|
||||
import com.alive.server.service.MemberService;
|
||||
import com.alive.server.service.NodeSettingService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -13,8 +11,6 @@ import org.springframework.transaction.annotation.Isolation;
|
|||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 邀请相关数据
|
||||
*
|
||||
|
@ -28,27 +24,9 @@ import java.util.List;
|
|||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
public class InviteController
|
||||
{
|
||||
@Autowired
|
||||
private NodeSettingService nodeSettingService;
|
||||
|
||||
@Autowired
|
||||
private MemberService memberService;
|
||||
|
||||
|
||||
/*@Login
|
||||
@GetMapping("getNodeSetting")
|
||||
@ApiOperation("推荐人页面(废弃)")
|
||||
public UserInviteVo findUserInviteVo(){
|
||||
return nodeSettingService.findUserInviteVo();
|
||||
}*/
|
||||
|
||||
@Login
|
||||
@GetMapping("findInviteVoList")
|
||||
@ApiOperation("查询邀请列表")
|
||||
public List<InviteVo> findInviteVoList(){
|
||||
return nodeSettingService.findInviteVoList();
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("invitationCode")
|
||||
@ApiOperation("查询用户邀请码")
|
||||
|
|
|
@ -1,123 +0,0 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.server.api.account.PayNodeReq;
|
||||
import com.alive.server.api.account.PayNodeSmsReq;
|
||||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.commons.util.DateUtils;
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.db.entity.NodeSetting;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.NoticeOfPaymentVo;
|
||||
import com.alive.db.entity.Vo.WordNodeVo;
|
||||
import com.alive.server.service.NodeBuyLogService;
|
||||
import com.alive.server.service.NodeSettingService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 节点认购记录Controller
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/api/node")
|
||||
@Api(tags = "节点购买页面")
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
public class NodeBuyLogController
|
||||
{
|
||||
@Autowired
|
||||
private NodeSettingService nodeSettingService;
|
||||
|
||||
@Autowired
|
||||
private NodeBuyLogService nodeBuyLogService;
|
||||
|
||||
|
||||
@GetMapping("contractAddress")
|
||||
@ApiOperation("获取合约地址")
|
||||
public Map<String,String> contractAddress(){
|
||||
Map<String,String> map = new HashMap<>();
|
||||
String address = nodeSettingService.contractAddress();
|
||||
map.put("address",address);
|
||||
return map;
|
||||
}
|
||||
|
||||
@GetMapping("getNodeSetting")
|
||||
@ApiOperation("获取节点列表")
|
||||
public List<NodeSetting> getNodeSetting(){
|
||||
List<NodeSetting> nodeSettings = nodeSettingService.selectNodeSettingList(new NodeSetting().setStatus(1));
|
||||
return nodeSettings;
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("getOrderStateByHash")
|
||||
@ApiOperation("通过hash查询是否购买成功")
|
||||
public Map<String,String> getOrderTypeByHash(String hash){
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("nftIds", RedisUtil.get(hash));
|
||||
return map;
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("getWOrdNodePro")
|
||||
@ApiOperation("查询我的盒子")
|
||||
public List<WordNodeVo> getWOrdNodePro(){
|
||||
List<WordNodeVo> nodeVoList = nodeSettingService.getWOrdNodePro();
|
||||
for (WordNodeVo vo : nodeVoList){
|
||||
vo.setSpecialAmount("0");
|
||||
Date date = DateUtils.stringByDate("2024-05-07 23:59:59");
|
||||
Date datePas = DateUtils.stringByDate(vo.getCreateTime());
|
||||
if(datePas.getTime() < date.getTime()){
|
||||
vo.setSpecialAmount("38000");
|
||||
}else{
|
||||
vo.setSpecialAmount("10000");
|
||||
}
|
||||
}
|
||||
return nodeVoList;
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("getWOrdNode")
|
||||
@ApiOperation("查询我的盒子(原接口)")
|
||||
public WordNodeVo getWOrdNode(){
|
||||
return nodeBuyLogService.findWordNodeVo();
|
||||
}
|
||||
|
||||
@Login
|
||||
@PostMapping("pay_node")
|
||||
@ApiOperation("节点下单")
|
||||
public NodeBuyLog payNode(@RequestBody @Validated PayNodeReq req){
|
||||
NodeSetting nodeSetting = nodeSettingService.selectNodeSettingById(req.getNodeId());
|
||||
Assert.isTrue(nodeSetting != null, "Node is null");
|
||||
Assert.isTrue(req.getNumber() <= nodeSetting.getPurchaseLimit(), "Maxi mum pay limit");
|
||||
BigDecimal amount = nodeSetting.getNodePrice().multiply(new BigDecimal(req.getNumber()));
|
||||
Assert.isTrue(amount.compareTo(req.getTatolAmount()) == 0, "Price error");
|
||||
//价格
|
||||
return nodeSettingService.payNode(nodeSetting,req);
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("pay_node_sms")
|
||||
@ApiOperation("支付通知")
|
||||
public NoticeOfPaymentVo payNodeSms(@Validated PayNodeSmsReq req){
|
||||
log.info("支付成功/失败通知:hash={},orderNumber={},status={}",req.getHash(),req.getOrderNumber(),req.getStatus());
|
||||
NoticeOfPaymentVo vo = new NoticeOfPaymentVo();
|
||||
Boolean result = nodeSettingService.payNodeSms(req);
|
||||
return vo.setType(result ? 1 : 0);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,67 +0,0 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.commons.model.BasePageReq;
|
||||
import com.alive.db.entity.Vo.MyIntegralVo;
|
||||
import com.alive.db.entity.Vo.NodeTaskVo;
|
||||
import com.alive.db.entity.Vo.TaskVo;
|
||||
import com.alive.server.api.account.TeskReq;
|
||||
import com.alive.server.service.PersonalCenterService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 任务相关
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/api/task")
|
||||
@Api(tags = "任务相关")
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
public class TaskController
|
||||
{
|
||||
@Autowired
|
||||
private PersonalCenterService personalCenterService;
|
||||
|
||||
@Login
|
||||
@GetMapping("myBonusPoints")
|
||||
@ApiOperation("我的积分")
|
||||
public MyIntegralVo myBonusPoints(){
|
||||
MyIntegralVo myIntegralVo = personalCenterService.myBonusPoints();
|
||||
return myIntegralVo;
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("recommendedCompletionList")
|
||||
@ApiOperation("推荐完成列表(分页)")
|
||||
public List<TaskVo> recommendedCompletionList(BasePageReq basePageReq){
|
||||
return personalCenterService.recommendedCompletionList(basePageReq);
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("nodeTask")
|
||||
@ApiOperation("奥德赛任务")
|
||||
public List<NodeTaskVo> nodeTask(){
|
||||
return personalCenterService.nodeTask();
|
||||
}
|
||||
|
||||
|
||||
@Login
|
||||
@PostMapping("taskReward")
|
||||
@ApiOperation("领取任务奖励")
|
||||
public Map<String,Boolean> taskReward(@RequestBody @Validated TeskReq req){
|
||||
return personalCenterService.taskReward(req);
|
||||
}
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.util.IntegerUtil;
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.server.config.TwitterConfig;
|
||||
import com.alive.server.dto.TwitterUserDto;
|
||||
import com.alive.server.service.MemberService;
|
||||
import com.alive.server.service.TwitterService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @anna_gosss
|
||||
* Aabbcc567
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/api/twitter")
|
||||
@Api(tags = "推特")
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
@CrossOrigin(origins = "*")
|
||||
public class TwitterController extends BaseComponent {
|
||||
|
||||
@Autowired
|
||||
private TwitterService twitterService;
|
||||
|
||||
@Autowired
|
||||
private MemberService memberService;
|
||||
|
||||
@GetMapping("callbackUrl")
|
||||
@ApiOperation("授权回调地址")
|
||||
public Map<String,Boolean> callbackUrl(String state, String code) {
|
||||
String key = "CALLBACKURL"+state;
|
||||
Integer value = IntegerUtil.getInteger(RedisUtil.get(key),0);
|
||||
value = value + 1;
|
||||
//防止用户频繁请求授权
|
||||
RedisUtil.setEx(key,value.toString(),60 * 3);
|
||||
|
||||
Map<String,Boolean> map = new HashMap<>();
|
||||
try {
|
||||
state = state.toLowerCase();
|
||||
twitterService.requestBearerToken(state,code);
|
||||
//更新用户推特信息
|
||||
if(memberService.countTwitterUser(state) == 0){
|
||||
//查询用户推特信息
|
||||
TwitterUserDto dto = twitterService.getUserInfoByToken(TwitterConfig.getAccessToken(state));
|
||||
//判断推特是否已绑定
|
||||
twitterService.bindUser(dto.getId());
|
||||
if(dto != null){
|
||||
memberService.renewalUserTwitter(dto,state);
|
||||
}
|
||||
}
|
||||
map.put("result",true);
|
||||
}catch (Exception e){
|
||||
TwitterConfig.deleteAccessToken(state);
|
||||
TwitterConfig.deleteRefreshToken(state);
|
||||
Assert.isTrue(false,e.getMessage());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package com.alive.server.api;
|
||||
|
||||
import com.alive.commons.annotation.Login;
|
||||
import com.alive.db.entity.Vo.HomeVo;
|
||||
import com.alive.db.entity.Vo.UserNodeLogVo;
|
||||
import com.alive.db.entity.Vo.UserNodeVo;
|
||||
import com.alive.db.jooq.tables.records.UserNodeLogRecord;
|
||||
import com.alive.db.jooq.tables.records.UserNodeRecord;
|
||||
import com.alive.server.api.account.NodePayReq;
|
||||
import com.alive.server.service.IUserNodeService;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户节点 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author HayDen
|
||||
* @since 2024-06-25
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RefreshScope
|
||||
@RequestMapping("/api/user-node")
|
||||
@Api(tags = "用户节点")
|
||||
public class UserNodeController {
|
||||
|
||||
@Autowired
|
||||
private IUserNodeService userNodeService;
|
||||
|
||||
@GetMapping("getHomeData")
|
||||
@ApiOperation("查询首页数据")
|
||||
public HomeVo getHomeData() {
|
||||
return userNodeService.getHomeData();
|
||||
}
|
||||
|
||||
@Login
|
||||
@PostMapping("payNode")
|
||||
@ApiOperation("下单节点")
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class)
|
||||
public UserNodeLogVo payNode(@RequestBody @Validated NodePayReq nodePayReq) {
|
||||
return userNodeService.payNode(nodePayReq);
|
||||
}
|
||||
|
||||
|
||||
@Login
|
||||
@GetMapping("recommendedLists")
|
||||
@ApiOperation("推荐列表(直推/间推)")
|
||||
public List<UserNodeVo> recommendedLists(@RequestParam Integer pageNum,
|
||||
@RequestParam Integer pageSize, Integer status) {
|
||||
return userNodeService.recommendedLists(pageNum,pageSize,status);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import com.alive.commons.util.Md5Util;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AccountCheckCodeReq {
|
||||
|
||||
@ApiModelProperty("1注册,2忘记密码,3转户,4注销账户,5修改密码,6修改支付密码")
|
||||
private int type;
|
||||
|
||||
@ApiModelProperty("账号")
|
||||
private String account;
|
||||
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty("当前时间戳,毫秒")
|
||||
private long timestamp;
|
||||
|
||||
@ApiModelProperty("签名内容,MD5(CHECK{mobile}{timestamp}DAPP)")
|
||||
private String signature;
|
||||
|
||||
public boolean checkSignature() {
|
||||
if (code == null || code.length() != 6) {
|
||||
return false;
|
||||
}
|
||||
if (account == null) {
|
||||
return false;
|
||||
}
|
||||
if (timestamp == 1008610010L && "10000".equals(signature)) {
|
||||
return true;
|
||||
}
|
||||
if (Math.abs(System.currentTimeMillis() - timestamp) > 600_000L) {
|
||||
return false;
|
||||
}
|
||||
return Md5Util.md5(String.format("CHECK%s%dDAPP", account, timestamp)).equalsIgnoreCase(signature);
|
||||
}
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import com.alive.commons.util.Md5Util;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AccountGetCodeReq {
|
||||
|
||||
@ApiModelProperty("1注册,2忘记密码,3修改账号,4注销账户,5修改密码,6修改支付密码")
|
||||
private int type;
|
||||
|
||||
@ApiModelProperty("邮箱、账号")
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty("当前时间戳,毫秒")
|
||||
private long timestamp;
|
||||
|
||||
@ApiModelProperty("签名内容,MD5(CODE{mobile}{timestamp}DAPP)")
|
||||
private String signature;
|
||||
|
||||
public boolean checkSignature() {
|
||||
if (account == null) {
|
||||
return false;
|
||||
}
|
||||
if (timestamp == 1008610010L && "10000".equals(signature)) {
|
||||
return true;
|
||||
}
|
||||
if (Math.abs(System.currentTimeMillis() - timestamp) > 600_000L) {
|
||||
return false;
|
||||
}
|
||||
return Md5Util.md5(String.format("CODE%s%dDAPP", account, timestamp)).equalsIgnoreCase(signature);
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AccountSubResp {
|
||||
|
||||
@ApiModelProperty("当前账号类型,0 普通账号,1主账号,2子账号")
|
||||
private Integer subType;
|
||||
|
||||
@ApiModelProperty("主账号信息,当前是子账号时有值")
|
||||
private String mainAccount;
|
||||
|
||||
@ApiModelProperty("子账号列表,仅在当前是主账号时有值")
|
||||
private List<SubAccountModel> subAccounts;
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
@Data
|
||||
public class AccountUpdatePasswordReq {
|
||||
|
||||
//@NotNull(message = "请输入手机号")
|
||||
@ApiModelProperty("账号")
|
||||
private String account;
|
||||
|
||||
@Size(min = 6, max = 6, message = "please enter the correct verification code")
|
||||
@ApiModelProperty("验证码")
|
||||
private String code;
|
||||
|
||||
////@Size(min = 6, max = 20, message = "请按要求输入密码")
|
||||
@NotNull(message = "Please enter your new password")
|
||||
@ApiModelProperty("新密码")
|
||||
private String password;
|
||||
|
||||
////@Size(min = 6, max = 20, message = "请按要求输入密码")
|
||||
@ApiModelProperty("原密码")
|
||||
private String oldPassword;
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class ActivityReq {
|
||||
|
||||
@NotNull(message = "type is null")
|
||||
@ApiModelProperty("1=社交活动 2=测试网络活动")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("钱包地址")
|
||||
private String address;
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class ActivityTaskReq {
|
||||
|
||||
@NotNull(message = "id is null")
|
||||
@ApiModelProperty("活动ID")
|
||||
private Integer id;
|
||||
|
||||
@NotBlank(message = "address is null")
|
||||
@ApiModelProperty("钱包地址")
|
||||
private String address;
|
||||
|
||||
|
||||
@NotNull(message = "type is null")
|
||||
@ApiModelProperty("活动类型 1=推特 2=Discord 3=TG")
|
||||
private String type;
|
||||
|
||||
}
|
|
@ -6,10 +6,11 @@ import lombok.Data;
|
|||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class NodeReq {
|
||||
public class NodePayReq {
|
||||
|
||||
@NotNull(message = "number is null")
|
||||
@ApiModelProperty("购买数量")
|
||||
private Integer number;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty("节点id")
|
||||
private Integer nodeId;
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class PayNodeReq {
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty("节点id")
|
||||
private Integer nodeId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty("购买数量")
|
||||
@Min(value = 1)
|
||||
private Integer number;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty("金额")
|
||||
private BigDecimal tatolAmount;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SubAccountModel {
|
||||
|
||||
@ApiModelProperty("手机号")
|
||||
private String mobile;
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package com.alive.server.api.account;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class TwitterAuthorizationReq {
|
||||
|
||||
@ApiModelProperty("地址")
|
||||
private String address;
|
||||
}
|
|
@ -1,40 +1,24 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
|
||||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.db.entity.Vo.*;
|
||||
import com.alive.server.api.account.ActivityReq;
|
||||
import com.alive.server.api.account.ActivityTaskReq;
|
||||
import com.alive.db.jooq.tables.records.UserNodeRecord;
|
||||
import com.alive.server.api.account.UserInviteReq;
|
||||
import com.alive.commons.model.BasePageReq;
|
||||
import com.alive.commons.util.DateUtils;
|
||||
import com.alive.commons.util.IntegerUtil;
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.db.jooq.tables.records.ActivityConfigRecord;
|
||||
import com.alive.db.jooq.tables.records.ActivityLogRecord;
|
||||
import com.alive.db.jooq.tables.records.ActivityStatisticsRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberRecord;
|
||||
import com.alive.db.mapper.ActivityMapper;
|
||||
import com.alive.server.config.DiscordConfig;
|
||||
import com.alive.server.config.TelegramConfig;
|
||||
import com.alive.server.config.TwitterConfig;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.*;
|
||||
import static com.sun.org.apache.xalan.internal.xsltc.compiler.Constants.CHARACTERS;
|
||||
import static com.alive.db.jooq.tables.UserNodeTable.USER_NODE;
|
||||
|
||||
|
||||
@Slf4j
|
||||
|
@ -44,12 +28,6 @@ public class ActivityService {
|
|||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
@Autowired
|
||||
private TwitterService twitterService;
|
||||
|
||||
@Autowired
|
||||
private DiscordService discordService;
|
||||
|
||||
@Autowired
|
||||
private ActivityMapper activityMapper;
|
||||
|
||||
|
@ -58,7 +36,7 @@ public class ActivityService {
|
|||
* @param activityReq
|
||||
* @return
|
||||
*/
|
||||
public List<ActivityConfigVo> findActivityList(ActivityReq activityReq) {
|
||||
/*public List<ActivityConfigVo> findActivityList(ActivityReq activityReq) {
|
||||
List<ActivityConfigVo> activityConfigVos = dslContext.select(ACTIVITY_CONFIG.ID.as("id"),ACTIVITY_CONFIG.TITLE.as("title"),ACTIVITY_CONFIG.TITLE_CONTENT.as("titleContent"),ACTIVITY_CONFIG.ACTIVITY_IMG.as("activityImg")
|
||||
,ACTIVITY_CONFIG.ACTIVITY_URL.as("activityUrl"),ACTIVITY_CONFIG.AMOUNT.as("amount"),ACTIVITY_CONFIG.TYPE.as("type"),ACTIVITY_CONFIG.STATE.as("state")
|
||||
,ACTIVITY_CONFIG.ACTIVITY_NUMBER.as("activityNumber"))
|
||||
|
@ -139,14 +117,14 @@ public class ActivityService {
|
|||
}
|
||||
}
|
||||
return activityConfigVos;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 统计活动参数数量
|
||||
* @param activityOutcomeVo
|
||||
* @param activityReq
|
||||
*/
|
||||
public void countActivity(ActivityOutcomeVo activityOutcomeVo, ActivityReq activityReq) {
|
||||
/*public void countActivity(ActivityOutcomeVo activityOutcomeVo, ActivityReq activityReq) {
|
||||
if(StringUtils.isBlank(activityReq.getAddress())){
|
||||
activityOutcomeVo.setAmount("0");
|
||||
}else{
|
||||
|
@ -157,13 +135,13 @@ public class ActivityService {
|
|||
activityOutcomeVo.setCodePrompt(user.getCodePrompt());
|
||||
}
|
||||
activityOutcomeVo.setUsesNumber(dslContext.selectCount().from("(SELECT COUNT(0) FROM activity_log WHERE type=3 GROUP BY address) as t").fetchAnyInto(Integer.class));
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 开始活动任务
|
||||
* @param activityTaskReq
|
||||
*/
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED,readOnly = false)
|
||||
/*@Transactional(isolation = Isolation.READ_COMMITTED,readOnly = false)
|
||||
public void startTheTask(ActivityTaskVo activityOutcomeVo, ActivityTaskReq activityTaskReq) {
|
||||
TMemberRecord user = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ACCOUNT.eq(activityTaskReq.getAddress())).fetchAny();
|
||||
Assert.notNull(user, "please link your wallet first");
|
||||
|
@ -255,7 +233,7 @@ public class ActivityService {
|
|||
}
|
||||
log.setConfigType(configRecord.getType());
|
||||
log.store();
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 查询邀请页面数据
|
||||
|
@ -266,6 +244,11 @@ public class ActivityService {
|
|||
TMemberRecord tMemberRecord = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ACCOUNT.eq(address)).fetchAny();
|
||||
List<TMemberRecord> users = dslContext.select().from(T_MEMBER).where(T_MEMBER.REFER_ID.eq(tMemberRecord.getId())).fetchInto(TMemberRecord.class);
|
||||
activityOutcomeVo.setInvitationCode(tMemberRecord.getShareCode());
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
UserNodeRecord nodeRecord = dslContext.fetchOne(USER_NODE, USER_NODE.USER_ID.eq(memberId));
|
||||
if(nodeRecord == null || nodeRecord.getNodeNumber() <= 0){
|
||||
activityOutcomeVo.setInvitationCode("");
|
||||
}
|
||||
activityOutcomeVo.setInvitationRewards(BigDecimal.ZERO);
|
||||
activityOutcomeVo.setUserNumber(0);
|
||||
if(users != null && users.size() > 0){
|
||||
|
@ -300,7 +283,7 @@ public class ActivityService {
|
|||
}
|
||||
|
||||
//查询排行榜
|
||||
public RankingSummaryVo ranking(BasePageReq req, UserInviteReq userInviteReq) {
|
||||
/*public RankingSummaryVo ranking(BasePageReq req, UserInviteReq userInviteReq) {
|
||||
RankingSummaryVo wordRanking = activityMapper.findRankingSummaryVo(userInviteReq.getAddress());
|
||||
if(wordRanking == null){
|
||||
wordRanking = new RankingSummaryVo();
|
||||
|
@ -356,9 +339,9 @@ public class ActivityService {
|
|||
}
|
||||
wordRanking.setRankingVos(list);
|
||||
return wordRanking;
|
||||
}
|
||||
}*/
|
||||
|
||||
public static String generateRandomString(int length) {
|
||||
/* public static String generateRandomString(int length) {
|
||||
Random random = new Random();
|
||||
StringBuilder stringBuilder = new StringBuilder(length);
|
||||
for (int i = 0; i < length; i++) {
|
||||
|
@ -377,5 +360,5 @@ public class ActivityService {
|
|||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(activityLogRecord.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(address)).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(activityLogRecord.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(activityLogRecord.getSuperiorAddress())).execute();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
|
|
@ -10,25 +10,25 @@ import java.util.List;
|
|||
@Service
|
||||
public class AirTokenService implements ContractEventHandle {
|
||||
|
||||
final String TRANSFER_TOPIC = EventEncoder.buildEventSignature("Transfer(address,address,uint256)");
|
||||
|
||||
final String BUY_ROOS_SUCCESS = EventEncoder.buildEventSignature("BuyRoosSuccess(address,uint256,address,uint256,uint256,uint256[])");
|
||||
|
||||
final String BRIGADETOL2 = EventEncoder.buildEventSignature("BrigadeToL2(uint256,address)");
|
||||
|
||||
final String PAYMENTSUCCESS = EventEncoder.buildEventSignature("PaymentSuccess(address,uint256,uint256)");
|
||||
|
||||
final String BUYNODE = EventEncoder.buildEventSignature("BuyNode(address,address[],uint256[],uint256,uint256)");
|
||||
|
||||
|
||||
@Override
|
||||
public String handle(EthLog.LogObject logObject, List<String> dataList) {
|
||||
if (logObject.getTopics().get(0).equalsIgnoreCase(TRANSFER_TOPIC)) {
|
||||
return "Transfer";
|
||||
}else if(logObject.getTopics().get(0).equalsIgnoreCase(BUY_ROOS_SUCCESS)){
|
||||
if(logObject.getTopics().get(0).equalsIgnoreCase(BUY_ROOS_SUCCESS)){
|
||||
return "BuyRoosSuccess";
|
||||
}else if(logObject.getTopics().get(0).equalsIgnoreCase(BRIGADETOL2)){
|
||||
return "BrigadeToL2";
|
||||
}else if(logObject.getTopics().get(0).equalsIgnoreCase(PAYMENTSUCCESS)){
|
||||
return "PaymentSuccess";
|
||||
}else if (logObject.getTopics().get(0).equalsIgnoreCase(BUYNODE)) {
|
||||
return "BuyNode";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.TransactionDataVo;
|
||||
import com.alive.commons.util.Web3Util;
|
||||
import com.alive.db.jooq.tables.records.ChainLogRecord;
|
||||
import com.alive.db.jooq.tables.records.UserNodeLogRecord;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.web3j.protocol.Web3j;
|
||||
import org.web3j.protocol.core.DefaultBlockParameter;
|
||||
|
@ -13,6 +17,7 @@ import org.web3j.protocol.core.methods.request.EthFilter;
|
|||
import org.web3j.protocol.core.methods.response.EthLog;
|
||||
import org.web3j.protocol.http.HttpService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
@ -20,27 +25,25 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static com.alive.db.jooq.Tables.CHAIN_LOG;
|
||||
import static com.alive.db.jooq.Tables.USER_NODE_LOG;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RefreshScope
|
||||
public class BscTimingService{
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private AirTokenService airTokenService;
|
||||
|
||||
@Autowired
|
||||
private BtcBuyService btcBuyService;
|
||||
|
||||
@Autowired
|
||||
private NodeBuyLogService nodeBuyLogService;
|
||||
|
||||
@Autowired
|
||||
private ChainLogService chainLogService;
|
||||
|
||||
@Autowired
|
||||
private ActivityService activityService;
|
||||
@Resource
|
||||
private IUserNodeService iUserNodeService;
|
||||
|
||||
private Web3j bscWsWeb3j;
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
/**
|
||||
* 初始化扫描
|
||||
*/
|
||||
|
@ -55,7 +58,7 @@ public class BscTimingService {
|
|||
/**
|
||||
* 合约地址
|
||||
*/
|
||||
@Value("${com.alive.contractUrl}")
|
||||
@Value("${com.alive.nodeContractUrl}")
|
||||
private String contractUrl;
|
||||
|
||||
public Web3j getBscWsWeb3j() {
|
||||
|
@ -78,21 +81,26 @@ public class BscTimingService {
|
|||
* 获取初始块任务,需要注意控制时间,防止链上限制调用
|
||||
*/
|
||||
public void printLogTask() {
|
||||
String scannedBlockStr = RedisUtil.get("USDT:scannedBlock");
|
||||
String scannedBlockStr = RedisUtil.get("NODE_USDT:scannedBlock");
|
||||
if (scannedBlockStr == null || scannedBlockStr.isEmpty()) {
|
||||
log.error(">>> 无已扫描数据,从20000块前开始");
|
||||
BigInteger latestBlock = new BigInteger(RedisUtil.get("USDT:latestBlock"));
|
||||
BigInteger latestBlock = new BigInteger(RedisUtil.get("NODE_USDT:latestBlock"));
|
||||
scannedBlockStr = latestBlock.subtract(BigInteger.valueOf(20000)).toString();
|
||||
RedisUtil.set("USDT:scannedBlock", scannedBlockStr);
|
||||
RedisUtil.set("NODE_USDT:scannedBlock", scannedBlockStr);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取最新块
|
||||
*/
|
||||
public void latestBlockTask() throws IOException {
|
||||
BigInteger latestBlock = this.getBscWsWeb3j().ethBlockNumber().send().getBlockNumber();
|
||||
RedisUtil.set("USDT:latestBlock", latestBlock.toString());
|
||||
public void latestBlockTask(){
|
||||
BigInteger latestBlock = null;
|
||||
try {
|
||||
latestBlock = this.getBscWsWeb3j().ethBlockNumber().send().getBlockNumber();
|
||||
RedisUtil.set("NODE_USDT:latestBlock", latestBlock.toString());
|
||||
} catch (IOException e) {
|
||||
log.error("本次获取最新区块失败----------------------");
|
||||
}
|
||||
}
|
||||
|
||||
private List<EthLog.LogResult> scanBlock(BigInteger startBlock, BigInteger endBlock) {
|
||||
|
@ -103,14 +111,15 @@ public class BscTimingService {
|
|||
try {
|
||||
send = this.getBscWsWeb3j().ethGetLogs(filter).send();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e.getMessage());
|
||||
/*e.printStackTrace();
|
||||
throw new RuntimeException(e.getMessage());*/
|
||||
log.error("本次读取节点失败-------");
|
||||
}
|
||||
if(send.getError() != null && send.getError().getMessage() != null){
|
||||
if(send != null && send.getError() != null && send.getError().getMessage() != null){
|
||||
log.info("扫描块失败(检查节点是否被限制) out {} ,{}, {}", startBlock, endBlock, send.getError().getMessage());
|
||||
return null;
|
||||
}
|
||||
return send.getLogs();
|
||||
return send == null ? null : send.getLogs();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -119,13 +128,10 @@ public class BscTimingService {
|
|||
*/
|
||||
public void bscScanTask() {
|
||||
//获取最新块
|
||||
try {
|
||||
this.latestBlockTask();
|
||||
this.printLogTask();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
BigInteger scannedBlock = new BigInteger(RedisUtil.get("USDT:scannedBlock"));
|
||||
BigInteger latestBlock = new BigInteger(RedisUtil.get("USDT:latestBlock"));
|
||||
BigInteger scannedBlock = new BigInteger(RedisUtil.get("NODE_USDT:scannedBlock"));
|
||||
BigInteger latestBlock = new BigInteger(RedisUtil.get("NODE_USDT:latestBlock"));
|
||||
BigInteger offset;
|
||||
int times = 0;
|
||||
if(initializeScan){
|
||||
|
@ -161,7 +167,7 @@ public class BscTimingService {
|
|||
}
|
||||
}
|
||||
scannedBlock = scannedBlock.add(offset);
|
||||
RedisUtil.set("USDT:scannedBlock", scannedBlock.toString());
|
||||
RedisUtil.set("NODE_USDT:scannedBlock", scannedBlock.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -179,54 +185,54 @@ public class BscTimingService {
|
|||
String even = airTokenService.handle(logObject, dataList);
|
||||
String date = logObject.getData().substring(2,logObject.getData().length());
|
||||
//保存事件
|
||||
chainLogService.addChainLog(logObject.getBlockHash(),logObject.getBlockNumber(),logObject.getTransactionHash(),even,date);
|
||||
if(even != null && even.equals("BuyRoosSuccess")){
|
||||
//我的支付地址
|
||||
String address = this.getValue(date,0,true).toLowerCase();
|
||||
//我的付款金额
|
||||
BigDecimal amount = new BigDecimal(this.getValue(date,1,false));
|
||||
//上级地址
|
||||
String teamAddress = this.getValue(date,2,true).toLowerCase();
|
||||
//上级奖励金额
|
||||
BigDecimal teamAmount = new BigDecimal(this.getValue(date,3,false));
|
||||
//订单编号
|
||||
String orderNumber = this.getValue(date,4,false);
|
||||
//NFT数量
|
||||
String nftNUmber = this.getValue(date,6,false);
|
||||
Integer number = Integer.parseInt(nftNUmber);
|
||||
List<Integer> nftIds = new ArrayList<>();
|
||||
for (int i = 7; i < (7 + number); i++) {
|
||||
//NFT的ID
|
||||
String nftId = this.getValue(date,i,false);
|
||||
if(nftId == null){
|
||||
break;
|
||||
ChainLogRecord chainLogRecord = dslContext.newRecord(CHAIN_LOG);
|
||||
chainLogRecord.setBlockNumber(logObject.getBlockNumber().toString());
|
||||
chainLogRecord.setHash(logObject.getBlockHash());
|
||||
chainLogRecord.setChainName(even);
|
||||
chainLogRecord.setDataValue(date);
|
||||
chainLogRecord.setTransactionHash(logObject.getTransactionHash());
|
||||
chainLogRecord.store();
|
||||
if(even != null && even.equals("BuyNode")){
|
||||
UserNodeLogRecord log = dslContext.newRecord(USER_NODE_LOG);
|
||||
log.setAddressOne("0");
|
||||
log.setAwardOne(BigDecimal.ZERO);
|
||||
log.setAddressTwo("0");
|
||||
log.setAwardTwo(BigDecimal.ZERO);
|
||||
//查询出来数据长度
|
||||
String lenth = this.getValue(date,4,false);
|
||||
Integer code = 5;
|
||||
for (int i = 0; i < Integer.parseInt(lenth); i++) {
|
||||
String address = this.getValue(date, code + i, true).toLowerCase();
|
||||
String value = this.getValue(date, code + Integer.parseInt(lenth) + i + 1, false);
|
||||
BigDecimal amount = new BigDecimal(value).divide(new BigDecimal(Web3Util.BSC_USDT_WEI),4,BigDecimal.ROUND_HALF_UP);
|
||||
if(StringUtils.isBlank(log.getWalletAddress())){
|
||||
log.setWalletAddress(address);
|
||||
log.setBuyAmount(amount);
|
||||
}
|
||||
nftIds.add(Integer.parseInt(nftId));
|
||||
if(log.getAddressOne().equals("0")){
|
||||
log.setAddressOne(address);
|
||||
log.setAwardOne(amount);
|
||||
}else if(log.getAddressTwo().equals("0")){
|
||||
log.setAddressTwo(address);
|
||||
log.setAwardTwo(amount);
|
||||
}
|
||||
NodeBuyLog log = nodeBuyLogService.findNodeSubscribeByOrderNumber(orderNumber);
|
||||
if(log == null){
|
||||
return;
|
||||
}
|
||||
log.setHash(logObject.getBlockHash());
|
||||
TransactionDataVo transactionDataVo = new TransactionDataVo();
|
||||
transactionDataVo.setFrom(address);
|
||||
transactionDataVo.setPayAmount(amount);
|
||||
transactionDataVo.setNftNumber(number);
|
||||
transactionDataVo.setNftIds(nftIds);
|
||||
transactionDataVo.setTeamAddress(teamAddress);
|
||||
transactionDataVo.setTeamAmount(teamAmount);
|
||||
transactionDataVo.setStatus(1);
|
||||
btcBuyService.addNft(log,transactionDataVo);
|
||||
}else if(even != null && even.equals("BrigadeToL2")){
|
||||
//我的支付地址
|
||||
String address = this.getValue(date,0,true).toLowerCase();
|
||||
//查询用户是否有未完成的任务
|
||||
activityService.getActivityLog(address);
|
||||
String orderNUmber = this.getValue(date, 2, false);
|
||||
String amount = this.getValue(date, 3, false);
|
||||
log.setWalletAddress("0x"+logObject.getTopics().get(1).toLowerCase().substring(26,66));
|
||||
log.setHash(logObject.getTransactionHash());
|
||||
log.setOrderNumber(orderNUmber);
|
||||
log.setBuyAmount(new BigDecimal(amount).divide(new BigDecimal(Web3Util.BSC_USDT_WEI),4,BigDecimal.ROUND_HALF_UP));
|
||||
log.setAddressOne(StringUtils.isBlank(log.getAddressOne()) ? "0" : log.getAddressOne());
|
||||
log.setAwardOne(log.getAwardOne() == null ? BigDecimal.ZERO : log.getAwardOne());
|
||||
log.setAddressTwo(StringUtils.isBlank(log.getAddressTwo()) ? "0" : log.getAddressTwo());
|
||||
log.setAwardTwo(log.getAwardTwo() == null ? BigDecimal.ZERO : log.getAwardTwo());
|
||||
//开始增加Node节点
|
||||
iUserNodeService.addNode(log);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询日志里面加indexed的内容
|
||||
* @param topList 日志内容
|
||||
|
|
|
@ -1,158 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.TransactionDataVo;
|
||||
import io.reactivex.Flowable;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.web3j.protocol.core.methods.response.EthLog;
|
||||
import org.web3j.protocol.core.methods.response.Log;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* 监听同步事件
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BscWsService{
|
||||
|
||||
@Autowired
|
||||
private AirTokenService airTokenService;
|
||||
|
||||
@Autowired
|
||||
private BtcBuyService btcBuyService;
|
||||
|
||||
@Autowired
|
||||
private NodeBuyLogService nodeBuyLogService;
|
||||
|
||||
@Autowired
|
||||
private ChainLogService chainLogService;
|
||||
|
||||
@Autowired
|
||||
private ActivityService activityService;
|
||||
|
||||
|
||||
/**
|
||||
* 定义线程数,多少个线程同步socket
|
||||
*/
|
||||
ExecutorService executorService = Executors.newFixedThreadPool(2);
|
||||
|
||||
public void wsExec(Flowable<Log> flowable){
|
||||
flowable.subscribe(log -> {
|
||||
if(log != null){
|
||||
executorService.execute(() -> handleLogEvent((EthLog.LogObject) log));
|
||||
}
|
||||
},throwable -> {
|
||||
System.out.printf("错误-------"+ throwable.getMessage());
|
||||
});
|
||||
}
|
||||
|
||||
private synchronized void handleLogEvent(EthLog.LogObject logObject) {
|
||||
if(RedisUtil.get(logObject.getBlockHash()) != null){
|
||||
//重复Hash,不予处理
|
||||
return;
|
||||
}
|
||||
//重复Hash10分钟过期
|
||||
RedisUtil.setEx(logObject.getBlockHash(),"1",60 * 10);
|
||||
log.info("监听到数据HASH:{},块号:{},交易hash:{}",logObject.getBlockHash(),logObject.getBlockNumber(),logObject.getTransactionHash());
|
||||
String data = logObject.getData().substring(2);
|
||||
List<String> dataList = new ArrayList<>(data.length() / 64);
|
||||
//获取事件名称
|
||||
String even = airTokenService.handle(logObject, dataList);
|
||||
String date = logObject.getData().substring(2,logObject.getData().length());
|
||||
//保存事件
|
||||
chainLogService.addChainLog(logObject.getBlockHash(),logObject.getBlockNumber(),logObject.getTransactionHash(),even,date);
|
||||
if(even != null && even.equals("BuyRoosSuccess")){
|
||||
//我的支付地址
|
||||
String address = this.getValue(date,0,true).toLowerCase();
|
||||
//我的付款金额
|
||||
BigDecimal amount = new BigDecimal(this.getValue(date,1,false));
|
||||
//上级地址
|
||||
String teamAddress = this.getValue(date,2,true).toLowerCase();
|
||||
//上级奖励金额
|
||||
BigDecimal teamAmount = new BigDecimal(this.getValue(date,3,false));
|
||||
//订单编号
|
||||
String orderNumber = this.getValue(date,4,false);
|
||||
//NFT数量
|
||||
String nftNUmber = this.getValue(date,6,false);
|
||||
Integer number = Integer.parseInt(nftNUmber);
|
||||
List<Integer> nftIds = new ArrayList<>();
|
||||
for (int i = 7; i < (7 + number); i++) {
|
||||
//NFT的ID
|
||||
String nftId = this.getValue(date,i,false);
|
||||
if(nftId == null){
|
||||
break;
|
||||
}
|
||||
nftIds.add(Integer.parseInt(nftId));
|
||||
}
|
||||
NodeBuyLog log = nodeBuyLogService.findNodeSubscribeByOrderNumber(orderNumber);
|
||||
if(log == null){
|
||||
return;
|
||||
}
|
||||
log.setHash(logObject.getBlockHash());
|
||||
TransactionDataVo transactionDataVo = new TransactionDataVo();
|
||||
transactionDataVo.setFrom(address);
|
||||
transactionDataVo.setPayAmount(amount);
|
||||
transactionDataVo.setNftNumber(number);
|
||||
transactionDataVo.setNftIds(nftIds);
|
||||
transactionDataVo.setTeamAddress(teamAddress);
|
||||
transactionDataVo.setTeamAmount(teamAmount);
|
||||
transactionDataVo.setStatus(1);
|
||||
btcBuyService.addNft(log,transactionDataVo);
|
||||
}else if(even != null && even.equals("BrigadeToL2")){
|
||||
//我的支付地址
|
||||
String address = this.getValue(date,0,true).toLowerCase();
|
||||
//查询用户是否有未完成的任务
|
||||
activityService.getActivityLog(address);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询日志里面加indexed的内容
|
||||
* @param topList 日志内容
|
||||
* @param code 查询第几个
|
||||
* @return
|
||||
*/
|
||||
public BigInteger getNmber(List<String> topList,Integer code){
|
||||
String ret = topList.get(code);
|
||||
ret = ret.substring(2,ret.length());
|
||||
//16进制转10进制
|
||||
return new BigInteger(ret, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取没有加indexed的内容
|
||||
* @param date 拆分的参数
|
||||
* @param code 取的位数
|
||||
* @param address 是否返回地址
|
||||
* @return
|
||||
*/
|
||||
public String getValue(String date, Integer code, Boolean address){
|
||||
int number = 64;
|
||||
if(code == 0){
|
||||
date = date.substring(0,number);
|
||||
}else{
|
||||
code = number * code;
|
||||
date = date.substring(code,code+number);
|
||||
}
|
||||
if(date == null){
|
||||
return null;
|
||||
}
|
||||
if(address){
|
||||
return "0x"+date.substring(24,date.length());
|
||||
}else{
|
||||
return new BigInteger(date, 16).toString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,231 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.util.DateUtils;
|
||||
import com.alive.commons.util.HttpUtils;
|
||||
import com.alive.commons.util.RedisUtil;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.TransactionDataVo;
|
||||
import com.alive.db.jooq.tables.records.NodeRecord;
|
||||
import com.alive.db.mapper.NodeSettingMapper;
|
||||
import com.alive.server.web3.Web3jServer;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
import static com.alive.db.jooq.Tables.NODE;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BtcBuyService extends BaseComponent
|
||||
{
|
||||
@Autowired
|
||||
private NodeBuyLogService nodeBuyLogService;
|
||||
|
||||
@Autowired
|
||||
private NodeNftConfigService nodeNftConfigService;
|
||||
|
||||
@Resource
|
||||
private NodeSettingMapper nodeSettingMapper;
|
||||
|
||||
@Autowired
|
||||
private Web3jServer web3jServer;
|
||||
|
||||
/**
|
||||
* 检查是否支付成功
|
||||
*/
|
||||
public void exec() {
|
||||
List<NodeBuyLog> nodeSubscribes = nodeBuyLogService.selectNodeSubscribeList(new NodeBuyLog().setStatus(1));
|
||||
if(nodeSubscribes != null && nodeSubscribes.size() > 0){
|
||||
for (NodeBuyLog nodeSubscribe : nodeSubscribes){
|
||||
if(DateUtils.addMinute(nodeSubscribe.getCreateTime(),30).getTime() < System.currentTimeMillis()){
|
||||
nodeSubscribe.setStatus(4);
|
||||
nodeSubscribe.setIllustrate("订单创建超过30分钟未支付");
|
||||
nodeBuyLogService.updateOrAddNodeSubscribe(nodeSubscribe);
|
||||
}
|
||||
}
|
||||
}
|
||||
nodeSubscribes = nodeBuyLogService.selectNodeSubscribeList(new NodeBuyLog().setStatus(2));
|
||||
for (NodeBuyLog nodeSubscribe : nodeSubscribes){
|
||||
log.info("开始确认链上用户购买情况,订单ID:{}---------------------------------",nodeSubscribe.getId());
|
||||
//通过hash查询链上数据
|
||||
TransactionDataVo transactionDataVo = null;
|
||||
try {
|
||||
transactionDataVo = web3jServer.getEthLogsByHash(nodeSubscribe.getHash());
|
||||
} catch (IOException e) {
|
||||
RedisUtil.setEx(nodeSubscribe.getHash(),"0",30);
|
||||
nodeSubscribe.setIllustrate("订单hash数据异常");
|
||||
nodeSubscribe.setStatus(4);
|
||||
nodeBuyLogService.updateOrAddNodeSubscribe(nodeSubscribe);
|
||||
log.info("订单确认失败:{}---------------------------------",nodeSubscribe.getId());
|
||||
continue;
|
||||
}
|
||||
if(transactionDataVo == null){
|
||||
continue;
|
||||
}
|
||||
this.addNft(nodeSubscribe,transactionDataVo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 铸造NFT
|
||||
* @param nodeSubscribe 订单信息
|
||||
* @param transactionDataVo 铸造链上信息
|
||||
*/
|
||||
public void addNft(NodeBuyLog nodeSubscribe,TransactionDataVo transactionDataVo){
|
||||
//订单与链上数据对比
|
||||
this.dataVerify(nodeSubscribe,transactionDataVo);
|
||||
log.info("本次订单数据确认结果是:{}---------------------------------",nodeSubscribe.getStatus());
|
||||
String nftIds = "";
|
||||
if(nodeSubscribe.getStatus() == 3){
|
||||
for (Integer nftId : transactionDataVo.getNftIds()){
|
||||
nftIds += "#"+nftId+" ";
|
||||
//支付成功
|
||||
NodeRecord nodeRecord = dslContext.newRecord(NODE);
|
||||
nodeRecord.setId(nftId);
|
||||
nodeRecord.setNodeSettingId(nodeSubscribe.getNodeSettingId());
|
||||
nodeRecord.setBuyCoin(nodeSubscribe.getPayCoin());
|
||||
nodeRecord.setBuyAmount(nodeSubscribe.getBuyAmount().divide(new BigDecimal(nodeSubscribe.getBuyCount()),4,BigDecimal.ROUND_HALF_UP));
|
||||
nodeRecord.setBuyNumber(1);
|
||||
nodeRecord.setNodeName(nodeSubscribe.getNodeName());
|
||||
nodeRecord.setConfirmTime(new Timestamp(System.currentTimeMillis()));
|
||||
nodeRecord.setUserId(nodeSubscribe.getUserId());
|
||||
nodeRecord.setOrderNumber(nodeSubscribe.getOrderNumber());
|
||||
nodeRecord.store();
|
||||
}
|
||||
//开始给上级发放奖励
|
||||
nodeNftConfigService.reward(nodeSubscribe);
|
||||
//减少库存
|
||||
nodeSettingMapper.addInventory(nodeSubscribe.getBuyCount(),nodeSubscribe.getNodeSettingId(),nodeSubscribe.getBuyAmount());
|
||||
}
|
||||
if(nodeSubscribe.getStatus() != 2){
|
||||
nodeBuyLogService.updateOrAddNodeSubscribe(nodeSubscribe);
|
||||
}
|
||||
//订单超过2小时无法确认,直接失败处理
|
||||
if(nodeSubscribe.getStatus() == 2 && DateUtils.addMinute(nodeSubscribe.getCreateTime(),30).getTime() < System.currentTimeMillis()){
|
||||
nodeSubscribe.setStatus(4);
|
||||
nodeSubscribe.setIllustrate("订单链上确认超过30分钟,直接取消");
|
||||
nodeBuyLogService.updateOrAddNodeSubscribe(nodeSubscribe);
|
||||
}
|
||||
if(nodeSubscribe.getStatus().equals(4) || nodeSubscribe.getStatus().equals(3)){
|
||||
RedisUtil.setEx(nodeSubscribe.getHash(),nodeSubscribe.getStatus().equals(4) ? "0" : nftIds,30);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 开始对比链上数据是否正确
|
||||
* @param nodeSubscribe
|
||||
* @param transactionDataVo
|
||||
*/
|
||||
public void dataVerify(NodeBuyLog nodeSubscribe,TransactionDataVo transactionDataVo){
|
||||
BigDecimal limit = new BigDecimal("1000000");
|
||||
transactionDataVo.setTeamAmount(transactionDataVo.getTeamAmount().divide(limit));
|
||||
transactionDataVo.setPayAmount(transactionDataVo.getPayAmount().divide(limit));
|
||||
String address0x = "0x0000000000000000000000000000000000000000";
|
||||
if(transactionDataVo.getTeamAddress().equals(address0x)){
|
||||
transactionDataVo.setTeamAddress("0");
|
||||
}
|
||||
if(transactionDataVo.getStatus() == null || transactionDataVo.getStatus().equals(-1)){
|
||||
//链上确认中
|
||||
return;
|
||||
}
|
||||
if(transactionDataVo.getStatus().equals(0)){
|
||||
nodeSubscribe.setIllustrate("链上失败");
|
||||
nodeSubscribe.setStatus(4);
|
||||
return;
|
||||
}
|
||||
if(!nodeSubscribe.getTeamAddress().equals("0") && nodeSubscribe.getRebate().compareTo(BigDecimal.ZERO) != 0){
|
||||
if(!transactionDataVo.getTeamAddress().equals("0") && nodeSubscribe.getRebate().compareTo(transactionDataVo.getTeamAmount()) != 0){
|
||||
nodeSubscribe.setIllustrate("上级奖励金额不一致");
|
||||
nodeSubscribe.setStatus(4);
|
||||
return;
|
||||
}
|
||||
if(nodeSubscribe.getTeamAddress().compareTo(transactionDataVo.getTeamAddress()) != 0){
|
||||
nodeSubscribe.setIllustrate("上级地址奖励不一致");
|
||||
nodeSubscribe.setStatus(4);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(transactionDataVo.getPayAmount().compareTo(nodeSubscribe.getBuyAmount()) != 0){
|
||||
nodeSubscribe.setIllustrate("支付金额不一致");
|
||||
nodeSubscribe.setStatus(4);
|
||||
return;
|
||||
}
|
||||
if(!transactionDataVo.getFrom().equals(nodeSubscribe.getWalletAddress())){
|
||||
nodeSubscribe.setIllustrate("支付地址不一致");
|
||||
nodeSubscribe.setStatus(4);
|
||||
}
|
||||
if(!transactionDataVo.getNftNumber().equals(nodeSubscribe.getBuyCount())){
|
||||
nodeSubscribe.setIllustrate("NFT铸造数量不一致");
|
||||
nodeSubscribe.setStatus(4);
|
||||
}else{
|
||||
nodeSubscribe.setIllustrate("铸造成功");
|
||||
nodeSubscribe.setStatus(3);
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean httpContractByHash(NodeBuyLog nodeSubscribe,BigDecimal scope,String configAddress){
|
||||
if(nodeSubscribe.getHash() == null){
|
||||
nodeSubscribe.setStatus(4);
|
||||
}else{
|
||||
String hash = nodeSubscribe.getHash();
|
||||
String value = HttpUtils.sendGet("https://blockchain.info/rawtx/"+hash);
|
||||
if(StringUtils.isBlank(value)){
|
||||
return true;
|
||||
}
|
||||
JSONObject qu = JSONObject.parseObject(value, JSONObject.class);
|
||||
//获取到交易数据
|
||||
if(qu.get("block_index") == null || qu.get("block_height") == null){
|
||||
//区块未确认
|
||||
return false;
|
||||
}
|
||||
//交易发起数据
|
||||
JSONArray inputs = qu.getJSONArray("inputs");
|
||||
JSONObject inputsValue = inputs.getJSONObject(0).getJSONObject("prev_out");
|
||||
{
|
||||
//出账地址
|
||||
String address = inputsValue.get("addr").toString().toLowerCase();
|
||||
nodeSubscribe.setInputAddress(address);
|
||||
nodeSubscribe.setStatus(3);
|
||||
}
|
||||
{
|
||||
JSONArray out = qu.getJSONArray("out");
|
||||
JSONObject outUser = out.getJSONObject(0);
|
||||
//收款地址
|
||||
String address = outUser.get("addr").toString().toLowerCase();
|
||||
|
||||
//出账金额
|
||||
String inpAmount = outUser.get("value").toString();
|
||||
//放大计算
|
||||
if(new BigDecimal(inpAmount).compareTo(nodeSubscribe.getBuyAmount().multiply(scope)) != 0){
|
||||
nodeSubscribe.setStatus(4);
|
||||
}
|
||||
nodeSubscribe.setOutAddress(address);
|
||||
if(!configAddress.equals(address)){
|
||||
//收款地址不对
|
||||
nodeSubscribe.setStatus(4);
|
||||
}
|
||||
//收款金额
|
||||
//String outAmount = outUser.get("value").toString();
|
||||
//手续费
|
||||
//JSONObject outUserFee = out.getJSONObject(1);
|
||||
//String fee = outUserFee.get("value").toString();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -2,39 +2,27 @@ package com.alive.server.service;
|
|||
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.enums.WalletLogTypeEnum;
|
||||
import com.alive.commons.model.BasePageReq;
|
||||
import com.alive.commons.util.*;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.*;
|
||||
import com.alive.db.jooq.tables.pojos.SysConfigPojo;
|
||||
import com.alive.db.jooq.tables.records.*;
|
||||
import com.alive.db.mapper.NodeSettingMapper;
|
||||
import com.alive.db.mapper.PersonalCenterMapper;
|
||||
import com.alive.server.api.account.PayCoinReq;
|
||||
import com.alive.server.api.account.PayNodeSmsReq;
|
||||
import com.alive.server.api.account.TeskReq;
|
||||
import com.alive.server.dto.WalletOperation;
|
||||
import com.alive.server.web3.Web3jServer;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.core.annotation.OrderUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Assert;
|
||||
import org.web3j.abi.datatypes.Int;
|
||||
import org.web3j.protocol.Web3j;
|
||||
import org.web3j.protocol.core.DefaultBlockParameter;
|
||||
import org.web3j.protocol.core.methods.request.EthFilter;
|
||||
import org.web3j.protocol.core.methods.response.EthLog;
|
||||
import org.web3j.protocol.http.HttpService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Member;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.*;
|
||||
|
@ -295,8 +283,9 @@ public class CrowdfundingService extends BaseComponent {
|
|||
if(msg.equals("timeout")){
|
||||
log.error("节点读取超时------------------");
|
||||
}else{
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e.getMessage());
|
||||
/*e.printStackTrace();
|
||||
throw new RuntimeException(e.getMessage());*/
|
||||
log.error("本次获取节点数据失败------------------");
|
||||
}
|
||||
}
|
||||
if(send != null && send.getError() != null && send.getError().getMessage() != null){
|
||||
|
@ -381,7 +370,7 @@ public class CrowdfundingService extends BaseComponent {
|
|||
BigDecimal amount = new BigDecimal(this.getValue(date,1,false));
|
||||
//上级地址
|
||||
String orderNumber = this.getValue(date,2,false);
|
||||
PayCoinLogRecord payCoinLogRecord = dslContext.select().from(PAY_COIN_LOG).where(PAY_COIN_LOG.ORDER_NUMBER.eq(orderNumber)).fetchAnyInto(PayCoinLogRecord.class);
|
||||
PayCoinLogRecord payCoinLogRecord = dslContext.select().from(PAY_COIN_LOG).where(PAY_COIN_LOG.ORDER_NUMBER.eq(orderNumber).and(PAY_COIN_LOG.STATUS.in(1,2))).fetchAnyInto(PayCoinLogRecord.class);
|
||||
if(payCoinLogRecord == null){
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,331 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alive.server.config.DiscordConfig;
|
||||
import com.alive.server.dto.DiscordlaborUnionDto;
|
||||
import com.alive.server.dto.UserDto;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import okhttp3.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClientBuilder;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.T_MEMBER;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class DiscordService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
/**
|
||||
* 生成授权链接
|
||||
* @return
|
||||
*/
|
||||
public String getAuthorizationUrl(String address) {
|
||||
Map<String,String> map = new HashMap<>();
|
||||
String url = "https://discord.com/oauth2/authorize?";
|
||||
url += "client_id="+ DiscordConfig.CLIENT_ID;
|
||||
//访问权限
|
||||
url += "&response_type=code";
|
||||
//回调地址
|
||||
url += "&redirect_uri="+DiscordConfig.TOKEN_URL;
|
||||
//用户地址
|
||||
url += "&state="+address;
|
||||
url += "&scope=identify+guilds+gdm.join+guilds.join+guilds.members.read";
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户token
|
||||
* @param code
|
||||
* @param address
|
||||
*/
|
||||
public String getTokenByCode(String code,String address){
|
||||
try {
|
||||
String clientId = URLEncoder.encode(DiscordConfig.CLIENT_ID, "UTF-8");
|
||||
String clientSecret = URLEncoder.encode(DiscordConfig.CLIENT_SECRET, "UTF-8");
|
||||
String credentials = clientId + ":" + clientSecret;
|
||||
String base64Credentials = Base64.getEncoder().encodeToString(credentials.getBytes());
|
||||
|
||||
OkHttpClient client = new OkHttpClient();
|
||||
String requestBody = null;
|
||||
String refreshToken = DiscordConfig.getRefreshToken(address);
|
||||
String accessToken = DiscordConfig.getAccessToken(address);
|
||||
if(refreshToken != null && accessToken != null){
|
||||
return accessToken;
|
||||
}
|
||||
if(refreshToken == null && accessToken == null && code == null){
|
||||
return null;
|
||||
}
|
||||
if(code != null && StringUtils.isBlank(refreshToken)){
|
||||
String grantType = "authorization_code";
|
||||
// Build request body
|
||||
requestBody = String.format("grant_type="+grantType+"&code=%s&redirect_uri=%s",
|
||||
URLEncoder.encode(code, "UTF-8"),
|
||||
URLEncoder.encode(DiscordConfig.TOKEN_URL, "UTF-8"));
|
||||
}else{
|
||||
String grantType = "refresh_token";
|
||||
//刷新令牌需要的参数
|
||||
requestBody = String.format("grant_type="+grantType+"&refresh_token=%s&redirect_uri=%s",
|
||||
URLEncoder.encode(refreshToken, "UTF-8"),
|
||||
URLEncoder.encode(DiscordConfig.TOKEN_URL, "UTF-8"));
|
||||
}
|
||||
// Build request
|
||||
Request request = new Request.Builder()
|
||||
.url("https://discord.com/api/oauth2/token")
|
||||
.post(RequestBody.create(MediaType.parse("application/x-www-form-urlencoded"), requestBody))
|
||||
.addHeader("Content-Type", "application/x-www-form-urlencoded")
|
||||
.addHeader("Authorization", "Basic " + base64Credentials)
|
||||
.build();
|
||||
|
||||
// Execute request
|
||||
try (Response response = client.newCall(request).execute()) {
|
||||
if (!response.isSuccessful() || response.code() != 200) {
|
||||
throw new IOException("Unexpected response code: " + response);
|
||||
}
|
||||
JSONObject json = JSON.parseObject(response.body().string());
|
||||
accessToken = json.getString("access_token");
|
||||
refreshToken = json.getString("refresh_token");
|
||||
Integer expiresIn = json.getInteger("expires_in");
|
||||
if(StringUtils.isBlank(accessToken) || StringUtils.isBlank(refreshToken)){
|
||||
throw new IOException("failed to obtain the token");
|
||||
}
|
||||
//保存用户访问令牌和刷新令牌
|
||||
DiscordConfig.addAccessToken(address,accessToken,expiresIn);
|
||||
DiscordConfig.addRefreshToken(address,refreshToken,60 * 60 * 60);
|
||||
return accessToken;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
DiscordConfig.deleteAccessToken(address);
|
||||
DiscordConfig.deleteRefreshToken(address);
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据code换取token
|
||||
* @param code
|
||||
* @param refreshToken
|
||||
* @param merchantPojo
|
||||
* @return
|
||||
*/
|
||||
/* public DiscordDto getToken(String code,String refreshToken,MerchantPojo merchantPojo) {
|
||||
try {
|
||||
Map<String, Object> formData = new HashMap<>();
|
||||
if(!StringUtils.isBlank(code)){
|
||||
formData.put("grant_type", "authorization_code");
|
||||
formData.put("code", code);
|
||||
}
|
||||
if(!StringUtils.isBlank(refreshToken)){
|
||||
formData.put("refresh_token", refreshToken);
|
||||
formData.put("grant_type", "refresh_token");
|
||||
}
|
||||
//重定向配置的URL,一定要和重定向里面的地址保持一致
|
||||
formData.put("redirect_uri", merchantPojo.getDcRedirectUrl());
|
||||
formData.put("client_id", DiscordConfig.CLIENT_ID);
|
||||
formData.put("client_secret", DiscordConfig.CLIENT_SECRET);
|
||||
// 创建URL对象
|
||||
DiscordDto discordDto = this.doPostForm("https://discord.com/api/oauth2/token",formData);
|
||||
return discordDto;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 获取用户的所有服务器
|
||||
* @param token
|
||||
* @return
|
||||
*/
|
||||
public List<DiscordlaborUnionDto> findLaborUnionList(String token) {
|
||||
try {
|
||||
// 设置请求URL和Bearer Token
|
||||
CloseableHttpClient httpClient = HttpClientBuilder.create().build();
|
||||
HttpGet httpPost = new HttpGet("https://discord.com/api/v9/users/@me/guilds");
|
||||
httpPost.setHeader("Content-Type", "application/json;charset=utf8");
|
||||
httpPost.setHeader("Authorization", "Bearer " + token);
|
||||
CloseableHttpResponse response = null;
|
||||
// 由客户端执行(发送)Post请求
|
||||
response = httpClient.execute(httpPost);
|
||||
// 从响应模型中获取响应实体
|
||||
HttpEntity responseEntity = response.getEntity();
|
||||
if (response.getStatusLine().getStatusCode() == 200 && responseEntity != null) {
|
||||
String responseJson = EntityUtils.toString(responseEntity);
|
||||
JSONArray jsonArray = JSON.parseArray(responseJson);
|
||||
List<DiscordlaborUnionDto> jsonArrayToStringList = JSONObject.parseArray(jsonArray.toJSONString(),DiscordlaborUnionDto.class);
|
||||
return jsonArrayToStringList;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Boolean findUserLaborUnion(String token, String guildId) {
|
||||
try {
|
||||
// 设置请求URL和Bearer Token
|
||||
CloseableHttpClient httpClient = HttpClientBuilder.create().build();
|
||||
HttpGet httpPost = new HttpGet("https://discord.com/api/v9/users/@me/guilds/" + guildId+"/member");
|
||||
httpPost.setHeader("Content-Type", "application/json;charset=utf8");
|
||||
httpPost.setHeader("Authorization", "Bearer " + token);
|
||||
CloseableHttpResponse response = null;
|
||||
// 由客户端执行(发送)Post请求
|
||||
response = httpClient.execute(httpPost);
|
||||
// 从响应模型中获取响应实体
|
||||
HttpEntity responseEntity = response.getEntity();
|
||||
if (response.getStatusLine().getStatusCode() == 200 && responseEntity != null) {
|
||||
String responseJson = EntityUtils.toString(responseEntity);
|
||||
JSONObject jsonArray = JSON.parseObject(responseJson);
|
||||
if(jsonArray.get("user") != null){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户信息
|
||||
* @param address
|
||||
* @return
|
||||
*/
|
||||
public UserDto findUser(String address) {
|
||||
try {
|
||||
String token = this.getTokenByCode(null,address);
|
||||
if(token == null){
|
||||
return null;
|
||||
}
|
||||
// 设置请求URL和Bearer Token
|
||||
CloseableHttpClient httpClient = HttpClientBuilder.create().build();
|
||||
HttpGet httpPost = new HttpGet("https://discord.com/api/v9/users/@me");
|
||||
httpPost.setHeader("Content-Type", "application/json;charset=utf8");
|
||||
httpPost.setHeader("Authorization", "Bearer " + token);
|
||||
CloseableHttpResponse response = null;
|
||||
// 由客户端执行(发送)Post请求
|
||||
response = httpClient.execute(httpPost);
|
||||
// 从响应模型中获取响应实体
|
||||
HttpEntity responseEntity = response.getEntity();
|
||||
if (response.getStatusLine().getStatusCode() == 200 && responseEntity != null) {
|
||||
String responseJson = EntityUtils.toString(responseEntity);
|
||||
JSONObject jsonArray = JSON.parseObject(responseJson);
|
||||
UserDto userDto = JSON.toJavaObject(jsonArray, UserDto.class);
|
||||
return userDto;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户是否加入Discord
|
||||
* @param address
|
||||
* @return
|
||||
*/
|
||||
public Boolean joinConfirmation(String address,String guildId) {
|
||||
//刷新用户token
|
||||
String accessToken = this.getTokenByCode(null,address);
|
||||
if(accessToken == null){
|
||||
return false;
|
||||
}
|
||||
//查询用户工会
|
||||
return this.findUserLaborUnion(accessToken,guildId);
|
||||
}
|
||||
|
||||
public void bindUser(String id) {
|
||||
Integer num = dslContext.selectCount().from(T_MEMBER).where(T_MEMBER.DISCORD_ID.eq(id)).fetchAnyInto(Integer.class);
|
||||
Assert.isTrue(num == 0,"The account has been linked Discord");
|
||||
}
|
||||
|
||||
/*public String getDiscordByCodeUrl(DcAttentionReq dcAttentionReq) {
|
||||
String token = this.getRefreshToken(dcAttentionReq.getAddress());
|
||||
String discordUserIdKey = "discord_user_token"+dcAttentionReq.getAddress();
|
||||
//查询用户个人信息
|
||||
String discordUserId = RedisUtil.get(discordUserIdKey);
|
||||
if(discordUserId == null){
|
||||
discordUserId = this.findUser(token).getId();
|
||||
RedisUtil.setEx(discordUserIdKey,discordUserId,60 * 100);
|
||||
}
|
||||
try {
|
||||
//先把原订单取消掉
|
||||
dslContext.update(TASK_LOG).set(TASK_LOG.TASK_TYPE,4).where(TASK_LOG.ADDRESS.eq(dcAttentionReq.getAddress())
|
||||
.and(TASK_LOG.STATUS.eq(3)).and(TASK_LOG.TASK_TYPE.eq(2))).execute();
|
||||
TaskLogRecord log = dslContext.newRecord(TASK_LOG);
|
||||
log.setAddress(dcAttentionReq.getAddress());
|
||||
log.setMerchantId(1);
|
||||
log.setTaskOn("001");
|
||||
log.setType(dcAttentionReq.getCodeNo());
|
||||
log.setStatus(3);
|
||||
log.setUserId(discordUserId);
|
||||
log.setTaskType(2);
|
||||
log.store();
|
||||
|
||||
return DiscordConfig.INVITE_URL;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
/* public TgUserReq findChannelMember(DcAttentionReq dcAttentionReq) {
|
||||
TgUserReq tgUserReq = new TgUserReq();
|
||||
tgUserReq.setStatus(0);
|
||||
Assert.isTrue(!StringUtils.isBlank(dcAttentionReq.getAddress()) &&
|
||||
!StringUtils.isBlank(dcAttentionReq.getMerchantOn()) && dcAttentionReq.getCodeNo() != null, "parameter not null");
|
||||
dcAttentionReq.setAddress(dcAttentionReq.getAddress().toLowerCase());
|
||||
if(dcAttentionReq.getDay() != null && dcAttentionReq.getDay() == 1){
|
||||
String value = RedisUtil.get("roost_gpask_discord"+dcAttentionReq.getAddress());
|
||||
if(value != null){
|
||||
tgUserReq.setStatus(1);
|
||||
}
|
||||
}else{
|
||||
TaskLogRecord taskLogRecord = merchantService.getTaskLog(dcAttentionReq.getAddress(),dcAttentionReq.getCodeNo(),3,3);
|
||||
Assert.notNull(taskLogRecord,"tsak is null");
|
||||
tgUserReq.setStatus(taskLogRecord.getTaskType().equals(3) ? 1 : 0);
|
||||
}
|
||||
return tgUserReq;
|
||||
}
|
||||
|
||||
public String getStartTgUrl(DcFaucetReq dcFaucetReq) {
|
||||
MerchantPojo merchantPojo = merchantService.getMerchant(dcFaucetReq.getCodeNo(),dcFaucetReq.getMerchantOn());
|
||||
MerchantConfigPojo merchantConfigPojo = merchantService.getMerchantConfig(merchantPojo.getId());
|
||||
dslContext.update(TASK_LOG).set(TASK_LOG.TASK_TYPE,4).where(TASK_LOG.ADDRESS.eq(dcFaucetReq.getAddress())
|
||||
.and(TASK_LOG.STATUS.eq(3)).and(TASK_LOG.TASK_TYPE.in(1,2)).and(TASK_LOG.MERCHANT_ID.eq(merchantPojo.getId()))).execute();
|
||||
TaskLogRecord log = dslContext.newRecord(TASK_LOG);
|
||||
log.setMerchantId(merchantPojo.getId());
|
||||
log.setAddress(dcFaucetReq.getAddress());
|
||||
log.setTaskOn("00X");
|
||||
log.setType(dcFaucetReq.getCodeNo());
|
||||
log.setTaskType(1);
|
||||
log.setStatus(3);
|
||||
log.setUserId("0");
|
||||
log.store();
|
||||
return merchantConfigPojo.getDcInviteUrl();
|
||||
}*/
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,334 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.util.NumberUtil;
|
||||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.db.entity.Vo.HomeVo;
|
||||
import com.alive.db.entity.Vo.NodeLogVo;
|
||||
import com.alive.db.entity.Vo.UserNodeLogVo;
|
||||
import com.alive.db.entity.Vo.UserNodeVo;
|
||||
import com.alive.db.jooq.tables.records.*;
|
||||
import com.alive.db.mapper.ActivityMapper;
|
||||
import com.alive.server.api.account.NodePayReq;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jooq.*;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.alive.db.jooq.Tables.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户节点 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author HayDen
|
||||
* @since 2024-06-25
|
||||
*/
|
||||
@Service
|
||||
public class IUserNodeService extends BaseComponent {
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
@Resource
|
||||
private SysConfigService sysConfigService;
|
||||
|
||||
@Resource
|
||||
private ActivityMapper activityMapper;
|
||||
|
||||
public void initNode(Integer id,String address) {
|
||||
UserNodeRecord userNode = dslContext.newRecord(USER_NODE);
|
||||
userNode.setWalletAddress(address);
|
||||
userNode.setNodeNumber(0);
|
||||
userNode.setNodeFreeze(0);
|
||||
userNode.setBuyAmountCount(BigDecimal.ZERO);
|
||||
userNode.setUserId(id);
|
||||
userNode.setNodeCount(0);
|
||||
userNode.setPromotionUsdt(BigDecimal.ZERO);
|
||||
userNode.store();
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户下单
|
||||
* @param nodePayReq
|
||||
* @return
|
||||
*/
|
||||
public UserNodeLogVo payNode(NodePayReq nodePayReq) {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
List<SysConfigRecord> list = dslContext.select().from(SYS_CONFIG).where(SYS_CONFIG.CONFIG_KEY.in("NODE_NUMBER","NODE_PRICE","NODE_MIN","NODE_MAX")).fetchInto(SysConfigRecord.class);
|
||||
Map<String,String> map = new HashMap<>();
|
||||
list.forEach(l -> map.put(l.getConfigKey(),l.getValue()));
|
||||
Integer nodeNumber = Integer.parseInt(map.get("NODE_NUMBER"));
|
||||
if(Integer.parseInt(map.get("NODE_MIN")) > nodePayReq.getNumber() ||
|
||||
Integer.parseInt(map.get("NODE_MAX")) < nodePayReq.getNumber()){
|
||||
throw new RuntimeException("Purchase quantity limit");
|
||||
}
|
||||
|
||||
//统计总节点数量
|
||||
Result<Record1<BigDecimal>> result = dslContext.select(DSL.sum(USER_NODE.NODE_NUMBER).as("nodeNumber"))
|
||||
.from(USER_NODE)
|
||||
.fetch();
|
||||
|
||||
Integer nodeCount = Integer.parseInt(result.get(0).getValue(0).toString()) + nodePayReq.getNumber();
|
||||
if(nodeCount > nodeNumber){
|
||||
throw new RuntimeException("The number of nodes is insufficient");
|
||||
}
|
||||
//支付总金额
|
||||
BigDecimal amount = new BigDecimal(map.get("NODE_PRICE")).multiply(new BigDecimal(nodePayReq.getNumber()));
|
||||
//查询节点配置
|
||||
List<NodeIncomeConfigRecord> incomeConfigs = dslContext.selectFrom(NODE_INCOME_CONFIG).fetchInto(NodeIncomeConfigRecord.class);
|
||||
Map<Integer,BigDecimal> incomeMap = new HashMap<>();
|
||||
incomeConfigs.forEach(m -> incomeMap.put(m.getEra(),m.getIncome()));
|
||||
//查询所有上级
|
||||
TMemberRecord user = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ID.eq(memberId)).fetchAny();
|
||||
List<String> ids = new ArrayList<>();
|
||||
String[] arrId = user.getAllPid().split(",");
|
||||
for (int i = 0; i < arrId.length; i++) {
|
||||
String id = arrId[i];
|
||||
if(!StringUtils.isBlank(id) && !id.equals(memberId+"")){
|
||||
ids.add(id);
|
||||
}
|
||||
}
|
||||
|
||||
UserNodeLogRecord userNodeLog = dslContext.newRecord(USER_NODE_LOG);
|
||||
userNodeLog.setUserId(memberId);
|
||||
userNodeLog.setWalletAddress(user.getAccount());
|
||||
userNodeLog.setNodeSettingId(0);
|
||||
userNodeLog.setNodeNumber(nodePayReq.getNumber());
|
||||
userNodeLog.setBuyAmount(amount);
|
||||
userNodeLog.setStatus(2);
|
||||
userNodeLog.setOrderNumber(NumberUtil.createOrderNo("300"));
|
||||
userNodeLog.setPayCoin("USDT");
|
||||
userNodeLog.setAddressOne("0");
|
||||
userNodeLog.setAwardOne(BigDecimal.ZERO);
|
||||
userNodeLog.setAddressTwo("0");
|
||||
userNodeLog.setAwardTwo(BigDecimal.ZERO);
|
||||
|
||||
if(ids.size() > 0){
|
||||
List<TMemberRecord> userList = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ID.in(ids)).orderBy(T_MEMBER.ID.desc()).limit(2).fetchInto(TMemberRecord.class);
|
||||
//已分配比例
|
||||
List<NodeLogVo> nodeLogVos = new ArrayList<>();
|
||||
for (int i = 0; i < userList.size(); i++) {
|
||||
user = userList.get(i);
|
||||
if(user == null){
|
||||
break;
|
||||
}
|
||||
NodeLogVo nodeLogVo = new NodeLogVo();
|
||||
nodeLogVo.setAddress(user.getAccount());
|
||||
nodeLogVo.setLevel(user.getLevel());
|
||||
nodeLogVo.setAlgebra(i+1);
|
||||
nodeLogVo.setProportion(BigDecimal.ZERO);
|
||||
nodeLogVo.setAmount(BigDecimal.ZERO);
|
||||
|
||||
BigDecimal tameProportion = incomeMap.getOrDefault(i + 1,BigDecimal.ZERO);
|
||||
//比例
|
||||
nodeLogVo.setProportion(tameProportion);
|
||||
if(i == 0){
|
||||
userNodeLog.setAddressOne(user.getAccount());
|
||||
userNodeLog.setAwardOne(amount.multiply(tameProportion));
|
||||
}else if(i == 1){
|
||||
userNodeLog.setAddressTwo(user.getAccount());
|
||||
userNodeLog.setAwardTwo(amount.multiply(tameProportion));
|
||||
}
|
||||
nodeLogVo.setProportion(tameProportion);
|
||||
nodeLogVo.setAmount(amount.multiply(tameProportion));
|
||||
nodeLogVos.add(nodeLogVo);
|
||||
}
|
||||
userNodeLog.setDataJson(JSONArray.toJSONString(nodeLogVos));
|
||||
}
|
||||
userNodeLog.setIllustrate("下单");
|
||||
int number = userNodeLog.store();
|
||||
if(number <= 0){
|
||||
throw new RuntimeException("Failed to place an order");
|
||||
}
|
||||
UserNodeLogVo userNodeLogVo = new UserNodeLogVo();
|
||||
userNodeLogVo.setUserId(userNodeLog.getUserId());
|
||||
userNodeLogVo.setWalletAddress(userNodeLog.getWalletAddress());
|
||||
userNodeLogVo.setNodeSettingId(userNodeLog.getNodeSettingId());
|
||||
userNodeLogVo.setNodeNumber(userNodeLog.getNodeNumber());
|
||||
userNodeLogVo.setBuyAmount(userNodeLog.getBuyAmount());
|
||||
userNodeLogVo.setStatus(userNodeLog.getStatus());
|
||||
userNodeLogVo.setOrderNumber(userNodeLog.getOrderNumber());
|
||||
userNodeLogVo.setPayCoin(userNodeLog.getPayCoin());
|
||||
userNodeLogVo.setAddressOne(userNodeLog.getAddressOne());
|
||||
userNodeLogVo.setAwardOne(userNodeLog.getAwardOne());
|
||||
userNodeLogVo.setAddressTwo(userNodeLog.getAddressTwo());
|
||||
userNodeLogVo.setAwardTwo(userNodeLog.getAwardTwo());
|
||||
return userNodeLogVo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取首页数据
|
||||
* @return
|
||||
*/
|
||||
public HomeVo getHomeData() {
|
||||
String token = RequestUtil.getToken();
|
||||
HomeVo homeVo = new HomeVo();
|
||||
homeVo.setLevel(0);
|
||||
homeVo.setDirectPushNode(0);
|
||||
homeVo.setPushNodesIndirectly(0);
|
||||
homeVo.setRevenueUsdt("0");
|
||||
homeVo.setNodeNumber(0);
|
||||
homeVo.setNodePrice(sysConfigService.getStringValue("NODE_PRICE"));
|
||||
if(!StringUtils.isBlank(token)){
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
TMemberRecord user = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ID.eq(memberId)).fetchAny();
|
||||
Integer lenth = user.getAccount().length();
|
||||
homeVo.setAddress(user.getAccount().substring(0,5)+"*****"+user.getAccount().substring(lenth-5,lenth));
|
||||
homeVo.setLevel(user.getLevel());
|
||||
homeVo.setDirectPushNode(activityMapper.directPushNode(memberId));
|
||||
homeVo.setPushNodesIndirectly(activityMapper.intermittentPushingNode(memberId));
|
||||
UserNodeRecord userNode = dslContext.selectFrom(USER_NODE).where(USER_NODE.USER_ID.eq(memberId)).fetchAny();
|
||||
homeVo.setRevenueUsdt(userNode.getPromotionUsdt().stripTrailingZeros().toPlainString());
|
||||
homeVo.setNodeNumber(userNode.getNodeNumber());
|
||||
}
|
||||
return homeVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验订单,生成node节点
|
||||
* @param log
|
||||
*/
|
||||
public void addNode(UserNodeLogRecord log) {
|
||||
UserNodeLogRecord nodeLog = dslContext.selectFrom(USER_NODE_LOG)
|
||||
.where(USER_NODE_LOG.WALLET_ADDRESS.eq(log.getWalletAddress()).and(USER_NODE_LOG.ORDER_NUMBER.eq(log.getOrderNumber()))
|
||||
.and(USER_NODE_LOG.STATUS.eq(2))).fetchAny();
|
||||
if(nodeLog == null){
|
||||
return;
|
||||
}
|
||||
nodeLog.setHash(log.getHash());
|
||||
if(nodeLog.getBuyAmount().compareTo(log.getBuyAmount()) != 0){
|
||||
nodeLog.setStatus(4);
|
||||
nodeLog.setIllustrate("支付金额不一致");
|
||||
}
|
||||
if(nodeLog.getAwardOne().compareTo(log.getAwardOne()) != 0 || !nodeLog.getAddressOne().equals(log.getAddressOne())){
|
||||
nodeLog.setStatus(4);
|
||||
nodeLog.setIllustrate("一代奖励数据不一致");
|
||||
}
|
||||
if(nodeLog.getAwardTwo().compareTo(log.getAwardTwo()) != 0 || !nodeLog.getAddressTwo().equals(log.getAddressTwo())){
|
||||
nodeLog.setStatus(4);
|
||||
nodeLog.setIllustrate("二代奖励数据不一致");
|
||||
}
|
||||
if(nodeLog.getStatus().equals(2)){
|
||||
//查询当前用户是否有节点
|
||||
UserNodeRecord userNode = dslContext.selectFrom(USER_NODE).where(USER_NODE.WALLET_ADDRESS.eq(nodeLog.getWalletAddress())).fetchAny();
|
||||
//该用户第一次购买节点
|
||||
if(userNode.getNodeCount() == 0){
|
||||
TMemberRecord user = dslContext.selectFrom(T_MEMBER).where(T_MEMBER.ID.eq(userNode.getUserId())).fetchAny();
|
||||
//升级为区域代理
|
||||
if(user.getLevel() == 0){
|
||||
dslContext.update(T_MEMBER).set(T_MEMBER.LEVEL, 1)
|
||||
.where(T_MEMBER.ID.eq(user.getId())).execute();
|
||||
}
|
||||
//给上级直推和团队增加节点数
|
||||
if(user.getReferId() != null && user.getReferId() != 0){
|
||||
dslContext.update(T_MEMBER)
|
||||
.set(T_MEMBER.NODE_NUMBER, T_MEMBER.NODE_NUMBER.add(1))
|
||||
.where(T_MEMBER.ID.eq(user.getReferId())).execute();
|
||||
}
|
||||
String[] arrIds = user.getAllPid().split(",");
|
||||
List<String> ids = new ArrayList<>();
|
||||
for (int i = 0; i < arrIds.length; i++) {
|
||||
String id = arrIds[i];
|
||||
if(!StringUtils.isBlank(id) && !id.equals(nodeLog.getUserId().toString())){
|
||||
ids.add(id);
|
||||
}
|
||||
}
|
||||
if(ids.size() > 0){
|
||||
dslContext.update(T_MEMBER)
|
||||
.set(T_MEMBER.TEAM_NODE_NUMBER, T_MEMBER.TEAM_NODE_NUMBER.add(1))
|
||||
.where(T_MEMBER.ID.in(ids)).execute();
|
||||
}
|
||||
}
|
||||
//购买成功
|
||||
nodeLog.setStatus(3);
|
||||
nodeLog.setIllustrate("购买成功");
|
||||
dslContext.update(USER_NODE)
|
||||
.set(USER_NODE.NODE_NUMBER, USER_NODE.NODE_NUMBER.add(nodeLog.getNodeNumber()))
|
||||
.set(USER_NODE.NODE_COUNT, USER_NODE.NODE_COUNT.add(nodeLog.getNodeNumber()))
|
||||
.where(USER_NODE.USER_ID.eq(nodeLog.getUserId())).execute();
|
||||
if(nodeLog.getAddressOne() != null && !"0".equals(nodeLog.getAddressOne())){
|
||||
dslContext.update(USER_NODE)
|
||||
.set(USER_NODE.PROMOTION_USDT, USER_NODE.PROMOTION_USDT.add(nodeLog.getAwardOne()))
|
||||
.where(USER_NODE.WALLET_ADDRESS.eq(nodeLog.getAddressOne())).execute();
|
||||
}
|
||||
if(nodeLog.getAddressTwo() != null && !nodeLog.getAddressTwo().equals("0")){
|
||||
dslContext.update(USER_NODE)
|
||||
.set(USER_NODE.PROMOTION_USDT, USER_NODE.PROMOTION_USDT.add(nodeLog.getAwardTwo()))
|
||||
.where(USER_NODE.WALLET_ADDRESS.eq(nodeLog.getAddressTwo())).execute();
|
||||
}
|
||||
}
|
||||
nodeLog.update();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询推荐人列表
|
||||
* @param pageNum
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
public List<UserNodeVo> recommendedLists(Integer pageNum, Integer pageSize,Integer status) {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
List<TMemberRecord> userList = dslContext.select(T_MEMBER.ID,T_MEMBER.ACCOUNT,T_MEMBER.LEVEL).from(T_MEMBER).where(T_MEMBER.REFER_ID.eq(memberId)).fetchInto(TMemberRecord.class);
|
||||
Map<String,Integer> map = new HashMap<>();
|
||||
if (userList != null && userList.size() > 0) {
|
||||
List<Integer> ids = new ArrayList<>();
|
||||
for (TMemberRecord tMemberRecord : userList){
|
||||
ids.add(tMemberRecord.getId());
|
||||
map.putIfAbsent(tMemberRecord.getAccount(),tMemberRecord.getLevel());
|
||||
}
|
||||
if(status != null){
|
||||
userList = dslContext.select(T_MEMBER.ID,T_MEMBER.ACCOUNT,T_MEMBER.LEVEL).from(T_MEMBER).where(T_MEMBER.REFER_ID.in(ids)).fetchInto(TMemberRecord.class);
|
||||
if(userList == null || userList.size() == 0){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
ids = new ArrayList<>();
|
||||
for (TMemberRecord tMemberRecord : userList){
|
||||
ids.add(tMemberRecord.getId());
|
||||
map.putIfAbsent(tMemberRecord.getAccount(),tMemberRecord.getLevel());
|
||||
}
|
||||
}
|
||||
|
||||
// 计算分页偏移量
|
||||
int offset = (pageNum - 1) * pageSize;
|
||||
// 查询记录
|
||||
List<UserNodeRecord> result = dslContext.select(USER_NODE.WALLET_ADDRESS, USER_NODE.NODE_NUMBER)
|
||||
.from(USER_NODE)
|
||||
.where(USER_NODE.USER_ID.in(ids))
|
||||
.orderBy(USER_NODE.ID.desc())
|
||||
.limit(pageSize)
|
||||
.offset(offset)
|
||||
.fetchInto(UserNodeRecord.class);
|
||||
// 处理结果
|
||||
List<UserNodeVo> userNodeList = new ArrayList<>();
|
||||
for (UserNodeRecord record : result) {
|
||||
UserNodeVo userNode = new UserNodeVo();
|
||||
String walletAddress = record.getWalletAddress();
|
||||
userNode.setLevel(map.get(walletAddress));
|
||||
int len = walletAddress.length();
|
||||
userNode.setWalletAddress(walletAddress.substring(0, 5) + "*****" + walletAddress.substring(len - 5, len));
|
||||
userNode.setNodeNumber(record.getNodeNumber());
|
||||
// 其他设置
|
||||
userNodeList.add(userNode);
|
||||
}
|
||||
return userNodeList;
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.alive.commons.util.Md5Util;
|
|||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.db.entity.Vo.InvitationCodeVo;
|
||||
import com.alive.db.jooq.tables.records.TMemberRecord;
|
||||
import com.alive.db.jooq.tables.records.UserNodeRecord;
|
||||
import com.alive.server.dto.TwitterUserDto;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.math.NumberUtils;
|
||||
|
@ -14,6 +15,7 @@ import org.springframework.util.Assert;
|
|||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.T_MEMBER;
|
||||
import static com.alive.db.jooq.tables.UserNodeTable.USER_NODE;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
|
@ -34,22 +36,7 @@ public class MemberService extends BaseComponent {
|
|||
return res;
|
||||
}
|
||||
|
||||
public Integer countTwitterUser(String address) {
|
||||
return dslContext.selectCount().from(T_MEMBER).where(T_MEMBER.ACCOUNT.eq(address).and(T_MEMBER.TWITTER_ID.isNotNull())).fetchAnyInto(Integer.class);
|
||||
}
|
||||
|
||||
public Integer countDiscordUser(String address) {
|
||||
return dslContext.selectCount().from(T_MEMBER).where(T_MEMBER.ACCOUNT.eq(address).and(T_MEMBER.DISCORD_ID.isNotNull())).fetchAnyInto(Integer.class);
|
||||
}
|
||||
|
||||
public void renewalUserDiscord(String address,String discordId) {
|
||||
dslContext.update(T_MEMBER).set(T_MEMBER.DISCORD_ID,discordId).where(T_MEMBER.ACCOUNT.eq(address)).execute();
|
||||
}
|
||||
|
||||
public void renewalUserTwitter(TwitterUserDto dto, String address) {
|
||||
dslContext.update(T_MEMBER).set(T_MEMBER.TWITTER_TYPE,1).set(T_MEMBER.TWITTER_USER_NAME,dto.getUsername()).set(T_MEMBER.TWITTER_ID,dto.getId())
|
||||
.set(T_MEMBER.TWITTER_NAME,dto.getName()).set(T_MEMBER.TWITTER_IMG,dto.getImg()).where(T_MEMBER.ACCOUNT.eq(address)).execute();
|
||||
}
|
||||
|
||||
public TMemberRecord fetchOne(int memberId) {
|
||||
return dslContext.fetchOne(T_MEMBER, T_MEMBER.ID.eq(memberId));
|
||||
|
@ -80,6 +67,10 @@ public class MemberService extends BaseComponent {
|
|||
|
||||
public InvitationCodeVo invitationCode() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
UserNodeRecord nodeRecord = dslContext.fetchOne(USER_NODE, USER_NODE.USER_ID.eq(memberId));
|
||||
if(nodeRecord == null || nodeRecord.getNodeNumber() <= 0){
|
||||
return new InvitationCodeVo().setInvitationCode("");
|
||||
}
|
||||
TMemberRecord memberRecord = dslContext.fetchOne(T_MEMBER, T_MEMBER.ID.eq(memberId));
|
||||
return memberRecord != null ? new InvitationCodeVo().setInvitationCode(memberRecord.getShareCode()) : new InvitationCodeVo();
|
||||
}
|
||||
|
|
|
@ -1,112 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.Vo.WordNodeVo;
|
||||
import com.alive.db.mapper.NodeBuyLogMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 节点认购记录Service业务层处理
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Service
|
||||
public class NodeBuyLogService
|
||||
{
|
||||
@Autowired
|
||||
private NodeBuyLogMapper nodeSubscribeMapper;
|
||||
|
||||
/**
|
||||
* 查询节点认购记录
|
||||
*
|
||||
* @param id 节点认购记录ID
|
||||
* @return 节点认购记录
|
||||
*/
|
||||
public NodeBuyLog selectNodeSubscribeById(Integer id)
|
||||
{
|
||||
return nodeSubscribeMapper.selectNodeSubscribeById(id);
|
||||
}
|
||||
|
||||
public Integer countBuyLogByUserId(NodeBuyLog nodeSubscribe)
|
||||
{
|
||||
return nodeSubscribeMapper.countBuyLogByUserId(nodeSubscribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点认购记录列表
|
||||
*
|
||||
* @param nodeSubscribe 节点认购记录
|
||||
* @return 节点认购记录
|
||||
*/
|
||||
public List<NodeBuyLog> selectNodeSubscribeList(NodeBuyLog nodeSubscribe)
|
||||
{
|
||||
List<NodeBuyLog> nodeSubscribeList = nodeSubscribeMapper.selectNodeSubscribeList(nodeSubscribe);
|
||||
return nodeSubscribeList;
|
||||
}
|
||||
|
||||
public NodeBuyLog findNodeSubscribeByOrderNumber(String orderNumber)
|
||||
{
|
||||
return nodeSubscribeMapper.findNodeSubscribeByOrderNumber(orderNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点认购记录对象
|
||||
*
|
||||
* @param nodeSubscribe 节点认购记录
|
||||
* @return 节点认购记录
|
||||
*/
|
||||
public NodeBuyLog findNodeSubscribe(NodeBuyLog nodeSubscribe)
|
||||
{
|
||||
nodeSubscribe = nodeSubscribeMapper.findNodeSubscribe(nodeSubscribe);
|
||||
return nodeSubscribe;
|
||||
}
|
||||
|
||||
public WordNodeVo findWordNodeVo()
|
||||
{
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
WordNodeVo wordNodeVo= nodeSubscribeMapper.findWordNodeVo(memberId);
|
||||
if(wordNodeVo == null || StringUtils.isBlank(wordNodeVo.getNodeName())){
|
||||
wordNodeVo = new WordNodeVo();
|
||||
Integer count = this.countBuyLogByUserId(new NodeBuyLog().setUserId(memberId).setStatus(2));
|
||||
if(count != null && count > 0){
|
||||
wordNodeVo.setStatus(2);
|
||||
}else{
|
||||
wordNodeVo.setStatus(3);
|
||||
}
|
||||
}else{
|
||||
wordNodeVo.setStatus(1);
|
||||
}
|
||||
return wordNodeVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改或者添加节点认购记录
|
||||
*
|
||||
* @param nodeSubscribe 节点认购记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrAddNodeSubscribe(NodeBuyLog nodeSubscribe) {
|
||||
if (nodeSubscribe.getId() != null){
|
||||
return nodeSubscribeMapper.updateNodeSubscribe(nodeSubscribe);
|
||||
}else{
|
||||
return nodeSubscribeMapper.insertNodeSubscribe(nodeSubscribe);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除节点认购记录对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeSubscribeByIds(String ids)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -1,172 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.commons.enums.WalletLogTypeEnum;
|
||||
import com.alive.commons.util.CoinUtil;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.NodeNftConfig;
|
||||
import com.alive.db.jooq.tables.records.TMemberRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberWalletRecord;
|
||||
import com.alive.db.mapper.NodeNftConfigMapper;
|
||||
import com.alive.server.dto.WalletOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* NFT碎片配置Service业务层处理
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Service
|
||||
public class NodeNftConfigService
|
||||
{
|
||||
@Autowired
|
||||
private NodeNftConfigMapper nodeNftConfigMapper;
|
||||
|
||||
@Autowired
|
||||
private WalletService walletService;
|
||||
|
||||
@Autowired
|
||||
private MemberService memberService;
|
||||
|
||||
/**
|
||||
* 查询NFT碎片配置
|
||||
*
|
||||
* @param id NFT碎片配置ID
|
||||
* @return NFT碎片配置
|
||||
*/
|
||||
public NodeNftConfig selectNodeNftConfigById(Integer id)
|
||||
{
|
||||
return nodeNftConfigMapper.selectNodeNftConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询NFT碎片配置列表
|
||||
*
|
||||
* @param nodeNftConfig NFT碎片配置
|
||||
* @return NFT碎片配置
|
||||
*/
|
||||
public List<NodeNftConfig> selectNodeNftConfigList(NodeNftConfig nodeNftConfig)
|
||||
{
|
||||
List<NodeNftConfig> nodeNftConfigList = nodeNftConfigMapper.selectNodeNftConfigList(nodeNftConfig);
|
||||
return nodeNftConfigList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询NFT碎片配置对象
|
||||
*
|
||||
* @param nodeNftConfig NFT碎片配置
|
||||
* @return NFT碎片配置
|
||||
*/
|
||||
public NodeNftConfig findNodeNftConfig(NodeNftConfig nodeNftConfig)
|
||||
{
|
||||
nodeNftConfig = nodeNftConfigMapper.findNodeNftConfig(nodeNftConfig);
|
||||
return nodeNftConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改或者添加NFT碎片配置
|
||||
*
|
||||
* @param nodeNftConfig NFT碎片配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrAddNodeNftConfig(NodeNftConfig nodeNftConfig) {
|
||||
if (nodeNftConfig.getId() != null){
|
||||
return nodeNftConfigMapper.updateNodeNftConfig(nodeNftConfig);
|
||||
}else{
|
||||
return nodeNftConfigMapper.insertNodeNftConfig(nodeNftConfig);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除NFT碎片配置对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeNftConfigByIds(String ids)
|
||||
{
|
||||
return nodeNftConfigMapper.deleteNodeNftConfigByIds(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册赠送奖励、NTF碎片以及贡献值
|
||||
*/
|
||||
public void reward(NodeBuyLog nodeSubscribe) {
|
||||
TMemberWalletRecord walletRecord= null;
|
||||
WalletOperation walletOperation = null;
|
||||
//先给用户自己发放奖励
|
||||
{
|
||||
if(nodeSubscribe.getRbitAmount().compareTo(BigDecimal.ZERO) > 0){
|
||||
//购买盒子获取Rbit奖励数量
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getUserId(), CoinUtil.getCoinMap().get("RBIT"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.RBIT_IS_COMPLIMENTARY_ON_ORDERS,nodeSubscribe.getRbitAmount(),"购买盒子赠送");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
if(nodeSubscribe.getNftAmount().compareTo(BigDecimal.ZERO) > 0){
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getUserId(), CoinUtil.getCoinMap().get("NFTCHIP"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.ORDER_FREE_NFT,nodeSubscribe.getNftAmount(),"购买盒子赠送");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
}
|
||||
|
||||
//查询我的用户信息
|
||||
TMemberRecord tMemberRecord = memberService.fetchOne(nodeSubscribe.getUserId());
|
||||
if(tMemberRecord.getReferId().equals(0)){
|
||||
//用户没有绑定上级,直接返回不计算奖励
|
||||
return;
|
||||
}
|
||||
|
||||
//上级返佣
|
||||
if(nodeSubscribe.getRebate().compareTo(BigDecimal.ZERO) > 0){
|
||||
//返佣金额
|
||||
walletRecord= walletService.getWallet(tMemberRecord.getReferId(), CoinUtil.getCoinMap().get("USDT"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.SUBCOMMISSION,nodeSubscribe.getRebate(),"认购下级返佣");
|
||||
walletService.operateBalance(walletOperation);
|
||||
|
||||
//链上支付了,扣回去,但是需要流水统计数据
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.REBATE_TO_ACCOUNT,nodeSubscribe.getRebate().negate(),"返佣到账");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
|
||||
{
|
||||
if(nodeSubscribe.getRbitOne().compareTo(BigDecimal.ZERO) > 0){
|
||||
//1代增加Rbit奖励
|
||||
nodeSubscribe.setRecommendId(tMemberRecord.getReferId());
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getRecommendId(), CoinUtil.getCoinMap().get("RBIT"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.ONE_RBIT_REWARD,nodeSubscribe.getRbitOne(),"1代Rbit奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
if(nodeSubscribe.getNftOne().compareTo(BigDecimal.ZERO) > 0){
|
||||
//1代NFT碎片奖励
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getRecommendId(), CoinUtil.getCoinMap().get("NFTCHIP"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.ONE_NFT_REWARD,nodeSubscribe.getNftOne(),"1代NFT配件奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
}
|
||||
|
||||
tMemberRecord = memberService.fetchOne(tMemberRecord.getReferId());
|
||||
if(tMemberRecord.getReferId().equals(0)){
|
||||
//用户没有2级上级,直接返回不计算奖励
|
||||
return;
|
||||
}
|
||||
{
|
||||
if(nodeSubscribe.getRbitTwo().compareTo(BigDecimal.ZERO) > 0){
|
||||
nodeSubscribe.setIndirectUserId(tMemberRecord.getReferId());
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getIndirectUserId(), CoinUtil.getCoinMap().get("RBIT"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.TWO_RBIT_REWARD,nodeSubscribe.getRbitTwo(),"2代Rbit奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
if(nodeSubscribe.getNftTwo().compareTo(BigDecimal.ZERO) > 0){
|
||||
//2代NFT碎片奖励
|
||||
walletRecord= walletService.getWallet(nodeSubscribe.getIndirectUserId(), CoinUtil.getCoinMap().get("NFTCHIP"));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.TWO_NFT_REWARD,nodeSubscribe.getNftTwo(),"2代NFT配件奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,87 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.db.entity.NodePriceConfig;
|
||||
import com.alive.db.mapper.NodePriceConfigMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 节点价格区间配置Service业务层处理
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Service
|
||||
public class NodePriceConfigService
|
||||
{
|
||||
@Autowired
|
||||
private NodePriceConfigMapper nodePriceConfigMapper;
|
||||
|
||||
/**
|
||||
* 查询节点价格区间配置
|
||||
*
|
||||
* @param id 节点价格区间配置ID
|
||||
* @return 节点价格区间配置
|
||||
*/
|
||||
public NodePriceConfig selectNodePriceConfigById(Integer id)
|
||||
{
|
||||
return nodePriceConfigMapper.selectNodePriceConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点价格区间配置列表
|
||||
*
|
||||
* @param nodePriceConfig 节点价格区间配置
|
||||
* @return 节点价格区间配置
|
||||
*/
|
||||
public List<NodePriceConfig> selectNodePriceConfigList(NodePriceConfig nodePriceConfig)
|
||||
{
|
||||
List<NodePriceConfig> nodePriceConfigList = nodePriceConfigMapper.selectNodePriceConfigList(nodePriceConfig);
|
||||
return nodePriceConfigList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点价格区间配置对象
|
||||
*
|
||||
* @param nodePriceConfig 节点价格区间配置
|
||||
* @return 节点价格区间配置
|
||||
*/
|
||||
public NodePriceConfig findNodePriceConfig(NodePriceConfig nodePriceConfig)
|
||||
{
|
||||
nodePriceConfig = nodePriceConfigMapper.findNodePriceConfig(nodePriceConfig);
|
||||
return nodePriceConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改或者添加节点价格区间配置
|
||||
*
|
||||
* @param nodePriceConfig 节点价格区间配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrAddNodePriceConfig(NodePriceConfig nodePriceConfig) {
|
||||
if (nodePriceConfig.getId() != null){
|
||||
return nodePriceConfigMapper.updateNodePriceConfig(nodePriceConfig);
|
||||
}else{
|
||||
return nodePriceConfigMapper.insertNodePriceConfig(nodePriceConfig);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除节点价格区间配置对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodePriceConfigByIds(String ids)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public BigDecimal getConfigPrice(Long nodeSettingId, Integer number)
|
||||
{
|
||||
return nodePriceConfigMapper.getConfigPrice(nodeSettingId,number);
|
||||
}
|
||||
}
|
|
@ -1,266 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.commons.util.NumberUtil;
|
||||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.server.api.account.PayNodeReq;
|
||||
import com.alive.server.api.account.PayNodeSmsReq;
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.db.entity.NodeBuyLog;
|
||||
import com.alive.db.entity.NodeSetting;
|
||||
import com.alive.db.entity.Vo.InviteVo;
|
||||
import com.alive.db.entity.Vo.UserInviteVo;
|
||||
import com.alive.db.entity.Vo.UserTeamVo;
|
||||
import com.alive.db.entity.Vo.WordNodeVo;
|
||||
import com.alive.db.jooq.tables.pojos.SysConfigPojo;
|
||||
import com.alive.db.jooq.tables.records.NodeAwardSettingRecord;
|
||||
import com.alive.db.mapper.NodeBuyLogMapper;
|
||||
import com.alive.db.mapper.NodeSettingMapper;
|
||||
import com.alive.server.web3.Web3jServer;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.locks.Lock;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
|
||||
import static com.alive.db.jooq.Tables.*;
|
||||
|
||||
/**
|
||||
* 节点设置Service业务层处理
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class NodeSettingService extends BaseComponent {
|
||||
@Resource
|
||||
private NodeSettingMapper nodeSettingMapper;
|
||||
|
||||
@Resource
|
||||
private NodeBuyLogMapper nodeSubscribeMapper;
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
public boolean buyNode() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
Integer code = dslContext.selectCount().from(NODE_BUY_LOG).where(NODE_BUY_LOG.USER_ID.eq(memberId).and(NODE_BUY_LOG.STATUS.eq(3))).fetchAnyInto(Integer.class);
|
||||
return code != null && code > 0;
|
||||
}
|
||||
|
||||
public UserInviteVo findUserInviteVo() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
UserInviteVo vo = nodeSettingMapper.findUserInviteVo(memberId);
|
||||
return vo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 下单购买节点
|
||||
*
|
||||
* @param nodeSetting
|
||||
* @param req
|
||||
*/
|
||||
public NodeBuyLog payNode(NodeSetting nodeSetting, PayNodeReq req) {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
Assert.isTrue(nodeSetting.getStatus().equals(1), "Not available or sold out");
|
||||
Assert.isTrue(nodeSetting.getNodeTotal() > (nodeSetting.getPurchasedCount() + req.getNumber()), "Insufficient nodes");
|
||||
//计算库存
|
||||
int count = nodeSubscribeMapper.sumBuyCount(memberId);
|
||||
Assert.isTrue((count + req.getNumber()) <= nodeSetting.getPurchaseLimit(), "Only one ROOSBOX can be purchased");
|
||||
SysConfigPojo config = dslContext.select().from(SYS_CONFIG).where(SYS_CONFIG.CONFIG_KEY.eq("USDT_COLLECTION_ADDRESS")).fetchAnyInto(SysConfigPojo.class);
|
||||
NodeAwardSettingRecord pojo = dslContext.selectFrom(NODE_AWARD_SETTING).where(NODE_AWARD_SETTING.NODE_SETTING_ID.eq(nodeSetting.getId())).fetchAny();
|
||||
|
||||
UserTeamVo userTeamVo = nodeSubscribeMapper.findUserAddressById(memberId);
|
||||
userTeamVo = userTeamVo == null ? new UserTeamVo() : userTeamVo;
|
||||
NodeBuyLog buyLog1 = new NodeBuyLog();
|
||||
Lock lock = new ReentrantLock();
|
||||
lock.lock();
|
||||
try {
|
||||
//查询奖励配置
|
||||
if (pojo != null) {
|
||||
//上级返佣
|
||||
buyLog1.setRebate(req.getTatolAmount().multiply(pojo.getRebate()));
|
||||
buyLog1.setRbitAmount(new BigDecimal(req.getNumber()).multiply(pojo.getRbitAmount()));
|
||||
buyLog1.setRbitOne(buyLog1.getRbitAmount().multiply(pojo.getRbitOne()));
|
||||
buyLog1.setRbitTwo(buyLog1.getRbitAmount().multiply(pojo.getRebateTwo()));
|
||||
buyLog1.setNftAmount(new BigDecimal(req.getNumber()).multiply(pojo.getNftAmount()));
|
||||
buyLog1.setNftOne(buyLog1.getNftAmount().multiply(pojo.getNftOne()));
|
||||
buyLog1.setNftTwo(buyLog1.getNftAmount().multiply(pojo.getNftTwo()));
|
||||
}
|
||||
buyLog1.setRecommendId(userTeamVo.getId());
|
||||
buyLog1.setBuyCount(req.getNumber());
|
||||
buyLog1.setPayCoin(nodeSetting.getBuyCoinName());
|
||||
buyLog1.setBuyAmount(req.getTatolAmount());
|
||||
buyLog1.setNodeSettingId(nodeSetting.getId());
|
||||
buyLog1.setStatus(1);
|
||||
buyLog1.setWalletAddress(RequestUtil.getAddress());
|
||||
buyLog1.setUserId(memberId);
|
||||
buyLog1.setOrderNumber(NumberUtil.getUUIDBy16());
|
||||
buyLog1.setOutAddress(config.getValue());
|
||||
nodeSubscribeMapper.insertNodeSubscribe(buyLog1);
|
||||
} catch (Exception e) {
|
||||
log.error("下单出现错误,错误码:{}", e);
|
||||
e.getMessage();
|
||||
throw new RuntimeException(e);
|
||||
} finally {
|
||||
lock.unlock();
|
||||
}
|
||||
config = dslContext.select().from(SYS_CONFIG).where(SYS_CONFIG.CONFIG_KEY.eq("USDT_WEI")).fetchAnyInto(SysConfigPojo.class);
|
||||
buyLog1.setBuyAmount(new BigDecimal(config.getValue()).multiply(buyLog1.getBuyAmount()));
|
||||
buyLog1.setRebate(new BigDecimal(config.getValue()).multiply(buyLog1.getRebate()));
|
||||
String address = userTeamVo.getAccount();
|
||||
if (address == null || pojo.getRebate().compareTo(BigDecimal.ZERO) == 0 || !address.substring(0, 2).equals("0x") || address.length() < 30) {
|
||||
buyLog1.setAddress(BigInteger.ZERO.toString());
|
||||
buyLog1.setRebateRatio(new BigInteger("100"));
|
||||
buyLog1.setNum(100);
|
||||
} else {
|
||||
|
||||
BigDecimal rebate = pojo.getRebate().multiply(new BigDecimal(config.getValue()));
|
||||
rebate = rebate.add(new BigDecimal(300));
|
||||
Integer num = getRandom4();
|
||||
rebate = rebate.multiply(new BigDecimal(num));
|
||||
buyLog1.setRebateRatio(new BigInteger(rebate.stripTrailingZeros().toPlainString()));
|
||||
buyLog1.setNum((num * 3) + 500 - num);
|
||||
buyLog1.setAddress(Web3jServer.addressToUint160(address).add(new BigInteger("300")).subtract(new BigInteger(num.toString())).toString());
|
||||
}
|
||||
return buyLog1;
|
||||
}
|
||||
|
||||
public static Integer getRandom4() {
|
||||
Random random = new Random();
|
||||
// 生成0到9之间的随机数(包括0但不包括10)
|
||||
int randomNum = random.nextInt(10);
|
||||
if (randomNum == 0) {
|
||||
return getRandom4();
|
||||
}
|
||||
return randomNum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户邀请列表
|
||||
*/
|
||||
public List<InviteVo> findInviteVoList() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
List<InviteVo> inviteVos = nodeSubscribeMapper.findInviteVoList(memberId);
|
||||
for (InviteVo vo : inviteVos) {
|
||||
vo.setStatus(vo.getStatus() == null ? 0 : 1);
|
||||
}
|
||||
return inviteVos;
|
||||
}
|
||||
|
||||
|
||||
public Boolean payNodeSms(PayNodeSmsReq req) {
|
||||
NodeBuyLog nodeSubscribe = nodeSubscribeMapper.findNodeSubscribe(new NodeBuyLog().setOrderNumber(req.getOrderNumber()).setStatus(1));
|
||||
Assert.isTrue(nodeSubscribe != null && nodeSubscribe.getStatus().equals(1), "Order error");
|
||||
if (req.getStatus().equals(2)) {
|
||||
nodeSubscribe.setStatus(4);
|
||||
nodeSubscribeMapper.updateNodeSubscribe(nodeSubscribe);
|
||||
return true;
|
||||
}
|
||||
NodeBuyLog log = nodeSubscribeMapper.findNodeSubscribe(new NodeBuyLog().setHash(req.getHash()));
|
||||
Assert.isTrue(log == null, "Repetition hash");
|
||||
nodeSubscribe.setStatus(2);
|
||||
nodeSubscribe.setHash(req.getHash());
|
||||
if (nodeSubscribe.getStatus() == 2) {
|
||||
//加库存
|
||||
// nodeSettingMapper.addInventory(nodeSubscribe.getBuyCount(),nodeSubscribe.getNodeId());
|
||||
}
|
||||
nodeSubscribeMapper.updateNodeSubscribe(nodeSubscribe);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询节点设置
|
||||
*
|
||||
* @param id 节点设置ID
|
||||
* @return 节点设置
|
||||
*/
|
||||
public NodeSetting selectNodeSettingById(Integer id) {
|
||||
return nodeSettingMapper.selectNodeSettingById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点设置列表
|
||||
*
|
||||
* @param nodeSetting 节点设置
|
||||
* @return 节点设置
|
||||
*/
|
||||
public List<NodeSetting> selectNodeSettingList(NodeSetting nodeSetting) {
|
||||
List<NodeSetting> nodeSettingList = nodeSettingMapper.selectNodeSettingList(nodeSetting);
|
||||
BigDecimal mul = new BigDecimal("100");
|
||||
for (NodeSetting nodeSetting1 : nodeSettingList) {
|
||||
nodeSetting1.setRebateRatio(nodeSetting1.getRebateRatio().multiply(mul));
|
||||
nodeSetting1.setRbitOne(nodeSetting1.getRbitOne().multiply(mul));
|
||||
nodeSetting1.setNftOne(nodeSetting1.getNftOne().multiply(mul));
|
||||
nodeSetting1.setNftTwo(nodeSetting1.getNftTwo().multiply(mul));
|
||||
nodeSetting1.setRebateTwo(nodeSetting1.getRebateTwo().multiply(mul));
|
||||
}
|
||||
return nodeSettingList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点设置对象
|
||||
*
|
||||
* @param nodeSetting 节点设置
|
||||
* @return 节点设置
|
||||
*/
|
||||
public NodeSetting findNodeSetting(NodeSetting nodeSetting) {
|
||||
nodeSetting = nodeSettingMapper.findNodeSetting(nodeSetting);
|
||||
return nodeSetting;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改或者添加节点设置
|
||||
*
|
||||
* @param nodeSetting 节点设置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrAddNodeSetting(NodeSetting nodeSetting) {
|
||||
if (nodeSetting.getId() != null) {
|
||||
return nodeSettingMapper.updateNodeSetting(nodeSetting);
|
||||
} else {
|
||||
return nodeSettingMapper.insertNodeSetting(nodeSetting);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public List<WordNodeVo> getWOrdNodePro() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
/*web3jServer.getWeb3j().ethGetTransactionReceipt(null);
|
||||
|
||||
// ERC721 合约地址和查询的地址
|
||||
String contractAddress = web3jServer.bftContract;
|
||||
String ownerAddress = "0x1167398aa2b694edb1c24874d4c7d70340e81606";
|
||||
|
||||
// 加载 ERC721 合约 ABI
|
||||
// 替换 YOUR_CONTRACT_ADDRESS 和 YOUR_CONTRACT_ABI
|
||||
String contractAddress = "YOUR_CONTRACT_ADDRESS";
|
||||
String contractABI = "YOUR_CONTRACT_ABI";
|
||||
|
||||
// 创建 ERC721 合约实例
|
||||
ERC721 contract = ERC721.load(contractAddress, web3j, credentials, Contract.GAS_PRICE, Contract.GAS_LIMIT);
|
||||
|
||||
// 获取地址的 NFT 数量
|
||||
String ownerAddress = "ADDRESS_TO_CHECK"; // 替换为您要查询的地址
|
||||
BigInteger nftCount = contract.balanceOf(ownerAddress).send();
|
||||
System.out.println("Address " + ownerAddress + " has " + nftCount + " NFTs.");*/
|
||||
return nodeSettingMapper.getWOrdNodePro(memberId);
|
||||
}
|
||||
|
||||
public String contractAddress() {
|
||||
SysConfigPojo config = dslContext.select().from(SYS_CONFIG).where(SYS_CONFIG.CONFIG_KEY.eq("CONTRACT_ADDRESS")).fetchAnyInto(SysConfigPojo.class);
|
||||
return config.getValue();
|
||||
}
|
||||
}
|
|
@ -9,7 +9,6 @@ import org.springframework.stereotype.Service;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import static com.alive.db.jooq.Tables.ACTIVITY_LOG;
|
||||
import static com.alive.db.jooq.Tables.T_MEMBER;
|
||||
|
||||
/**
|
||||
|
@ -30,7 +29,7 @@ public class OnChainTransfersService {
|
|||
* 执行链上转账,换回转账HASH
|
||||
* @return
|
||||
*/
|
||||
public void transfer() {
|
||||
/*public void transfer() {
|
||||
List<TransferDto> activityLogRecords = dslContext.select(ACTIVITY_LOG.ID,ACTIVITY_LOG.SUPERIOR_ADDRESS,ACTIVITY_LOG.ADDRESS,ACTIVITY_LOG.AMOUNT,ACTIVITY_LOG.SUPERIOR_AMOUNT,T_MEMBER.REFER_ID)
|
||||
.from(ACTIVITY_LOG).leftJoin(T_MEMBER).on(ACTIVITY_LOG.ADDRESS.eq(T_MEMBER.ACCOUNT))
|
||||
.where(ACTIVITY_LOG.TYPE.eq(2)
|
||||
|
@ -58,6 +57,6 @@ public class OnChainTransfersService {
|
|||
}
|
||||
dslContext.update(ACTIVITY_LOG).set(ACTIVITY_LOG.TRANSFER_TYPE,1).set(ACTIVITY_LOG.HASHS,hash).where(ACTIVITY_LOG.ID.eq(logRecord.getId())).execute();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
|
|
@ -6,8 +6,6 @@ import com.alive.commons.model.BasePageReq;
|
|||
import com.alive.commons.util.CoinUtil;
|
||||
import com.alive.commons.util.RequestUtil;
|
||||
import com.alive.db.entity.Vo.*;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskLogRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberWalletRecord;
|
||||
import com.alive.db.mapper.PersonalCenterMapper;
|
||||
|
@ -18,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
|
||||
|
@ -27,13 +26,13 @@ import static com.alive.db.jooq.Tables.*;
|
|||
@Service
|
||||
public class PersonalCenterService extends BaseComponent {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private PersonalCenterMapper personalCenterMapper;
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private MemberService memberService;
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private WalletService walletService;
|
||||
|
||||
public List<TeamRewardVo> findTeamRewardVoList(Integer grade) {
|
||||
|
@ -98,7 +97,7 @@ public class PersonalCenterService extends BaseComponent {
|
|||
return tMemberWalletRecord.getBalance().stripTrailingZeros().toPlainString();
|
||||
}
|
||||
|
||||
public MyIntegralVo myBonusPoints() {
|
||||
/* public MyIntegralVo myBonusPoints() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
MyIntegralVo myIntegralVo = personalCenterMapper.myBonusPoints(memberId, CoinUtil.getCoinMap().get("POINTS"));
|
||||
myIntegralVo.setMyIntegral(new BigDecimal(myIntegralVo.getMyIntegral()).stripTrailingZeros().toPlainString());
|
||||
|
@ -117,51 +116,6 @@ public class PersonalCenterService extends BaseComponent {
|
|||
task.setNumber(new BigDecimal(task.getNumber()).stripTrailingZeros().toPlainString());
|
||||
}
|
||||
return taskVos;
|
||||
}
|
||||
}*/
|
||||
|
||||
public List<NodeTaskVo> nodeTask() {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
List<NodeTaskVo> taskVos = new ArrayList<>();
|
||||
List<NodeTaskRecord> nodeTaskRecords = dslContext.select().from(NODE_TASK).where().fetchInto(NodeTaskRecord.class);
|
||||
List<NodeTaskLogRecord> logs = dslContext.select().from(NODE_TASK_LOG).where(NODE_TASK_LOG.MEMBER_ID.eq(memberId).and(NODE_TASK_LOG.STATE.in(1,2))).fetchInto(NodeTaskLogRecord.class);
|
||||
for (NodeTaskRecord nodeTaskRecord : nodeTaskRecords){
|
||||
NodeTaskVo nodeTaskVo = new NodeTaskVo();
|
||||
nodeTaskVo.setNumber(nodeTaskRecord.getAwardValue().stripTrailingZeros().toPlainString());
|
||||
nodeTaskVo.setType(nodeTaskRecord.getType());
|
||||
nodeTaskVo.setState(0);
|
||||
nodeTaskVo.setCoinName(CoinUtil.getCoinName(nodeTaskRecord.getCoinId()));
|
||||
for (NodeTaskLogRecord log : logs){
|
||||
if(nodeTaskRecord.getId().equals(log.getTaskId())){
|
||||
nodeTaskVo.setState(log.getState());
|
||||
nodeTaskVo.setId(log.getId());
|
||||
nodeTaskVo.setCoinName(log.getCoinName());
|
||||
}
|
||||
}
|
||||
taskVos.add(nodeTaskVo);
|
||||
}
|
||||
return taskVos;
|
||||
}
|
||||
|
||||
public Map<String, Boolean> taskReward(TeskReq req) {
|
||||
int memberId = Integer.parseInt(RequestUtil.getCurrentAccount());
|
||||
TMemberRecord tMemberRecord = memberService.fetchOne(memberId);
|
||||
NodeTaskLogRecord logs = dslContext.select().from(NODE_TASK_LOG).where(NODE_TASK_LOG.MEMBER_ID.eq(memberId).and(NODE_TASK_LOG.ID.eq(req.getId()))).fetchAnyInto(NodeTaskLogRecord.class);
|
||||
Assert.isTrue(logs != null && logs.getMemberId().equals(memberId), "Order does not exist");
|
||||
Assert.isTrue(logs.getState().equals(1), "Unable to claim rewards");
|
||||
logs.setState(2);
|
||||
logs.store();
|
||||
|
||||
//购买盒子获取Rbit奖励数量
|
||||
TMemberWalletRecord walletRecord= walletService.getWallet(memberId, CoinUtil.getCoinMap().get(logs.getCoinName()));
|
||||
WalletOperation walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.TASK_REWARD,logs.getAwardValue(),"领取任务奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
|
||||
//给推荐人奖励
|
||||
if(logs.getRecommendValue().compareTo(BigDecimal.ZERO) != 0 && tMemberRecord.getReferId() > 0){
|
||||
walletRecord= walletService.getWallet(tMemberRecord.getReferId(), CoinUtil.getCoinMap().get(logs.getCoinName()));
|
||||
walletOperation = WalletOperation.buildParam(1,walletRecord.getId(), WalletLogTypeEnum.RECOMMENDER_ASSIGNMENT_REWARD,logs.getAwardValue(),"推荐人任务奖励");
|
||||
walletService.operateBalance(walletOperation);
|
||||
}
|
||||
return (Map<String, Boolean>) new TreeMap<>().put("result",true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,291 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
|
||||
import com.alive.server.dto.*;
|
||||
import com.alive.commons.util.DateUtils;
|
||||
import com.alive.db.jooq.tables.records.ActivityLogRecord;
|
||||
import com.alive.server.config.DiscordConfig;
|
||||
import com.alive.server.config.TwitterConfig;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.*;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class TaskService {
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
@Autowired
|
||||
private TwitterService twitterService;
|
||||
|
||||
@Autowired
|
||||
private DiscordService discordService;
|
||||
|
||||
@Autowired
|
||||
private TelegramServer telegramServer;
|
||||
|
||||
/**
|
||||
* 检测用户是否完成任务 关注、改名
|
||||
*/
|
||||
public void optimismExec() {
|
||||
List<ActivityLogRecord> activityLogRecords = dslContext.selectFrom(ACTIVITY_LOG).where(ACTIVITY_LOG.TYPE.eq(1)
|
||||
.and(ACTIVITY_LOG.CONFIG_TYPE.in(1,5))).fetch();
|
||||
if(activityLogRecords == null || activityLogRecords.size() <= 0){
|
||||
return;
|
||||
}
|
||||
for (ActivityLogRecord log : activityLogRecords){
|
||||
if(log.getConfigType().equals(1)){
|
||||
//执行检查关注操作
|
||||
String accessToken = TwitterConfig.getAccessToken(log.getAddress());
|
||||
//重新刷新token
|
||||
if(accessToken == null && twitterService.requestBearerToken(log.getAddress(),null) == null){
|
||||
continue;
|
||||
}
|
||||
accessToken = TwitterConfig.getAccessToken(log.getAddress());
|
||||
//查询用户自己的账号
|
||||
TwitterUserDto twitterUserDto = twitterService.getUserInfoByToken(accessToken);
|
||||
//执行关注
|
||||
AttentionDto attentionDto = twitterService.attention(accessToken,twitterUserDto.getId(),TwitterConfig.DEVELOPERS);
|
||||
if(attentionDto != null && attentionDto.getFollowing()){
|
||||
log.setType(2);
|
||||
}else{
|
||||
log.setType(3);
|
||||
}
|
||||
}else{
|
||||
String accessToken = TwitterConfig.getAccessToken(log.getAddress());
|
||||
//重新刷新token
|
||||
if(accessToken == null && twitterService.requestBearerToken(log.getAddress(),null) == null){
|
||||
continue;
|
||||
}
|
||||
accessToken = TwitterConfig.getAccessToken(log.getAddress());
|
||||
TwitterUserDto twitterUserDto = twitterService.getUserInfoByToken(accessToken);
|
||||
//需要修改推特的后缀名
|
||||
String name = log.getMark();
|
||||
String twitterName = twitterUserDto.getName().substring(twitterUserDto.getName().length() - name.length(),twitterUserDto.getName().length());
|
||||
if(name.toLowerCase().equals(twitterName.toLowerCase())){
|
||||
//任务完成
|
||||
log.setType(2);
|
||||
//更新用户推特信息
|
||||
dslContext.update(T_MEMBER).set(T_MEMBER.TWITTER_IMG,twitterUserDto.getImg()).set(T_MEMBER.TWITTER_NAME,twitterUserDto.getName())
|
||||
.set(T_MEMBER.TWITTER_USER_NAME,twitterUserDto.getUsername()).set(T_MEMBER.TWITTER_ID,twitterUserDto.getId())
|
||||
.where(T_MEMBER.ACCOUNT.eq(log.getAddress())).execute();
|
||||
|
||||
}
|
||||
}
|
||||
if(log.getType().equals(1) && DateUtils.addMinute(log.getCreateTime(),120).getTime() < System.currentTimeMillis()){
|
||||
//任务创建超过2小时,任务失败
|
||||
log.setType(3);
|
||||
}
|
||||
//更新数据
|
||||
if(log.getType().equals(2) || log.getType().equals(3)){
|
||||
log.store();
|
||||
}
|
||||
if(log.getType().equals(2)){
|
||||
//增加用户资产统计
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getSuperiorAddress())).execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测用户是否完成任务 转载、点赞
|
||||
*/
|
||||
public void activeExec() {
|
||||
List<TwitterTransshipmentDto> activityLogRecords = dslContext.select(ACTIVITY_LOG.ID.as("id"),
|
||||
ACTIVITY_LOG.CREATE_TIME.as("createTime"),ACTIVITY_LOG.ACTIVITY_CONFIG_ID.as("activityConfigId")
|
||||
,ACTIVITY_LOG.ADDRESS.as("address"),ACTIVITY_LOG.TYPE.as("type")
|
||||
,ACTIVITY_LOG.AMOUNT.as("amount"),ACTIVITY_LOG.SUPERIOR_AMOUNT.as("superiorAmount"),ACTIVITY_LOG.SUPERIOR_ADDRESS.as("superiorAddress"),ACTIVITY_LOG.CONFIG_TYPE.as("configType")
|
||||
,ACTIVITY_LOG.MARK.as("mark"),T_MEMBER.TWITTER_ID.as("twitterId"))
|
||||
.from(ACTIVITY_LOG).leftJoin(T_MEMBER).on(
|
||||
ACTIVITY_LOG.ADDRESS.eq(T_MEMBER.ACCOUNT)).where(ACTIVITY_LOG.TYPE.eq(1)
|
||||
.and(ACTIVITY_LOG.CONFIG_TYPE.in(2,3,5))).fetchInto(TwitterTransshipmentDto.class);
|
||||
if(activityLogRecords == null || activityLogRecords.size() <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
//推文ID+推特ID == 点赞的用户
|
||||
Map<String,String> thumbsUpmap = new HashMap<>();
|
||||
{
|
||||
//点赞的推文id
|
||||
Set<String> thumbsUp = new HashSet<>();
|
||||
//推特ID == 用户地址
|
||||
Map<String,String> twitterMap = new HashMap<>();
|
||||
activityLogRecords.forEach(a -> {
|
||||
if(a.getConfigType().equals(3)){
|
||||
thumbsUp.add(a.getMark());
|
||||
twitterMap.put(a.getTwitterId(),a.getAddress());
|
||||
}
|
||||
});
|
||||
|
||||
for (String key : twitterMap.keySet()){
|
||||
String twId = key;
|
||||
String address = twitterMap.get(key);
|
||||
//查询出该推特用户 点赞了那些文章,返回推文的ID
|
||||
List<String> ids = twitterService.thumbsUpListByTwitterId(twId,TwitterConfig.getAccessToken(address));
|
||||
if(ids == null){
|
||||
continue;
|
||||
}
|
||||
//查询推特那些用户进行的点赞
|
||||
for (String id : ids){
|
||||
thumbsUpmap.put(id+twId,address);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//推文ID+推特ID == 转载的用户
|
||||
Map<String,String> transshipmentMap = new HashMap<>();
|
||||
{
|
||||
//转载的推文id
|
||||
Set<String> transshipment = new HashSet<>();
|
||||
activityLogRecords.forEach(a -> {
|
||||
if(a.getConfigType().equals(2)){
|
||||
transshipment.add(a.getMark());
|
||||
}
|
||||
});
|
||||
//查询推特那些用户进行的转载
|
||||
for (String twid : transshipment){
|
||||
List<TransshipmentUserDto> list = twitterService.transmitUserList(twid);
|
||||
if(list == null){
|
||||
continue;
|
||||
}
|
||||
list.forEach(t ->{
|
||||
transshipmentMap.put(twid+t.getId(),"1");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
for (TwitterTransshipmentDto log : activityLogRecords){
|
||||
ActivityLogRecord logRecord = dslContext.newRecord(ACTIVITY_LOG);
|
||||
logRecord.setId(log.getId());
|
||||
if(log.getConfigType().equals(2)){
|
||||
//执行检查推文转载
|
||||
String value = transshipmentMap.get(log.getMark()+log.getTwitterId());
|
||||
logRecord.setType(value != null ? 2 : log.getType());
|
||||
}else if(log.getConfigType().equals(3)){
|
||||
String value = thumbsUpmap.get(log.getMark()+log.getTwitterId());
|
||||
logRecord.setType(value != null ? 2 : log.getType());
|
||||
}
|
||||
logRecord.setEndTime(new Timestamp(System.currentTimeMillis()));
|
||||
if(logRecord.getType() != null && logRecord.getType().equals(2)){
|
||||
//增加用户资产统计
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getSuperiorAddress())).execute();
|
||||
//更新数据
|
||||
logRecord.update();
|
||||
}else if(log.getType().equals(1) && DateUtils.addMinute(log.getCreateTime(),120).getTime() < System.currentTimeMillis()){
|
||||
//任务创建超过2小时,任务失败
|
||||
logRecord.setType(3);
|
||||
logRecord.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 加入Discord
|
||||
*/
|
||||
public void addDiscord() {
|
||||
List<DiscordTransshipmentDto> activityLogRecords = dslContext.select(ACTIVITY_LOG.ID.as("id"),ACTIVITY_LOG.ACTIVITY_CONFIG_ID.as("activityConfigId")
|
||||
,ACTIVITY_LOG.ADDRESS.as("address"),ACTIVITY_LOG.TYPE.as("type")
|
||||
,ACTIVITY_LOG.AMOUNT.as("amount"),ACTIVITY_LOG.CREATE_TIME.as("createTime"),ACTIVITY_LOG.SUPERIOR_AMOUNT.as("superiorAmount"),ACTIVITY_LOG.SUPERIOR_ADDRESS.as("superiorAddress"),
|
||||
ACTIVITY_LOG.CONFIG_TYPE.as("configType"),ACTIVITY_LOG.MARK.as("mark"),T_MEMBER.DISCORD_ID.as("discordId"))
|
||||
.from(ACTIVITY_LOG).leftJoin(T_MEMBER).on(
|
||||
ACTIVITY_LOG.ADDRESS.eq(T_MEMBER.ACCOUNT)).where(ACTIVITY_LOG.TYPE.eq(1)
|
||||
.and(ACTIVITY_LOG.CONFIG_TYPE.in(6))).fetchInto(DiscordTransshipmentDto.class);
|
||||
if(activityLogRecords == null || activityLogRecords.size() <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
for (DiscordTransshipmentDto log : activityLogRecords){
|
||||
ActivityLogRecord logRecord = dslContext.newRecord(ACTIVITY_LOG);
|
||||
logRecord.setId(log.getId());
|
||||
Boolean outcome = discordService.joinConfirmation(log.getAddress(), DiscordConfig.CHANNEL_ID);
|
||||
if(outcome){
|
||||
logRecord.setType(2);
|
||||
log.setType(2);
|
||||
}
|
||||
if(log.getType().equals(1) && DateUtils.addMinute(log.getCreateTime(),120).getTime() < System.currentTimeMillis()){
|
||||
//任务创建超过2小时,任务失败
|
||||
logRecord.setType(3);
|
||||
log.setType(3);
|
||||
}
|
||||
if(!log.getType().equals(1)){
|
||||
logRecord.update();
|
||||
}
|
||||
|
||||
if(log.getType().equals(2)){
|
||||
//增加用户资产统计
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getSuperiorAddress())).execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 乐观验证
|
||||
*/
|
||||
public void optimisticValidation() {
|
||||
List<ActivityLogRecord> logRecords = dslContext.select(ACTIVITY_LOG.ID,ACTIVITY_LOG.ADDRESS,ACTIVITY_LOG.AMOUNT,ACTIVITY_LOG.SUPERIOR_ADDRESS,ACTIVITY_LOG.SUPERIOR_AMOUNT).
|
||||
from(ACTIVITY_LOG).where(ACTIVITY_LOG.CONFIG_TYPE.in(4,7).and(ACTIVITY_LOG.TYPE.eq(1))).fetchInto(ActivityLogRecord.class);
|
||||
if(logRecords != null && logRecords.size() > 0){
|
||||
List<Integer> ids = new ArrayList<>();
|
||||
for (ActivityLogRecord log : logRecords){
|
||||
ids.add(log.getId());
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getSuperiorAddress())).execute();
|
||||
}
|
||||
dslContext.update(ACTIVITY_LOG).set(ACTIVITY_LOG.TYPE,2).where(ACTIVITY_LOG.ID.in(ids)).execute();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 加入TG
|
||||
*/
|
||||
public void addTg() {
|
||||
List<DiscordTransshipmentDto> activityLogRecords = dslContext.select(ACTIVITY_LOG.ID.as("id"),ACTIVITY_LOG.ACTIVITY_CONFIG_ID.as("activityConfigId")
|
||||
,ACTIVITY_LOG.ADDRESS.as("address"),ACTIVITY_LOG.TYPE.as("type")
|
||||
,ACTIVITY_LOG.AMOUNT.as("amount"),ACTIVITY_LOG.CREATE_TIME.as("createTime"),ACTIVITY_LOG.SUPERIOR_AMOUNT.as("superiorAmount"),ACTIVITY_LOG.SUPERIOR_ADDRESS.as("superiorAddress"),
|
||||
ACTIVITY_LOG.CONFIG_TYPE.as("configType"),ACTIVITY_LOG.MARK.as("mark"),T_MEMBER.TG_ID.as("tgId"))
|
||||
.from(ACTIVITY_LOG).leftJoin(T_MEMBER).on(
|
||||
ACTIVITY_LOG.ADDRESS.eq(T_MEMBER.ACCOUNT)).where(ACTIVITY_LOG.TYPE.eq(1)
|
||||
.and(ACTIVITY_LOG.CONFIG_TYPE.in(10))).fetchInto(DiscordTransshipmentDto.class);
|
||||
if(activityLogRecords == null || activityLogRecords.size() <= 0){
|
||||
return;
|
||||
}
|
||||
|
||||
for (DiscordTransshipmentDto log : activityLogRecords){
|
||||
ActivityLogRecord logRecord = dslContext.newRecord(ACTIVITY_LOG);
|
||||
logRecord.setId(log.getId());
|
||||
if(log.getTgId() != null){
|
||||
Boolean outcome = telegramServer.joinConfirmation(log.getTgId());
|
||||
if(outcome){
|
||||
logRecord.setType(2);
|
||||
log.setType(2);
|
||||
}
|
||||
}
|
||||
if(log.getType().equals(1) && DateUtils.addMinute(log.getCreateTime(),120).getTime() < System.currentTimeMillis()){
|
||||
//任务创建超过2小时,任务失败
|
||||
logRecord.setType(3);
|
||||
log.setType(3);
|
||||
}
|
||||
if(!log.getType().equals(1)){
|
||||
logRecord.update();
|
||||
}
|
||||
if(log.getType().equals(2)){
|
||||
//增加用户资产统计
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getAddress())).execute();
|
||||
dslContext.update(ACTIVITY_STATISTICS).set(ACTIVITY_STATISTICS.AMOUNT,ACTIVITY_STATISTICS.AMOUNT.add(log.getSuperiorAmount())).where(ACTIVITY_STATISTICS.ADDRESS.eq(log.getSuperiorAddress())).execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -40,7 +40,7 @@ public class TelegramServer extends TelegramLongPollingBot {
|
|||
|
||||
@Override
|
||||
public void onUpdateReceived(Update update) {
|
||||
var msg = update.getMessage();
|
||||
/*var msg = update.getMessage();
|
||||
if(msg == null){
|
||||
return;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class TelegramServer extends TelegramLongPollingBot {
|
|||
sendMenu(user.getId(), "<b>欢迎加入roos官网TG,请根据需求进行以下操作</b>",keyboardM1);
|
||||
|
||||
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,633 +0,0 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alive.server.dto.AttentionDto;
|
||||
import com.alive.server.dto.TransshipmentUserDto;
|
||||
import com.alive.server.dto.TwitterDto;
|
||||
import com.alive.server.dto.TwitterUserDto;
|
||||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.server.config.TwitterConfig;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
|
||||
import oauth.signpost.exception.OAuthCommunicationException;
|
||||
import oauth.signpost.exception.OAuthExpectationFailedException;
|
||||
import oauth.signpost.exception.OAuthMessageSignerException;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.http.impl.client.HttpClientBuilder;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.*;
|
||||
|
||||
import static com.alive.db.jooq.Tables.T_MEMBER;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class TwitterService extends BaseComponent {
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
public static String codeChallenge = "0ioze5m20493ny2";
|
||||
|
||||
/**
|
||||
* 生成推文转发链接
|
||||
* @param authorizationReq
|
||||
* @return
|
||||
*/
|
||||
/* public String getTtTweetsUrl(TwitterAuthorizationReq authorizationReq){
|
||||
String url = "https://twitter.com/";
|
||||
MerchantPojo merchantPojo = merchantService.getMerchant(authorizationReq.getCodeNo(),authorizationReq.getMerchantOn());
|
||||
MerchantConfigPojo merchantConfigPojo = merchantService.getMerchantConfig(merchantPojo.getId());
|
||||
url += merchantConfigPojo.getTtUserName();
|
||||
url += "/status/" + merchantConfigPojo.getTtTweetsId() +"?s=20";
|
||||
return url;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 返回授权的地址
|
||||
* @param address
|
||||
* @return
|
||||
*/
|
||||
public String getAuthorizationUrl(String address){
|
||||
String url = "https://twitter.com/i/oauth2/authorize?";
|
||||
url += "client_id="+ TwitterConfig.CLIENT_ID;
|
||||
//访问权限
|
||||
url += "&scope="+ "tweet.read%20tweet.write%20offline.access%20tweet.moderate.write%20users.read%20follows.read%20follows.write%20like.read";
|
||||
url += "&response_type=code";
|
||||
//回调地址
|
||||
url += "&redirect_uri="+TwitterConfig.CALLBACK_URL;
|
||||
//用户地址
|
||||
url += "&state="+address;
|
||||
url += "&code_challenge="+codeChallenge+"&code_challenge_method=plain";
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户关注
|
||||
* @param token 授权换取的用户token
|
||||
* @param userId 用户自己的ID
|
||||
* @param targetUserId 被关注的推特用户ID
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public AttentionDto attention(String token, String userId, String targetUserId) {
|
||||
try {
|
||||
String urlAdress = "https://api.twitter.com/2/users/" + userId + "/following";
|
||||
URL url12 = new URL(urlAdress);
|
||||
HttpURLConnection connection = (HttpURLConnection) url12.openConnection();
|
||||
connection.setRequestMethod("POST");
|
||||
connection.setRequestProperty("Content-Type", "application/json");
|
||||
connection.setRequestProperty("Authorization", "Bearer " + token);
|
||||
JSONObject requestBody = new JSONObject();
|
||||
//需要关注的用户ID
|
||||
requestBody.put("target_user_id", targetUserId);
|
||||
String requestBodyString = requestBody.toString();
|
||||
connection.setDoOutput(true);
|
||||
OutputStream outputStream = connection.getOutputStream();
|
||||
outputStream.write(requestBodyString.getBytes());
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
|
||||
int responseCode = connection.getResponseCode();
|
||||
InputStream inputStream;
|
||||
if (responseCode == 429) {
|
||||
Assert.notNull(null, "limiting frequency");
|
||||
}
|
||||
if (responseCode >= 200 && responseCode < 400) {
|
||||
inputStream = connection.getInputStream();
|
||||
} else {
|
||||
inputStream = connection.getErrorStream();
|
||||
}
|
||||
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
|
||||
String line;
|
||||
StringBuilder responseBuilder = new StringBuilder();
|
||||
while ((line = reader.readLine()) != null) {
|
||||
responseBuilder.append(line);
|
||||
}
|
||||
reader.close();
|
||||
String response = responseBuilder.toString();
|
||||
if (JSON.parseObject(response).get("data") != null) {
|
||||
JSONObject json = JSON.parseObject(JSON.parseObject(response).get("data").toString());
|
||||
AttentionDto attentionDto = new AttentionDto();
|
||||
Object ret = json.get("following");
|
||||
attentionDto.setFollowing(Boolean.parseBoolean(ret == null ? "false" : ret.toString()));
|
||||
ret = json.get("pending_follow");
|
||||
attentionDto.setPending_follow(Boolean.parseBoolean(ret == null ? "false" : ret.toString()));
|
||||
return attentionDto;
|
||||
}
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取用户token
|
||||
* @param address 授权地址
|
||||
* @param code 获取token
|
||||
* @return
|
||||
*/
|
||||
public TwitterDto requestBearerToken(String address, String code) {
|
||||
try {
|
||||
TwitterDto twitterDto = new TwitterDto();
|
||||
String clientId = URLEncoder.encode(TwitterConfig.CLIENT_ID, "UTF-8");
|
||||
String clientSecret = URLEncoder.encode(TwitterConfig.CLIENT_SECRET, "UTF-8");
|
||||
String credentials = clientId + ":" + clientSecret;
|
||||
String base64Credentials = Base64.getEncoder().encodeToString(credentials.getBytes());
|
||||
|
||||
String redirectURI = TwitterConfig.CALLBACK_URL;
|
||||
URL url = new URL("https://api.twitter.com/2/oauth2/token");
|
||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||
connection.setRequestMethod("POST");
|
||||
connection.setRequestProperty("Authorization", "Basic " + base64Credentials);
|
||||
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
|
||||
connection.setDoOutput(true);
|
||||
connection.setDoInput(true);
|
||||
String data = "";
|
||||
String refreshToken = TwitterConfig.getRefreshToken(address);
|
||||
String accessToken = TwitterConfig.getAccessToken(address);
|
||||
if(!StringUtils.isBlank(refreshToken) && !StringUtils.isBlank(accessToken)){
|
||||
//避免用户重复获取token
|
||||
twitterDto.setAccessToken(accessToken);
|
||||
twitterDto.setRefreshToken(refreshToken);
|
||||
return twitterDto;
|
||||
}
|
||||
if(StringUtils.isBlank(refreshToken) && code == null){
|
||||
return null;
|
||||
}
|
||||
if(StringUtils.isBlank(refreshToken) && code != null){
|
||||
String grantType = "authorization_code";
|
||||
//获取令牌需要的参数 code_verifier 需要和获取code传入参数 code_challenge 保持一致
|
||||
data = "grant_type=" + grantType + "&code=" + code + "&redirect_uri=" + redirectURI+
|
||||
"&client_id="+TwitterConfig.CLIENT_ID+"&client_secret="+TwitterConfig.CLIENT_SECRET+"&code_verifier="+codeChallenge;
|
||||
}else{
|
||||
String grantType = "refresh_token";
|
||||
//刷新令牌需要的参数
|
||||
data = "refresh_token="+refreshToken+"&grant_type=" + grantType + "&client_id="+TwitterConfig.CLIENT_ID+
|
||||
"&client_secret="+TwitterConfig.CLIENT_SECRET+"&code_verifier="+codeChallenge;
|
||||
}
|
||||
connection.getOutputStream().write(data.getBytes("UTF-8"));
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
StringBuilder response = new StringBuilder();
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
response.append(line);
|
||||
}
|
||||
reader.close();
|
||||
String jsonResponse = response.toString();
|
||||
JSONObject json = JSON.parseObject(jsonResponse);
|
||||
accessToken = json.getString("access_token");
|
||||
twitterDto.setAccessToken(accessToken == null ? null : accessToken);
|
||||
refreshToken = json.getString("refresh_token");
|
||||
twitterDto.setRefreshToken(refreshToken == null ? null : refreshToken);
|
||||
|
||||
TwitterConfig.addAccessToken(address,accessToken,6000);
|
||||
TwitterConfig.addRefreshToken(address,refreshToken,60 * 60 * 168);
|
||||
return twitterDto;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取开发者推特token
|
||||
* @return
|
||||
*/
|
||||
public String getTwitterToken(){
|
||||
try {
|
||||
String consumerKey = URLEncoder.encode(TwitterConfig.CONSUMER_KEY, "UTF-8");
|
||||
String consumerSecret = URLEncoder.encode(TwitterConfig.CONSUMER_SECRET, "UTF-8");
|
||||
String credentials = consumerKey + ":" + consumerSecret;
|
||||
String base64Credentials = Base64.getEncoder().encodeToString(credentials.getBytes());
|
||||
//authorization_code、refresh_token、client_credentials
|
||||
String grantType = "client_credentials";
|
||||
URL url = new URL("https://api.twitter.com/oauth2/token");
|
||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||
connection.setRequestMethod("POST");
|
||||
connection.setRequestProperty("Authorization", "Basic " + base64Credentials);
|
||||
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
|
||||
connection.setDoOutput(true);
|
||||
connection.setDoInput(true);
|
||||
String data = "grant_type=" + grantType +
|
||||
"&client_id="+TwitterConfig.CLIENT_ID+"&client_secret="+TwitterConfig.CLIENT_SECRET+"&code_verifier=challenge";
|
||||
connection.getOutputStream().write(data.getBytes("UTF-8"));
|
||||
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
StringBuilder response = new StringBuilder();
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
response.append(line);
|
||||
}
|
||||
reader.close();
|
||||
|
||||
// Extract bearer token from JSON response
|
||||
String jsonResponse = response.toString();
|
||||
JSONObject json = JSON.parseObject(jsonResponse);
|
||||
return json.get("access_token").toString();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取开发者账号信息
|
||||
* @return
|
||||
*/
|
||||
public JSONObject getUserInfo() throws Exception {
|
||||
CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(TwitterConfig.CONSUMER_KEY, TwitterConfig.CONSUMER_SECRET);
|
||||
consumer.setTokenWithSecret(TwitterConfig.ACCESS_TOKEN, TwitterConfig.ACCESS_TOKEN_SECRET);
|
||||
// 创建HttpClient对象
|
||||
HttpClient httpClient = this.setProxy();
|
||||
// 创建API请求,例如获取用户的时间线
|
||||
try {
|
||||
URIBuilder uriBuilder = new URIBuilder("https://api.twitter.com/2/users/me");
|
||||
ArrayList<NameValuePair> queryParameters;
|
||||
queryParameters = new ArrayList<>();
|
||||
queryParameters.add(new BasicNameValuePair("user.fields", "id,name,username,profile_image_url,public_metrics"));
|
||||
queryParameters.add(new BasicNameValuePair("expansions", "pinned_tweet_id"));
|
||||
uriBuilder.addParameters(queryParameters);
|
||||
HttpGet request = new HttpGet(uriBuilder.build());
|
||||
request.setHeader("Content-Type","application/json");
|
||||
consumer.sign(request);
|
||||
// 创建参数列表
|
||||
HttpResponse response = httpClient.execute(request);
|
||||
// 处理API响应
|
||||
int statusCode = response.getStatusLine().getStatusCode();
|
||||
String responseBody = EntityUtils.toString(response.getEntity());
|
||||
if (statusCode == 200) {
|
||||
System.out.println(responseBody);
|
||||
return JSONObject.parseObject(responseBody);
|
||||
} else {
|
||||
System.out.println(responseBody);
|
||||
return JSONObject.parseObject(responseBody);
|
||||
}
|
||||
} catch (OAuthMessageSignerException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthExpectationFailedException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthCommunicationException e) {
|
||||
e.printStackTrace();
|
||||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置请求代理
|
||||
* @return
|
||||
*/
|
||||
private HttpClient setProxy(){
|
||||
// 创建HttpClientBuilder对象
|
||||
HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
|
||||
HttpClient client = httpClientBuilder.build();;
|
||||
return client;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据用户token换取用户信息
|
||||
* @param token
|
||||
* @return
|
||||
*/
|
||||
public TwitterUserDto getUserInfoByToken(String token){
|
||||
StringBuilder result = new StringBuilder();
|
||||
BufferedReader in = null;
|
||||
try {
|
||||
// Twitter API endpoint
|
||||
String endpoint = "https://api.twitter.com/2/users/me";
|
||||
// 构造带有参数的 URL
|
||||
String urlWithParams = endpoint + "?user.fields=name,pinned_tweet_id,profile_image_url";
|
||||
// 创建 URL 对象
|
||||
URL url = new URL(urlWithParams);
|
||||
URLConnection connection = url.openConnection();
|
||||
connection.setRequestProperty("Authorization", "Bearer " + token);
|
||||
connection.setRequestProperty("Content-Type","application/json");
|
||||
connection.connect();
|
||||
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
String line;
|
||||
while ((line = in.readLine()) != null)
|
||||
{
|
||||
result.append(line);
|
||||
}
|
||||
TwitterUserDto dto = new TwitterUserDto();
|
||||
JSONObject json = JSONObject.parseObject(result.toString());
|
||||
JSONObject user = (JSONObject)json.get("data");
|
||||
if(user != null){
|
||||
dto.setId(user.get("id").toString());
|
||||
dto.setName(user.get("name").toString());
|
||||
dto.setImg(user.get("profile_image_url").toString());
|
||||
dto.setUsername(user.get("username").toString());
|
||||
}
|
||||
return dto;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 换取token查询用户信息
|
||||
* @param address
|
||||
*/
|
||||
public TwitterUserDto getTwitterToken(String address,String token) {
|
||||
TwitterUserDto twitterUserDto = this.getUserInfoByToken(token);
|
||||
Assert.notNull(twitterUserDto, "get twitter user error");
|
||||
return twitterUserDto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据推文ID查询那些用户进行了转发
|
||||
* @param tweetId
|
||||
* @return
|
||||
*/
|
||||
public List<TransshipmentUserDto> transmitUserList(String tweetId){
|
||||
CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(TwitterConfig.CONSUMER_KEY, TwitterConfig.CONSUMER_SECRET);
|
||||
consumer.setTokenWithSecret(TwitterConfig.ACCESS_TOKEN, TwitterConfig.ACCESS_TOKEN_SECRET);
|
||||
// 创建HttpClient对象
|
||||
HttpClient httpClient = this.setProxy();
|
||||
// 创建API请求,例如获取用户的时间线
|
||||
try {
|
||||
URIBuilder uriBuilder = new URIBuilder("https://api.twitter.com/2/tweets/"+tweetId+"/retweeted_by");
|
||||
HttpGet request = new HttpGet(uriBuilder.build());
|
||||
request.setHeader("Content-Type","application/json");
|
||||
consumer.sign(request);
|
||||
// 创建参数列表
|
||||
HttpResponse response = httpClient.execute(request);
|
||||
// 处理API响应
|
||||
int statusCode = response.getStatusLine().getStatusCode();
|
||||
String responseBody = EntityUtils.toString(response.getEntity());
|
||||
if (statusCode == HttpURLConnection.HTTP_OK) {
|
||||
List<TransshipmentUserDto> list = new ArrayList<>();
|
||||
// 读取响应
|
||||
//默认最大返回100条
|
||||
JSONObject array = JSONObject.parseObject(responseBody);
|
||||
JSONArray arr = array.getJSONArray("data");
|
||||
if(arr == null){
|
||||
return list;
|
||||
}
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
list.add(arr.getObject(i,TransshipmentUserDto.class));
|
||||
}
|
||||
// 打印响应
|
||||
return list;
|
||||
} else {
|
||||
System.out.println("Failed to fetch data from Twitter API. Response code: " + statusCode);
|
||||
}
|
||||
} catch (OAuthMessageSignerException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthExpectationFailedException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthCommunicationException e) {
|
||||
e.printStackTrace();
|
||||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据用户token和用户ID查询用户喜欢的推文
|
||||
* @param token
|
||||
* @return
|
||||
*/
|
||||
public List<String> thumbsUpListByTwitterId(String twitterId, String token){
|
||||
if(twitterId == null || token == null){
|
||||
return null;
|
||||
}
|
||||
StringBuilder result = new StringBuilder();
|
||||
BufferedReader in = null;
|
||||
try {
|
||||
// Twitter API endpoint
|
||||
String endpoint = "https://api.twitter.com/2/users/"+twitterId+"/liked_tweets";
|
||||
// 构造带有参数的 URL
|
||||
String urlWithParams = endpoint + "?expansions=edit_history_tweet_ids,referenced_tweets.id";
|
||||
// 创建 URL 对象
|
||||
URL url = new URL(urlWithParams);
|
||||
URLConnection connection = url.openConnection();
|
||||
connection.setRequestProperty("Authorization", "Bearer " + token);
|
||||
connection.setRequestProperty("Content-Type","application/json");
|
||||
connection.connect();
|
||||
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
String line;
|
||||
while ((line = in.readLine()) != null)
|
||||
{
|
||||
result.append(line);
|
||||
}
|
||||
List<String> list = new ArrayList<>();
|
||||
JSONObject json = JSONObject.parseObject(result.toString());
|
||||
JSONArray twittList = json.getJSONArray("data");
|
||||
if(twittList != null && twittList.size() > 0){
|
||||
for (int i = 0; i < twittList.size(); i++) {
|
||||
JSONObject twitt = twittList.getJSONObject(i);
|
||||
list.add(twitt.getString("id"));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据推文ID查询那些用户进行了点赞
|
||||
* @param tweetId
|
||||
* @return
|
||||
*/
|
||||
public List<TransshipmentUserDto> thumbsUpList(String tweetId){
|
||||
CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(TwitterConfig.CONSUMER_KEY, TwitterConfig.CONSUMER_SECRET);
|
||||
consumer.setTokenWithSecret(TwitterConfig.ACCESS_TOKEN, TwitterConfig.ACCESS_TOKEN_SECRET);
|
||||
// 创建HttpClient对象
|
||||
HttpClient httpClient = this.setProxy();
|
||||
// 创建API请求,例如获取用户的时间线
|
||||
try {
|
||||
URIBuilder uriBuilder = new URIBuilder("https://api.twitter.com/2/tweets/"+tweetId+"/liking_users");
|
||||
HttpGet request = new HttpGet(uriBuilder.build());
|
||||
request.setHeader("Content-Type","application/json");
|
||||
consumer.sign(request);
|
||||
// 创建参数列表
|
||||
HttpResponse response = httpClient.execute(request);
|
||||
// 处理API响应
|
||||
int statusCode = response.getStatusLine().getStatusCode();
|
||||
String responseBody = EntityUtils.toString(response.getEntity());
|
||||
if (statusCode == HttpURLConnection.HTTP_OK) {
|
||||
// 读取响应
|
||||
//默认最大返回100条
|
||||
JSONObject array = JSONObject.parseObject(responseBody);
|
||||
JSONArray arr = array.getJSONArray("data");
|
||||
List<TransshipmentUserDto> list = new ArrayList<>();
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
list.add(arr.getObject(i,TransshipmentUserDto.class));
|
||||
}
|
||||
// 打印响应
|
||||
return list;
|
||||
} else {
|
||||
System.out.println("Failed to fetch data from Twitter API. Response code: " + statusCode);
|
||||
}
|
||||
} catch (OAuthMessageSignerException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthExpectationFailedException e) {
|
||||
e.printStackTrace();
|
||||
} catch (OAuthCommunicationException e) {
|
||||
e.printStackTrace();
|
||||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void bindUser(String id) {
|
||||
Integer num = dslContext.selectCount().from(T_MEMBER).where(T_MEMBER.TWITTER_ID.eq(id)).fetchAnyInto(Integer.class);
|
||||
Assert.isTrue(num == 0,"The account has been linked Twitter");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询我的推文列表
|
||||
* @param tweetUserId
|
||||
* @param token
|
||||
* @param ttTweetsId 平台指定转推文的ID
|
||||
* @param maxResults = 5-10之间
|
||||
* @return
|
||||
|
||||
public Integer getTweetList(String tweetUserId,String token,Integer maxResults,String ttTweetsId){
|
||||
try {
|
||||
String httpUrl = "https://api.twitter.com/2/users/"+ tweetUserId + "/tweets?max_results="+maxResults;
|
||||
httpUrl += "&expansions=author_id,edit_history_tweet_ids,referenced_tweets.id&tweet.fields=created_at";
|
||||
// 只查用户当日的推文
|
||||
Instant currentTime = LocalDateTime.of(LocalDate.now(), LocalTime.MIN).toInstant(ZoneOffset.of("+8"));
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT;
|
||||
String endTimeRFC3339 = formatter.format(currentTime);
|
||||
httpUrl += "&start_time="+endTimeRFC3339;
|
||||
// 构建请求 URL
|
||||
URL url = new URL(httpUrl);
|
||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||
// 设置请求方法和请求头
|
||||
connection.setRequestMethod("GET");
|
||||
connection.setRequestProperty("Authorization", "Bearer " + token);
|
||||
// 发送请求
|
||||
int responseCode = connection.getResponseCode();
|
||||
Assert.isTrue(responseCode == HttpURLConnection.HTTP_OK, "get tweet error");
|
||||
Integer numer = 0;
|
||||
// 读取响应
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
String line;
|
||||
StringBuilder response = new StringBuilder();
|
||||
while ((line = reader.readLine()) != null) {
|
||||
response.append(line);
|
||||
}
|
||||
reader.close();
|
||||
JSONObject jsonObject = JSON.parseObject(response.toString());
|
||||
JSONArray jsonArray = (JSONArray) jsonObject.get("data");
|
||||
if(jsonArray == null){
|
||||
return numer;
|
||||
}
|
||||
for (int i = 0; i < jsonArray.size(); i++) {
|
||||
JSONObject json = jsonArray.getJSONObject(i);
|
||||
JSONArray referencedTweets = json.getJSONArray("referenced_tweets");
|
||||
if(referencedTweets != null){
|
||||
retweeted: 表示当前推文是转推(Retweet)的引用。
|
||||
quoted: 表示当前推文是引用推文(Quote Tweet)的引用。
|
||||
replied_to: 表示当前推文是回复(Reply)的引用。
|
||||
//上个推文的id
|
||||
String type = referencedTweets.getJSONObject(0).get("type").toString();
|
||||
String id = referencedTweets.getJSONObject(0).get("id").toString();
|
||||
if(type.equals("quoted") || type.equals("retweeted") && ttTweetsId.equals(id)){
|
||||
//quoted 表示推文是引用
|
||||
numer++;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 打印响应
|
||||
return numer;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return 0;
|
||||
}*/
|
||||
|
||||
/*private String getFollowers(String url_with_cursor) {
|
||||
String tweetResponse = null;
|
||||
HttpClient httpClient = HttpClients.custom()
|
||||
.setDefaultRequestConfig(RequestConfig.custom()
|
||||
.setCookieSpec(CookieSpecs.STANDARD).build())
|
||||
.build();
|
||||
try {
|
||||
URIBuilder uriBuilder = new URIBuilder(url_with_cursor);
|
||||
ArrayList<NameValuePair> queryParameters = new ArrayList<>();
|
||||
queryParameters.add(new BasicNameValuePair("user.fields", "username"));
|
||||
uriBuilder.addParameters(queryParameters);
|
||||
|
||||
HttpGet httpGet = new HttpGet(uriBuilder.build());
|
||||
httpGet.setHeader("Authorization", String.format("Bearer %s", "T2xwaGZOazRBbW9USWluSmpueUIwNW51MXhGa1dzWkpWTkgzOFJCdTRyRHNlOjE3MTAzMTk0MDM4NDU6MToxOmF0OjE"));
|
||||
httpGet.setHeader("Content-Type", "application/json");
|
||||
|
||||
HttpResponse response = httpClient.execute(httpGet);
|
||||
HttpEntity entity = response.getEntity();
|
||||
if (null != entity) {
|
||||
tweetResponse = EntityUtils.toString(entity, "UTF-8");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return tweetResponse;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 查询用户推文列表
|
||||
* @param setCodeNo
|
||||
* @return
|
||||
|
||||
public TgUserReq findChannelMember(AttentionReq setCodeNo) {
|
||||
String tweetNumber = "tweet_list"+setCodeNo.getAddress();
|
||||
String value = RedisUtil.get(tweetNumber);
|
||||
if(value != null){
|
||||
return new TgUserReq().setTwitterNumber(Integer.parseInt(value));
|
||||
}
|
||||
String userId = RedisUtil.get("twitter_user"+setCodeNo.getAddress());
|
||||
String tokenKey = RedisUtil.get("twitter_token" + setCodeNo.getAddress());
|
||||
MerchantPojo merchantPojo = merchantService.getMerchant(setCodeNo.getCodeNo(),setCodeNo.getMerchantOn());
|
||||
MerchantConfigPojo merchantConfigPojo = merchantService.getMerchantConfig(merchantPojo.getId());
|
||||
Integer num = this.getTweetList(userId,tokenKey,100,merchantConfigPojo.getTtTweetsId());
|
||||
if(num > 0){
|
||||
TaskLogRecord memberRecord = dslContext.selectFrom(TASK_LOG).where(TASK_LOG.STATUS.eq(1).and(TASK_LOG.ADDRESS.eq(setCodeNo.getAddress()))
|
||||
.and(TASK_LOG.TASK_TYPE.eq(1))
|
||||
.and(TASK_LOG.CREATE_TIME.between(new Timestamp(com.ruoyi.common.utils.DateUtils.getStartDate(new Date()).getTime()),new Timestamp(com.ruoyi.common.utils.DateUtils.getFinallyDate(new Date()).getTime())))).fetchAny();
|
||||
if(memberRecord != null){
|
||||
memberRecord.setTaskType(3);
|
||||
memberRecord.store();
|
||||
}
|
||||
}
|
||||
RedisUtil.setEx(tweetNumber,num.toString(),60 * 5);
|
||||
return new TgUserReq().setTwitterNumber(num);
|
||||
}*/
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
package com.alive.server.service;
|
||||
|
||||
import com.alive.db.jooq.tables.records.UserNodeLogRecord;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.jooq.DSLContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import static com.alive.db.jooq.Tables.USER_NODE_LOG;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 节点认购记录 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author HayDen
|
||||
* @since 2024-06-25
|
||||
*/
|
||||
@Service
|
||||
public class UserNodeLogService{
|
||||
|
||||
@Autowired
|
||||
private DSLContext dslContext;
|
||||
|
||||
@Autowired
|
||||
private IUserNodeService userNodeService;
|
||||
|
||||
public void nodeOrderByTime() {
|
||||
// 查询两小时前且状态为2的记录
|
||||
List<UserNodeLogRecord> userNodeLogs = dslContext.selectFrom(USER_NODE_LOG)
|
||||
.where(USER_NODE_LOG.CREATE_TIME.le(new Timestamp(System.currentTimeMillis() - (2 * 60 * 60 *1000))))
|
||||
.and(USER_NODE_LOG.STATUS.eq(2))
|
||||
.fetchInto(UserNodeLogRecord.class);
|
||||
|
||||
// 更新记录
|
||||
userNodeLogs.forEach(l -> {
|
||||
l.setIllustrate("订单过期未支付");
|
||||
l.setStatus(4);
|
||||
});
|
||||
// 批量更新
|
||||
dslContext.batchUpdate(userNodeLogs).execute();
|
||||
}
|
||||
|
||||
public void addNode() {
|
||||
List<UserNodeLogRecord> userNodeLogs = dslContext.selectFrom(USER_NODE_LOG)
|
||||
.where(USER_NODE_LOG.ORDER_NUMBER.eq("0000000000000000"))
|
||||
.and(USER_NODE_LOG.STATUS.eq(2))
|
||||
.fetchInto(UserNodeLogRecord.class);
|
||||
for (UserNodeLogRecord record : userNodeLogs) {
|
||||
userNodeService.addNode(record);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,7 +3,6 @@ package com.alive.server.service;
|
|||
import com.alive.commons.config.BaseComponent;
|
||||
import com.alive.commons.enums.WalletLogTypeEnum;
|
||||
import com.alive.commons.util.CoinUtil;
|
||||
import com.alive.db.jooq.tables.records.ActivityStatisticsRecord;
|
||||
import com.alive.db.jooq.tables.records.CoinConfigRecord;
|
||||
import com.alive.db.jooq.tables.records.TMemberWalletRecord;
|
||||
import com.alive.server.dto.WalletOperation;
|
||||
|
@ -25,13 +24,12 @@ public class WalletService extends BaseComponent {
|
|||
@Autowired
|
||||
private WalletService walletService;
|
||||
|
||||
public void initWallet(int memberId,String address) {
|
||||
//实例化用户资产统计
|
||||
ActivityStatisticsRecord statisticsRecord = dslContext.newRecord(ACTIVITY_STATISTICS);
|
||||
statisticsRecord.setAddress(address);
|
||||
statisticsRecord.setAmount(BigDecimal.ZERO);
|
||||
statisticsRecord.store();
|
||||
@Autowired
|
||||
private IUserNodeService iUserNodeService;
|
||||
|
||||
public void initWallet(int memberId,String address) {
|
||||
iUserNodeService.initNode(memberId,address);
|
||||
//实例化用户资产统计
|
||||
List<CoinConfigRecord> configRecords = dslContext.select().from(COIN_CONFIG).fetchInto(CoinConfigRecord.class);
|
||||
for (CoinConfigRecord configRecord : configRecords) {
|
||||
TMemberWalletRecord walletRecord = dslContext.newRecord(T_MEMBER_WALLET);
|
||||
|
@ -165,7 +163,7 @@ public class WalletService extends BaseComponent {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void verifyActivityStatisticsRecord(String account) {
|
||||
/*public void verifyActivityStatisticsRecord(String account) {
|
||||
Integer count = dslContext.selectCount().from(ACTIVITY_STATISTICS).where(ACTIVITY_STATISTICS.ADDRESS.eq(account)).fetchAnyInto(Integer.class);
|
||||
if(count == null || count == 0){
|
||||
//实例化用户资产统计
|
||||
|
@ -174,5 +172,5 @@ public class WalletService extends BaseComponent {
|
|||
statisticsRecord.setAmount(BigDecimal.ZERO);
|
||||
statisticsRecord.store();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
package com.alive.server.task;
|
||||
|
||||
import com.alive.server.service.TaskService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* 活动定时任务
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@Transactional(isolation = Isolation.READ_COMMITTED)
|
||||
public class ActivityTask {
|
||||
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
|
||||
/**
|
||||
* 5分钟执行一次 关注、改名
|
||||
*/
|
||||
/*@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void twitterOptimismExec() {
|
||||
taskService.optimismExec();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 5分钟执行一次 转载、点赞
|
||||
*/
|
||||
/*@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void twitterActiveExec() {
|
||||
taskService.activeExec();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 5分钟执行一次 加入Discord
|
||||
*/
|
||||
/*@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void addDiscord() {
|
||||
taskService.addDiscord();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 5分钟执行一次 加入TG
|
||||
*/
|
||||
/*@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void addTg() {
|
||||
taskService.addTg();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 10分钟执行一次 乐观验证任务
|
||||
*/
|
||||
/*@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void optimisticValidation() {
|
||||
taskService.optimisticValidation();
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
package com.alive.server.task;
|
||||
|
||||
import com.alive.server.service.OnChainTransfersService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
* 活动定时任务 链上转账
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class TransferTask {
|
||||
|
||||
@Autowired
|
||||
private OnChainTransfersService onChainTransfersService;
|
||||
|
||||
/**
|
||||
* 5分钟执行一次 链上转账
|
||||
*/
|
||||
@Scheduled(initialDelay = 20_000, fixedDelay = 600_00 * 2)
|
||||
public void exec() {
|
||||
//onChainTransfersService.transfer();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package com.alive.server.task;
|
||||
|
||||
import com.alive.server.service.BscTimingService;
|
||||
import com.alive.server.service.BtcBuyService;
|
||||
import com.alive.server.service.UserNodeLogService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
||||
/**
|
||||
* @author HayDen
|
||||
|
@ -15,28 +16,33 @@ import org.springframework.stereotype.Component;
|
|||
@Component
|
||||
public class WsBscScanTask {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private BscTimingService bscScanTask;
|
||||
|
||||
@Autowired
|
||||
private BtcBuyService btcBuyService;
|
||||
@Resource
|
||||
private UserNodeLogService userNodeLogService;
|
||||
|
||||
/**
|
||||
* 节点交易确认 10分钟执行一次
|
||||
*/
|
||||
@Scheduled(initialDelay = 15_000, fixedDelay = 1000 * 60 * 10)
|
||||
public void btcTransactionConfirmation() {
|
||||
//btcBuyService.exec();
|
||||
}
|
||||
|
||||
/**
|
||||
* socket监听区块,socket同步日志,监听最新的数据
|
||||
* 10分钟重启一次,防止异常停止监听
|
||||
* 检查链上合约订单
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
@Scheduled(initialDelay = 15 * 1000, fixedDelay = 6 * 1000)
|
||||
public void bscScanTaskWithWs(){
|
||||
//bscScanTask.bscScanTask();
|
||||
bscScanTask.bscScanTask();
|
||||
//后台添加节点
|
||||
userNodeLogService.addNode();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 节点订单过期
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
@Scheduled(initialDelay = 15 * 1000, fixedDelay = 60 * 1000 * 10)
|
||||
public void nodeOrderByTime(){
|
||||
userNodeLogService.nodeOrderByTime();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
package com.alive.server.task;
|
||||
|
||||
import com.alive.server.service.BscWsService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.web3j.protocol.Web3j;
|
||||
import org.web3j.protocol.http.HttpService;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author HayDen
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class WsCrossBridgesScanTask {
|
||||
|
||||
/**
|
||||
* socket节点
|
||||
*/
|
||||
@Value("${com.alive.roosChainWsUrl}")
|
||||
private String roosChainWsUrl;
|
||||
|
||||
/**
|
||||
* 合约地址
|
||||
*/
|
||||
@Value("${com.alive.roosContractUrl}")
|
||||
private String roosContractUrl;
|
||||
|
||||
@Autowired
|
||||
private BscWsService bscWsService;
|
||||
|
||||
public Web3j getCrossBridgesBscWsWeb3j() {
|
||||
return Web3j.build(new HttpService(roosChainWsUrl));
|
||||
}
|
||||
|
||||
/**
|
||||
* 需要同步日志的合约
|
||||
* @return
|
||||
*/
|
||||
private List<String> getAddresses() {
|
||||
return Arrays.asList(roosContractUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证跨连桥任务数据
|
||||
* 10分钟重启一次,防止异常停止监听
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
@Scheduled(initialDelay = 15 * 1000, fixedDelay = 60 * 1000 * 10)
|
||||
public void crossBridgesBscScanTaskWithWs(){
|
||||
/* long threadId = Thread.currentThread().getId();
|
||||
log.info("enter {}", threadId);
|
||||
EthFilter filter = new EthFilter(
|
||||
DefaultBlockParameter.valueOf("latest"),
|
||||
DefaultBlockParameter.valueOf("latest"),
|
||||
this.getAddresses()
|
||||
);
|
||||
Flowable<Log> flowable = this.getCrossBridgesBscWsWeb3j().ethLogFlowable(filter);
|
||||
bscWsService.wsExec(flowable);*/
|
||||
}
|
||||
}
|
|
@ -21,12 +21,10 @@ com.alive:
|
|||
chainUrl: 'https://go.getblock.io/7a508279a1a84ba6832cbc53f27e571a/'
|
||||
#ARBsocket节点服务器
|
||||
chainWsUrl: 'https://go.getblock.io/7a508279a1a84ba6832cbc53f27e571a/'
|
||||
contractUrl: '0x9B20e2e0b114D50B3a8328e7Ca8C1303aFDC13A4'
|
||||
contractUrl: '0x19462cb0b64D61e082197A1D85b6edf6769A1e69'
|
||||
#节点合约地址
|
||||
nodeContractUrl: '0xc874Fb28fC97ec286bf82C532CB202b9F616F9D2'
|
||||
|
||||
|
||||
#任务测试跨连桥合约监听器
|
||||
roosChainWsUrl: 'https://go.getblock.io/8181dc29e53a4ea4948e30c61e3e0aeb/'
|
||||
roosContractUrl: '0xeeEC77da95C788b58595Fcd7eBad1d87Ae821aCE'
|
||||
common:
|
||||
auth:
|
||||
jwtSecret: 'inode-dev'
|
||||
|
|
|
@ -18,11 +18,12 @@ spring:
|
|||
|
||||
com.alive:
|
||||
#ARB节点服务器
|
||||
chainUrl: 'https://go.getblock.io/e3842ff6182b4907ac9863503e77744e/'
|
||||
chainUrl: 'https://go.getblock.io/86d1613b096647e0860078a4b6dd0700/'
|
||||
#ARBsocket节点服务器
|
||||
chainWsUrl: 'https://go.getblock.io/e3842ff6182b4907ac9863503e77744e/'
|
||||
chainWsUrl: 'https://go.getblock.io/86d1613b096647e0860078a4b6dd0700/'
|
||||
contractUrl: '0x92B64f3BCf327ada976Fa876c7F17b177f333Eea'
|
||||
|
||||
#节点合约地址
|
||||
nodeContractUrl: '0x5a84639a338E82896D89fa62C6E8E5eC44611487'
|
||||
|
||||
#任务测试跨连桥合约监听器 暂时没有用到
|
||||
roosChainWsUrl: 'https://go.getblock.io/8181dc29e53a4ea4948e30c61e3e0aeb/'
|
||||
|
|
|
@ -27,6 +27,8 @@ public enum WalletLogTypeEnum implements BaseEnum {
|
|||
PRIVATE_PLACEMENT(14, "私募"),
|
||||
|
||||
AIRDROP(15, "空投"),
|
||||
|
||||
BACKGROUND_DEDUCTIONS(16, "后台扣减"),
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
|
|
@ -29,6 +29,8 @@ import java.util.List;
|
|||
//@Service
|
||||
public class Web3Util {
|
||||
|
||||
public final static String BSC_USDT_WEI = "1000000000000000000";
|
||||
|
||||
//@Autowired
|
||||
private final Web3j bscWeb3j;
|
||||
|
||||
|
|
|
@ -115,17 +115,12 @@
|
|||
t_member |
|
||||
t_member_wallet |
|
||||
t_member_wallet_log |
|
||||
node |
|
||||
node_award_setting |
|
||||
node_setting |
|
||||
node_task |
|
||||
node_task_log |
|
||||
activity_log |
|
||||
activity_config |
|
||||
activity_statistics |
|
||||
chain_log |
|
||||
coin_config |
|
||||
pay_coin_log
|
||||
pay_coin_log |
|
||||
user_node |
|
||||
user_node_log |
|
||||
node_income_config
|
||||
</includes>
|
||||
<excludes>
|
||||
a_template_table
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 活动
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class ActivityConfigVo
|
||||
{
|
||||
|
||||
@ApiModelProperty("活动配置ID(做任务需要)")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("活动标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty("活动内容")
|
||||
private String titleContent;
|
||||
|
||||
@ApiModelProperty("活动图片")
|
||||
private String activityImg;
|
||||
|
||||
@ApiModelProperty("活动跳转链接")
|
||||
private String activityUrl;
|
||||
|
||||
@ApiModelProperty("应奖励金额")
|
||||
private String amount;
|
||||
|
||||
@ApiModelProperty("实际奖励金额")
|
||||
private String actualAmount;
|
||||
|
||||
@ApiModelProperty("1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("1=进行中 2=已结束 3=已下架 4=链接钱包 5=已完成 6=任务中")
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* -1表示该任务每天只能做一次,1表示该任务每天可以做一次
|
||||
*/
|
||||
private Integer activityNumber;
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class ActivityOutcomeVo
|
||||
{
|
||||
@ApiModelProperty("活动列表")
|
||||
private List<ActivityConfigVo> activityConfigVos;
|
||||
|
||||
@ApiModelProperty("参与用户数量")
|
||||
private Integer usesNumber;
|
||||
|
||||
@ApiModelProperty("是否提示绑定邀请码 0=未提示 1=已提示")
|
||||
private Integer codePrompt;
|
||||
|
||||
@ApiModelProperty("我赚取了多少ROS")
|
||||
private String amount;
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class ActivityTaskVo
|
||||
{
|
||||
@ApiModelProperty("1=打开链接 2=提示绑定关系")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("活动需要的链接")
|
||||
private String activityUrl;
|
||||
|
||||
@ApiModelProperty("授权链接")
|
||||
private String authorizationLinks;
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
|
||||
/**
|
||||
* 用户首页
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class HomeVo {
|
||||
|
||||
@ApiModelProperty("前端显示默认,目前后端没有值")
|
||||
private String userImg;
|
||||
|
||||
@ApiModelProperty("地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty("0=无等级 1=区代理 2=市代理 3=省代理 3=超级节点")
|
||||
private Integer level;
|
||||
|
||||
@ApiModelProperty("直推节点")
|
||||
private Integer directPushNode;
|
||||
|
||||
@ApiModelProperty("间推节点")
|
||||
private Integer pushNodesIndirectly;
|
||||
|
||||
@ApiModelProperty("推广收入")
|
||||
private String revenueUsdt;
|
||||
|
||||
@ApiModelProperty("节点数量")
|
||||
private Integer nodeNumber;
|
||||
|
||||
@ApiModelProperty("节点价格")
|
||||
private String nodePrice;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class InviteVo
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
@ApiModelProperty("地址")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否购买
|
||||
*/
|
||||
@ApiModelProperty("是否购买")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("节点名称")
|
||||
private String nodeName;
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class NodeLogVo {
|
||||
|
||||
@ApiModelProperty("address")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty("代数")
|
||||
private Integer algebra;
|
||||
|
||||
@ApiModelProperty("用户等级")
|
||||
private Integer level;
|
||||
|
||||
@ApiModelProperty("奖励比例")
|
||||
private BigDecimal proportion;
|
||||
|
||||
@ApiModelProperty("奖励金额")
|
||||
private BigDecimal amount;
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import com.alive.db.entity.BaseEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 节点设置对象Vo
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class NodeSettingVo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 节点总量
|
||||
*/
|
||||
private Integer nodeTotal;
|
||||
|
||||
/**
|
||||
* 已购数量
|
||||
*/
|
||||
private BigDecimal purchasedCount;
|
||||
|
||||
/**
|
||||
* 节点价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class UserInviteVo
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 邀请数量
|
||||
*/
|
||||
@ApiModelProperty("邀请数量")
|
||||
private Integer userNumber;
|
||||
|
||||
/**
|
||||
* 贡献
|
||||
*/
|
||||
@ApiModelProperty("贡献")
|
||||
private BigDecimal contribution;
|
||||
|
||||
/**
|
||||
* 奖励NFT
|
||||
*/
|
||||
@ApiModelProperty("奖励NFT")
|
||||
private BigDecimal nftNumer;
|
||||
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 节点认购记录
|
||||
* </p>
|
||||
*
|
||||
* @author HayDen
|
||||
* @since 2024-06-25
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class UserNodeLogVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty("创建人")
|
||||
private String createBy;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty("更新人")
|
||||
private String updateBy;
|
||||
|
||||
@ApiModelProperty("钱包地址")
|
||||
private String walletAddress;
|
||||
|
||||
@ApiModelProperty("认购数量")
|
||||
private Integer nodeNumber;
|
||||
|
||||
@ApiModelProperty("支付币种")
|
||||
private String payCoin;
|
||||
|
||||
@ApiModelProperty("认购金额")
|
||||
private BigDecimal buyAmount;
|
||||
|
||||
@ApiModelProperty("节点配置ID")
|
||||
private Integer nodeSettingId;
|
||||
|
||||
@ApiModelProperty("1:订单生成 2:链上确认 3:支付成功 4:支付失败")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("用户id")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty("交易hash")
|
||||
private String hash;
|
||||
|
||||
@ApiModelProperty("订单号")
|
||||
private String orderNumber;
|
||||
|
||||
@ApiModelProperty("一代奖励")
|
||||
private String addressOne;
|
||||
|
||||
@ApiModelProperty("一代奖励金额")
|
||||
private BigDecimal awardOne;
|
||||
|
||||
@ApiModelProperty("二代奖励")
|
||||
private String addressTwo;
|
||||
|
||||
@ApiModelProperty("二代奖励金额")
|
||||
private BigDecimal awardTwo;
|
||||
|
||||
@ApiModelProperty("三代奖励")
|
||||
private String addressThree;
|
||||
|
||||
@ApiModelProperty("三代奖励金额")
|
||||
private BigDecimal awardThree;
|
||||
|
||||
@ApiModelProperty("四代奖励")
|
||||
private String addressFour;
|
||||
|
||||
@ApiModelProperty("四代奖励金额")
|
||||
private BigDecimal awardFour;
|
||||
|
||||
@ApiModelProperty("订单说明")
|
||||
private String illustrate;
|
||||
|
||||
@ApiModelProperty("数据JSON")
|
||||
private String dataJson;
|
||||
|
||||
@ApiModelProperty("归集地址")
|
||||
private String collectionAddress;
|
||||
|
||||
@ApiModelProperty("归集金额")
|
||||
private BigDecimal collectionAmount;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Long time;
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户节点
|
||||
* </p>
|
||||
*
|
||||
* @author HayDen
|
||||
* @since 2024-06-25
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class UserNodeVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ApiModelProperty("钱包地址")
|
||||
private String walletAddress;
|
||||
|
||||
@ApiModelProperty("节点数量")
|
||||
private Integer nodeNumber;
|
||||
|
||||
@ApiModelProperty("用户等级")
|
||||
private Integer level;
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author HayDen
|
||||
* @date 2024-05-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class UserTeamVo
|
||||
{
|
||||
@ApiModelProperty("上级账户")
|
||||
private String account;
|
||||
|
||||
@ApiModelProperty("上级账户Id")
|
||||
private Integer id;
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
package com.alive.db.entity.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author HayDen
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Accessors(chain = true)
|
||||
public class WordNodeVo
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("节点编号")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("节点等级")
|
||||
private String nodeGrade;
|
||||
|
||||
@ApiModelProperty("支付金额")
|
||||
private BigDecimal buyAmount;
|
||||
|
||||
@ApiModelProperty("节点名称")
|
||||
private String nodeName;
|
||||
|
||||
@ApiModelProperty("说明")
|
||||
private String illustrate;
|
||||
|
||||
@ApiModelProperty("1=显示盒子 2=支付确认中 3=提示用户去购买盒子")
|
||||
private Integer status;
|
||||
|
||||
//购买盒子时间
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 特殊的奖励金额
|
||||
* 修改日期为2024-04-30晚上20:17 产品需求确认以前购买盒子的显示一个38000的数值,后续的显示为0
|
||||
*/
|
||||
private String specialAmount;
|
||||
}
|
|
@ -4,17 +4,9 @@
|
|||
package com.alive.db.jooq;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityConfigTable;
|
||||
import com.alive.db.jooq.tables.ActivityLogTable;
|
||||
import com.alive.db.jooq.tables.ActivityStatisticsTable;
|
||||
import com.alive.db.jooq.tables.ChainLogTable;
|
||||
import com.alive.db.jooq.tables.CoinConfigTable;
|
||||
import com.alive.db.jooq.tables.NodeAwardSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeBuyLogTable;
|
||||
import com.alive.db.jooq.tables.NodeSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskLogTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskTable;
|
||||
import com.alive.db.jooq.tables.NodeIncomeConfigTable;
|
||||
import com.alive.db.jooq.tables.PayCoinLogTable;
|
||||
import com.alive.db.jooq.tables.SysAccountTable;
|
||||
import com.alive.db.jooq.tables.SysActionLogTable;
|
||||
|
@ -27,6 +19,8 @@ import com.alive.db.jooq.tables.TMemberWalletLogTable;
|
|||
import com.alive.db.jooq.tables.TMemberWalletTable;
|
||||
import com.alive.db.jooq.tables.TUniBannerTable;
|
||||
import com.alive.db.jooq.tables.TUniNoticeTable;
|
||||
import com.alive.db.jooq.tables.UserNodeLogTable;
|
||||
import com.alive.db.jooq.tables.UserNodeTable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -52,28 +46,13 @@ import org.jooq.impl.SchemaImpl;
|
|||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class DefaultSchema extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1266626571;
|
||||
private static final long serialVersionUID = 1613871668;
|
||||
|
||||
/**
|
||||
* The reference instance of <code></code>
|
||||
*/
|
||||
public static final DefaultSchema DEFAULT_SCHEMA = new DefaultSchema();
|
||||
|
||||
/**
|
||||
* 活动配置
|
||||
*/
|
||||
public final ActivityConfigTable ACTIVITY_CONFIG = com.alive.db.jooq.tables.ActivityConfigTable.ACTIVITY_CONFIG;
|
||||
|
||||
/**
|
||||
* 活动任务日志
|
||||
*/
|
||||
public final ActivityLogTable ACTIVITY_LOG = com.alive.db.jooq.tables.ActivityLogTable.ACTIVITY_LOG;
|
||||
|
||||
/**
|
||||
* 业绩统计
|
||||
*/
|
||||
public final ActivityStatisticsTable ACTIVITY_STATISTICS = com.alive.db.jooq.tables.ActivityStatisticsTable.ACTIVITY_STATISTICS;
|
||||
|
||||
/**
|
||||
* 链日志同步
|
||||
*/
|
||||
|
@ -85,34 +64,9 @@ public class DefaultSchema extends SchemaImpl {
|
|||
public final CoinConfigTable COIN_CONFIG = com.alive.db.jooq.tables.CoinConfigTable.COIN_CONFIG;
|
||||
|
||||
/**
|
||||
* 用户节点表
|
||||
* 收益配置
|
||||
*/
|
||||
public final NodeTable NODE = com.alive.db.jooq.tables.NodeTable.NODE;
|
||||
|
||||
/**
|
||||
* 节点奖励设置
|
||||
*/
|
||||
public final NodeAwardSettingTable NODE_AWARD_SETTING = com.alive.db.jooq.tables.NodeAwardSettingTable.NODE_AWARD_SETTING;
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
public final NodeBuyLogTable NODE_BUY_LOG = com.alive.db.jooq.tables.NodeBuyLogTable.NODE_BUY_LOG;
|
||||
|
||||
/**
|
||||
* 节点设置
|
||||
*/
|
||||
public final NodeSettingTable NODE_SETTING = com.alive.db.jooq.tables.NodeSettingTable.NODE_SETTING;
|
||||
|
||||
/**
|
||||
* NEER任务配置
|
||||
*/
|
||||
public final NodeTaskTable NODE_TASK = com.alive.db.jooq.tables.NodeTaskTable.NODE_TASK;
|
||||
|
||||
/**
|
||||
* 我的任务奖励
|
||||
*/
|
||||
public final NodeTaskLogTable NODE_TASK_LOG = com.alive.db.jooq.tables.NodeTaskLogTable.NODE_TASK_LOG;
|
||||
public final NodeIncomeConfigTable NODE_INCOME_CONFIG = com.alive.db.jooq.tables.NodeIncomeConfigTable.NODE_INCOME_CONFIG;
|
||||
|
||||
/**
|
||||
* 兑换币种日志表
|
||||
|
@ -174,6 +128,16 @@ public class DefaultSchema extends SchemaImpl {
|
|||
*/
|
||||
public final TUniNoticeTable T_UNI_NOTICE = com.alive.db.jooq.tables.TUniNoticeTable.T_UNI_NOTICE;
|
||||
|
||||
/**
|
||||
* 用户节点
|
||||
*/
|
||||
public final UserNodeTable USER_NODE = com.alive.db.jooq.tables.UserNodeTable.USER_NODE;
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
public final UserNodeLogTable USER_NODE_LOG = com.alive.db.jooq.tables.UserNodeLogTable.USER_NODE_LOG;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
|
@ -196,17 +160,9 @@ public class DefaultSchema extends SchemaImpl {
|
|||
|
||||
private final List<Table<?>> getTables0() {
|
||||
return Arrays.<Table<?>>asList(
|
||||
ActivityConfigTable.ACTIVITY_CONFIG,
|
||||
ActivityLogTable.ACTIVITY_LOG,
|
||||
ActivityStatisticsTable.ACTIVITY_STATISTICS,
|
||||
ChainLogTable.CHAIN_LOG,
|
||||
CoinConfigTable.COIN_CONFIG,
|
||||
NodeTable.NODE,
|
||||
NodeAwardSettingTable.NODE_AWARD_SETTING,
|
||||
NodeBuyLogTable.NODE_BUY_LOG,
|
||||
NodeSettingTable.NODE_SETTING,
|
||||
NodeTaskTable.NODE_TASK,
|
||||
NodeTaskLogTable.NODE_TASK_LOG,
|
||||
NodeIncomeConfigTable.NODE_INCOME_CONFIG,
|
||||
PayCoinLogTable.PAY_COIN_LOG,
|
||||
SysAccountTable.SYS_ACCOUNT,
|
||||
SysActionLogTable.SYS_ACTION_LOG,
|
||||
|
@ -218,6 +174,8 @@ public class DefaultSchema extends SchemaImpl {
|
|||
TMemberWalletTable.T_MEMBER_WALLET,
|
||||
TMemberWalletLogTable.T_MEMBER_WALLET_LOG,
|
||||
TUniBannerTable.T_UNI_BANNER,
|
||||
TUniNoticeTable.T_UNI_NOTICE);
|
||||
TUniNoticeTable.T_UNI_NOTICE,
|
||||
UserNodeTable.USER_NODE,
|
||||
UserNodeLogTable.USER_NODE_LOG);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,17 +4,9 @@
|
|||
package com.alive.db.jooq;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityConfigTable;
|
||||
import com.alive.db.jooq.tables.ActivityLogTable;
|
||||
import com.alive.db.jooq.tables.ActivityStatisticsTable;
|
||||
import com.alive.db.jooq.tables.ChainLogTable;
|
||||
import com.alive.db.jooq.tables.CoinConfigTable;
|
||||
import com.alive.db.jooq.tables.NodeAwardSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeBuyLogTable;
|
||||
import com.alive.db.jooq.tables.NodeSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskLogTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskTable;
|
||||
import com.alive.db.jooq.tables.NodeIncomeConfigTable;
|
||||
import com.alive.db.jooq.tables.PayCoinLogTable;
|
||||
import com.alive.db.jooq.tables.SysAccountTable;
|
||||
import com.alive.db.jooq.tables.SysActionLogTable;
|
||||
|
@ -27,6 +19,8 @@ import com.alive.db.jooq.tables.TMemberWalletLogTable;
|
|||
import com.alive.db.jooq.tables.TMemberWalletTable;
|
||||
import com.alive.db.jooq.tables.TUniBannerTable;
|
||||
import com.alive.db.jooq.tables.TUniNoticeTable;
|
||||
import com.alive.db.jooq.tables.UserNodeLogTable;
|
||||
import com.alive.db.jooq.tables.UserNodeTable;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
@ -52,18 +46,9 @@ public class Indexes {
|
|||
// INDEX definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final Index ACTIVITY_CONFIG_PRIMARY = Indexes0.ACTIVITY_CONFIG_PRIMARY;
|
||||
public static final Index ACTIVITY_LOG_PRIMARY = Indexes0.ACTIVITY_LOG_PRIMARY;
|
||||
public static final Index ACTIVITY_STATISTICS_ADDRESS_INDEX = Indexes0.ACTIVITY_STATISTICS_ADDRESS_INDEX;
|
||||
public static final Index ACTIVITY_STATISTICS_PRIMARY = Indexes0.ACTIVITY_STATISTICS_PRIMARY;
|
||||
public static final Index CHAIN_LOG_PRIMARY = Indexes0.CHAIN_LOG_PRIMARY;
|
||||
public static final Index COIN_CONFIG_PRIMARY = Indexes0.COIN_CONFIG_PRIMARY;
|
||||
public static final Index NODE_PRIMARY = Indexes0.NODE_PRIMARY;
|
||||
public static final Index NODE_AWARD_SETTING_PRIMARY = Indexes0.NODE_AWARD_SETTING_PRIMARY;
|
||||
public static final Index NODE_BUY_LOG_PRIMARY = Indexes0.NODE_BUY_LOG_PRIMARY;
|
||||
public static final Index NODE_SETTING_PRIMARY = Indexes0.NODE_SETTING_PRIMARY;
|
||||
public static final Index NODE_TASK_PRIMARY = Indexes0.NODE_TASK_PRIMARY;
|
||||
public static final Index NODE_TASK_LOG_PRIMARY = Indexes0.NODE_TASK_LOG_PRIMARY;
|
||||
public static final Index NODE_INCOME_CONFIG_PRIMARY = Indexes0.NODE_INCOME_CONFIG_PRIMARY;
|
||||
public static final Index PAY_COIN_LOG_PRIMARY = Indexes0.PAY_COIN_LOG_PRIMARY;
|
||||
public static final Index SYS_ACCOUNT_PRIMARY = Indexes0.SYS_ACCOUNT_PRIMARY;
|
||||
public static final Index SYS_ACTION_LOG_PRIMARY = Indexes0.SYS_ACTION_LOG_PRIMARY;
|
||||
|
@ -80,24 +65,17 @@ public class Indexes {
|
|||
public static final Index T_MEMBER_WALLET_LOG_PRIMARY = Indexes0.T_MEMBER_WALLET_LOG_PRIMARY;
|
||||
public static final Index T_UNI_BANNER_PRIMARY = Indexes0.T_UNI_BANNER_PRIMARY;
|
||||
public static final Index T_UNI_NOTICE_PRIMARY = Indexes0.T_UNI_NOTICE_PRIMARY;
|
||||
public static final Index USER_NODE_PRIMARY = Indexes0.USER_NODE_PRIMARY;
|
||||
public static final Index USER_NODE_LOG_PRIMARY = Indexes0.USER_NODE_LOG_PRIMARY;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// [#1459] distribute members to avoid static initialisers > 64kb
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
private static class Indexes0 {
|
||||
public static Index ACTIVITY_CONFIG_PRIMARY = Internal.createIndex("PRIMARY", ActivityConfigTable.ACTIVITY_CONFIG, new OrderField[] { ActivityConfigTable.ACTIVITY_CONFIG.ID }, true);
|
||||
public static Index ACTIVITY_LOG_PRIMARY = Internal.createIndex("PRIMARY", ActivityLogTable.ACTIVITY_LOG, new OrderField[] { ActivityLogTable.ACTIVITY_LOG.ID }, true);
|
||||
public static Index ACTIVITY_STATISTICS_ADDRESS_INDEX = Internal.createIndex("address_index", ActivityStatisticsTable.ACTIVITY_STATISTICS, new OrderField[] { ActivityStatisticsTable.ACTIVITY_STATISTICS.ADDRESS }, false);
|
||||
public static Index ACTIVITY_STATISTICS_PRIMARY = Internal.createIndex("PRIMARY", ActivityStatisticsTable.ACTIVITY_STATISTICS, new OrderField[] { ActivityStatisticsTable.ACTIVITY_STATISTICS.ID }, true);
|
||||
public static Index CHAIN_LOG_PRIMARY = Internal.createIndex("PRIMARY", ChainLogTable.CHAIN_LOG, new OrderField[] { ChainLogTable.CHAIN_LOG.ID }, true);
|
||||
public static Index COIN_CONFIG_PRIMARY = Internal.createIndex("PRIMARY", CoinConfigTable.COIN_CONFIG, new OrderField[] { CoinConfigTable.COIN_CONFIG.ID }, true);
|
||||
public static Index NODE_PRIMARY = Internal.createIndex("PRIMARY", NodeTable.NODE, new OrderField[] { NodeTable.NODE.ID }, true);
|
||||
public static Index NODE_AWARD_SETTING_PRIMARY = Internal.createIndex("PRIMARY", NodeAwardSettingTable.NODE_AWARD_SETTING, new OrderField[] { NodeAwardSettingTable.NODE_AWARD_SETTING.ID }, true);
|
||||
public static Index NODE_BUY_LOG_PRIMARY = Internal.createIndex("PRIMARY", NodeBuyLogTable.NODE_BUY_LOG, new OrderField[] { NodeBuyLogTable.NODE_BUY_LOG.ID }, true);
|
||||
public static Index NODE_SETTING_PRIMARY = Internal.createIndex("PRIMARY", NodeSettingTable.NODE_SETTING, new OrderField[] { NodeSettingTable.NODE_SETTING.ID }, true);
|
||||
public static Index NODE_TASK_PRIMARY = Internal.createIndex("PRIMARY", NodeTaskTable.NODE_TASK, new OrderField[] { NodeTaskTable.NODE_TASK.ID }, true);
|
||||
public static Index NODE_TASK_LOG_PRIMARY = Internal.createIndex("PRIMARY", NodeTaskLogTable.NODE_TASK_LOG, new OrderField[] { NodeTaskLogTable.NODE_TASK_LOG.ID }, true);
|
||||
public static Index NODE_INCOME_CONFIG_PRIMARY = Internal.createIndex("PRIMARY", NodeIncomeConfigTable.NODE_INCOME_CONFIG, new OrderField[] { NodeIncomeConfigTable.NODE_INCOME_CONFIG.ID }, true);
|
||||
public static Index PAY_COIN_LOG_PRIMARY = Internal.createIndex("PRIMARY", PayCoinLogTable.PAY_COIN_LOG, new OrderField[] { PayCoinLogTable.PAY_COIN_LOG.ID }, true);
|
||||
public static Index SYS_ACCOUNT_PRIMARY = Internal.createIndex("PRIMARY", SysAccountTable.SYS_ACCOUNT, new OrderField[] { SysAccountTable.SYS_ACCOUNT.ID }, true);
|
||||
public static Index SYS_ACTION_LOG_PRIMARY = Internal.createIndex("PRIMARY", SysActionLogTable.SYS_ACTION_LOG, new OrderField[] { SysActionLogTable.SYS_ACTION_LOG.ID }, true);
|
||||
|
@ -114,5 +92,7 @@ public class Indexes {
|
|||
public static Index T_MEMBER_WALLET_LOG_PRIMARY = Internal.createIndex("PRIMARY", TMemberWalletLogTable.T_MEMBER_WALLET_LOG, new OrderField[] { TMemberWalletLogTable.T_MEMBER_WALLET_LOG.ID }, true);
|
||||
public static Index T_UNI_BANNER_PRIMARY = Internal.createIndex("PRIMARY", TUniBannerTable.T_UNI_BANNER, new OrderField[] { TUniBannerTable.T_UNI_BANNER.ID }, true);
|
||||
public static Index T_UNI_NOTICE_PRIMARY = Internal.createIndex("PRIMARY", TUniNoticeTable.T_UNI_NOTICE, new OrderField[] { TUniNoticeTable.T_UNI_NOTICE.ID }, true);
|
||||
public static Index USER_NODE_PRIMARY = Internal.createIndex("PRIMARY", UserNodeTable.USER_NODE, new OrderField[] { UserNodeTable.USER_NODE.ID }, true);
|
||||
public static Index USER_NODE_LOG_PRIMARY = Internal.createIndex("PRIMARY", UserNodeLogTable.USER_NODE_LOG, new OrderField[] { UserNodeLogTable.USER_NODE_LOG.ID }, true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,17 +4,9 @@
|
|||
package com.alive.db.jooq;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityConfigTable;
|
||||
import com.alive.db.jooq.tables.ActivityLogTable;
|
||||
import com.alive.db.jooq.tables.ActivityStatisticsTable;
|
||||
import com.alive.db.jooq.tables.ChainLogTable;
|
||||
import com.alive.db.jooq.tables.CoinConfigTable;
|
||||
import com.alive.db.jooq.tables.NodeAwardSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeBuyLogTable;
|
||||
import com.alive.db.jooq.tables.NodeSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskLogTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskTable;
|
||||
import com.alive.db.jooq.tables.NodeIncomeConfigTable;
|
||||
import com.alive.db.jooq.tables.PayCoinLogTable;
|
||||
import com.alive.db.jooq.tables.SysAccountTable;
|
||||
import com.alive.db.jooq.tables.SysActionLogTable;
|
||||
|
@ -27,17 +19,11 @@ import com.alive.db.jooq.tables.TMemberWalletLogTable;
|
|||
import com.alive.db.jooq.tables.TMemberWalletTable;
|
||||
import com.alive.db.jooq.tables.TUniBannerTable;
|
||||
import com.alive.db.jooq.tables.TUniNoticeTable;
|
||||
import com.alive.db.jooq.tables.records.ActivityConfigRecord;
|
||||
import com.alive.db.jooq.tables.records.ActivityLogRecord;
|
||||
import com.alive.db.jooq.tables.records.ActivityStatisticsRecord;
|
||||
import com.alive.db.jooq.tables.UserNodeLogTable;
|
||||
import com.alive.db.jooq.tables.UserNodeTable;
|
||||
import com.alive.db.jooq.tables.records.ChainLogRecord;
|
||||
import com.alive.db.jooq.tables.records.CoinConfigRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeAwardSettingRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeBuyLogRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeSettingRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskLogRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskRecord;
|
||||
import com.alive.db.jooq.tables.records.NodeIncomeConfigRecord;
|
||||
import com.alive.db.jooq.tables.records.PayCoinLogRecord;
|
||||
import com.alive.db.jooq.tables.records.SysAccountRecord;
|
||||
import com.alive.db.jooq.tables.records.SysActionLogRecord;
|
||||
|
@ -50,6 +36,8 @@ import com.alive.db.jooq.tables.records.TMemberWalletLogRecord;
|
|||
import com.alive.db.jooq.tables.records.TMemberWalletRecord;
|
||||
import com.alive.db.jooq.tables.records.TUniBannerRecord;
|
||||
import com.alive.db.jooq.tables.records.TUniNoticeRecord;
|
||||
import com.alive.db.jooq.tables.records.UserNodeLogRecord;
|
||||
import com.alive.db.jooq.tables.records.UserNodeRecord;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
@ -76,17 +64,9 @@ public class Keys {
|
|||
// IDENTITY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final Identity<ActivityConfigRecord, Integer> IDENTITY_ACTIVITY_CONFIG = Identities0.IDENTITY_ACTIVITY_CONFIG;
|
||||
public static final Identity<ActivityLogRecord, Integer> IDENTITY_ACTIVITY_LOG = Identities0.IDENTITY_ACTIVITY_LOG;
|
||||
public static final Identity<ActivityStatisticsRecord, Integer> IDENTITY_ACTIVITY_STATISTICS = Identities0.IDENTITY_ACTIVITY_STATISTICS;
|
||||
public static final Identity<ChainLogRecord, Integer> IDENTITY_CHAIN_LOG = Identities0.IDENTITY_CHAIN_LOG;
|
||||
public static final Identity<CoinConfigRecord, Integer> IDENTITY_COIN_CONFIG = Identities0.IDENTITY_COIN_CONFIG;
|
||||
public static final Identity<NodeRecord, Integer> IDENTITY_NODE = Identities0.IDENTITY_NODE;
|
||||
public static final Identity<NodeAwardSettingRecord, Integer> IDENTITY_NODE_AWARD_SETTING = Identities0.IDENTITY_NODE_AWARD_SETTING;
|
||||
public static final Identity<NodeBuyLogRecord, Integer> IDENTITY_NODE_BUY_LOG = Identities0.IDENTITY_NODE_BUY_LOG;
|
||||
public static final Identity<NodeSettingRecord, Integer> IDENTITY_NODE_SETTING = Identities0.IDENTITY_NODE_SETTING;
|
||||
public static final Identity<NodeTaskRecord, Integer> IDENTITY_NODE_TASK = Identities0.IDENTITY_NODE_TASK;
|
||||
public static final Identity<NodeTaskLogRecord, Integer> IDENTITY_NODE_TASK_LOG = Identities0.IDENTITY_NODE_TASK_LOG;
|
||||
public static final Identity<NodeIncomeConfigRecord, Integer> IDENTITY_NODE_INCOME_CONFIG = Identities0.IDENTITY_NODE_INCOME_CONFIG;
|
||||
public static final Identity<PayCoinLogRecord, Integer> IDENTITY_PAY_COIN_LOG = Identities0.IDENTITY_PAY_COIN_LOG;
|
||||
public static final Identity<SysAccountRecord, Integer> IDENTITY_SYS_ACCOUNT = Identities0.IDENTITY_SYS_ACCOUNT;
|
||||
public static final Identity<SysActionLogRecord, Integer> IDENTITY_SYS_ACTION_LOG = Identities0.IDENTITY_SYS_ACTION_LOG;
|
||||
|
@ -99,22 +79,16 @@ public class Keys {
|
|||
public static final Identity<TMemberWalletLogRecord, Integer> IDENTITY_T_MEMBER_WALLET_LOG = Identities0.IDENTITY_T_MEMBER_WALLET_LOG;
|
||||
public static final Identity<TUniBannerRecord, Integer> IDENTITY_T_UNI_BANNER = Identities0.IDENTITY_T_UNI_BANNER;
|
||||
public static final Identity<TUniNoticeRecord, Integer> IDENTITY_T_UNI_NOTICE = Identities0.IDENTITY_T_UNI_NOTICE;
|
||||
public static final Identity<UserNodeRecord, Integer> IDENTITY_USER_NODE = Identities0.IDENTITY_USER_NODE;
|
||||
public static final Identity<UserNodeLogRecord, Integer> IDENTITY_USER_NODE_LOG = Identities0.IDENTITY_USER_NODE_LOG;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<ActivityConfigRecord> KEY_ACTIVITY_CONFIG_PRIMARY = UniqueKeys0.KEY_ACTIVITY_CONFIG_PRIMARY;
|
||||
public static final UniqueKey<ActivityLogRecord> KEY_ACTIVITY_LOG_PRIMARY = UniqueKeys0.KEY_ACTIVITY_LOG_PRIMARY;
|
||||
public static final UniqueKey<ActivityStatisticsRecord> KEY_ACTIVITY_STATISTICS_PRIMARY = UniqueKeys0.KEY_ACTIVITY_STATISTICS_PRIMARY;
|
||||
public static final UniqueKey<ChainLogRecord> KEY_CHAIN_LOG_PRIMARY = UniqueKeys0.KEY_CHAIN_LOG_PRIMARY;
|
||||
public static final UniqueKey<CoinConfigRecord> KEY_COIN_CONFIG_PRIMARY = UniqueKeys0.KEY_COIN_CONFIG_PRIMARY;
|
||||
public static final UniqueKey<NodeRecord> KEY_NODE_PRIMARY = UniqueKeys0.KEY_NODE_PRIMARY;
|
||||
public static final UniqueKey<NodeAwardSettingRecord> KEY_NODE_AWARD_SETTING_PRIMARY = UniqueKeys0.KEY_NODE_AWARD_SETTING_PRIMARY;
|
||||
public static final UniqueKey<NodeBuyLogRecord> KEY_NODE_BUY_LOG_PRIMARY = UniqueKeys0.KEY_NODE_BUY_LOG_PRIMARY;
|
||||
public static final UniqueKey<NodeSettingRecord> KEY_NODE_SETTING_PRIMARY = UniqueKeys0.KEY_NODE_SETTING_PRIMARY;
|
||||
public static final UniqueKey<NodeTaskRecord> KEY_NODE_TASK_PRIMARY = UniqueKeys0.KEY_NODE_TASK_PRIMARY;
|
||||
public static final UniqueKey<NodeTaskLogRecord> KEY_NODE_TASK_LOG_PRIMARY = UniqueKeys0.KEY_NODE_TASK_LOG_PRIMARY;
|
||||
public static final UniqueKey<NodeIncomeConfigRecord> KEY_NODE_INCOME_CONFIG_PRIMARY = UniqueKeys0.KEY_NODE_INCOME_CONFIG_PRIMARY;
|
||||
public static final UniqueKey<PayCoinLogRecord> KEY_PAY_COIN_LOG_PRIMARY = UniqueKeys0.KEY_PAY_COIN_LOG_PRIMARY;
|
||||
public static final UniqueKey<SysAccountRecord> KEY_SYS_ACCOUNT_PRIMARY = UniqueKeys0.KEY_SYS_ACCOUNT_PRIMARY;
|
||||
public static final UniqueKey<SysActionLogRecord> KEY_SYS_ACTION_LOG_PRIMARY = UniqueKeys0.KEY_SYS_ACTION_LOG_PRIMARY;
|
||||
|
@ -127,6 +101,8 @@ public class Keys {
|
|||
public static final UniqueKey<TMemberWalletLogRecord> KEY_T_MEMBER_WALLET_LOG_PRIMARY = UniqueKeys0.KEY_T_MEMBER_WALLET_LOG_PRIMARY;
|
||||
public static final UniqueKey<TUniBannerRecord> KEY_T_UNI_BANNER_PRIMARY = UniqueKeys0.KEY_T_UNI_BANNER_PRIMARY;
|
||||
public static final UniqueKey<TUniNoticeRecord> KEY_T_UNI_NOTICE_PRIMARY = UniqueKeys0.KEY_T_UNI_NOTICE_PRIMARY;
|
||||
public static final UniqueKey<UserNodeRecord> KEY_USER_NODE_PRIMARY = UniqueKeys0.KEY_USER_NODE_PRIMARY;
|
||||
public static final UniqueKey<UserNodeLogRecord> KEY_USER_NODE_LOG_PRIMARY = UniqueKeys0.KEY_USER_NODE_LOG_PRIMARY;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
|
@ -138,17 +114,9 @@ public class Keys {
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
private static class Identities0 {
|
||||
public static Identity<ActivityConfigRecord, Integer> IDENTITY_ACTIVITY_CONFIG = Internal.createIdentity(ActivityConfigTable.ACTIVITY_CONFIG, ActivityConfigTable.ACTIVITY_CONFIG.ID);
|
||||
public static Identity<ActivityLogRecord, Integer> IDENTITY_ACTIVITY_LOG = Internal.createIdentity(ActivityLogTable.ACTIVITY_LOG, ActivityLogTable.ACTIVITY_LOG.ID);
|
||||
public static Identity<ActivityStatisticsRecord, Integer> IDENTITY_ACTIVITY_STATISTICS = Internal.createIdentity(ActivityStatisticsTable.ACTIVITY_STATISTICS, ActivityStatisticsTable.ACTIVITY_STATISTICS.ID);
|
||||
public static Identity<ChainLogRecord, Integer> IDENTITY_CHAIN_LOG = Internal.createIdentity(ChainLogTable.CHAIN_LOG, ChainLogTable.CHAIN_LOG.ID);
|
||||
public static Identity<CoinConfigRecord, Integer> IDENTITY_COIN_CONFIG = Internal.createIdentity(CoinConfigTable.COIN_CONFIG, CoinConfigTable.COIN_CONFIG.ID);
|
||||
public static Identity<NodeRecord, Integer> IDENTITY_NODE = Internal.createIdentity(NodeTable.NODE, NodeTable.NODE.ID);
|
||||
public static Identity<NodeAwardSettingRecord, Integer> IDENTITY_NODE_AWARD_SETTING = Internal.createIdentity(NodeAwardSettingTable.NODE_AWARD_SETTING, NodeAwardSettingTable.NODE_AWARD_SETTING.ID);
|
||||
public static Identity<NodeBuyLogRecord, Integer> IDENTITY_NODE_BUY_LOG = Internal.createIdentity(NodeBuyLogTable.NODE_BUY_LOG, NodeBuyLogTable.NODE_BUY_LOG.ID);
|
||||
public static Identity<NodeSettingRecord, Integer> IDENTITY_NODE_SETTING = Internal.createIdentity(NodeSettingTable.NODE_SETTING, NodeSettingTable.NODE_SETTING.ID);
|
||||
public static Identity<NodeTaskRecord, Integer> IDENTITY_NODE_TASK = Internal.createIdentity(NodeTaskTable.NODE_TASK, NodeTaskTable.NODE_TASK.ID);
|
||||
public static Identity<NodeTaskLogRecord, Integer> IDENTITY_NODE_TASK_LOG = Internal.createIdentity(NodeTaskLogTable.NODE_TASK_LOG, NodeTaskLogTable.NODE_TASK_LOG.ID);
|
||||
public static Identity<NodeIncomeConfigRecord, Integer> IDENTITY_NODE_INCOME_CONFIG = Internal.createIdentity(NodeIncomeConfigTable.NODE_INCOME_CONFIG, NodeIncomeConfigTable.NODE_INCOME_CONFIG.ID);
|
||||
public static Identity<PayCoinLogRecord, Integer> IDENTITY_PAY_COIN_LOG = Internal.createIdentity(PayCoinLogTable.PAY_COIN_LOG, PayCoinLogTable.PAY_COIN_LOG.ID);
|
||||
public static Identity<SysAccountRecord, Integer> IDENTITY_SYS_ACCOUNT = Internal.createIdentity(SysAccountTable.SYS_ACCOUNT, SysAccountTable.SYS_ACCOUNT.ID);
|
||||
public static Identity<SysActionLogRecord, Integer> IDENTITY_SYS_ACTION_LOG = Internal.createIdentity(SysActionLogTable.SYS_ACTION_LOG, SysActionLogTable.SYS_ACTION_LOG.ID);
|
||||
|
@ -161,20 +129,14 @@ public class Keys {
|
|||
public static Identity<TMemberWalletLogRecord, Integer> IDENTITY_T_MEMBER_WALLET_LOG = Internal.createIdentity(TMemberWalletLogTable.T_MEMBER_WALLET_LOG, TMemberWalletLogTable.T_MEMBER_WALLET_LOG.ID);
|
||||
public static Identity<TUniBannerRecord, Integer> IDENTITY_T_UNI_BANNER = Internal.createIdentity(TUniBannerTable.T_UNI_BANNER, TUniBannerTable.T_UNI_BANNER.ID);
|
||||
public static Identity<TUniNoticeRecord, Integer> IDENTITY_T_UNI_NOTICE = Internal.createIdentity(TUniNoticeTable.T_UNI_NOTICE, TUniNoticeTable.T_UNI_NOTICE.ID);
|
||||
public static Identity<UserNodeRecord, Integer> IDENTITY_USER_NODE = Internal.createIdentity(UserNodeTable.USER_NODE, UserNodeTable.USER_NODE.ID);
|
||||
public static Identity<UserNodeLogRecord, Integer> IDENTITY_USER_NODE_LOG = Internal.createIdentity(UserNodeLogTable.USER_NODE_LOG, UserNodeLogTable.USER_NODE_LOG.ID);
|
||||
}
|
||||
|
||||
private static class UniqueKeys0 {
|
||||
public static final UniqueKey<ActivityConfigRecord> KEY_ACTIVITY_CONFIG_PRIMARY = Internal.createUniqueKey(ActivityConfigTable.ACTIVITY_CONFIG, "KEY_activity_config_PRIMARY", ActivityConfigTable.ACTIVITY_CONFIG.ID);
|
||||
public static final UniqueKey<ActivityLogRecord> KEY_ACTIVITY_LOG_PRIMARY = Internal.createUniqueKey(ActivityLogTable.ACTIVITY_LOG, "KEY_activity_log_PRIMARY", ActivityLogTable.ACTIVITY_LOG.ID);
|
||||
public static final UniqueKey<ActivityStatisticsRecord> KEY_ACTIVITY_STATISTICS_PRIMARY = Internal.createUniqueKey(ActivityStatisticsTable.ACTIVITY_STATISTICS, "KEY_activity_statistics_PRIMARY", ActivityStatisticsTable.ACTIVITY_STATISTICS.ID);
|
||||
public static final UniqueKey<ChainLogRecord> KEY_CHAIN_LOG_PRIMARY = Internal.createUniqueKey(ChainLogTable.CHAIN_LOG, "KEY_chain_log_PRIMARY", ChainLogTable.CHAIN_LOG.ID);
|
||||
public static final UniqueKey<CoinConfigRecord> KEY_COIN_CONFIG_PRIMARY = Internal.createUniqueKey(CoinConfigTable.COIN_CONFIG, "KEY_coin_config_PRIMARY", CoinConfigTable.COIN_CONFIG.ID);
|
||||
public static final UniqueKey<NodeRecord> KEY_NODE_PRIMARY = Internal.createUniqueKey(NodeTable.NODE, "KEY_node_PRIMARY", NodeTable.NODE.ID);
|
||||
public static final UniqueKey<NodeAwardSettingRecord> KEY_NODE_AWARD_SETTING_PRIMARY = Internal.createUniqueKey(NodeAwardSettingTable.NODE_AWARD_SETTING, "KEY_node_award_setting_PRIMARY", NodeAwardSettingTable.NODE_AWARD_SETTING.ID);
|
||||
public static final UniqueKey<NodeBuyLogRecord> KEY_NODE_BUY_LOG_PRIMARY = Internal.createUniqueKey(NodeBuyLogTable.NODE_BUY_LOG, "KEY_node_buy_log_PRIMARY", NodeBuyLogTable.NODE_BUY_LOG.ID);
|
||||
public static final UniqueKey<NodeSettingRecord> KEY_NODE_SETTING_PRIMARY = Internal.createUniqueKey(NodeSettingTable.NODE_SETTING, "KEY_node_setting_PRIMARY", NodeSettingTable.NODE_SETTING.ID);
|
||||
public static final UniqueKey<NodeTaskRecord> KEY_NODE_TASK_PRIMARY = Internal.createUniqueKey(NodeTaskTable.NODE_TASK, "KEY_node_task_PRIMARY", NodeTaskTable.NODE_TASK.ID);
|
||||
public static final UniqueKey<NodeTaskLogRecord> KEY_NODE_TASK_LOG_PRIMARY = Internal.createUniqueKey(NodeTaskLogTable.NODE_TASK_LOG, "KEY_node_task_log_PRIMARY", NodeTaskLogTable.NODE_TASK_LOG.ID);
|
||||
public static final UniqueKey<NodeIncomeConfigRecord> KEY_NODE_INCOME_CONFIG_PRIMARY = Internal.createUniqueKey(NodeIncomeConfigTable.NODE_INCOME_CONFIG, "KEY_node_income_config_PRIMARY", NodeIncomeConfigTable.NODE_INCOME_CONFIG.ID);
|
||||
public static final UniqueKey<PayCoinLogRecord> KEY_PAY_COIN_LOG_PRIMARY = Internal.createUniqueKey(PayCoinLogTable.PAY_COIN_LOG, "KEY_pay_coin_log_PRIMARY", PayCoinLogTable.PAY_COIN_LOG.ID);
|
||||
public static final UniqueKey<SysAccountRecord> KEY_SYS_ACCOUNT_PRIMARY = Internal.createUniqueKey(SysAccountTable.SYS_ACCOUNT, "KEY_sys_account_PRIMARY", SysAccountTable.SYS_ACCOUNT.ID);
|
||||
public static final UniqueKey<SysActionLogRecord> KEY_SYS_ACTION_LOG_PRIMARY = Internal.createUniqueKey(SysActionLogTable.SYS_ACTION_LOG, "KEY_sys_action_log_PRIMARY", SysActionLogTable.SYS_ACTION_LOG.ID);
|
||||
|
@ -187,5 +149,7 @@ public class Keys {
|
|||
public static final UniqueKey<TMemberWalletLogRecord> KEY_T_MEMBER_WALLET_LOG_PRIMARY = Internal.createUniqueKey(TMemberWalletLogTable.T_MEMBER_WALLET_LOG, "KEY_t_member_wallet_log_PRIMARY", TMemberWalletLogTable.T_MEMBER_WALLET_LOG.ID);
|
||||
public static final UniqueKey<TUniBannerRecord> KEY_T_UNI_BANNER_PRIMARY = Internal.createUniqueKey(TUniBannerTable.T_UNI_BANNER, "KEY_t_uni_banner_PRIMARY", TUniBannerTable.T_UNI_BANNER.ID);
|
||||
public static final UniqueKey<TUniNoticeRecord> KEY_T_UNI_NOTICE_PRIMARY = Internal.createUniqueKey(TUniNoticeTable.T_UNI_NOTICE, "KEY_t_uni_notice_PRIMARY", TUniNoticeTable.T_UNI_NOTICE.ID);
|
||||
public static final UniqueKey<UserNodeRecord> KEY_USER_NODE_PRIMARY = Internal.createUniqueKey(UserNodeTable.USER_NODE, "KEY_user_node_PRIMARY", UserNodeTable.USER_NODE.ID);
|
||||
public static final UniqueKey<UserNodeLogRecord> KEY_USER_NODE_LOG_PRIMARY = Internal.createUniqueKey(UserNodeLogTable.USER_NODE_LOG, "KEY_user_node_log_PRIMARY", UserNodeLogTable.USER_NODE_LOG.ID);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,17 +4,9 @@
|
|||
package com.alive.db.jooq;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityConfigTable;
|
||||
import com.alive.db.jooq.tables.ActivityLogTable;
|
||||
import com.alive.db.jooq.tables.ActivityStatisticsTable;
|
||||
import com.alive.db.jooq.tables.ChainLogTable;
|
||||
import com.alive.db.jooq.tables.CoinConfigTable;
|
||||
import com.alive.db.jooq.tables.NodeAwardSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeBuyLogTable;
|
||||
import com.alive.db.jooq.tables.NodeSettingTable;
|
||||
import com.alive.db.jooq.tables.NodeTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskLogTable;
|
||||
import com.alive.db.jooq.tables.NodeTaskTable;
|
||||
import com.alive.db.jooq.tables.NodeIncomeConfigTable;
|
||||
import com.alive.db.jooq.tables.PayCoinLogTable;
|
||||
import com.alive.db.jooq.tables.SysAccountTable;
|
||||
import com.alive.db.jooq.tables.SysActionLogTable;
|
||||
|
@ -27,6 +19,8 @@ import com.alive.db.jooq.tables.TMemberWalletLogTable;
|
|||
import com.alive.db.jooq.tables.TMemberWalletTable;
|
||||
import com.alive.db.jooq.tables.TUniBannerTable;
|
||||
import com.alive.db.jooq.tables.TUniNoticeTable;
|
||||
import com.alive.db.jooq.tables.UserNodeLogTable;
|
||||
import com.alive.db.jooq.tables.UserNodeTable;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
@ -44,21 +38,6 @@ import javax.annotation.Generated;
|
|||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* 活动配置
|
||||
*/
|
||||
public static final ActivityConfigTable ACTIVITY_CONFIG = ActivityConfigTable.ACTIVITY_CONFIG;
|
||||
|
||||
/**
|
||||
* 活动任务日志
|
||||
*/
|
||||
public static final ActivityLogTable ACTIVITY_LOG = ActivityLogTable.ACTIVITY_LOG;
|
||||
|
||||
/**
|
||||
* 业绩统计
|
||||
*/
|
||||
public static final ActivityStatisticsTable ACTIVITY_STATISTICS = ActivityStatisticsTable.ACTIVITY_STATISTICS;
|
||||
|
||||
/**
|
||||
* 链日志同步
|
||||
*/
|
||||
|
@ -70,34 +49,9 @@ public class Tables {
|
|||
public static final CoinConfigTable COIN_CONFIG = CoinConfigTable.COIN_CONFIG;
|
||||
|
||||
/**
|
||||
* 用户节点表
|
||||
* 收益配置
|
||||
*/
|
||||
public static final NodeTable NODE = NodeTable.NODE;
|
||||
|
||||
/**
|
||||
* 节点奖励设置
|
||||
*/
|
||||
public static final NodeAwardSettingTable NODE_AWARD_SETTING = NodeAwardSettingTable.NODE_AWARD_SETTING;
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
public static final NodeBuyLogTable NODE_BUY_LOG = NodeBuyLogTable.NODE_BUY_LOG;
|
||||
|
||||
/**
|
||||
* 节点设置
|
||||
*/
|
||||
public static final NodeSettingTable NODE_SETTING = NodeSettingTable.NODE_SETTING;
|
||||
|
||||
/**
|
||||
* NEER任务配置
|
||||
*/
|
||||
public static final NodeTaskTable NODE_TASK = NodeTaskTable.NODE_TASK;
|
||||
|
||||
/**
|
||||
* 我的任务奖励
|
||||
*/
|
||||
public static final NodeTaskLogTable NODE_TASK_LOG = NodeTaskLogTable.NODE_TASK_LOG;
|
||||
public static final NodeIncomeConfigTable NODE_INCOME_CONFIG = NodeIncomeConfigTable.NODE_INCOME_CONFIG;
|
||||
|
||||
/**
|
||||
* 兑换币种日志表
|
||||
|
@ -158,4 +112,14 @@ public class Tables {
|
|||
* 公告
|
||||
*/
|
||||
public static final TUniNoticeTable T_UNI_NOTICE = TUniNoticeTable.T_UNI_NOTICE;
|
||||
|
||||
/**
|
||||
* 用户节点
|
||||
*/
|
||||
public static final UserNodeTable USER_NODE = UserNodeTable.USER_NODE;
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
public static final UserNodeLogTable USER_NODE_LOG = UserNodeLogTable.USER_NODE_LOG;
|
||||
}
|
||||
|
|
|
@ -1,229 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.ActivityConfigRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row15;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 活动配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityConfigTable extends TableImpl<ActivityConfigRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1717856274;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>activity_config</code>
|
||||
*/
|
||||
public static final ActivityConfigTable ACTIVITY_CONFIG = new ActivityConfigTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<ActivityConfigRecord> getRecordType() {
|
||||
return ActivityConfigRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.id</code>.
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Byte> FLAG = createField(DSL.name("flag"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, "标记删除,0 / 1");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.title</code>. 活动标题
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, String> TITLE = createField(DSL.name("title"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "活动标题");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.title_content</code>. 活动内容
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, String> TITLE_CONTENT = createField(DSL.name("title_content"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "活动内容");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.activity_img</code>. 活动图片
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, String> ACTIVITY_IMG = createField(DSL.name("activity_img"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "活动图片");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.activity_url</code>. 活动跳转链接
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, String> ACTIVITY_URL = createField(DSL.name("activity_url"), org.jooq.impl.SQLDataType.VARCHAR(500).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "活动跳转链接");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.state</code>. 1=进行中 2=已结束 3=已下架
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Integer> STATE = createField(DSL.name("state"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "1=进行中 2=已结束 3=已下架");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.amount</code>. 奖励金额
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, BigDecimal> AMOUNT = createField(DSL.name("amount"), org.jooq.impl.SQLDataType.DECIMAL(16, 6).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, BigDecimal> SUPERIOR_AMOUNT = createField(DSL.name("superior_amount"), org.jooq.impl.SQLDataType.DECIMAL(16, 6).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "上级奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.activity_number</code>. 每天可以做的次数(每天1次) -1表示任务是一次性的
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Integer> ACTIVITY_NUMBER = createField(DSL.name("activity_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "每天可以做的次数(每天1次) -1表示任务是一次性的");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.category</code>. 1=社交媒体活动 2=测试网络活动
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Integer> CATEGORY = createField(DSL.name("category"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "1=社交媒体活动 2=测试网络活动 ");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.type</code>. 1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码 10=加入TG
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, Integer> TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码 10=加入TG");
|
||||
|
||||
/**
|
||||
* The column <code>activity_config.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public final TableField<ActivityConfigRecord, String> MARK = createField(DSL.name("mark"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.VARCHAR)), this, "(关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)");
|
||||
|
||||
/**
|
||||
* Create a <code>activity_config</code> table reference
|
||||
*/
|
||||
public ActivityConfigTable() {
|
||||
this(DSL.name("activity_config"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_config</code> table reference
|
||||
*/
|
||||
public ActivityConfigTable(String alias) {
|
||||
this(DSL.name(alias), ACTIVITY_CONFIG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_config</code> table reference
|
||||
*/
|
||||
public ActivityConfigTable(Name alias) {
|
||||
this(alias, ACTIVITY_CONFIG);
|
||||
}
|
||||
|
||||
private ActivityConfigTable(Name alias, Table<ActivityConfigRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ActivityConfigTable(Name alias, Table<ActivityConfigRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("活动配置"));
|
||||
}
|
||||
|
||||
public <O extends Record> ActivityConfigTable(Table<O> child, ForeignKey<O, ActivityConfigRecord> key) {
|
||||
super(child, key, ACTIVITY_CONFIG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.ACTIVITY_CONFIG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<ActivityConfigRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_ACTIVITY_CONFIG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<ActivityConfigRecord> getPrimaryKey() {
|
||||
return Keys.KEY_ACTIVITY_CONFIG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<ActivityConfigRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<ActivityConfigRecord>>asList(Keys.KEY_ACTIVITY_CONFIG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigTable as(String alias) {
|
||||
return new ActivityConfigTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigTable as(Name alias) {
|
||||
return new ActivityConfigTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityConfigTable rename(String name) {
|
||||
return new ActivityConfigTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityConfigTable rename(Name name) {
|
||||
return new ActivityConfigTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row15 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row15<Integer, Timestamp, Timestamp, Byte, String, String, String, String, Integer, BigDecimal, BigDecimal, Integer, Integer, Integer, String> fieldsRow() {
|
||||
return (Row15) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,234 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.ActivityLogRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row16;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 活动任务日志
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityLogTable extends TableImpl<ActivityLogRecord> {
|
||||
|
||||
private static final long serialVersionUID = -363574502;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>activity_log</code>
|
||||
*/
|
||||
public static final ActivityLogTable ACTIVITY_LOG = new ActivityLogTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<ActivityLogRecord> getRecordType() {
|
||||
return ActivityLogRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.id</code>.
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Byte> FLAG = createField(DSL.name("flag"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, "标记删除,0 / 1");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.activity_config_id</code>. 配置ID
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Integer> ACTIVITY_CONFIG_ID = createField(DSL.name("activity_config_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "配置ID");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.address</code>. 用户地址
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, String> ADDRESS = createField(DSL.name("address"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "用户地址");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.superior_address</code>. 上级地址
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, String> SUPERIOR_ADDRESS = createField(DSL.name("superior_address"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "上级地址");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.title</code>. 活动标题
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, String> TITLE = createField(DSL.name("title"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "活动标题");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.type</code>. 1=发起任务 2=已完成 3=失败
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Integer> TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "1=发起任务 2=已完成 3=失败");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.amount</code>. 奖励金额
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, BigDecimal> AMOUNT = createField(DSL.name("amount"), org.jooq.impl.SQLDataType.DECIMAL(16, 6).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, BigDecimal> SUPERIOR_AMOUNT = createField(DSL.name("superior_amount"), org.jooq.impl.SQLDataType.DECIMAL(16, 6).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "上级奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.end_time</code>. 任务结束时间
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Timestamp> END_TIME = createField(DSL.name("end_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "任务结束时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.config_type</code>. 配置的TYPE
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Integer> CONFIG_TYPE = createField(DSL.name("config_type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "配置的TYPE");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, String> MARK = createField(DSL.name("mark"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.VARCHAR)), this, "(关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.hashs</code>. 转账hash,多笔中间用逗号分隔
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, String> HASHS = createField(DSL.name("hashs"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "转账hash,多笔中间用逗号分隔");
|
||||
|
||||
/**
|
||||
* The column <code>activity_log.transfer_type</code>. 0:未执行链上发放 1:已链上发放
|
||||
*/
|
||||
public final TableField<ActivityLogRecord, Integer> TRANSFER_TYPE = createField(DSL.name("transfer_type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "0:未执行链上发放 1:已链上发放");
|
||||
|
||||
/**
|
||||
* Create a <code>activity_log</code> table reference
|
||||
*/
|
||||
public ActivityLogTable() {
|
||||
this(DSL.name("activity_log"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_log</code> table reference
|
||||
*/
|
||||
public ActivityLogTable(String alias) {
|
||||
this(DSL.name(alias), ACTIVITY_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_log</code> table reference
|
||||
*/
|
||||
public ActivityLogTable(Name alias) {
|
||||
this(alias, ACTIVITY_LOG);
|
||||
}
|
||||
|
||||
private ActivityLogTable(Name alias, Table<ActivityLogRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ActivityLogTable(Name alias, Table<ActivityLogRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("活动任务日志"));
|
||||
}
|
||||
|
||||
public <O extends Record> ActivityLogTable(Table<O> child, ForeignKey<O, ActivityLogRecord> key) {
|
||||
super(child, key, ACTIVITY_LOG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.ACTIVITY_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<ActivityLogRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_ACTIVITY_LOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<ActivityLogRecord> getPrimaryKey() {
|
||||
return Keys.KEY_ACTIVITY_LOG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<ActivityLogRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<ActivityLogRecord>>asList(Keys.KEY_ACTIVITY_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogTable as(String alias) {
|
||||
return new ActivityLogTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogTable as(Name alias) {
|
||||
return new ActivityLogTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityLogTable rename(String name) {
|
||||
return new ActivityLogTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityLogTable rename(Name name) {
|
||||
return new ActivityLogTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row16 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, Timestamp, Byte, Integer, String, String, String, Integer, BigDecimal, BigDecimal, Timestamp, Integer, String, String, Integer> fieldsRow() {
|
||||
return (Row16) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,184 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.ActivityStatisticsRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row6;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 业绩统计
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityStatisticsTable extends TableImpl<ActivityStatisticsRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1903264628;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>activity_statistics</code>
|
||||
*/
|
||||
public static final ActivityStatisticsTable ACTIVITY_STATISTICS = new ActivityStatisticsTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<ActivityStatisticsRecord> getRecordType() {
|
||||
return ActivityStatisticsRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.id</code>.
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, Byte> FLAG = createField(DSL.name("flag"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, "标记删除,0 / 1");
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.address</code>. 用户地址
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, String> ADDRESS = createField(DSL.name("address"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "用户地址");
|
||||
|
||||
/**
|
||||
* The column <code>activity_statistics.amount</code>. 累计业绩
|
||||
*/
|
||||
public final TableField<ActivityStatisticsRecord, BigDecimal> AMOUNT = createField(DSL.name("amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 6).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "累计业绩");
|
||||
|
||||
/**
|
||||
* Create a <code>activity_statistics</code> table reference
|
||||
*/
|
||||
public ActivityStatisticsTable() {
|
||||
this(DSL.name("activity_statistics"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_statistics</code> table reference
|
||||
*/
|
||||
public ActivityStatisticsTable(String alias) {
|
||||
this(DSL.name(alias), ACTIVITY_STATISTICS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>activity_statistics</code> table reference
|
||||
*/
|
||||
public ActivityStatisticsTable(Name alias) {
|
||||
this(alias, ACTIVITY_STATISTICS);
|
||||
}
|
||||
|
||||
private ActivityStatisticsTable(Name alias, Table<ActivityStatisticsRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ActivityStatisticsTable(Name alias, Table<ActivityStatisticsRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("业绩统计"));
|
||||
}
|
||||
|
||||
public <O extends Record> ActivityStatisticsTable(Table<O> child, ForeignKey<O, ActivityStatisticsRecord> key) {
|
||||
super(child, key, ACTIVITY_STATISTICS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.ACTIVITY_STATISTICS_ADDRESS_INDEX, Indexes.ACTIVITY_STATISTICS_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<ActivityStatisticsRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_ACTIVITY_STATISTICS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<ActivityStatisticsRecord> getPrimaryKey() {
|
||||
return Keys.KEY_ACTIVITY_STATISTICS_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<ActivityStatisticsRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<ActivityStatisticsRecord>>asList(Keys.KEY_ACTIVITY_STATISTICS_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsTable as(String alias) {
|
||||
return new ActivityStatisticsTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsTable as(Name alias) {
|
||||
return new ActivityStatisticsTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityStatisticsTable rename(String name) {
|
||||
return new ActivityStatisticsTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public ActivityStatisticsTable rename(Name name) {
|
||||
return new ActivityStatisticsTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row6 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row6<Integer, Timestamp, Timestamp, Byte, String, BigDecimal> fieldsRow() {
|
||||
return (Row6) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,219 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeAwardSettingRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row13;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点奖励设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeAwardSettingTable extends TableImpl<NodeAwardSettingRecord> {
|
||||
|
||||
private static final long serialVersionUID = -781204966;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_award_setting</code>
|
||||
*/
|
||||
public static final NodeAwardSettingTable NODE_AWARD_SETTING = new NodeAwardSettingTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeAwardSettingRecord> getRecordType() {
|
||||
return NodeAwardSettingRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.id</code>.
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.node_setting_id</code>. 节点奖励id
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, Integer> NODE_SETTING_ID = createField(DSL.name("node_setting_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "节点奖励id");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.rebate</code>. 返佣比例
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> REBATE = createField(DSL.name("rebate"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "返佣比例");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> RBIT_AMOUNT = createField(DSL.name("rbit_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false), this, "购买盒子获取Rbit奖励数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.rbit_one</code>. 1代Rbit奖励比例
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> RBIT_ONE = createField(DSL.name("rbit_one"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "1代Rbit奖励比例");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.rebate_two</code>. 2代Rbit奖励比例
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> REBATE_TWO = createField(DSL.name("rebate_two"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "2代Rbit奖励比例");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> NFT_AMOUNT = createField(DSL.name("nft_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "购买盒子NFT碎片奖励数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.nft_one</code>. 1代NFT碎片奖励比例
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> NFT_ONE = createField(DSL.name("nft_one"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "1代NFT碎片奖励比例");
|
||||
|
||||
/**
|
||||
* The column <code>node_award_setting.nft_two</code>. 2代NFT碎片奖励比例
|
||||
*/
|
||||
public final TableField<NodeAwardSettingRecord, BigDecimal> NFT_TWO = createField(DSL.name("nft_two"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "2代NFT碎片奖励比例");
|
||||
|
||||
/**
|
||||
* Create a <code>node_award_setting</code> table reference
|
||||
*/
|
||||
public NodeAwardSettingTable() {
|
||||
this(DSL.name("node_award_setting"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_award_setting</code> table reference
|
||||
*/
|
||||
public NodeAwardSettingTable(String alias) {
|
||||
this(DSL.name(alias), NODE_AWARD_SETTING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_award_setting</code> table reference
|
||||
*/
|
||||
public NodeAwardSettingTable(Name alias) {
|
||||
this(alias, NODE_AWARD_SETTING);
|
||||
}
|
||||
|
||||
private NodeAwardSettingTable(Name alias, Table<NodeAwardSettingRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeAwardSettingTable(Name alias, Table<NodeAwardSettingRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("节点奖励设置"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeAwardSettingTable(Table<O> child, ForeignKey<O, NodeAwardSettingRecord> key) {
|
||||
super(child, key, NODE_AWARD_SETTING);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_AWARD_SETTING_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeAwardSettingRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_AWARD_SETTING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeAwardSettingRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_AWARD_SETTING_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeAwardSettingRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeAwardSettingRecord>>asList(Keys.KEY_NODE_AWARD_SETTING_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingTable as(String alias) {
|
||||
return new NodeAwardSettingTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingTable as(Name alias) {
|
||||
return new NodeAwardSettingTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeAwardSettingTable rename(String name) {
|
||||
return new NodeAwardSettingTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeAwardSettingTable rename(Name name) {
|
||||
return new NodeAwardSettingTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row13 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, Integer, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal> fieldsRow() {
|
||||
return (Row13) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,279 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeBuyLogRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeBuyLogTable extends TableImpl<NodeBuyLogRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1465636406;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_buy_log</code>
|
||||
*/
|
||||
public static final NodeBuyLogTable NODE_BUY_LOG = new NodeBuyLogTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeBuyLogRecord> getRecordType() {
|
||||
return NodeBuyLogRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.id</code>.
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> WALLET_ADDRESS = createField(DSL.name("wallet_address"), org.jooq.impl.SQLDataType.VARCHAR(150).nullable(false), this, "钱包地址");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.recommend_id</code>. 推荐人ID
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> RECOMMEND_ID = createField(DSL.name("recommend_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "推荐人ID");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.indirect_user_id</code>. 间推人ID
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> INDIRECT_USER_ID = createField(DSL.name("indirect_user_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "间推人ID");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.buy_count</code>. 认购数量
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> BUY_COUNT = createField(DSL.name("buy_count"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false), this, "认购数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> PAY_COIN = createField(DSL.name("pay_coin"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "支付币种");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> BUY_AMOUNT = createField(DSL.name("buy_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "认购金额");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> NODE_SETTING_ID = createField(DSL.name("node_setting_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "节点配置ID");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "1:订单生成 2:链上确认 3:支付成功 4:支付失败");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.user_id</code>. 用户id
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "用户id");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.hash</code>. 交易hash
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> HASH = createField(DSL.name("hash"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "交易hash");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.order_number</code>. 订单号
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> ORDER_NUMBER = createField(DSL.name("order_number"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "订单号");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.input_address</code>. 出账地址
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> INPUT_ADDRESS = createField(DSL.name("input_address"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "出账地址");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.out_address</code>. 到账地址
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> OUT_ADDRESS = createField(DSL.name("out_address"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "到账地址");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.rebate</code>. 推荐人返佣金额
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> REBATE = createField(DSL.name("rebate"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "推荐人返佣金额");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> RBIT_AMOUNT = createField(DSL.name("rbit_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "购买盒子获取Rbit奖励数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.rbit_one</code>. 1代Rbit奖励
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> RBIT_ONE = createField(DSL.name("rbit_one"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "1代Rbit奖励");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.rbit_two</code>. 2代Rbit奖励
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> RBIT_TWO = createField(DSL.name("rbit_two"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "2代Rbit奖励");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> NFT_AMOUNT = createField(DSL.name("nft_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "购买盒子NFT碎片奖励数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.nft_one</code>. 1代NFT碎片奖励
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> NFT_ONE = createField(DSL.name("nft_one"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "1代NFT碎片奖励");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.nft_two</code>. 2代NFT碎片奖励
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, BigDecimal> NFT_TWO = createField(DSL.name("nft_two"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "2代NFT碎片奖励");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, String> ILLUSTRATE = createField(DSL.name("illustrate"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "订单说明");
|
||||
|
||||
/**
|
||||
* The column <code>node_buy_log.top_settlement</code>. 是否结算 1=结算 0=未结算
|
||||
*/
|
||||
public final TableField<NodeBuyLogRecord, Integer> TOP_SETTLEMENT = createField(DSL.name("top_settlement"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "是否结算 1=结算 0=未结算");
|
||||
|
||||
/**
|
||||
* Create a <code>node_buy_log</code> table reference
|
||||
*/
|
||||
public NodeBuyLogTable() {
|
||||
this(DSL.name("node_buy_log"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_buy_log</code> table reference
|
||||
*/
|
||||
public NodeBuyLogTable(String alias) {
|
||||
this(DSL.name(alias), NODE_BUY_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_buy_log</code> table reference
|
||||
*/
|
||||
public NodeBuyLogTable(Name alias) {
|
||||
this(alias, NODE_BUY_LOG);
|
||||
}
|
||||
|
||||
private NodeBuyLogTable(Name alias, Table<NodeBuyLogRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeBuyLogTable(Name alias, Table<NodeBuyLogRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("节点认购记录"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeBuyLogTable(Table<O> child, ForeignKey<O, NodeBuyLogRecord> key) {
|
||||
super(child, key, NODE_BUY_LOG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_BUY_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeBuyLogRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_BUY_LOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeBuyLogRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_BUY_LOG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeBuyLogRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeBuyLogRecord>>asList(Keys.KEY_NODE_BUY_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeBuyLogTable as(String alias) {
|
||||
return new NodeBuyLogTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeBuyLogTable as(Name alias) {
|
||||
return new NodeBuyLogTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeBuyLogTable rename(String name) {
|
||||
return new NodeBuyLogTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeBuyLogTable rename(Name name) {
|
||||
return new NodeBuyLogTable(name, null);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeIncomeConfigRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row7;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 收益配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeIncomeConfigTable extends TableImpl<NodeIncomeConfigRecord> {
|
||||
|
||||
private static final long serialVersionUID = 124130507;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_income_config</code>
|
||||
*/
|
||||
public static final NodeIncomeConfigTable NODE_INCOME_CONFIG = new NodeIncomeConfigTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeIncomeConfigRecord> getRecordType() {
|
||||
return NodeIncomeConfigRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.id</code>.
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.income</code>. 收益比例
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, BigDecimal> INCOME = createField(DSL.name("income"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "收益比例");
|
||||
|
||||
/**
|
||||
* The column <code>node_income_config.era</code>. 代数
|
||||
*/
|
||||
public final TableField<NodeIncomeConfigRecord, Integer> ERA = createField(DSL.name("era"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "代数");
|
||||
|
||||
/**
|
||||
* Create a <code>node_income_config</code> table reference
|
||||
*/
|
||||
public NodeIncomeConfigTable() {
|
||||
this(DSL.name("node_income_config"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_income_config</code> table reference
|
||||
*/
|
||||
public NodeIncomeConfigTable(String alias) {
|
||||
this(DSL.name(alias), NODE_INCOME_CONFIG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_income_config</code> table reference
|
||||
*/
|
||||
public NodeIncomeConfigTable(Name alias) {
|
||||
this(alias, NODE_INCOME_CONFIG);
|
||||
}
|
||||
|
||||
private NodeIncomeConfigTable(Name alias, Table<NodeIncomeConfigRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeIncomeConfigTable(Name alias, Table<NodeIncomeConfigRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("收益配置"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeIncomeConfigTable(Table<O> child, ForeignKey<O, NodeIncomeConfigRecord> key) {
|
||||
super(child, key, NODE_INCOME_CONFIG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_INCOME_CONFIG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeIncomeConfigRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_INCOME_CONFIG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeIncomeConfigRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_INCOME_CONFIG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeIncomeConfigRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeIncomeConfigRecord>>asList(Keys.KEY_NODE_INCOME_CONFIG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigTable as(String alias) {
|
||||
return new NodeIncomeConfigTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigTable as(Name alias) {
|
||||
return new NodeIncomeConfigTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeIncomeConfigTable rename(String name) {
|
||||
return new NodeIncomeConfigTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeIncomeConfigTable rename(Name name) {
|
||||
return new NodeIncomeConfigTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row7 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row7<Integer, Timestamp, String, Timestamp, String, BigDecimal, Integer> fieldsRow() {
|
||||
return (Row7) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,234 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeSettingRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row16;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeSettingTable extends TableImpl<NodeSettingRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1504056659;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_setting</code>
|
||||
*/
|
||||
public static final NodeSettingTable NODE_SETTING = new NodeSettingTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeSettingRecord> getRecordType() {
|
||||
return NodeSettingRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.id</code>.
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.buy_coin_name</code>. 认购币种
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> BUY_COIN_NAME = createField(DSL.name("buy_coin_name"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "认购币种");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.node_total</code>. 节点总量
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Integer> NODE_TOTAL = createField(DSL.name("node_total"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "节点总量");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.node_price</code>. 节点价格
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, BigDecimal> NODE_PRICE = createField(DSL.name("node_price"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false), this, "节点价格");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.purchase_limit</code>. 单地址限购数量
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Integer> PURCHASE_LIMIT = createField(DSL.name("purchase_limit"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "单地址限购数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.purchased_count</code>. 已购数量
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Integer> PURCHASED_COUNT = createField(DSL.name("purchased_count"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "已购数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.purchased_amount</code>. 已购金额
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, BigDecimal> PURCHASED_AMOUNT = createField(DSL.name("purchased_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "已购金额");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.status</code>. 当前状态:1:认购中;2:已完成;3:待认购
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, Integer> STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.INTEGER)), this, "当前状态:1:认购中;2:已完成;3:待认购");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.node_name</code>. 节点名称
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> NODE_NAME = createField(DSL.name("node_name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "节点名称");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.illustrate</code>. 节点说明
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> ILLUSTRATE = createField(DSL.name("illustrate"), org.jooq.impl.SQLDataType.CLOB, this, "节点说明");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.title</code>. 标题
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> TITLE = createField(DSL.name("title"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "标题");
|
||||
|
||||
/**
|
||||
* The column <code>node_setting.node_grade</code>. 节点等级
|
||||
*/
|
||||
public final TableField<NodeSettingRecord, String> NODE_GRADE = createField(DSL.name("node_grade"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "节点等级");
|
||||
|
||||
/**
|
||||
* Create a <code>node_setting</code> table reference
|
||||
*/
|
||||
public NodeSettingTable() {
|
||||
this(DSL.name("node_setting"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_setting</code> table reference
|
||||
*/
|
||||
public NodeSettingTable(String alias) {
|
||||
this(DSL.name(alias), NODE_SETTING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_setting</code> table reference
|
||||
*/
|
||||
public NodeSettingTable(Name alias) {
|
||||
this(alias, NODE_SETTING);
|
||||
}
|
||||
|
||||
private NodeSettingTable(Name alias, Table<NodeSettingRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeSettingTable(Name alias, Table<NodeSettingRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("节点设置"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeSettingTable(Table<O> child, ForeignKey<O, NodeSettingRecord> key) {
|
||||
super(child, key, NODE_SETTING);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_SETTING_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeSettingRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_SETTING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeSettingRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_SETTING_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeSettingRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeSettingRecord>>asList(Keys.KEY_NODE_SETTING_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingTable as(String alias) {
|
||||
return new NodeSettingTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingTable as(Name alias) {
|
||||
return new NodeSettingTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeSettingTable rename(String name) {
|
||||
return new NodeSettingTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeSettingTable rename(Name name) {
|
||||
return new NodeSettingTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row16 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, String, Timestamp, String, String, Integer, BigDecimal, Integer, Integer, BigDecimal, Integer, String, String, String, String> fieldsRow() {
|
||||
return (Row16) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,219 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row13;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 用户节点表
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTable extends TableImpl<NodeRecord> {
|
||||
|
||||
private static final long serialVersionUID = -269629120;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node</code>
|
||||
*/
|
||||
public static final NodeTable NODE = new NodeTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeRecord> getRecordType() {
|
||||
return NodeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node.id</code>.
|
||||
*/
|
||||
public final TableField<NodeRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<NodeRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>node.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<NodeRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>node.buy_coin</code>. 认购币种
|
||||
*/
|
||||
public final TableField<NodeRecord, String> BUY_COIN = createField(DSL.name("buy_coin"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "认购币种");
|
||||
|
||||
/**
|
||||
* The column <code>node.buy_amount</code>. 支付金额
|
||||
*/
|
||||
public final TableField<NodeRecord, BigDecimal> BUY_AMOUNT = createField(DSL.name("buy_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false), this, "支付金额");
|
||||
|
||||
/**
|
||||
* The column <code>node.buy_number</code>. 购买数量
|
||||
*/
|
||||
public final TableField<NodeRecord, Integer> BUY_NUMBER = createField(DSL.name("buy_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "购买数量");
|
||||
|
||||
/**
|
||||
* The column <code>node.confirm_time</code>. 确认时间
|
||||
*/
|
||||
public final TableField<NodeRecord, Timestamp> CONFIRM_TIME = createField(DSL.name("confirm_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "确认时间");
|
||||
|
||||
/**
|
||||
* The column <code>node.user_id</code>. 用户id
|
||||
*/
|
||||
public final TableField<NodeRecord, Integer> USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "用户id");
|
||||
|
||||
/**
|
||||
* The column <code>node.node_name</code>. 节点名称
|
||||
*/
|
||||
public final TableField<NodeRecord, String> NODE_NAME = createField(DSL.name("node_name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "节点名称");
|
||||
|
||||
/**
|
||||
* The column <code>node.order_number</code>. 订单号
|
||||
*/
|
||||
public final TableField<NodeRecord, String> ORDER_NUMBER = createField(DSL.name("order_number"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "订单号");
|
||||
|
||||
/**
|
||||
* The column <code>node.node_setting_id</code>. 节点配置id
|
||||
*/
|
||||
public final TableField<NodeRecord, Integer> NODE_SETTING_ID = createField(DSL.name("node_setting_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "节点配置id");
|
||||
|
||||
/**
|
||||
* Create a <code>node</code> table reference
|
||||
*/
|
||||
public NodeTable() {
|
||||
this(DSL.name("node"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node</code> table reference
|
||||
*/
|
||||
public NodeTable(String alias) {
|
||||
this(DSL.name(alias), NODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node</code> table reference
|
||||
*/
|
||||
public NodeTable(Name alias) {
|
||||
this(alias, NODE);
|
||||
}
|
||||
|
||||
private NodeTable(Name alias, Table<NodeRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeTable(Name alias, Table<NodeRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("用户节点表"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeTable(Table<O> child, ForeignKey<O, NodeRecord> key) {
|
||||
super(child, key, NODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeRecord>>asList(Keys.KEY_NODE_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTable as(String alias) {
|
||||
return new NodeTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTable as(Name alias) {
|
||||
return new NodeTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTable rename(String name) {
|
||||
return new NodeTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTable rename(Name name) {
|
||||
return new NodeTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row13 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, String, BigDecimal, Integer, Timestamp, Integer, String, String, Integer> fieldsRow() {
|
||||
return (Row13) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,204 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskLogRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row10;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 我的任务奖励
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskLogTable extends TableImpl<NodeTaskLogRecord> {
|
||||
|
||||
private static final long serialVersionUID = 42400190;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_task_log</code>
|
||||
*/
|
||||
public static final NodeTaskLogTable NODE_TASK_LOG = new NodeTaskLogTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeTaskLogRecord> getRecordType() {
|
||||
return NodeTaskLogRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.id</code>.
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Byte> FLAG = createField(DSL.name("flag"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, "标记删除,0 / 1");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.task_id</code>. 任务id
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Integer> TASK_ID = createField(DSL.name("task_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "任务id");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.member_id</code>. 会员id
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Integer> MEMBER_ID = createField(DSL.name("member_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "会员id");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.state</code>. 0=待确认 1=待领取 2=已领取
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, Integer> STATE = createField(DSL.name("state"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "0=待确认 1=待领取 2=已领取");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.award_value</code>. 奖励积分数量
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, BigDecimal> AWARD_VALUE = createField(DSL.name("award_value"), org.jooq.impl.SQLDataType.DECIMAL(20, 10).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.0000000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "奖励积分数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.coin_name</code>. 奖励币种
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, String> COIN_NAME = createField(DSL.name("coin_name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "奖励币种");
|
||||
|
||||
/**
|
||||
* The column <code>node_task_log.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public final TableField<NodeTaskLogRecord, BigDecimal> RECOMMEND_VALUE = createField(DSL.name("recommend_value"), org.jooq.impl.SQLDataType.DECIMAL(20, 10).nullable(false), this, "推荐人奖励");
|
||||
|
||||
/**
|
||||
* Create a <code>node_task_log</code> table reference
|
||||
*/
|
||||
public NodeTaskLogTable() {
|
||||
this(DSL.name("node_task_log"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_task_log</code> table reference
|
||||
*/
|
||||
public NodeTaskLogTable(String alias) {
|
||||
this(DSL.name(alias), NODE_TASK_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_task_log</code> table reference
|
||||
*/
|
||||
public NodeTaskLogTable(Name alias) {
|
||||
this(alias, NODE_TASK_LOG);
|
||||
}
|
||||
|
||||
private NodeTaskLogTable(Name alias, Table<NodeTaskLogRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeTaskLogTable(Name alias, Table<NodeTaskLogRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("我的任务奖励"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeTaskLogTable(Table<O> child, ForeignKey<O, NodeTaskLogRecord> key) {
|
||||
super(child, key, NODE_TASK_LOG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_TASK_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeTaskLogRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_TASK_LOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeTaskLogRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_TASK_LOG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeTaskLogRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeTaskLogRecord>>asList(Keys.KEY_NODE_TASK_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogTable as(String alias) {
|
||||
return new NodeTaskLogTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogTable as(Name alias) {
|
||||
return new NodeTaskLogTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTaskLogTable rename(String name) {
|
||||
return new NodeTaskLogTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTaskLogTable rename(Name name) {
|
||||
return new NodeTaskLogTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row10 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, Integer, Integer, BigDecimal, String, BigDecimal> fieldsRow() {
|
||||
return (Row10) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,204 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.NodeTaskRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row10;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* NEER任务配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskTable extends TableImpl<NodeTaskRecord> {
|
||||
|
||||
private static final long serialVersionUID = 771159748;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>node_task</code>
|
||||
*/
|
||||
public static final NodeTaskTable NODE_TASK = new NodeTaskTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<NodeTaskRecord> getRecordType() {
|
||||
return NodeTaskRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>node_task.id</code>.
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Byte> FLAG = createField(DSL.name("flag"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, "标记删除,0 / 1");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.type</code>. 类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Integer> TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.title</code>. 名称,没什么用,方便看数据库
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, String> TITLE = createField(DSL.name("title"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "名称,没什么用,方便看数据库");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.award_value</code>. 奖励数量
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, BigDecimal> AWARD_VALUE = createField(DSL.name("award_value"), org.jooq.impl.SQLDataType.DECIMAL(20, 10).nullable(false), this, "奖励数量");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, BigDecimal> RECOMMEND_VALUE = createField(DSL.name("recommend_value"), org.jooq.impl.SQLDataType.DECIMAL(20, 10).nullable(false), this, "推荐人奖励");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.type2_target</code>. 类型2的任务目标,其它类型忽略
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Integer> TYPE2_TARGET = createField(DSL.name("type2_target"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "类型2的任务目标,其它类型忽略");
|
||||
|
||||
/**
|
||||
* The column <code>node_task.coin_id</code>. 奖励币种iD(0=战力)
|
||||
*/
|
||||
public final TableField<NodeTaskRecord, Integer> COIN_ID = createField(DSL.name("coin_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "奖励币种iD(0=战力)");
|
||||
|
||||
/**
|
||||
* Create a <code>node_task</code> table reference
|
||||
*/
|
||||
public NodeTaskTable() {
|
||||
this(DSL.name("node_task"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_task</code> table reference
|
||||
*/
|
||||
public NodeTaskTable(String alias) {
|
||||
this(DSL.name(alias), NODE_TASK);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>node_task</code> table reference
|
||||
*/
|
||||
public NodeTaskTable(Name alias) {
|
||||
this(alias, NODE_TASK);
|
||||
}
|
||||
|
||||
private NodeTaskTable(Name alias, Table<NodeTaskRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NodeTaskTable(Name alias, Table<NodeTaskRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("NEER任务配置"));
|
||||
}
|
||||
|
||||
public <O extends Record> NodeTaskTable(Table<O> child, ForeignKey<O, NodeTaskRecord> key) {
|
||||
super(child, key, NODE_TASK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.NODE_TASK_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<NodeTaskRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_NODE_TASK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<NodeTaskRecord> getPrimaryKey() {
|
||||
return Keys.KEY_NODE_TASK_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<NodeTaskRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<NodeTaskRecord>>asList(Keys.KEY_NODE_TASK_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskTable as(String alias) {
|
||||
return new NodeTaskTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskTable as(Name alias) {
|
||||
return new NodeTaskTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTaskTable rename(String name) {
|
||||
return new NodeTaskTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public NodeTaskTable rename(Name name) {
|
||||
return new NodeTaskTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row10 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, String, BigDecimal, BigDecimal, Integer, Integer> fieldsRow() {
|
||||
return (Row10) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -21,6 +21,7 @@ import org.jooq.Identity;
|
|||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row22;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
|
@ -42,7 +43,7 @@ import org.jooq.impl.TableImpl;
|
|||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class TMemberTable extends TableImpl<TMemberRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1128604078;
|
||||
private static final long serialVersionUID = 1906478192;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>t_member</code>
|
||||
|
@ -155,41 +156,21 @@ BNB Chain 5=Arbitrum One
|
|||
*/
|
||||
public final TableField<TMemberRecord, Integer> TWITTER_TYPE = createField(DSL.name("twitter_type"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "是否更新推特 0=未更新 1=已更新");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.twitter_id</code>. 推特id
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> TWITTER_ID = createField(DSL.name("twitter_id"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "推特id");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.twitter_name</code>. 推特账号
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> TWITTER_NAME = createField(DSL.name("twitter_name"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "推特账号");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.twitter_img</code>. 用户头像
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> TWITTER_IMG = createField(DSL.name("twitter_img"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "用户头像");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.twitter_user_name</code>. 用户名称
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> TWITTER_USER_NAME = createField(DSL.name("twitter_user_name"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "用户名称");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.discord_id</code>. 用户DiscordID
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> DISCORD_ID = createField(DSL.name("discord_id"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "用户DiscordID");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.tg_id</code>. 用户TG ID
|
||||
*/
|
||||
public final TableField<TMemberRecord, String> TG_ID = createField(DSL.name("tg_id"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "用户TG ID");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.top_user</code>. 特定顶级用户 1=是 0=普通用户
|
||||
*/
|
||||
public final TableField<TMemberRecord, Integer> TOP_USER = createField(DSL.name("top_user"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "特定顶级用户 1=是 0=普通用户");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.node_number</code>. 直推节点人数
|
||||
*/
|
||||
public final TableField<TMemberRecord, Integer> NODE_NUMBER = createField(DSL.name("node_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "直推节点人数");
|
||||
|
||||
/**
|
||||
* The column <code>t_member.team_node_number</code>. 团队节点人数
|
||||
*/
|
||||
public final TableField<TMemberRecord, Integer> TEAM_NODE_NUMBER = createField(DSL.name("team_node_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "团队节点人数");
|
||||
|
||||
/**
|
||||
* Create a <code>t_member</code> table reference
|
||||
*/
|
||||
|
@ -273,4 +254,13 @@ BNB Chain 5=Arbitrum One
|
|||
public TMemberTable rename(Name name) {
|
||||
return new TMemberTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row22 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row22<Integer, Timestamp, Timestamp, Byte, String, Integer, Integer, String, String, String, String, String, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> fieldsRow() {
|
||||
return (Row22) super.fieldsRow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,254 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.UserNodeLogRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row20;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class UserNodeLogTable extends TableImpl<UserNodeLogRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1496042282;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>user_node_log</code>
|
||||
*/
|
||||
public static final UserNodeLogTable USER_NODE_LOG = new UserNodeLogTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<UserNodeLogRecord> getRecordType() {
|
||||
return UserNodeLogRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.id</code>.
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> WALLET_ADDRESS = createField(DSL.name("wallet_address"), org.jooq.impl.SQLDataType.VARCHAR(150).nullable(false), this, "钱包地址");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.node_number</code>. 认购数量
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Integer> NODE_NUMBER = createField(DSL.name("node_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "认购数量");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> PAY_COIN = createField(DSL.name("pay_coin"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "支付币种");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, BigDecimal> BUY_AMOUNT = createField(DSL.name("buy_amount"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "认购金额");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Integer> NODE_SETTING_ID = createField(DSL.name("node_setting_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "节点配置ID");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Integer> STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "1:订单生成 2:链上确认 3:支付成功 4:支付失败");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.user_id</code>. 用户id
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, Integer> USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "用户id");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.hash</code>. 交易hash
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> HASH = createField(DSL.name("hash"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "交易hash");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.order_number</code>. 订单号
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> ORDER_NUMBER = createField(DSL.name("order_number"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "订单号");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.address_one</code>. 一代奖励
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> ADDRESS_ONE = createField(DSL.name("address_one"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.VARCHAR)), this, "一代奖励");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.award_one</code>. 一代奖励金额
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, BigDecimal> AWARD_ONE = createField(DSL.name("award_one"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "一代奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.address_two</code>. 二代奖励
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> ADDRESS_TWO = createField(DSL.name("address_two"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.VARCHAR)), this, "二代奖励");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.award_two</code>. 二代奖励金额
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, BigDecimal> AWARD_TWO = createField(DSL.name("award_two"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "二代奖励金额");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> ILLUSTRATE = createField(DSL.name("illustrate"), org.jooq.impl.SQLDataType.VARCHAR(520), this, "订单说明");
|
||||
|
||||
/**
|
||||
* The column <code>user_node_log.data_json</code>. 数据JSON
|
||||
*/
|
||||
public final TableField<UserNodeLogRecord, String> DATA_JSON = createField(DSL.name("data_json"), org.jooq.impl.SQLDataType.VARCHAR(3000), this, "数据JSON");
|
||||
|
||||
/**
|
||||
* Create a <code>user_node_log</code> table reference
|
||||
*/
|
||||
public UserNodeLogTable() {
|
||||
this(DSL.name("user_node_log"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>user_node_log</code> table reference
|
||||
*/
|
||||
public UserNodeLogTable(String alias) {
|
||||
this(DSL.name(alias), USER_NODE_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>user_node_log</code> table reference
|
||||
*/
|
||||
public UserNodeLogTable(Name alias) {
|
||||
this(alias, USER_NODE_LOG);
|
||||
}
|
||||
|
||||
private UserNodeLogTable(Name alias, Table<UserNodeLogRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private UserNodeLogTable(Name alias, Table<UserNodeLogRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("节点认购记录"));
|
||||
}
|
||||
|
||||
public <O extends Record> UserNodeLogTable(Table<O> child, ForeignKey<O, UserNodeLogRecord> key) {
|
||||
super(child, key, USER_NODE_LOG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.USER_NODE_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<UserNodeLogRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_USER_NODE_LOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<UserNodeLogRecord> getPrimaryKey() {
|
||||
return Keys.KEY_USER_NODE_LOG_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<UserNodeLogRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<UserNodeLogRecord>>asList(Keys.KEY_USER_NODE_LOG_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogTable as(String alias) {
|
||||
return new UserNodeLogTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogTable as(Name alias) {
|
||||
return new UserNodeLogTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public UserNodeLogTable rename(String name) {
|
||||
return new UserNodeLogTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public UserNodeLogTable rename(Name name) {
|
||||
return new UserNodeLogTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row20 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row20<Integer, Timestamp, String, Timestamp, String, String, Integer, String, BigDecimal, Integer, Integer, Integer, String, String, String, BigDecimal, String, BigDecimal, String, String> fieldsRow() {
|
||||
return (Row20) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,214 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables;
|
||||
|
||||
|
||||
import com.alive.db.jooq.DefaultSchema;
|
||||
import com.alive.db.jooq.Indexes;
|
||||
import com.alive.db.jooq.Keys;
|
||||
import com.alive.db.jooq.tables.records.UserNodeRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row12;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 用户节点
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class UserNodeTable extends TableImpl<UserNodeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1487463382;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>user_node</code>
|
||||
*/
|
||||
public static final UserNodeTable USER_NODE = new UserNodeTable();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<UserNodeRecord> getRecordType() {
|
||||
return UserNodeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>user_node.id</code>.
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Integer> ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.create_time</code>. 创建时间
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Timestamp> CREATE_TIME = createField(DSL.name("create_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "创建时间");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.create_by</code>. 创建人
|
||||
*/
|
||||
public final TableField<UserNodeRecord, String> CREATE_BY = createField(DSL.name("create_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "创建人");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.update_time</code>. 更新时间
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Timestamp> UPDATE_TIME = createField(DSL.name("update_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "更新时间");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.update_by</code>. 更新人
|
||||
*/
|
||||
public final TableField<UserNodeRecord, String> UPDATE_BY = createField(DSL.name("update_by"), org.jooq.impl.SQLDataType.VARCHAR(20), this, "更新人");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public final TableField<UserNodeRecord, String> WALLET_ADDRESS = createField(DSL.name("wallet_address"), org.jooq.impl.SQLDataType.VARCHAR(150).nullable(false), this, "钱包地址");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.node_number</code>. 节点数量
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Integer> NODE_NUMBER = createField(DSL.name("node_number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "节点数量");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.node_freeze</code>. 冻结节点
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Integer> NODE_FREEZE = createField(DSL.name("node_freeze"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "冻结节点");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.buy_amount_count</code>. 支付总金额
|
||||
*/
|
||||
public final TableField<UserNodeRecord, BigDecimal> BUY_AMOUNT_COUNT = createField(DSL.name("buy_amount_count"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "支付总金额");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.user_id</code>. 用户id
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Integer> USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "用户id");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.node_count</code>. 节点总量
|
||||
*/
|
||||
public final TableField<UserNodeRecord, Integer> NODE_COUNT = createField(DSL.name("node_count"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "节点总量");
|
||||
|
||||
/**
|
||||
* The column <code>user_node.promotion_usdt</code>. 推广收入
|
||||
*/
|
||||
public final TableField<UserNodeRecord, BigDecimal> PROMOTION_USDT = createField(DSL.name("promotion_usdt"), org.jooq.impl.SQLDataType.DECIMAL(20, 8).nullable(false).defaultValue(org.jooq.impl.DSL.inline("0.00000000", org.jooq.impl.SQLDataType.DECIMAL)), this, "推广收入");
|
||||
|
||||
/**
|
||||
* Create a <code>user_node</code> table reference
|
||||
*/
|
||||
public UserNodeTable() {
|
||||
this(DSL.name("user_node"), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>user_node</code> table reference
|
||||
*/
|
||||
public UserNodeTable(String alias) {
|
||||
this(DSL.name(alias), USER_NODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>user_node</code> table reference
|
||||
*/
|
||||
public UserNodeTable(Name alias) {
|
||||
this(alias, USER_NODE);
|
||||
}
|
||||
|
||||
private UserNodeTable(Name alias, Table<UserNodeRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private UserNodeTable(Name alias, Table<UserNodeRecord> aliased, Field<?>[] parameters) {
|
||||
super(alias, null, aliased, parameters, DSL.comment("用户节点"));
|
||||
}
|
||||
|
||||
public <O extends Record> UserNodeTable(Table<O> child, ForeignKey<O, UserNodeRecord> key) {
|
||||
super(child, key, USER_NODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return DefaultSchema.DEFAULT_SCHEMA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Index> getIndexes() {
|
||||
return Arrays.<Index>asList(Indexes.USER_NODE_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<UserNodeRecord, Integer> getIdentity() {
|
||||
return Keys.IDENTITY_USER_NODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<UserNodeRecord> getPrimaryKey() {
|
||||
return Keys.KEY_USER_NODE_PRIMARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<UserNodeRecord>> getKeys() {
|
||||
return Arrays.<UniqueKey<UserNodeRecord>>asList(Keys.KEY_USER_NODE_PRIMARY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeTable as(String alias) {
|
||||
return new UserNodeTable(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeTable as(Name alias) {
|
||||
return new UserNodeTable(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public UserNodeTable rename(String name) {
|
||||
return new UserNodeTable(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public UserNodeTable rename(Name name) {
|
||||
return new UserNodeTable(name, null);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row12 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row12<Integer, Timestamp, String, Timestamp, String, String, Integer, Integer, BigDecimal, Integer, Integer, BigDecimal> fieldsRow() {
|
||||
return (Row12) super.fieldsRow();
|
||||
}
|
||||
}
|
|
@ -1,242 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 活动配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityConfigPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 826912231;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private Timestamp updateTime;
|
||||
private Byte flag;
|
||||
private String title;
|
||||
private String titleContent;
|
||||
private String activityImg;
|
||||
private String activityUrl;
|
||||
private Integer state;
|
||||
private BigDecimal amount;
|
||||
private BigDecimal superiorAmount;
|
||||
private Integer activityNumber;
|
||||
private Integer category;
|
||||
private Integer type;
|
||||
private String mark;
|
||||
|
||||
public ActivityConfigPojo() {}
|
||||
|
||||
public ActivityConfigPojo(ActivityConfigPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.updateTime = value.updateTime;
|
||||
this.flag = value.flag;
|
||||
this.title = value.title;
|
||||
this.titleContent = value.titleContent;
|
||||
this.activityImg = value.activityImg;
|
||||
this.activityUrl = value.activityUrl;
|
||||
this.state = value.state;
|
||||
this.amount = value.amount;
|
||||
this.superiorAmount = value.superiorAmount;
|
||||
this.activityNumber = value.activityNumber;
|
||||
this.category = value.category;
|
||||
this.type = value.type;
|
||||
this.mark = value.mark;
|
||||
}
|
||||
|
||||
public ActivityConfigPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
Timestamp updateTime,
|
||||
Byte flag,
|
||||
String title,
|
||||
String titleContent,
|
||||
String activityImg,
|
||||
String activityUrl,
|
||||
Integer state,
|
||||
BigDecimal amount,
|
||||
BigDecimal superiorAmount,
|
||||
Integer activityNumber,
|
||||
Integer category,
|
||||
Integer type,
|
||||
String mark
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.updateTime = updateTime;
|
||||
this.flag = flag;
|
||||
this.title = title;
|
||||
this.titleContent = titleContent;
|
||||
this.activityImg = activityImg;
|
||||
this.activityUrl = activityUrl;
|
||||
this.state = state;
|
||||
this.amount = amount;
|
||||
this.superiorAmount = superiorAmount;
|
||||
this.activityNumber = activityNumber;
|
||||
this.category = category;
|
||||
this.type = type;
|
||||
this.mark = mark;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Byte getFlag() {
|
||||
return this.flag;
|
||||
}
|
||||
|
||||
public void setFlag(Byte flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitleContent() {
|
||||
return this.titleContent;
|
||||
}
|
||||
|
||||
public void setTitleContent(String titleContent) {
|
||||
this.titleContent = titleContent;
|
||||
}
|
||||
|
||||
public String getActivityImg() {
|
||||
return this.activityImg;
|
||||
}
|
||||
|
||||
public void setActivityImg(String activityImg) {
|
||||
this.activityImg = activityImg;
|
||||
}
|
||||
|
||||
public String getActivityUrl() {
|
||||
return this.activityUrl;
|
||||
}
|
||||
|
||||
public void setActivityUrl(String activityUrl) {
|
||||
this.activityUrl = activityUrl;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public BigDecimal getSuperiorAmount() {
|
||||
return this.superiorAmount;
|
||||
}
|
||||
|
||||
public void setSuperiorAmount(BigDecimal superiorAmount) {
|
||||
this.superiorAmount = superiorAmount;
|
||||
}
|
||||
|
||||
public Integer getActivityNumber() {
|
||||
return this.activityNumber;
|
||||
}
|
||||
|
||||
public void setActivityNumber(Integer activityNumber) {
|
||||
this.activityNumber = activityNumber;
|
||||
}
|
||||
|
||||
public Integer getCategory() {
|
||||
return this.category;
|
||||
}
|
||||
|
||||
public void setCategory(Integer category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getMark() {
|
||||
return this.mark;
|
||||
}
|
||||
|
||||
public void setMark(String mark) {
|
||||
this.mark = mark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("ActivityConfigPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(flag);
|
||||
sb.append(", ").append(title);
|
||||
sb.append(", ").append(titleContent);
|
||||
sb.append(", ").append(activityImg);
|
||||
sb.append(", ").append(activityUrl);
|
||||
sb.append(", ").append(state);
|
||||
sb.append(", ").append(amount);
|
||||
sb.append(", ").append(superiorAmount);
|
||||
sb.append(", ").append(activityNumber);
|
||||
sb.append(", ").append(category);
|
||||
sb.append(", ").append(type);
|
||||
sb.append(", ").append(mark);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,255 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 活动任务日志
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityLogPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2060098221;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private Timestamp updateTime;
|
||||
private Byte flag;
|
||||
private Integer activityConfigId;
|
||||
private String address;
|
||||
private String superiorAddress;
|
||||
private String title;
|
||||
private Integer type;
|
||||
private BigDecimal amount;
|
||||
private BigDecimal superiorAmount;
|
||||
private Timestamp endTime;
|
||||
private Integer configType;
|
||||
private String mark;
|
||||
private String hashs;
|
||||
private Integer transferType;
|
||||
|
||||
public ActivityLogPojo() {}
|
||||
|
||||
public ActivityLogPojo(ActivityLogPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.updateTime = value.updateTime;
|
||||
this.flag = value.flag;
|
||||
this.activityConfigId = value.activityConfigId;
|
||||
this.address = value.address;
|
||||
this.superiorAddress = value.superiorAddress;
|
||||
this.title = value.title;
|
||||
this.type = value.type;
|
||||
this.amount = value.amount;
|
||||
this.superiorAmount = value.superiorAmount;
|
||||
this.endTime = value.endTime;
|
||||
this.configType = value.configType;
|
||||
this.mark = value.mark;
|
||||
this.hashs = value.hashs;
|
||||
this.transferType = value.transferType;
|
||||
}
|
||||
|
||||
public ActivityLogPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
Timestamp updateTime,
|
||||
Byte flag,
|
||||
Integer activityConfigId,
|
||||
String address,
|
||||
String superiorAddress,
|
||||
String title,
|
||||
Integer type,
|
||||
BigDecimal amount,
|
||||
BigDecimal superiorAmount,
|
||||
Timestamp endTime,
|
||||
Integer configType,
|
||||
String mark,
|
||||
String hashs,
|
||||
Integer transferType
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.updateTime = updateTime;
|
||||
this.flag = flag;
|
||||
this.activityConfigId = activityConfigId;
|
||||
this.address = address;
|
||||
this.superiorAddress = superiorAddress;
|
||||
this.title = title;
|
||||
this.type = type;
|
||||
this.amount = amount;
|
||||
this.superiorAmount = superiorAmount;
|
||||
this.endTime = endTime;
|
||||
this.configType = configType;
|
||||
this.mark = mark;
|
||||
this.hashs = hashs;
|
||||
this.transferType = transferType;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Byte getFlag() {
|
||||
return this.flag;
|
||||
}
|
||||
|
||||
public void setFlag(Byte flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Integer getActivityConfigId() {
|
||||
return this.activityConfigId;
|
||||
}
|
||||
|
||||
public void setActivityConfigId(Integer activityConfigId) {
|
||||
this.activityConfigId = activityConfigId;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getSuperiorAddress() {
|
||||
return this.superiorAddress;
|
||||
}
|
||||
|
||||
public void setSuperiorAddress(String superiorAddress) {
|
||||
this.superiorAddress = superiorAddress;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public BigDecimal getSuperiorAmount() {
|
||||
return this.superiorAmount;
|
||||
}
|
||||
|
||||
public void setSuperiorAmount(BigDecimal superiorAmount) {
|
||||
this.superiorAmount = superiorAmount;
|
||||
}
|
||||
|
||||
public Timestamp getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Timestamp endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getConfigType() {
|
||||
return this.configType;
|
||||
}
|
||||
|
||||
public void setConfigType(Integer configType) {
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
public String getMark() {
|
||||
return this.mark;
|
||||
}
|
||||
|
||||
public void setMark(String mark) {
|
||||
this.mark = mark;
|
||||
}
|
||||
|
||||
public String getHashs() {
|
||||
return this.hashs;
|
||||
}
|
||||
|
||||
public void setHashs(String hashs) {
|
||||
this.hashs = hashs;
|
||||
}
|
||||
|
||||
public Integer getTransferType() {
|
||||
return this.transferType;
|
||||
}
|
||||
|
||||
public void setTransferType(Integer transferType) {
|
||||
this.transferType = transferType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("ActivityLogPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(flag);
|
||||
sb.append(", ").append(activityConfigId);
|
||||
sb.append(", ").append(address);
|
||||
sb.append(", ").append(superiorAddress);
|
||||
sb.append(", ").append(title);
|
||||
sb.append(", ").append(type);
|
||||
sb.append(", ").append(amount);
|
||||
sb.append(", ").append(superiorAmount);
|
||||
sb.append(", ").append(endTime);
|
||||
sb.append(", ").append(configType);
|
||||
sb.append(", ").append(mark);
|
||||
sb.append(", ").append(hashs);
|
||||
sb.append(", ").append(transferType);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,216 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 节点奖励设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeAwardSettingPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 452627873;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private String createBy;
|
||||
private Timestamp updateTime;
|
||||
private String updateBy;
|
||||
private Integer nodeSettingId;
|
||||
private BigDecimal rebate;
|
||||
private BigDecimal rbitAmount;
|
||||
private BigDecimal rbitOne;
|
||||
private BigDecimal rebateTwo;
|
||||
private BigDecimal nftAmount;
|
||||
private BigDecimal nftOne;
|
||||
private BigDecimal nftTwo;
|
||||
|
||||
public NodeAwardSettingPojo() {}
|
||||
|
||||
public NodeAwardSettingPojo(NodeAwardSettingPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.updateBy = value.updateBy;
|
||||
this.nodeSettingId = value.nodeSettingId;
|
||||
this.rebate = value.rebate;
|
||||
this.rbitAmount = value.rbitAmount;
|
||||
this.rbitOne = value.rbitOne;
|
||||
this.rebateTwo = value.rebateTwo;
|
||||
this.nftAmount = value.nftAmount;
|
||||
this.nftOne = value.nftOne;
|
||||
this.nftTwo = value.nftTwo;
|
||||
}
|
||||
|
||||
public NodeAwardSettingPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
String updateBy,
|
||||
Integer nodeSettingId,
|
||||
BigDecimal rebate,
|
||||
BigDecimal rbitAmount,
|
||||
BigDecimal rbitOne,
|
||||
BigDecimal rebateTwo,
|
||||
BigDecimal nftAmount,
|
||||
BigDecimal nftOne,
|
||||
BigDecimal nftTwo
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.createBy = createBy;
|
||||
this.updateTime = updateTime;
|
||||
this.updateBy = updateBy;
|
||||
this.nodeSettingId = nodeSettingId;
|
||||
this.rebate = rebate;
|
||||
this.rbitAmount = rbitAmount;
|
||||
this.rbitOne = rbitOne;
|
||||
this.rebateTwo = rebateTwo;
|
||||
this.nftAmount = nftAmount;
|
||||
this.nftOne = nftOne;
|
||||
this.nftTwo = nftTwo;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public Integer getNodeSettingId() {
|
||||
return this.nodeSettingId;
|
||||
}
|
||||
|
||||
public void setNodeSettingId(Integer nodeSettingId) {
|
||||
this.nodeSettingId = nodeSettingId;
|
||||
}
|
||||
|
||||
public BigDecimal getRebate() {
|
||||
return this.rebate;
|
||||
}
|
||||
|
||||
public void setRebate(BigDecimal rebate) {
|
||||
this.rebate = rebate;
|
||||
}
|
||||
|
||||
public BigDecimal getRbitAmount() {
|
||||
return this.rbitAmount;
|
||||
}
|
||||
|
||||
public void setRbitAmount(BigDecimal rbitAmount) {
|
||||
this.rbitAmount = rbitAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getRbitOne() {
|
||||
return this.rbitOne;
|
||||
}
|
||||
|
||||
public void setRbitOne(BigDecimal rbitOne) {
|
||||
this.rbitOne = rbitOne;
|
||||
}
|
||||
|
||||
public BigDecimal getRebateTwo() {
|
||||
return this.rebateTwo;
|
||||
}
|
||||
|
||||
public void setRebateTwo(BigDecimal rebateTwo) {
|
||||
this.rebateTwo = rebateTwo;
|
||||
}
|
||||
|
||||
public BigDecimal getNftAmount() {
|
||||
return this.nftAmount;
|
||||
}
|
||||
|
||||
public void setNftAmount(BigDecimal nftAmount) {
|
||||
this.nftAmount = nftAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getNftOne() {
|
||||
return this.nftOne;
|
||||
}
|
||||
|
||||
public void setNftOne(BigDecimal nftOne) {
|
||||
this.nftOne = nftOne;
|
||||
}
|
||||
|
||||
public BigDecimal getNftTwo() {
|
||||
return this.nftTwo;
|
||||
}
|
||||
|
||||
public void setNftTwo(BigDecimal nftTwo) {
|
||||
this.nftTwo = nftTwo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodeAwardSettingPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(createBy);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(nodeSettingId);
|
||||
sb.append(", ").append(rebate);
|
||||
sb.append(", ").append(rbitAmount);
|
||||
sb.append(", ").append(rbitOne);
|
||||
sb.append(", ").append(rebateTwo);
|
||||
sb.append(", ").append(nftAmount);
|
||||
sb.append(", ").append(nftOne);
|
||||
sb.append(", ").append(nftTwo);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -12,7 +12,7 @@ import javax.annotation.Generated;
|
|||
|
||||
|
||||
/**
|
||||
* 业绩统计
|
||||
* 收益配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
|
@ -22,42 +22,46 @@ import javax.annotation.Generated;
|
|||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityStatisticsPojo implements Serializable {
|
||||
public class NodeIncomeConfigPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -793383674;
|
||||
private static final long serialVersionUID = 16486086;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private String createBy;
|
||||
private Timestamp updateTime;
|
||||
private Byte flag;
|
||||
private String address;
|
||||
private BigDecimal amount;
|
||||
private String updateBy;
|
||||
private BigDecimal income;
|
||||
private Integer era;
|
||||
|
||||
public ActivityStatisticsPojo() {}
|
||||
public NodeIncomeConfigPojo() {}
|
||||
|
||||
public ActivityStatisticsPojo(ActivityStatisticsPojo value) {
|
||||
public NodeIncomeConfigPojo(NodeIncomeConfigPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.flag = value.flag;
|
||||
this.address = value.address;
|
||||
this.amount = value.amount;
|
||||
this.updateBy = value.updateBy;
|
||||
this.income = value.income;
|
||||
this.era = value.era;
|
||||
}
|
||||
|
||||
public ActivityStatisticsPojo(
|
||||
public NodeIncomeConfigPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
Byte flag,
|
||||
String address,
|
||||
BigDecimal amount
|
||||
String updateBy,
|
||||
BigDecimal income,
|
||||
Integer era
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.createBy = createBy;
|
||||
this.updateTime = updateTime;
|
||||
this.flag = flag;
|
||||
this.address = address;
|
||||
this.amount = amount;
|
||||
this.updateBy = updateBy;
|
||||
this.income = income;
|
||||
this.era = era;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
|
@ -76,6 +80,14 @@ public class ActivityStatisticsPojo implements Serializable {
|
|||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
@ -84,40 +96,41 @@ public class ActivityStatisticsPojo implements Serializable {
|
|||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Byte getFlag() {
|
||||
return this.flag;
|
||||
public String getUpdateBy() {
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
public void setFlag(Byte flag) {
|
||||
this.flag = flag;
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
public BigDecimal getIncome() {
|
||||
return this.income;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
public void setIncome(BigDecimal income) {
|
||||
this.income = income;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return this.amount;
|
||||
public Integer getEra() {
|
||||
return this.era;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
public void setEra(Integer era) {
|
||||
this.era = era;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("ActivityStatisticsPojo (");
|
||||
StringBuilder sb = new StringBuilder("NodeIncomeConfigPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(createBy);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(flag);
|
||||
sb.append(", ").append(address);
|
||||
sb.append(", ").append(amount);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(income);
|
||||
sb.append(", ").append(era);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
|
@ -1,216 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 用户节点表
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodePojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1233200936;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private String createBy;
|
||||
private Timestamp updateTime;
|
||||
private String updateBy;
|
||||
private String buyCoin;
|
||||
private BigDecimal buyAmount;
|
||||
private Integer buyNumber;
|
||||
private Timestamp confirmTime;
|
||||
private Integer userId;
|
||||
private String nodeName;
|
||||
private String orderNumber;
|
||||
private Integer nodeSettingId;
|
||||
|
||||
public NodePojo() {}
|
||||
|
||||
public NodePojo(NodePojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.updateBy = value.updateBy;
|
||||
this.buyCoin = value.buyCoin;
|
||||
this.buyAmount = value.buyAmount;
|
||||
this.buyNumber = value.buyNumber;
|
||||
this.confirmTime = value.confirmTime;
|
||||
this.userId = value.userId;
|
||||
this.nodeName = value.nodeName;
|
||||
this.orderNumber = value.orderNumber;
|
||||
this.nodeSettingId = value.nodeSettingId;
|
||||
}
|
||||
|
||||
public NodePojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
String updateBy,
|
||||
String buyCoin,
|
||||
BigDecimal buyAmount,
|
||||
Integer buyNumber,
|
||||
Timestamp confirmTime,
|
||||
Integer userId,
|
||||
String nodeName,
|
||||
String orderNumber,
|
||||
Integer nodeSettingId
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.createBy = createBy;
|
||||
this.updateTime = updateTime;
|
||||
this.updateBy = updateBy;
|
||||
this.buyCoin = buyCoin;
|
||||
this.buyAmount = buyAmount;
|
||||
this.buyNumber = buyNumber;
|
||||
this.confirmTime = confirmTime;
|
||||
this.userId = userId;
|
||||
this.nodeName = nodeName;
|
||||
this.orderNumber = orderNumber;
|
||||
this.nodeSettingId = nodeSettingId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public String getBuyCoin() {
|
||||
return this.buyCoin;
|
||||
}
|
||||
|
||||
public void setBuyCoin(String buyCoin) {
|
||||
this.buyCoin = buyCoin;
|
||||
}
|
||||
|
||||
public BigDecimal getBuyAmount() {
|
||||
return this.buyAmount;
|
||||
}
|
||||
|
||||
public void setBuyAmount(BigDecimal buyAmount) {
|
||||
this.buyAmount = buyAmount;
|
||||
}
|
||||
|
||||
public Integer getBuyNumber() {
|
||||
return this.buyNumber;
|
||||
}
|
||||
|
||||
public void setBuyNumber(Integer buyNumber) {
|
||||
this.buyNumber = buyNumber;
|
||||
}
|
||||
|
||||
public Timestamp getConfirmTime() {
|
||||
return this.confirmTime;
|
||||
}
|
||||
|
||||
public void setConfirmTime(Timestamp confirmTime) {
|
||||
this.confirmTime = confirmTime;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getNodeName() {
|
||||
return this.nodeName;
|
||||
}
|
||||
|
||||
public void setNodeName(String nodeName) {
|
||||
this.nodeName = nodeName;
|
||||
}
|
||||
|
||||
public String getOrderNumber() {
|
||||
return this.orderNumber;
|
||||
}
|
||||
|
||||
public void setOrderNumber(String orderNumber) {
|
||||
this.orderNumber = orderNumber;
|
||||
}
|
||||
|
||||
public Integer getNodeSettingId() {
|
||||
return this.nodeSettingId;
|
||||
}
|
||||
|
||||
public void setNodeSettingId(Integer nodeSettingId) {
|
||||
this.nodeSettingId = nodeSettingId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodePojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(createBy);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(buyCoin);
|
||||
sb.append(", ").append(buyAmount);
|
||||
sb.append(", ").append(buyNumber);
|
||||
sb.append(", ").append(confirmTime);
|
||||
sb.append(", ").append(userId);
|
||||
sb.append(", ").append(nodeName);
|
||||
sb.append(", ").append(orderNumber);
|
||||
sb.append(", ").append(nodeSettingId);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,255 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 节点设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeSettingPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1476691260;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private String createBy;
|
||||
private Timestamp updateTime;
|
||||
private String updateBy;
|
||||
private String buyCoinName;
|
||||
private Integer nodeTotal;
|
||||
private BigDecimal nodePrice;
|
||||
private Integer purchaseLimit;
|
||||
private Integer purchasedCount;
|
||||
private BigDecimal purchasedAmount;
|
||||
private Integer status;
|
||||
private String nodeName;
|
||||
private String illustrate;
|
||||
private String title;
|
||||
private String nodeGrade;
|
||||
|
||||
public NodeSettingPojo() {}
|
||||
|
||||
public NodeSettingPojo(NodeSettingPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.updateBy = value.updateBy;
|
||||
this.buyCoinName = value.buyCoinName;
|
||||
this.nodeTotal = value.nodeTotal;
|
||||
this.nodePrice = value.nodePrice;
|
||||
this.purchaseLimit = value.purchaseLimit;
|
||||
this.purchasedCount = value.purchasedCount;
|
||||
this.purchasedAmount = value.purchasedAmount;
|
||||
this.status = value.status;
|
||||
this.nodeName = value.nodeName;
|
||||
this.illustrate = value.illustrate;
|
||||
this.title = value.title;
|
||||
this.nodeGrade = value.nodeGrade;
|
||||
}
|
||||
|
||||
public NodeSettingPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
String updateBy,
|
||||
String buyCoinName,
|
||||
Integer nodeTotal,
|
||||
BigDecimal nodePrice,
|
||||
Integer purchaseLimit,
|
||||
Integer purchasedCount,
|
||||
BigDecimal purchasedAmount,
|
||||
Integer status,
|
||||
String nodeName,
|
||||
String illustrate,
|
||||
String title,
|
||||
String nodeGrade
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.createBy = createBy;
|
||||
this.updateTime = updateTime;
|
||||
this.updateBy = updateBy;
|
||||
this.buyCoinName = buyCoinName;
|
||||
this.nodeTotal = nodeTotal;
|
||||
this.nodePrice = nodePrice;
|
||||
this.purchaseLimit = purchaseLimit;
|
||||
this.purchasedCount = purchasedCount;
|
||||
this.purchasedAmount = purchasedAmount;
|
||||
this.status = status;
|
||||
this.nodeName = nodeName;
|
||||
this.illustrate = illustrate;
|
||||
this.title = title;
|
||||
this.nodeGrade = nodeGrade;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public String getBuyCoinName() {
|
||||
return this.buyCoinName;
|
||||
}
|
||||
|
||||
public void setBuyCoinName(String buyCoinName) {
|
||||
this.buyCoinName = buyCoinName;
|
||||
}
|
||||
|
||||
public Integer getNodeTotal() {
|
||||
return this.nodeTotal;
|
||||
}
|
||||
|
||||
public void setNodeTotal(Integer nodeTotal) {
|
||||
this.nodeTotal = nodeTotal;
|
||||
}
|
||||
|
||||
public BigDecimal getNodePrice() {
|
||||
return this.nodePrice;
|
||||
}
|
||||
|
||||
public void setNodePrice(BigDecimal nodePrice) {
|
||||
this.nodePrice = nodePrice;
|
||||
}
|
||||
|
||||
public Integer getPurchaseLimit() {
|
||||
return this.purchaseLimit;
|
||||
}
|
||||
|
||||
public void setPurchaseLimit(Integer purchaseLimit) {
|
||||
this.purchaseLimit = purchaseLimit;
|
||||
}
|
||||
|
||||
public Integer getPurchasedCount() {
|
||||
return this.purchasedCount;
|
||||
}
|
||||
|
||||
public void setPurchasedCount(Integer purchasedCount) {
|
||||
this.purchasedCount = purchasedCount;
|
||||
}
|
||||
|
||||
public BigDecimal getPurchasedAmount() {
|
||||
return this.purchasedAmount;
|
||||
}
|
||||
|
||||
public void setPurchasedAmount(BigDecimal purchasedAmount) {
|
||||
this.purchasedAmount = purchasedAmount;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getNodeName() {
|
||||
return this.nodeName;
|
||||
}
|
||||
|
||||
public void setNodeName(String nodeName) {
|
||||
this.nodeName = nodeName;
|
||||
}
|
||||
|
||||
public String getIllustrate() {
|
||||
return this.illustrate;
|
||||
}
|
||||
|
||||
public void setIllustrate(String illustrate) {
|
||||
this.illustrate = illustrate;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getNodeGrade() {
|
||||
return this.nodeGrade;
|
||||
}
|
||||
|
||||
public void setNodeGrade(String nodeGrade) {
|
||||
this.nodeGrade = nodeGrade;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodeSettingPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(createBy);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(buyCoinName);
|
||||
sb.append(", ").append(nodeTotal);
|
||||
sb.append(", ").append(nodePrice);
|
||||
sb.append(", ").append(purchaseLimit);
|
||||
sb.append(", ").append(purchasedCount);
|
||||
sb.append(", ").append(purchasedAmount);
|
||||
sb.append(", ").append(status);
|
||||
sb.append(", ").append(nodeName);
|
||||
sb.append(", ").append(illustrate);
|
||||
sb.append(", ").append(title);
|
||||
sb.append(", ").append(nodeGrade);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,177 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 我的任务奖励
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskLogPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 355898296;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private Timestamp updateTime;
|
||||
private Byte flag;
|
||||
private Integer taskId;
|
||||
private Integer memberId;
|
||||
private Integer state;
|
||||
private BigDecimal awardValue;
|
||||
private String coinName;
|
||||
private BigDecimal recommendValue;
|
||||
|
||||
public NodeTaskLogPojo() {}
|
||||
|
||||
public NodeTaskLogPojo(NodeTaskLogPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.updateTime = value.updateTime;
|
||||
this.flag = value.flag;
|
||||
this.taskId = value.taskId;
|
||||
this.memberId = value.memberId;
|
||||
this.state = value.state;
|
||||
this.awardValue = value.awardValue;
|
||||
this.coinName = value.coinName;
|
||||
this.recommendValue = value.recommendValue;
|
||||
}
|
||||
|
||||
public NodeTaskLogPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
Timestamp updateTime,
|
||||
Byte flag,
|
||||
Integer taskId,
|
||||
Integer memberId,
|
||||
Integer state,
|
||||
BigDecimal awardValue,
|
||||
String coinName,
|
||||
BigDecimal recommendValue
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.updateTime = updateTime;
|
||||
this.flag = flag;
|
||||
this.taskId = taskId;
|
||||
this.memberId = memberId;
|
||||
this.state = state;
|
||||
this.awardValue = awardValue;
|
||||
this.coinName = coinName;
|
||||
this.recommendValue = recommendValue;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Byte getFlag() {
|
||||
return this.flag;
|
||||
}
|
||||
|
||||
public void setFlag(Byte flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Integer getTaskId() {
|
||||
return this.taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(Integer taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Integer getMemberId() {
|
||||
return this.memberId;
|
||||
}
|
||||
|
||||
public void setMemberId(Integer memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public BigDecimal getAwardValue() {
|
||||
return this.awardValue;
|
||||
}
|
||||
|
||||
public void setAwardValue(BigDecimal awardValue) {
|
||||
this.awardValue = awardValue;
|
||||
}
|
||||
|
||||
public String getCoinName() {
|
||||
return this.coinName;
|
||||
}
|
||||
|
||||
public void setCoinName(String coinName) {
|
||||
this.coinName = coinName;
|
||||
}
|
||||
|
||||
public BigDecimal getRecommendValue() {
|
||||
return this.recommendValue;
|
||||
}
|
||||
|
||||
public void setRecommendValue(BigDecimal recommendValue) {
|
||||
this.recommendValue = recommendValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodeTaskLogPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(flag);
|
||||
sb.append(", ").append(taskId);
|
||||
sb.append(", ").append(memberId);
|
||||
sb.append(", ").append(state);
|
||||
sb.append(", ").append(awardValue);
|
||||
sb.append(", ").append(coinName);
|
||||
sb.append(", ").append(recommendValue);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,177 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* NEER任务配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1740748316;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private Timestamp updateTime;
|
||||
private Byte flag;
|
||||
private Integer type;
|
||||
private String title;
|
||||
private BigDecimal awardValue;
|
||||
private BigDecimal recommendValue;
|
||||
private Integer type2Target;
|
||||
private Integer coinId;
|
||||
|
||||
public NodeTaskPojo() {}
|
||||
|
||||
public NodeTaskPojo(NodeTaskPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.updateTime = value.updateTime;
|
||||
this.flag = value.flag;
|
||||
this.type = value.type;
|
||||
this.title = value.title;
|
||||
this.awardValue = value.awardValue;
|
||||
this.recommendValue = value.recommendValue;
|
||||
this.type2Target = value.type2Target;
|
||||
this.coinId = value.coinId;
|
||||
}
|
||||
|
||||
public NodeTaskPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
Timestamp updateTime,
|
||||
Byte flag,
|
||||
Integer type,
|
||||
String title,
|
||||
BigDecimal awardValue,
|
||||
BigDecimal recommendValue,
|
||||
Integer type2Target,
|
||||
Integer coinId
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.updateTime = updateTime;
|
||||
this.flag = flag;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.awardValue = awardValue;
|
||||
this.recommendValue = recommendValue;
|
||||
this.type2Target = type2Target;
|
||||
this.coinId = coinId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Byte getFlag() {
|
||||
return this.flag;
|
||||
}
|
||||
|
||||
public void setFlag(Byte flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public BigDecimal getAwardValue() {
|
||||
return this.awardValue;
|
||||
}
|
||||
|
||||
public void setAwardValue(BigDecimal awardValue) {
|
||||
this.awardValue = awardValue;
|
||||
}
|
||||
|
||||
public BigDecimal getRecommendValue() {
|
||||
return this.recommendValue;
|
||||
}
|
||||
|
||||
public void setRecommendValue(BigDecimal recommendValue) {
|
||||
this.recommendValue = recommendValue;
|
||||
}
|
||||
|
||||
public Integer getType2Target() {
|
||||
return this.type2Target;
|
||||
}
|
||||
|
||||
public void setType2Target(Integer type2Target) {
|
||||
this.type2Target = type2Target;
|
||||
}
|
||||
|
||||
public Integer getCoinId() {
|
||||
return this.coinId;
|
||||
}
|
||||
|
||||
public void setCoinId(Integer coinId) {
|
||||
this.coinId = coinId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodeTaskPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(flag);
|
||||
sb.append(", ").append(type);
|
||||
sb.append(", ").append(title);
|
||||
sb.append(", ").append(awardValue);
|
||||
sb.append(", ").append(recommendValue);
|
||||
sb.append(", ").append(type2Target);
|
||||
sb.append(", ").append(coinId);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -23,7 +23,7 @@ import javax.annotation.Generated;
|
|||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class TMemberPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -585676636;
|
||||
private static final long serialVersionUID = 1114426459;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
|
@ -44,13 +44,9 @@ public class TMemberPojo implements Serializable {
|
|||
private Integer chainType;
|
||||
private Integer codePrompt;
|
||||
private Integer twitterType;
|
||||
private String twitterId;
|
||||
private String twitterName;
|
||||
private String twitterImg;
|
||||
private String twitterUserName;
|
||||
private String discordId;
|
||||
private String tgId;
|
||||
private Integer topUser;
|
||||
private Integer nodeNumber;
|
||||
private Integer teamNodeNumber;
|
||||
|
||||
public TMemberPojo() {}
|
||||
|
||||
|
@ -74,13 +70,9 @@ public class TMemberPojo implements Serializable {
|
|||
this.chainType = value.chainType;
|
||||
this.codePrompt = value.codePrompt;
|
||||
this.twitterType = value.twitterType;
|
||||
this.twitterId = value.twitterId;
|
||||
this.twitterName = value.twitterName;
|
||||
this.twitterImg = value.twitterImg;
|
||||
this.twitterUserName = value.twitterUserName;
|
||||
this.discordId = value.discordId;
|
||||
this.tgId = value.tgId;
|
||||
this.topUser = value.topUser;
|
||||
this.nodeNumber = value.nodeNumber;
|
||||
this.teamNodeNumber = value.teamNodeNumber;
|
||||
}
|
||||
|
||||
public TMemberPojo(
|
||||
|
@ -103,13 +95,9 @@ public class TMemberPojo implements Serializable {
|
|||
Integer chainType,
|
||||
Integer codePrompt,
|
||||
Integer twitterType,
|
||||
String twitterId,
|
||||
String twitterName,
|
||||
String twitterImg,
|
||||
String twitterUserName,
|
||||
String discordId,
|
||||
String tgId,
|
||||
Integer topUser
|
||||
Integer topUser,
|
||||
Integer nodeNumber,
|
||||
Integer teamNodeNumber
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
|
@ -130,13 +118,9 @@ public class TMemberPojo implements Serializable {
|
|||
this.chainType = chainType;
|
||||
this.codePrompt = codePrompt;
|
||||
this.twitterType = twitterType;
|
||||
this.twitterId = twitterId;
|
||||
this.twitterName = twitterName;
|
||||
this.twitterImg = twitterImg;
|
||||
this.twitterUserName = twitterUserName;
|
||||
this.discordId = discordId;
|
||||
this.tgId = tgId;
|
||||
this.topUser = topUser;
|
||||
this.nodeNumber = nodeNumber;
|
||||
this.teamNodeNumber = teamNodeNumber;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
|
@ -291,54 +275,6 @@ public class TMemberPojo implements Serializable {
|
|||
this.twitterType = twitterType;
|
||||
}
|
||||
|
||||
public String getTwitterId() {
|
||||
return this.twitterId;
|
||||
}
|
||||
|
||||
public void setTwitterId(String twitterId) {
|
||||
this.twitterId = twitterId;
|
||||
}
|
||||
|
||||
public String getTwitterName() {
|
||||
return this.twitterName;
|
||||
}
|
||||
|
||||
public void setTwitterName(String twitterName) {
|
||||
this.twitterName = twitterName;
|
||||
}
|
||||
|
||||
public String getTwitterImg() {
|
||||
return this.twitterImg;
|
||||
}
|
||||
|
||||
public void setTwitterImg(String twitterImg) {
|
||||
this.twitterImg = twitterImg;
|
||||
}
|
||||
|
||||
public String getTwitterUserName() {
|
||||
return this.twitterUserName;
|
||||
}
|
||||
|
||||
public void setTwitterUserName(String twitterUserName) {
|
||||
this.twitterUserName = twitterUserName;
|
||||
}
|
||||
|
||||
public String getDiscordId() {
|
||||
return this.discordId;
|
||||
}
|
||||
|
||||
public void setDiscordId(String discordId) {
|
||||
this.discordId = discordId;
|
||||
}
|
||||
|
||||
public String getTgId() {
|
||||
return this.tgId;
|
||||
}
|
||||
|
||||
public void setTgId(String tgId) {
|
||||
this.tgId = tgId;
|
||||
}
|
||||
|
||||
public Integer getTopUser() {
|
||||
return this.topUser;
|
||||
}
|
||||
|
@ -347,6 +283,22 @@ public class TMemberPojo implements Serializable {
|
|||
this.topUser = topUser;
|
||||
}
|
||||
|
||||
public Integer getNodeNumber() {
|
||||
return this.nodeNumber;
|
||||
}
|
||||
|
||||
public void setNodeNumber(Integer nodeNumber) {
|
||||
this.nodeNumber = nodeNumber;
|
||||
}
|
||||
|
||||
public Integer getTeamNodeNumber() {
|
||||
return this.teamNodeNumber;
|
||||
}
|
||||
|
||||
public void setTeamNodeNumber(Integer teamNodeNumber) {
|
||||
this.teamNodeNumber = teamNodeNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("TMemberPojo (");
|
||||
|
@ -370,13 +322,9 @@ public class TMemberPojo implements Serializable {
|
|||
sb.append(", ").append(chainType);
|
||||
sb.append(", ").append(codePrompt);
|
||||
sb.append(", ").append(twitterType);
|
||||
sb.append(", ").append(twitterId);
|
||||
sb.append(", ").append(twitterName);
|
||||
sb.append(", ").append(twitterImg);
|
||||
sb.append(", ").append(twitterUserName);
|
||||
sb.append(", ").append(discordId);
|
||||
sb.append(", ").append(tgId);
|
||||
sb.append(", ").append(topUser);
|
||||
sb.append(", ").append(nodeNumber);
|
||||
sb.append(", ").append(teamNodeNumber);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
|
|
|
@ -22,9 +22,9 @@ import javax.annotation.Generated;
|
|||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeBuyLogPojo implements Serializable {
|
||||
public class UserNodeLogPojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 614070508;
|
||||
private static final long serialVersionUID = -185346919;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
|
@ -32,9 +32,7 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
private Timestamp updateTime;
|
||||
private String updateBy;
|
||||
private String walletAddress;
|
||||
private Integer recommendId;
|
||||
private Integer indirectUserId;
|
||||
private BigDecimal buyCount;
|
||||
private Integer nodeNumber;
|
||||
private String payCoin;
|
||||
private BigDecimal buyAmount;
|
||||
private Integer nodeSettingId;
|
||||
|
@ -42,30 +40,23 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
private Integer userId;
|
||||
private String hash;
|
||||
private String orderNumber;
|
||||
private String inputAddress;
|
||||
private String outAddress;
|
||||
private BigDecimal rebate;
|
||||
private BigDecimal rbitAmount;
|
||||
private BigDecimal rbitOne;
|
||||
private BigDecimal rbitTwo;
|
||||
private BigDecimal nftAmount;
|
||||
private BigDecimal nftOne;
|
||||
private BigDecimal nftTwo;
|
||||
private String addressOne;
|
||||
private BigDecimal awardOne;
|
||||
private String addressTwo;
|
||||
private BigDecimal awardTwo;
|
||||
private String illustrate;
|
||||
private Integer topSettlement;
|
||||
private String dataJson;
|
||||
|
||||
public NodeBuyLogPojo() {}
|
||||
public UserNodeLogPojo() {}
|
||||
|
||||
public NodeBuyLogPojo(NodeBuyLogPojo value) {
|
||||
public UserNodeLogPojo(UserNodeLogPojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.updateBy = value.updateBy;
|
||||
this.walletAddress = value.walletAddress;
|
||||
this.recommendId = value.recommendId;
|
||||
this.indirectUserId = value.indirectUserId;
|
||||
this.buyCount = value.buyCount;
|
||||
this.nodeNumber = value.nodeNumber;
|
||||
this.payCoin = value.payCoin;
|
||||
this.buyAmount = value.buyAmount;
|
||||
this.nodeSettingId = value.nodeSettingId;
|
||||
|
@ -73,29 +64,22 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.userId = value.userId;
|
||||
this.hash = value.hash;
|
||||
this.orderNumber = value.orderNumber;
|
||||
this.inputAddress = value.inputAddress;
|
||||
this.outAddress = value.outAddress;
|
||||
this.rebate = value.rebate;
|
||||
this.rbitAmount = value.rbitAmount;
|
||||
this.rbitOne = value.rbitOne;
|
||||
this.rbitTwo = value.rbitTwo;
|
||||
this.nftAmount = value.nftAmount;
|
||||
this.nftOne = value.nftOne;
|
||||
this.nftTwo = value.nftTwo;
|
||||
this.addressOne = value.addressOne;
|
||||
this.awardOne = value.awardOne;
|
||||
this.addressTwo = value.addressTwo;
|
||||
this.awardTwo = value.awardTwo;
|
||||
this.illustrate = value.illustrate;
|
||||
this.topSettlement = value.topSettlement;
|
||||
this.dataJson = value.dataJson;
|
||||
}
|
||||
|
||||
public NodeBuyLogPojo(
|
||||
public UserNodeLogPojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
String updateBy,
|
||||
String walletAddress,
|
||||
Integer recommendId,
|
||||
Integer indirectUserId,
|
||||
BigDecimal buyCount,
|
||||
Integer nodeNumber,
|
||||
String payCoin,
|
||||
BigDecimal buyAmount,
|
||||
Integer nodeSettingId,
|
||||
|
@ -103,17 +87,12 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
Integer userId,
|
||||
String hash,
|
||||
String orderNumber,
|
||||
String inputAddress,
|
||||
String outAddress,
|
||||
BigDecimal rebate,
|
||||
BigDecimal rbitAmount,
|
||||
BigDecimal rbitOne,
|
||||
BigDecimal rbitTwo,
|
||||
BigDecimal nftAmount,
|
||||
BigDecimal nftOne,
|
||||
BigDecimal nftTwo,
|
||||
String addressOne,
|
||||
BigDecimal awardOne,
|
||||
String addressTwo,
|
||||
BigDecimal awardTwo,
|
||||
String illustrate,
|
||||
Integer topSettlement
|
||||
String dataJson
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
|
@ -121,9 +100,7 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.updateTime = updateTime;
|
||||
this.updateBy = updateBy;
|
||||
this.walletAddress = walletAddress;
|
||||
this.recommendId = recommendId;
|
||||
this.indirectUserId = indirectUserId;
|
||||
this.buyCount = buyCount;
|
||||
this.nodeNumber = nodeNumber;
|
||||
this.payCoin = payCoin;
|
||||
this.buyAmount = buyAmount;
|
||||
this.nodeSettingId = nodeSettingId;
|
||||
|
@ -131,17 +108,12 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.userId = userId;
|
||||
this.hash = hash;
|
||||
this.orderNumber = orderNumber;
|
||||
this.inputAddress = inputAddress;
|
||||
this.outAddress = outAddress;
|
||||
this.rebate = rebate;
|
||||
this.rbitAmount = rbitAmount;
|
||||
this.rbitOne = rbitOne;
|
||||
this.rbitTwo = rbitTwo;
|
||||
this.nftAmount = nftAmount;
|
||||
this.nftOne = nftOne;
|
||||
this.nftTwo = nftTwo;
|
||||
this.addressOne = addressOne;
|
||||
this.awardOne = awardOne;
|
||||
this.addressTwo = addressTwo;
|
||||
this.awardTwo = awardTwo;
|
||||
this.illustrate = illustrate;
|
||||
this.topSettlement = topSettlement;
|
||||
this.dataJson = dataJson;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
|
@ -192,28 +164,12 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.walletAddress = walletAddress;
|
||||
}
|
||||
|
||||
public Integer getRecommendId() {
|
||||
return this.recommendId;
|
||||
public Integer getNodeNumber() {
|
||||
return this.nodeNumber;
|
||||
}
|
||||
|
||||
public void setRecommendId(Integer recommendId) {
|
||||
this.recommendId = recommendId;
|
||||
}
|
||||
|
||||
public Integer getIndirectUserId() {
|
||||
return this.indirectUserId;
|
||||
}
|
||||
|
||||
public void setIndirectUserId(Integer indirectUserId) {
|
||||
this.indirectUserId = indirectUserId;
|
||||
}
|
||||
|
||||
public BigDecimal getBuyCount() {
|
||||
return this.buyCount;
|
||||
}
|
||||
|
||||
public void setBuyCount(BigDecimal buyCount) {
|
||||
this.buyCount = buyCount;
|
||||
public void setNodeNumber(Integer nodeNumber) {
|
||||
this.nodeNumber = nodeNumber;
|
||||
}
|
||||
|
||||
public String getPayCoin() {
|
||||
|
@ -272,76 +228,36 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.orderNumber = orderNumber;
|
||||
}
|
||||
|
||||
public String getInputAddress() {
|
||||
return this.inputAddress;
|
||||
public String getAddressOne() {
|
||||
return this.addressOne;
|
||||
}
|
||||
|
||||
public void setInputAddress(String inputAddress) {
|
||||
this.inputAddress = inputAddress;
|
||||
public void setAddressOne(String addressOne) {
|
||||
this.addressOne = addressOne;
|
||||
}
|
||||
|
||||
public String getOutAddress() {
|
||||
return this.outAddress;
|
||||
public BigDecimal getAwardOne() {
|
||||
return this.awardOne;
|
||||
}
|
||||
|
||||
public void setOutAddress(String outAddress) {
|
||||
this.outAddress = outAddress;
|
||||
public void setAwardOne(BigDecimal awardOne) {
|
||||
this.awardOne = awardOne;
|
||||
}
|
||||
|
||||
public BigDecimal getRebate() {
|
||||
return this.rebate;
|
||||
public String getAddressTwo() {
|
||||
return this.addressTwo;
|
||||
}
|
||||
|
||||
public void setRebate(BigDecimal rebate) {
|
||||
this.rebate = rebate;
|
||||
public void setAddressTwo(String addressTwo) {
|
||||
this.addressTwo = addressTwo;
|
||||
}
|
||||
|
||||
public BigDecimal getRbitAmount() {
|
||||
return this.rbitAmount;
|
||||
public BigDecimal getAwardTwo() {
|
||||
return this.awardTwo;
|
||||
}
|
||||
|
||||
public void setRbitAmount(BigDecimal rbitAmount) {
|
||||
this.rbitAmount = rbitAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getRbitOne() {
|
||||
return this.rbitOne;
|
||||
}
|
||||
|
||||
public void setRbitOne(BigDecimal rbitOne) {
|
||||
this.rbitOne = rbitOne;
|
||||
}
|
||||
|
||||
public BigDecimal getRbitTwo() {
|
||||
return this.rbitTwo;
|
||||
}
|
||||
|
||||
public void setRbitTwo(BigDecimal rbitTwo) {
|
||||
this.rbitTwo = rbitTwo;
|
||||
}
|
||||
|
||||
public BigDecimal getNftAmount() {
|
||||
return this.nftAmount;
|
||||
}
|
||||
|
||||
public void setNftAmount(BigDecimal nftAmount) {
|
||||
this.nftAmount = nftAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getNftOne() {
|
||||
return this.nftOne;
|
||||
}
|
||||
|
||||
public void setNftOne(BigDecimal nftOne) {
|
||||
this.nftOne = nftOne;
|
||||
}
|
||||
|
||||
public BigDecimal getNftTwo() {
|
||||
return this.nftTwo;
|
||||
}
|
||||
|
||||
public void setNftTwo(BigDecimal nftTwo) {
|
||||
this.nftTwo = nftTwo;
|
||||
public void setAwardTwo(BigDecimal awardTwo) {
|
||||
this.awardTwo = awardTwo;
|
||||
}
|
||||
|
||||
public String getIllustrate() {
|
||||
|
@ -352,17 +268,17 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
this.illustrate = illustrate;
|
||||
}
|
||||
|
||||
public Integer getTopSettlement() {
|
||||
return this.topSettlement;
|
||||
public String getDataJson() {
|
||||
return this.dataJson;
|
||||
}
|
||||
|
||||
public void setTopSettlement(Integer topSettlement) {
|
||||
this.topSettlement = topSettlement;
|
||||
public void setDataJson(String dataJson) {
|
||||
this.dataJson = dataJson;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("NodeBuyLogPojo (");
|
||||
StringBuilder sb = new StringBuilder("UserNodeLogPojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
|
@ -370,9 +286,7 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(walletAddress);
|
||||
sb.append(", ").append(recommendId);
|
||||
sb.append(", ").append(indirectUserId);
|
||||
sb.append(", ").append(buyCount);
|
||||
sb.append(", ").append(nodeNumber);
|
||||
sb.append(", ").append(payCoin);
|
||||
sb.append(", ").append(buyAmount);
|
||||
sb.append(", ").append(nodeSettingId);
|
||||
|
@ -380,17 +294,12 @@ public class NodeBuyLogPojo implements Serializable {
|
|||
sb.append(", ").append(userId);
|
||||
sb.append(", ").append(hash);
|
||||
sb.append(", ").append(orderNumber);
|
||||
sb.append(", ").append(inputAddress);
|
||||
sb.append(", ").append(outAddress);
|
||||
sb.append(", ").append(rebate);
|
||||
sb.append(", ").append(rbitAmount);
|
||||
sb.append(", ").append(rbitOne);
|
||||
sb.append(", ").append(rbitTwo);
|
||||
sb.append(", ").append(nftAmount);
|
||||
sb.append(", ").append(nftOne);
|
||||
sb.append(", ").append(nftTwo);
|
||||
sb.append(", ").append(addressOne);
|
||||
sb.append(", ").append(awardOne);
|
||||
sb.append(", ").append(addressTwo);
|
||||
sb.append(", ").append(awardTwo);
|
||||
sb.append(", ").append(illustrate);
|
||||
sb.append(", ").append(topSettlement);
|
||||
sb.append(", ").append(dataJson);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
|
@ -0,0 +1,203 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
|
||||
/**
|
||||
* 用户节点
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class UserNodePojo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 649936774;
|
||||
|
||||
private Integer id;
|
||||
private Timestamp createTime;
|
||||
private String createBy;
|
||||
private Timestamp updateTime;
|
||||
private String updateBy;
|
||||
private String walletAddress;
|
||||
private Integer nodeNumber;
|
||||
private Integer nodeFreeze;
|
||||
private BigDecimal buyAmountCount;
|
||||
private Integer userId;
|
||||
private Integer nodeCount;
|
||||
private BigDecimal promotionUsdt;
|
||||
|
||||
public UserNodePojo() {}
|
||||
|
||||
public UserNodePojo(UserNodePojo value) {
|
||||
this.id = value.id;
|
||||
this.createTime = value.createTime;
|
||||
this.createBy = value.createBy;
|
||||
this.updateTime = value.updateTime;
|
||||
this.updateBy = value.updateBy;
|
||||
this.walletAddress = value.walletAddress;
|
||||
this.nodeNumber = value.nodeNumber;
|
||||
this.nodeFreeze = value.nodeFreeze;
|
||||
this.buyAmountCount = value.buyAmountCount;
|
||||
this.userId = value.userId;
|
||||
this.nodeCount = value.nodeCount;
|
||||
this.promotionUsdt = value.promotionUsdt;
|
||||
}
|
||||
|
||||
public UserNodePojo(
|
||||
Integer id,
|
||||
Timestamp createTime,
|
||||
String createBy,
|
||||
Timestamp updateTime,
|
||||
String updateBy,
|
||||
String walletAddress,
|
||||
Integer nodeNumber,
|
||||
Integer nodeFreeze,
|
||||
BigDecimal buyAmountCount,
|
||||
Integer userId,
|
||||
Integer nodeCount,
|
||||
BigDecimal promotionUsdt
|
||||
) {
|
||||
this.id = id;
|
||||
this.createTime = createTime;
|
||||
this.createBy = createBy;
|
||||
this.updateTime = updateTime;
|
||||
this.updateBy = updateBy;
|
||||
this.walletAddress = walletAddress;
|
||||
this.nodeNumber = nodeNumber;
|
||||
this.nodeFreeze = nodeFreeze;
|
||||
this.buyAmountCount = buyAmountCount;
|
||||
this.userId = userId;
|
||||
this.nodeCount = nodeCount;
|
||||
this.promotionUsdt = promotionUsdt;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Timestamp getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Timestamp createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Timestamp getUpdateTime() {
|
||||
return this.updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Timestamp updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public String getWalletAddress() {
|
||||
return this.walletAddress;
|
||||
}
|
||||
|
||||
public void setWalletAddress(String walletAddress) {
|
||||
this.walletAddress = walletAddress;
|
||||
}
|
||||
|
||||
public Integer getNodeNumber() {
|
||||
return this.nodeNumber;
|
||||
}
|
||||
|
||||
public void setNodeNumber(Integer nodeNumber) {
|
||||
this.nodeNumber = nodeNumber;
|
||||
}
|
||||
|
||||
public Integer getNodeFreeze() {
|
||||
return this.nodeFreeze;
|
||||
}
|
||||
|
||||
public void setNodeFreeze(Integer nodeFreeze) {
|
||||
this.nodeFreeze = nodeFreeze;
|
||||
}
|
||||
|
||||
public BigDecimal getBuyAmountCount() {
|
||||
return this.buyAmountCount;
|
||||
}
|
||||
|
||||
public void setBuyAmountCount(BigDecimal buyAmountCount) {
|
||||
this.buyAmountCount = buyAmountCount;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getNodeCount() {
|
||||
return this.nodeCount;
|
||||
}
|
||||
|
||||
public void setNodeCount(Integer nodeCount) {
|
||||
this.nodeCount = nodeCount;
|
||||
}
|
||||
|
||||
public BigDecimal getPromotionUsdt() {
|
||||
return this.promotionUsdt;
|
||||
}
|
||||
|
||||
public void setPromotionUsdt(BigDecimal promotionUsdt) {
|
||||
this.promotionUsdt = promotionUsdt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("UserNodePojo (");
|
||||
|
||||
sb.append(id);
|
||||
sb.append(", ").append(createTime);
|
||||
sb.append(", ").append(createBy);
|
||||
sb.append(", ").append(updateTime);
|
||||
sb.append(", ").append(updateBy);
|
||||
sb.append(", ").append(walletAddress);
|
||||
sb.append(", ").append(nodeNumber);
|
||||
sb.append(", ").append(nodeFreeze);
|
||||
sb.append(", ").append(buyAmountCount);
|
||||
sb.append(", ").append(userId);
|
||||
sb.append(", ").append(nodeCount);
|
||||
sb.append(", ").append(promotionUsdt);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -1,637 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityConfigTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record15;
|
||||
import org.jooq.Row15;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 活动配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityConfigRecord extends UpdatableRecordImpl<ActivityConfigRecord> implements Record15<Integer, Timestamp, Timestamp, Byte, String, String, String, String, Integer, BigDecimal, BigDecimal, Integer, Integer, Integer, String> {
|
||||
|
||||
private static final long serialVersionUID = -134209651;
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public void setFlag(Byte value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public Byte getFlag() {
|
||||
return (Byte) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.title</code>. 活动标题
|
||||
*/
|
||||
public void setTitle(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.title</code>. 活动标题
|
||||
*/
|
||||
public String getTitle() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.title_content</code>. 活动内容
|
||||
*/
|
||||
public void setTitleContent(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.title_content</code>. 活动内容
|
||||
*/
|
||||
public String getTitleContent() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.activity_img</code>. 活动图片
|
||||
*/
|
||||
public void setActivityImg(String value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.activity_img</code>. 活动图片
|
||||
*/
|
||||
public String getActivityImg() {
|
||||
return (String) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.activity_url</code>. 活动跳转链接
|
||||
*/
|
||||
public void setActivityUrl(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.activity_url</code>. 活动跳转链接
|
||||
*/
|
||||
public String getActivityUrl() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.state</code>. 1=进行中 2=已结束 3=已下架
|
||||
*/
|
||||
public void setState(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.state</code>. 1=进行中 2=已结束 3=已下架
|
||||
*/
|
||||
public Integer getState() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.amount</code>. 奖励金额
|
||||
*/
|
||||
public void setAmount(BigDecimal value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.amount</code>. 奖励金额
|
||||
*/
|
||||
public BigDecimal getAmount() {
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public void setSuperiorAmount(BigDecimal value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public BigDecimal getSuperiorAmount() {
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.activity_number</code>. 每天可以做的次数(每天1次) -1表示任务是一次性的
|
||||
*/
|
||||
public void setActivityNumber(Integer value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.activity_number</code>. 每天可以做的次数(每天1次) -1表示任务是一次性的
|
||||
*/
|
||||
public Integer getActivityNumber() {
|
||||
return (Integer) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.category</code>. 1=社交媒体活动 2=测试网络活动
|
||||
*/
|
||||
public void setCategory(Integer value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.category</code>. 1=社交媒体活动 2=测试网络活动
|
||||
*/
|
||||
public Integer getCategory() {
|
||||
return (Integer) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.type</code>. 1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码 10=加入TG
|
||||
*/
|
||||
public void setType(Integer value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.type</code>. 1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码 10=加入TG
|
||||
*/
|
||||
public Integer getType() {
|
||||
return (Integer) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_config.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public void setMark(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_config.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public String getMark() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record15 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row15<Integer, Timestamp, Timestamp, Byte, String, String, String, String, Integer, BigDecimal, BigDecimal, Integer, Integer, Integer, String> fieldsRow() {
|
||||
return (Row15) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row15<Integer, Timestamp, Timestamp, Byte, String, String, String, String, Integer, BigDecimal, BigDecimal, Integer, Integer, Integer, String> valuesRow() {
|
||||
return (Row15) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.TITLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.TITLE_CONTENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field7() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.ACTIVITY_IMG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field8() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.ACTIVITY_URL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field9() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field10() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field11() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.SUPERIOR_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field12() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.ACTIVITY_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field13() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.CATEGORY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field14() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field15() {
|
||||
return ActivityConfigTable.ACTIVITY_CONFIG.MARK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getTitleContent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component7() {
|
||||
return getActivityImg();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component8() {
|
||||
return getActivityUrl();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component9() {
|
||||
return getState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component10() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component11() {
|
||||
return getSuperiorAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component12() {
|
||||
return getActivityNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component13() {
|
||||
return getCategory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component14() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component15() {
|
||||
return getMark();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getTitleContent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value7() {
|
||||
return getActivityImg();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value8() {
|
||||
return getActivityUrl();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value9() {
|
||||
return getState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value10() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value11() {
|
||||
return getSuperiorAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value12() {
|
||||
return getActivityNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value13() {
|
||||
return getCategory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value14() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value15() {
|
||||
return getMark();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value5(String value) {
|
||||
setTitle(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value6(String value) {
|
||||
setTitleContent(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value7(String value) {
|
||||
setActivityImg(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value8(String value) {
|
||||
setActivityUrl(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value9(Integer value) {
|
||||
setState(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value10(BigDecimal value) {
|
||||
setAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value11(BigDecimal value) {
|
||||
setSuperiorAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value12(Integer value) {
|
||||
setActivityNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value13(Integer value) {
|
||||
setCategory(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value14(Integer value) {
|
||||
setType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord value15(String value) {
|
||||
setMark(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityConfigRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, String value5, String value6, String value7, String value8, Integer value9, BigDecimal value10, BigDecimal value11, Integer value12, Integer value13, Integer value14, String value15) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ActivityConfigRecord
|
||||
*/
|
||||
public ActivityConfigRecord() {
|
||||
super(ActivityConfigTable.ACTIVITY_CONFIG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ActivityConfigRecord
|
||||
*/
|
||||
public ActivityConfigRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, String title, String titleContent, String activityImg, String activityUrl, Integer state, BigDecimal amount, BigDecimal superiorAmount, Integer activityNumber, Integer category, Integer type, String mark) {
|
||||
super(ActivityConfigTable.ACTIVITY_CONFIG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, updateTime);
|
||||
set(3, flag);
|
||||
set(4, title);
|
||||
set(5, titleContent);
|
||||
set(6, activityImg);
|
||||
set(7, activityUrl);
|
||||
set(8, state);
|
||||
set(9, amount);
|
||||
set(10, superiorAmount);
|
||||
set(11, activityNumber);
|
||||
set(12, category);
|
||||
set(13, type);
|
||||
set(14, mark);
|
||||
}
|
||||
}
|
|
@ -1,674 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityLogTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record16;
|
||||
import org.jooq.Row16;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 活动任务日志
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityLogRecord extends UpdatableRecordImpl<ActivityLogRecord> implements Record16<Integer, Timestamp, Timestamp, Byte, Integer, String, String, String, Integer, BigDecimal, BigDecimal, Timestamp, Integer, String, String, Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1166835423;
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public void setFlag(Byte value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public Byte getFlag() {
|
||||
return (Byte) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.activity_config_id</code>. 配置ID
|
||||
*/
|
||||
public void setActivityConfigId(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.activity_config_id</code>. 配置ID
|
||||
*/
|
||||
public Integer getActivityConfigId() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.address</code>. 用户地址
|
||||
*/
|
||||
public void setAddress(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.address</code>. 用户地址
|
||||
*/
|
||||
public String getAddress() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.superior_address</code>. 上级地址
|
||||
*/
|
||||
public void setSuperiorAddress(String value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.superior_address</code>. 上级地址
|
||||
*/
|
||||
public String getSuperiorAddress() {
|
||||
return (String) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.title</code>. 活动标题
|
||||
*/
|
||||
public void setTitle(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.title</code>. 活动标题
|
||||
*/
|
||||
public String getTitle() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.type</code>. 1=发起任务 2=已完成 3=失败
|
||||
*/
|
||||
public void setType(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.type</code>. 1=发起任务 2=已完成 3=失败
|
||||
*/
|
||||
public Integer getType() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.amount</code>. 奖励金额
|
||||
*/
|
||||
public void setAmount(BigDecimal value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.amount</code>. 奖励金额
|
||||
*/
|
||||
public BigDecimal getAmount() {
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public void setSuperiorAmount(BigDecimal value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.superior_amount</code>. 上级奖励金额
|
||||
*/
|
||||
public BigDecimal getSuperiorAmount() {
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.end_time</code>. 任务结束时间
|
||||
*/
|
||||
public void setEndTime(Timestamp value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.end_time</code>. 任务结束时间
|
||||
*/
|
||||
public Timestamp getEndTime() {
|
||||
return (Timestamp) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.config_type</code>. 配置的TYPE
|
||||
*/
|
||||
public void setConfigType(Integer value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.config_type</code>. 配置的TYPE
|
||||
*/
|
||||
public Integer getConfigType() {
|
||||
return (Integer) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public void setMark(String value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.mark</code>. (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀)
|
||||
*/
|
||||
public String getMark() {
|
||||
return (String) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.hashs</code>. 转账hash,多笔中间用逗号分隔
|
||||
*/
|
||||
public void setHashs(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.hashs</code>. 转账hash,多笔中间用逗号分隔
|
||||
*/
|
||||
public String getHashs() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_log.transfer_type</code>. 0:未执行链上发放 1:已链上发放
|
||||
*/
|
||||
public void setTransferType(Integer value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_log.transfer_type</code>. 0:未执行链上发放 1:已链上发放
|
||||
*/
|
||||
public Integer getTransferType() {
|
||||
return (Integer) get(15);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record16 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, Timestamp, Byte, Integer, String, String, String, Integer, BigDecimal, BigDecimal, Timestamp, Integer, String, String, Integer> fieldsRow() {
|
||||
return (Row16) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, Timestamp, Byte, Integer, String, String, String, Integer, BigDecimal, BigDecimal, Timestamp, Integer, String, String, Integer> valuesRow() {
|
||||
return (Row16) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field5() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.ACTIVITY_CONFIG_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.ADDRESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field7() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.SUPERIOR_ADDRESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field8() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.TITLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field9() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field10() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field11() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.SUPERIOR_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field12() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.END_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field13() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.CONFIG_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field14() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.MARK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field15() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.HASHS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field16() {
|
||||
return ActivityLogTable.ACTIVITY_LOG.TRANSFER_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component5() {
|
||||
return getActivityConfigId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component7() {
|
||||
return getSuperiorAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component8() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component9() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component10() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component11() {
|
||||
return getSuperiorAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component12() {
|
||||
return getEndTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component13() {
|
||||
return getConfigType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component14() {
|
||||
return getMark();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component15() {
|
||||
return getHashs();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component16() {
|
||||
return getTransferType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value5() {
|
||||
return getActivityConfigId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value7() {
|
||||
return getSuperiorAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value8() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value9() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value10() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value11() {
|
||||
return getSuperiorAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value12() {
|
||||
return getEndTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value13() {
|
||||
return getConfigType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value14() {
|
||||
return getMark();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value15() {
|
||||
return getHashs();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value16() {
|
||||
return getTransferType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value5(Integer value) {
|
||||
setActivityConfigId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value6(String value) {
|
||||
setAddress(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value7(String value) {
|
||||
setSuperiorAddress(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value8(String value) {
|
||||
setTitle(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value9(Integer value) {
|
||||
setType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value10(BigDecimal value) {
|
||||
setAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value11(BigDecimal value) {
|
||||
setSuperiorAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value12(Timestamp value) {
|
||||
setEndTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value13(Integer value) {
|
||||
setConfigType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value14(String value) {
|
||||
setMark(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value15(String value) {
|
||||
setHashs(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord value16(Integer value) {
|
||||
setTransferType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityLogRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, Integer value5, String value6, String value7, String value8, Integer value9, BigDecimal value10, BigDecimal value11, Timestamp value12, Integer value13, String value14, String value15, Integer value16) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
value16(value16);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ActivityLogRecord
|
||||
*/
|
||||
public ActivityLogRecord() {
|
||||
super(ActivityLogTable.ACTIVITY_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ActivityLogRecord
|
||||
*/
|
||||
public ActivityLogRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, Integer activityConfigId, String address, String superiorAddress, String title, Integer type, BigDecimal amount, BigDecimal superiorAmount, Timestamp endTime, Integer configType, String mark, String hashs, Integer transferType) {
|
||||
super(ActivityLogTable.ACTIVITY_LOG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, updateTime);
|
||||
set(3, flag);
|
||||
set(4, activityConfigId);
|
||||
set(5, address);
|
||||
set(6, superiorAddress);
|
||||
set(7, title);
|
||||
set(8, type);
|
||||
set(9, amount);
|
||||
set(10, superiorAmount);
|
||||
set(11, endTime);
|
||||
set(12, configType);
|
||||
set(13, mark);
|
||||
set(14, hashs);
|
||||
set(15, transferType);
|
||||
}
|
||||
}
|
|
@ -1,304 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.ActivityStatisticsTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record6;
|
||||
import org.jooq.Row6;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 业绩统计
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ActivityStatisticsRecord extends UpdatableRecordImpl<ActivityStatisticsRecord> implements Record6<Integer, Timestamp, Timestamp, Byte, String, BigDecimal> {
|
||||
|
||||
private static final long serialVersionUID = 973204497;
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public void setFlag(Byte value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public Byte getFlag() {
|
||||
return (Byte) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.address</code>. 用户地址
|
||||
*/
|
||||
public void setAddress(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.address</code>. 用户地址
|
||||
*/
|
||||
public String getAddress() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>activity_statistics.amount</code>. 累计业绩
|
||||
*/
|
||||
public void setAmount(BigDecimal value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>activity_statistics.amount</code>. 累计业绩
|
||||
*/
|
||||
public BigDecimal getAmount() {
|
||||
return (BigDecimal) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record6 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row6<Integer, Timestamp, Timestamp, Byte, String, BigDecimal> fieldsRow() {
|
||||
return (Row6) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row6<Integer, Timestamp, Timestamp, Byte, String, BigDecimal> valuesRow() {
|
||||
return (Row6) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.ADDRESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field6() {
|
||||
return ActivityStatisticsTable.ACTIVITY_STATISTICS.AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component6() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value6() {
|
||||
return getAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value5(String value) {
|
||||
setAddress(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord value6(BigDecimal value) {
|
||||
setAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityStatisticsRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, String value5, BigDecimal value6) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ActivityStatisticsRecord
|
||||
*/
|
||||
public ActivityStatisticsRecord() {
|
||||
super(ActivityStatisticsTable.ACTIVITY_STATISTICS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ActivityStatisticsRecord
|
||||
*/
|
||||
public ActivityStatisticsRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, String address, BigDecimal amount) {
|
||||
super(ActivityStatisticsTable.ACTIVITY_STATISTICS);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, updateTime);
|
||||
set(3, flag);
|
||||
set(4, address);
|
||||
set(5, amount);
|
||||
}
|
||||
}
|
|
@ -1,563 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeAwardSettingTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record13;
|
||||
import org.jooq.Row13;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点奖励设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeAwardSettingRecord extends UpdatableRecordImpl<NodeAwardSettingRecord> implements Record13<Integer, Timestamp, String, Timestamp, String, Integer, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal> {
|
||||
|
||||
private static final long serialVersionUID = -1672213397;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.node_setting_id</code>. 节点奖励id
|
||||
*/
|
||||
public void setNodeSettingId(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.node_setting_id</code>. 节点奖励id
|
||||
*/
|
||||
public Integer getNodeSettingId() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.rebate</code>. 返佣比例
|
||||
*/
|
||||
public void setRebate(BigDecimal value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.rebate</code>. 返佣比例
|
||||
*/
|
||||
public BigDecimal getRebate() {
|
||||
return (BigDecimal) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public void setRbitAmount(BigDecimal value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public BigDecimal getRbitAmount() {
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.rbit_one</code>. 1代Rbit奖励比例
|
||||
*/
|
||||
public void setRbitOne(BigDecimal value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.rbit_one</code>. 1代Rbit奖励比例
|
||||
*/
|
||||
public BigDecimal getRbitOne() {
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.rebate_two</code>. 2代Rbit奖励比例
|
||||
*/
|
||||
public void setRebateTwo(BigDecimal value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.rebate_two</code>. 2代Rbit奖励比例
|
||||
*/
|
||||
public BigDecimal getRebateTwo() {
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public void setNftAmount(BigDecimal value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public BigDecimal getNftAmount() {
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.nft_one</code>. 1代NFT碎片奖励比例
|
||||
*/
|
||||
public void setNftOne(BigDecimal value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.nft_one</code>. 1代NFT碎片奖励比例
|
||||
*/
|
||||
public BigDecimal getNftOne() {
|
||||
return (BigDecimal) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_award_setting.nft_two</code>. 2代NFT碎片奖励比例
|
||||
*/
|
||||
public void setNftTwo(BigDecimal value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_award_setting.nft_two</code>. 2代NFT碎片奖励比例
|
||||
*/
|
||||
public BigDecimal getNftTwo() {
|
||||
return (BigDecimal) get(12);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record13 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, Integer, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal> fieldsRow() {
|
||||
return (Row13) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, Integer, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal> valuesRow() {
|
||||
return (Row13) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.CREATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field4() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.UPDATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field6() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.NODE_SETTING_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field7() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.REBATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field8() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.RBIT_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field9() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.RBIT_ONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field10() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.REBATE_TWO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field11() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.NFT_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field12() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.NFT_ONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field13() {
|
||||
return NodeAwardSettingTable.NODE_AWARD_SETTING.NFT_TWO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component6() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component7() {
|
||||
return getRebate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component8() {
|
||||
return getRbitAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component9() {
|
||||
return getRbitOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component10() {
|
||||
return getRebateTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component11() {
|
||||
return getNftAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component12() {
|
||||
return getNftOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component13() {
|
||||
return getNftTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value6() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value7() {
|
||||
return getRebate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value8() {
|
||||
return getRbitAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value9() {
|
||||
return getRbitOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value10() {
|
||||
return getRebateTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value11() {
|
||||
return getNftAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value12() {
|
||||
return getNftOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value13() {
|
||||
return getNftTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value3(String value) {
|
||||
setCreateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value4(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value5(String value) {
|
||||
setUpdateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value6(Integer value) {
|
||||
setNodeSettingId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value7(BigDecimal value) {
|
||||
setRebate(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value8(BigDecimal value) {
|
||||
setRbitAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value9(BigDecimal value) {
|
||||
setRbitOne(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value10(BigDecimal value) {
|
||||
setRebateTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value11(BigDecimal value) {
|
||||
setNftAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value12(BigDecimal value) {
|
||||
setNftOne(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord value13(BigDecimal value) {
|
||||
setNftTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeAwardSettingRecord values(Integer value1, Timestamp value2, String value3, Timestamp value4, String value5, Integer value6, BigDecimal value7, BigDecimal value8, BigDecimal value9, BigDecimal value10, BigDecimal value11, BigDecimal value12, BigDecimal value13) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeAwardSettingRecord
|
||||
*/
|
||||
public NodeAwardSettingRecord() {
|
||||
super(NodeAwardSettingTable.NODE_AWARD_SETTING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeAwardSettingRecord
|
||||
*/
|
||||
public NodeAwardSettingRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, Integer nodeSettingId, BigDecimal rebate, BigDecimal rbitAmount, BigDecimal rbitOne, BigDecimal rebateTwo, BigDecimal nftAmount, BigDecimal nftOne, BigDecimal nftTwo) {
|
||||
super(NodeAwardSettingTable.NODE_AWARD_SETTING);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, nodeSettingId);
|
||||
set(6, rebate);
|
||||
set(7, rbitAmount);
|
||||
set(8, rbitOne);
|
||||
set(9, rebateTwo);
|
||||
set(10, nftAmount);
|
||||
set(11, nftOne);
|
||||
set(12, nftTwo);
|
||||
}
|
||||
}
|
|
@ -1,465 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeBuyLogTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeBuyLogRecord extends UpdatableRecordImpl<NodeBuyLogRecord> {
|
||||
|
||||
private static final long serialVersionUID = 210820787;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public void setWalletAddress(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public String getWalletAddress() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.recommend_id</code>. 推荐人ID
|
||||
*/
|
||||
public void setRecommendId(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.recommend_id</code>. 推荐人ID
|
||||
*/
|
||||
public Integer getRecommendId() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.indirect_user_id</code>. 间推人ID
|
||||
*/
|
||||
public void setIndirectUserId(Integer value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.indirect_user_id</code>. 间推人ID
|
||||
*/
|
||||
public Integer getIndirectUserId() {
|
||||
return (Integer) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.buy_count</code>. 认购数量
|
||||
*/
|
||||
public void setBuyCount(BigDecimal value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.buy_count</code>. 认购数量
|
||||
*/
|
||||
public BigDecimal getBuyCount() {
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public void setPayCoin(String value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public String getPayCoin() {
|
||||
return (String) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public void setBuyAmount(BigDecimal value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public BigDecimal getBuyAmount() {
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public void setNodeSettingId(Integer value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public Integer getNodeSettingId() {
|
||||
return (Integer) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public void setStatus(Integer value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return (Integer) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.user_id</code>. 用户id
|
||||
*/
|
||||
public void setUserId(Integer value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.user_id</code>. 用户id
|
||||
*/
|
||||
public Integer getUserId() {
|
||||
return (Integer) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.hash</code>. 交易hash
|
||||
*/
|
||||
public void setHash(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.hash</code>. 交易hash
|
||||
*/
|
||||
public String getHash() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.order_number</code>. 订单号
|
||||
*/
|
||||
public void setOrderNumber(String value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.order_number</code>. 订单号
|
||||
*/
|
||||
public String getOrderNumber() {
|
||||
return (String) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.input_address</code>. 出账地址
|
||||
*/
|
||||
public void setInputAddress(String value) {
|
||||
set(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.input_address</code>. 出账地址
|
||||
*/
|
||||
public String getInputAddress() {
|
||||
return (String) get(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.out_address</code>. 到账地址
|
||||
*/
|
||||
public void setOutAddress(String value) {
|
||||
set(17, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.out_address</code>. 到账地址
|
||||
*/
|
||||
public String getOutAddress() {
|
||||
return (String) get(17);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.rebate</code>. 推荐人返佣金额
|
||||
*/
|
||||
public void setRebate(BigDecimal value) {
|
||||
set(18, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.rebate</code>. 推荐人返佣金额
|
||||
*/
|
||||
public BigDecimal getRebate() {
|
||||
return (BigDecimal) get(18);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public void setRbitAmount(BigDecimal value) {
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.rbit_amount</code>. 购买盒子获取Rbit奖励数量
|
||||
*/
|
||||
public BigDecimal getRbitAmount() {
|
||||
return (BigDecimal) get(19);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.rbit_one</code>. 1代Rbit奖励
|
||||
*/
|
||||
public void setRbitOne(BigDecimal value) {
|
||||
set(20, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.rbit_one</code>. 1代Rbit奖励
|
||||
*/
|
||||
public BigDecimal getRbitOne() {
|
||||
return (BigDecimal) get(20);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.rbit_two</code>. 2代Rbit奖励
|
||||
*/
|
||||
public void setRbitTwo(BigDecimal value) {
|
||||
set(21, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.rbit_two</code>. 2代Rbit奖励
|
||||
*/
|
||||
public BigDecimal getRbitTwo() {
|
||||
return (BigDecimal) get(21);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public void setNftAmount(BigDecimal value) {
|
||||
set(22, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.nft_amount</code>. 购买盒子NFT碎片奖励数量
|
||||
*/
|
||||
public BigDecimal getNftAmount() {
|
||||
return (BigDecimal) get(22);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.nft_one</code>. 1代NFT碎片奖励
|
||||
*/
|
||||
public void setNftOne(BigDecimal value) {
|
||||
set(23, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.nft_one</code>. 1代NFT碎片奖励
|
||||
*/
|
||||
public BigDecimal getNftOne() {
|
||||
return (BigDecimal) get(23);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.nft_two</code>. 2代NFT碎片奖励
|
||||
*/
|
||||
public void setNftTwo(BigDecimal value) {
|
||||
set(24, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.nft_two</code>. 2代NFT碎片奖励
|
||||
*/
|
||||
public BigDecimal getNftTwo() {
|
||||
return (BigDecimal) get(24);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public void setIllustrate(String value) {
|
||||
set(25, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public String getIllustrate() {
|
||||
return (String) get(25);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_buy_log.top_settlement</code>. 是否结算 1=结算 0=未结算
|
||||
*/
|
||||
public void setTopSettlement(Integer value) {
|
||||
set(26, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_buy_log.top_settlement</code>. 是否结算 1=结算 0=未结算
|
||||
*/
|
||||
public Integer getTopSettlement() {
|
||||
return (Integer) get(26);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeBuyLogRecord
|
||||
*/
|
||||
public NodeBuyLogRecord() {
|
||||
super(NodeBuyLogTable.NODE_BUY_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeBuyLogRecord
|
||||
*/
|
||||
public NodeBuyLogRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, String walletAddress, Integer recommendId, Integer indirectUserId, BigDecimal buyCount, String payCoin, BigDecimal buyAmount, Integer nodeSettingId, Integer status, Integer userId, String hash, String orderNumber, String inputAddress, String outAddress, BigDecimal rebate, BigDecimal rbitAmount, BigDecimal rbitOne, BigDecimal rbitTwo, BigDecimal nftAmount, BigDecimal nftOne, BigDecimal nftTwo, String illustrate, Integer topSettlement) {
|
||||
super(NodeBuyLogTable.NODE_BUY_LOG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, walletAddress);
|
||||
set(6, recommendId);
|
||||
set(7, indirectUserId);
|
||||
set(8, buyCount);
|
||||
set(9, payCoin);
|
||||
set(10, buyAmount);
|
||||
set(11, nodeSettingId);
|
||||
set(12, status);
|
||||
set(13, userId);
|
||||
set(14, hash);
|
||||
set(15, orderNumber);
|
||||
set(16, inputAddress);
|
||||
set(17, outAddress);
|
||||
set(18, rebate);
|
||||
set(19, rbitAmount);
|
||||
set(20, rbitOne);
|
||||
set(21, rbitTwo);
|
||||
set(22, nftAmount);
|
||||
set(23, nftOne);
|
||||
set(24, nftTwo);
|
||||
set(25, illustrate);
|
||||
set(26, topSettlement);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,341 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeIncomeConfigTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record7;
|
||||
import org.jooq.Row7;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 收益配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeIncomeConfigRecord extends UpdatableRecordImpl<NodeIncomeConfigRecord> implements Record7<Integer, Timestamp, String, Timestamp, String, BigDecimal, Integer> {
|
||||
|
||||
private static final long serialVersionUID = -387072829;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.income</code>. 收益比例
|
||||
*/
|
||||
public void setIncome(BigDecimal value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.income</code>. 收益比例
|
||||
*/
|
||||
public BigDecimal getIncome() {
|
||||
return (BigDecimal) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_income_config.era</code>. 代数
|
||||
*/
|
||||
public void setEra(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_income_config.era</code>. 代数
|
||||
*/
|
||||
public Integer getEra() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record7 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row7<Integer, Timestamp, String, Timestamp, String, BigDecimal, Integer> fieldsRow() {
|
||||
return (Row7) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row7<Integer, Timestamp, String, Timestamp, String, BigDecimal, Integer> valuesRow() {
|
||||
return (Row7) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.CREATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field4() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.UPDATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field6() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.INCOME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return NodeIncomeConfigTable.NODE_INCOME_CONFIG.ERA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component6() {
|
||||
return getIncome();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getEra();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value6() {
|
||||
return getIncome();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getEra();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value3(String value) {
|
||||
setCreateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value4(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value5(String value) {
|
||||
setUpdateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value6(BigDecimal value) {
|
||||
setIncome(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord value7(Integer value) {
|
||||
setEra(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeIncomeConfigRecord values(Integer value1, Timestamp value2, String value3, Timestamp value4, String value5, BigDecimal value6, Integer value7) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeIncomeConfigRecord
|
||||
*/
|
||||
public NodeIncomeConfigRecord() {
|
||||
super(NodeIncomeConfigTable.NODE_INCOME_CONFIG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeIncomeConfigRecord
|
||||
*/
|
||||
public NodeIncomeConfigRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, BigDecimal income, Integer era) {
|
||||
super(NodeIncomeConfigTable.NODE_INCOME_CONFIG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, income);
|
||||
set(6, era);
|
||||
}
|
||||
}
|
|
@ -1,563 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record13;
|
||||
import org.jooq.Row13;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 用户节点表
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeRecord extends UpdatableRecordImpl<NodeRecord> implements Record13<Integer, Timestamp, String, Timestamp, String, String, BigDecimal, Integer, Timestamp, Integer, String, String, Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1270074651;
|
||||
|
||||
/**
|
||||
* Setter for <code>node.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.buy_coin</code>. 认购币种
|
||||
*/
|
||||
public void setBuyCoin(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.buy_coin</code>. 认购币种
|
||||
*/
|
||||
public String getBuyCoin() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.buy_amount</code>. 支付金额
|
||||
*/
|
||||
public void setBuyAmount(BigDecimal value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.buy_amount</code>. 支付金额
|
||||
*/
|
||||
public BigDecimal getBuyAmount() {
|
||||
return (BigDecimal) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.buy_number</code>. 购买数量
|
||||
*/
|
||||
public void setBuyNumber(Integer value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.buy_number</code>. 购买数量
|
||||
*/
|
||||
public Integer getBuyNumber() {
|
||||
return (Integer) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.confirm_time</code>. 确认时间
|
||||
*/
|
||||
public void setConfirmTime(Timestamp value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.confirm_time</code>. 确认时间
|
||||
*/
|
||||
public Timestamp getConfirmTime() {
|
||||
return (Timestamp) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.user_id</code>. 用户id
|
||||
*/
|
||||
public void setUserId(Integer value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.user_id</code>. 用户id
|
||||
*/
|
||||
public Integer getUserId() {
|
||||
return (Integer) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.node_name</code>. 节点名称
|
||||
*/
|
||||
public void setNodeName(String value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.node_name</code>. 节点名称
|
||||
*/
|
||||
public String getNodeName() {
|
||||
return (String) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.order_number</code>. 订单号
|
||||
*/
|
||||
public void setOrderNumber(String value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.order_number</code>. 订单号
|
||||
*/
|
||||
public String getOrderNumber() {
|
||||
return (String) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node.node_setting_id</code>. 节点配置id
|
||||
*/
|
||||
public void setNodeSettingId(Integer value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node.node_setting_id</code>. 节点配置id
|
||||
*/
|
||||
public Integer getNodeSettingId() {
|
||||
return (Integer) get(12);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record13 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, String, BigDecimal, Integer, Timestamp, Integer, String, String, Integer> fieldsRow() {
|
||||
return (Row13) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row13<Integer, Timestamp, String, Timestamp, String, String, BigDecimal, Integer, Timestamp, Integer, String, String, Integer> valuesRow() {
|
||||
return (Row13) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeTable.NODE.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeTable.NODE.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return NodeTable.NODE.CREATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field4() {
|
||||
return NodeTable.NODE.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return NodeTable.NODE.UPDATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return NodeTable.NODE.BUY_COIN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field7() {
|
||||
return NodeTable.NODE.BUY_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field8() {
|
||||
return NodeTable.NODE.BUY_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field9() {
|
||||
return NodeTable.NODE.CONFIRM_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field10() {
|
||||
return NodeTable.NODE.USER_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field11() {
|
||||
return NodeTable.NODE.NODE_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field12() {
|
||||
return NodeTable.NODE.ORDER_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field13() {
|
||||
return NodeTable.NODE.NODE_SETTING_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getBuyCoin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component7() {
|
||||
return getBuyAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component8() {
|
||||
return getBuyNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component9() {
|
||||
return getConfirmTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component10() {
|
||||
return getUserId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component11() {
|
||||
return getNodeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component12() {
|
||||
return getOrderNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component13() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getBuyCoin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value7() {
|
||||
return getBuyAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value8() {
|
||||
return getBuyNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value9() {
|
||||
return getConfirmTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value10() {
|
||||
return getUserId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value11() {
|
||||
return getNodeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value12() {
|
||||
return getOrderNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value13() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value3(String value) {
|
||||
setCreateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value4(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value5(String value) {
|
||||
setUpdateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value6(String value) {
|
||||
setBuyCoin(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value7(BigDecimal value) {
|
||||
setBuyAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value8(Integer value) {
|
||||
setBuyNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value9(Timestamp value) {
|
||||
setConfirmTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value10(Integer value) {
|
||||
setUserId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value11(String value) {
|
||||
setNodeName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value12(String value) {
|
||||
setOrderNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord value13(Integer value) {
|
||||
setNodeSettingId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeRecord values(Integer value1, Timestamp value2, String value3, Timestamp value4, String value5, String value6, BigDecimal value7, Integer value8, Timestamp value9, Integer value10, String value11, String value12, Integer value13) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeRecord
|
||||
*/
|
||||
public NodeRecord() {
|
||||
super(NodeTable.NODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeRecord
|
||||
*/
|
||||
public NodeRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, String buyCoin, BigDecimal buyAmount, Integer buyNumber, Timestamp confirmTime, Integer userId, String nodeName, String orderNumber, Integer nodeSettingId) {
|
||||
super(NodeTable.NODE);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, buyCoin);
|
||||
set(6, buyAmount);
|
||||
set(7, buyNumber);
|
||||
set(8, confirmTime);
|
||||
set(9, userId);
|
||||
set(10, nodeName);
|
||||
set(11, orderNumber);
|
||||
set(12, nodeSettingId);
|
||||
}
|
||||
}
|
|
@ -1,674 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeSettingTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record16;
|
||||
import org.jooq.Row16;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点设置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeSettingRecord extends UpdatableRecordImpl<NodeSettingRecord> implements Record16<Integer, Timestamp, String, Timestamp, String, String, Integer, BigDecimal, Integer, Integer, BigDecimal, Integer, String, String, String, String> {
|
||||
|
||||
private static final long serialVersionUID = -1500169451;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.buy_coin_name</code>. 认购币种
|
||||
*/
|
||||
public void setBuyCoinName(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.buy_coin_name</code>. 认购币种
|
||||
*/
|
||||
public String getBuyCoinName() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.node_total</code>. 节点总量
|
||||
*/
|
||||
public void setNodeTotal(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.node_total</code>. 节点总量
|
||||
*/
|
||||
public Integer getNodeTotal() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.node_price</code>. 节点价格
|
||||
*/
|
||||
public void setNodePrice(BigDecimal value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.node_price</code>. 节点价格
|
||||
*/
|
||||
public BigDecimal getNodePrice() {
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.purchase_limit</code>. 单地址限购数量
|
||||
*/
|
||||
public void setPurchaseLimit(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.purchase_limit</code>. 单地址限购数量
|
||||
*/
|
||||
public Integer getPurchaseLimit() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.purchased_count</code>. 已购数量
|
||||
*/
|
||||
public void setPurchasedCount(Integer value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.purchased_count</code>. 已购数量
|
||||
*/
|
||||
public Integer getPurchasedCount() {
|
||||
return (Integer) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.purchased_amount</code>. 已购金额
|
||||
*/
|
||||
public void setPurchasedAmount(BigDecimal value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.purchased_amount</code>. 已购金额
|
||||
*/
|
||||
public BigDecimal getPurchasedAmount() {
|
||||
return (BigDecimal) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.status</code>. 当前状态:1:认购中;2:已完成;3:待认购
|
||||
*/
|
||||
public void setStatus(Integer value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.status</code>. 当前状态:1:认购中;2:已完成;3:待认购
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return (Integer) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.node_name</code>. 节点名称
|
||||
*/
|
||||
public void setNodeName(String value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.node_name</code>. 节点名称
|
||||
*/
|
||||
public String getNodeName() {
|
||||
return (String) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.illustrate</code>. 节点说明
|
||||
*/
|
||||
public void setIllustrate(String value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.illustrate</code>. 节点说明
|
||||
*/
|
||||
public String getIllustrate() {
|
||||
return (String) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.title</code>. 标题
|
||||
*/
|
||||
public void setTitle(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.title</code>. 标题
|
||||
*/
|
||||
public String getTitle() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_setting.node_grade</code>. 节点等级
|
||||
*/
|
||||
public void setNodeGrade(String value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_setting.node_grade</code>. 节点等级
|
||||
*/
|
||||
public String getNodeGrade() {
|
||||
return (String) get(15);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record16 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, String, Timestamp, String, String, Integer, BigDecimal, Integer, Integer, BigDecimal, Integer, String, String, String, String> fieldsRow() {
|
||||
return (Row16) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row16<Integer, Timestamp, String, Timestamp, String, String, Integer, BigDecimal, Integer, Integer, BigDecimal, Integer, String, String, String, String> valuesRow() {
|
||||
return (Row16) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeSettingTable.NODE_SETTING.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeSettingTable.NODE_SETTING.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return NodeSettingTable.NODE_SETTING.CREATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field4() {
|
||||
return NodeSettingTable.NODE_SETTING.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return NodeSettingTable.NODE_SETTING.UPDATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return NodeSettingTable.NODE_SETTING.BUY_COIN_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return NodeSettingTable.NODE_SETTING.NODE_TOTAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field8() {
|
||||
return NodeSettingTable.NODE_SETTING.NODE_PRICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field9() {
|
||||
return NodeSettingTable.NODE_SETTING.PURCHASE_LIMIT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field10() {
|
||||
return NodeSettingTable.NODE_SETTING.PURCHASED_COUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field11() {
|
||||
return NodeSettingTable.NODE_SETTING.PURCHASED_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field12() {
|
||||
return NodeSettingTable.NODE_SETTING.STATUS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field13() {
|
||||
return NodeSettingTable.NODE_SETTING.NODE_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field14() {
|
||||
return NodeSettingTable.NODE_SETTING.ILLUSTRATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field15() {
|
||||
return NodeSettingTable.NODE_SETTING.TITLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field16() {
|
||||
return NodeSettingTable.NODE_SETTING.NODE_GRADE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getBuyCoinName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getNodeTotal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component8() {
|
||||
return getNodePrice();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component9() {
|
||||
return getPurchaseLimit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component10() {
|
||||
return getPurchasedCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component11() {
|
||||
return getPurchasedAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component12() {
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component13() {
|
||||
return getNodeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component14() {
|
||||
return getIllustrate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component15() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component16() {
|
||||
return getNodeGrade();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getBuyCoinName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getNodeTotal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value8() {
|
||||
return getNodePrice();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value9() {
|
||||
return getPurchaseLimit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value10() {
|
||||
return getPurchasedCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value11() {
|
||||
return getPurchasedAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value12() {
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value13() {
|
||||
return getNodeName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value14() {
|
||||
return getIllustrate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value15() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value16() {
|
||||
return getNodeGrade();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value3(String value) {
|
||||
setCreateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value4(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value5(String value) {
|
||||
setUpdateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value6(String value) {
|
||||
setBuyCoinName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value7(Integer value) {
|
||||
setNodeTotal(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value8(BigDecimal value) {
|
||||
setNodePrice(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value9(Integer value) {
|
||||
setPurchaseLimit(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value10(Integer value) {
|
||||
setPurchasedCount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value11(BigDecimal value) {
|
||||
setPurchasedAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value12(Integer value) {
|
||||
setStatus(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value13(String value) {
|
||||
setNodeName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value14(String value) {
|
||||
setIllustrate(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value15(String value) {
|
||||
setTitle(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord value16(String value) {
|
||||
setNodeGrade(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeSettingRecord values(Integer value1, Timestamp value2, String value3, Timestamp value4, String value5, String value6, Integer value7, BigDecimal value8, Integer value9, Integer value10, BigDecimal value11, Integer value12, String value13, String value14, String value15, String value16) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
value16(value16);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeSettingRecord
|
||||
*/
|
||||
public NodeSettingRecord() {
|
||||
super(NodeSettingTable.NODE_SETTING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeSettingRecord
|
||||
*/
|
||||
public NodeSettingRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, String buyCoinName, Integer nodeTotal, BigDecimal nodePrice, Integer purchaseLimit, Integer purchasedCount, BigDecimal purchasedAmount, Integer status, String nodeName, String illustrate, String title, String nodeGrade) {
|
||||
super(NodeSettingTable.NODE_SETTING);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, buyCoinName);
|
||||
set(6, nodeTotal);
|
||||
set(7, nodePrice);
|
||||
set(8, purchaseLimit);
|
||||
set(9, purchasedCount);
|
||||
set(10, purchasedAmount);
|
||||
set(11, status);
|
||||
set(12, nodeName);
|
||||
set(13, illustrate);
|
||||
set(14, title);
|
||||
set(15, nodeGrade);
|
||||
}
|
||||
}
|
|
@ -1,452 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeTaskLogTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record10;
|
||||
import org.jooq.Row10;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 我的任务奖励
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskLogRecord extends UpdatableRecordImpl<NodeTaskLogRecord> implements Record10<Integer, Timestamp, Timestamp, Byte, Integer, Integer, Integer, BigDecimal, String, BigDecimal> {
|
||||
|
||||
private static final long serialVersionUID = -93867020;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public void setFlag(Byte value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public Byte getFlag() {
|
||||
return (Byte) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.task_id</code>. 任务id
|
||||
*/
|
||||
public void setTaskId(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.task_id</code>. 任务id
|
||||
*/
|
||||
public Integer getTaskId() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.member_id</code>. 会员id
|
||||
*/
|
||||
public void setMemberId(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.member_id</code>. 会员id
|
||||
*/
|
||||
public Integer getMemberId() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.state</code>. 0=待确认 1=待领取 2=已领取
|
||||
*/
|
||||
public void setState(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.state</code>. 0=待确认 1=待领取 2=已领取
|
||||
*/
|
||||
public Integer getState() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.award_value</code>. 奖励积分数量
|
||||
*/
|
||||
public void setAwardValue(BigDecimal value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.award_value</code>. 奖励积分数量
|
||||
*/
|
||||
public BigDecimal getAwardValue() {
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.coin_name</code>. 奖励币种
|
||||
*/
|
||||
public void setCoinName(String value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.coin_name</code>. 奖励币种
|
||||
*/
|
||||
public String getCoinName() {
|
||||
return (String) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task_log.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public void setRecommendValue(BigDecimal value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task_log.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public BigDecimal getRecommendValue() {
|
||||
return (BigDecimal) get(9);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record10 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, Integer, Integer, BigDecimal, String, BigDecimal> fieldsRow() {
|
||||
return (Row10) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, Integer, Integer, BigDecimal, String, BigDecimal> valuesRow() {
|
||||
return (Row10) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field5() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.TASK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field6() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.MEMBER_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.STATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field8() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.AWARD_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field9() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.COIN_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field10() {
|
||||
return NodeTaskLogTable.NODE_TASK_LOG.RECOMMEND_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component5() {
|
||||
return getTaskId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component6() {
|
||||
return getMemberId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component8() {
|
||||
return getAwardValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component9() {
|
||||
return getCoinName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component10() {
|
||||
return getRecommendValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value5() {
|
||||
return getTaskId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value6() {
|
||||
return getMemberId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value8() {
|
||||
return getAwardValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value9() {
|
||||
return getCoinName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value10() {
|
||||
return getRecommendValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value5(Integer value) {
|
||||
setTaskId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value6(Integer value) {
|
||||
setMemberId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value7(Integer value) {
|
||||
setState(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value8(BigDecimal value) {
|
||||
setAwardValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value9(String value) {
|
||||
setCoinName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord value10(BigDecimal value) {
|
||||
setRecommendValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskLogRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, Integer value5, Integer value6, Integer value7, BigDecimal value8, String value9, BigDecimal value10) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeTaskLogRecord
|
||||
*/
|
||||
public NodeTaskLogRecord() {
|
||||
super(NodeTaskLogTable.NODE_TASK_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeTaskLogRecord
|
||||
*/
|
||||
public NodeTaskLogRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, Integer taskId, Integer memberId, Integer state, BigDecimal awardValue, String coinName, BigDecimal recommendValue) {
|
||||
super(NodeTaskLogTable.NODE_TASK_LOG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, updateTime);
|
||||
set(3, flag);
|
||||
set(4, taskId);
|
||||
set(5, memberId);
|
||||
set(6, state);
|
||||
set(7, awardValue);
|
||||
set(8, coinName);
|
||||
set(9, recommendValue);
|
||||
}
|
||||
}
|
|
@ -1,452 +0,0 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.NodeTaskTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record10;
|
||||
import org.jooq.Row10;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* NEER任务配置
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NodeTaskRecord extends UpdatableRecordImpl<NodeTaskRecord> implements Record10<Integer, Timestamp, Timestamp, Byte, Integer, String, BigDecimal, BigDecimal, Integer, Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1474418718;
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public void setFlag(Byte value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.flag</code>. 标记删除,0 / 1
|
||||
*/
|
||||
public Byte getFlag() {
|
||||
return (Byte) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.type</code>. 类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分
|
||||
*/
|
||||
public void setType(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.type</code>. 类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分
|
||||
*/
|
||||
public Integer getType() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.title</code>. 名称,没什么用,方便看数据库
|
||||
*/
|
||||
public void setTitle(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.title</code>. 名称,没什么用,方便看数据库
|
||||
*/
|
||||
public String getTitle() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.award_value</code>. 奖励数量
|
||||
*/
|
||||
public void setAwardValue(BigDecimal value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.award_value</code>. 奖励数量
|
||||
*/
|
||||
public BigDecimal getAwardValue() {
|
||||
return (BigDecimal) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public void setRecommendValue(BigDecimal value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.recommend_value</code>. 推荐人奖励
|
||||
*/
|
||||
public BigDecimal getRecommendValue() {
|
||||
return (BigDecimal) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.type2_target</code>. 类型2的任务目标,其它类型忽略
|
||||
*/
|
||||
public void setType2Target(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.type2_target</code>. 类型2的任务目标,其它类型忽略
|
||||
*/
|
||||
public Integer getType2Target() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>node_task.coin_id</code>. 奖励币种iD(0=战力)
|
||||
*/
|
||||
public void setCoinId(Integer value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>node_task.coin_id</code>. 奖励币种iD(0=战力)
|
||||
*/
|
||||
public Integer getCoinId() {
|
||||
return (Integer) get(9);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record10 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, String, BigDecimal, BigDecimal, Integer, Integer> fieldsRow() {
|
||||
return (Row10) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row10<Integer, Timestamp, Timestamp, Byte, Integer, String, BigDecimal, BigDecimal, Integer, Integer> valuesRow() {
|
||||
return (Row10) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return NodeTaskTable.NODE_TASK.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return NodeTaskTable.NODE_TASK.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return NodeTaskTable.NODE_TASK.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return NodeTaskTable.NODE_TASK.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field5() {
|
||||
return NodeTaskTable.NODE_TASK.TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return NodeTaskTable.NODE_TASK.TITLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field7() {
|
||||
return NodeTaskTable.NODE_TASK.AWARD_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field8() {
|
||||
return NodeTaskTable.NODE_TASK.RECOMMEND_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field9() {
|
||||
return NodeTaskTable.NODE_TASK.TYPE2_TARGET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field10() {
|
||||
return NodeTaskTable.NODE_TASK.COIN_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component5() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component7() {
|
||||
return getAwardValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component8() {
|
||||
return getRecommendValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component9() {
|
||||
return getType2Target();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component10() {
|
||||
return getCoinId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value5() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value7() {
|
||||
return getAwardValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value8() {
|
||||
return getRecommendValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value9() {
|
||||
return getType2Target();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value10() {
|
||||
return getCoinId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value5(Integer value) {
|
||||
setType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value6(String value) {
|
||||
setTitle(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value7(BigDecimal value) {
|
||||
setAwardValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value8(BigDecimal value) {
|
||||
setRecommendValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value9(Integer value) {
|
||||
setType2Target(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord value10(Integer value) {
|
||||
setCoinId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NodeTaskRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, Integer value5, String value6, BigDecimal value7, BigDecimal value8, Integer value9, Integer value10) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NodeTaskRecord
|
||||
*/
|
||||
public NodeTaskRecord() {
|
||||
super(NodeTaskTable.NODE_TASK);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NodeTaskRecord
|
||||
*/
|
||||
public NodeTaskRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, Integer type, String title, BigDecimal awardValue, BigDecimal recommendValue, Integer type2Target, Integer coinId) {
|
||||
super(NodeTaskTable.NODE_TASK);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, updateTime);
|
||||
set(3, flag);
|
||||
set(4, type);
|
||||
set(5, title);
|
||||
set(6, awardValue);
|
||||
set(7, recommendValue);
|
||||
set(8, type2Target);
|
||||
set(9, coinId);
|
||||
}
|
||||
}
|
|
@ -10,7 +10,10 @@ import java.sql.Timestamp;
|
|||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record22;
|
||||
import org.jooq.Row22;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
|
@ -25,9 +28,9 @@ import org.jooq.impl.UpdatableRecordImpl;
|
|||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class TMemberRecord extends UpdatableRecordImpl<TMemberRecord> {
|
||||
public class TMemberRecord extends UpdatableRecordImpl<TMemberRecord> implements Record22<Integer, Timestamp, Timestamp, Byte, String, Integer, Integer, String, String, String, String, String, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> {
|
||||
|
||||
private static final long serialVersionUID = -614468327;
|
||||
private static final long serialVersionUID = 1456114552;
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.id</code>.
|
||||
|
@ -301,102 +304,46 @@ BNB Chain 5=Arbitrum One
|
|||
return (Integer) get(18);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.twitter_id</code>. 推特id
|
||||
*/
|
||||
public void setTwitterId(String value) {
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.twitter_id</code>. 推特id
|
||||
*/
|
||||
public String getTwitterId() {
|
||||
return (String) get(19);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.twitter_name</code>. 推特账号
|
||||
*/
|
||||
public void setTwitterName(String value) {
|
||||
set(20, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.twitter_name</code>. 推特账号
|
||||
*/
|
||||
public String getTwitterName() {
|
||||
return (String) get(20);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.twitter_img</code>. 用户头像
|
||||
*/
|
||||
public void setTwitterImg(String value) {
|
||||
set(21, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.twitter_img</code>. 用户头像
|
||||
*/
|
||||
public String getTwitterImg() {
|
||||
return (String) get(21);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.twitter_user_name</code>. 用户名称
|
||||
*/
|
||||
public void setTwitterUserName(String value) {
|
||||
set(22, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.twitter_user_name</code>. 用户名称
|
||||
*/
|
||||
public String getTwitterUserName() {
|
||||
return (String) get(22);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.discord_id</code>. 用户DiscordID
|
||||
*/
|
||||
public void setDiscordId(String value) {
|
||||
set(23, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.discord_id</code>. 用户DiscordID
|
||||
*/
|
||||
public String getDiscordId() {
|
||||
return (String) get(23);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.tg_id</code>. 用户TG ID
|
||||
*/
|
||||
public void setTgId(String value) {
|
||||
set(24, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.tg_id</code>. 用户TG ID
|
||||
*/
|
||||
public String getTgId() {
|
||||
return (String) get(24);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.top_user</code>. 特定顶级用户 1=是 0=普通用户
|
||||
*/
|
||||
public void setTopUser(Integer value) {
|
||||
set(25, value);
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.top_user</code>. 特定顶级用户 1=是 0=普通用户
|
||||
*/
|
||||
public Integer getTopUser() {
|
||||
return (Integer) get(25);
|
||||
return (Integer) get(19);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.node_number</code>. 直推节点人数
|
||||
*/
|
||||
public void setNodeNumber(Integer value) {
|
||||
set(20, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.node_number</code>. 直推节点人数
|
||||
*/
|
||||
public Integer getNodeNumber() {
|
||||
return (Integer) get(20);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>t_member.team_node_number</code>. 团队节点人数
|
||||
*/
|
||||
public void setTeamNodeNumber(Integer value) {
|
||||
set(21, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>t_member.team_node_number</code>. 团队节点人数
|
||||
*/
|
||||
public Integer getTeamNodeNumber() {
|
||||
return (Integer) get(21);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -408,6 +355,509 @@ BNB Chain 5=Arbitrum One
|
|||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record22 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row22<Integer, Timestamp, Timestamp, Byte, String, Integer, Integer, String, String, String, String, String, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> fieldsRow() {
|
||||
return (Row22) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row22<Integer, Timestamp, Timestamp, Byte, String, Integer, Integer, String, String, String, String, String, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> valuesRow() {
|
||||
return (Row22) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return TMemberTable.T_MEMBER.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return TMemberTable.T_MEMBER.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field3() {
|
||||
return TMemberTable.T_MEMBER.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Byte> field4() {
|
||||
return TMemberTable.T_MEMBER.FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return TMemberTable.T_MEMBER.ACCOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field6() {
|
||||
return TMemberTable.T_MEMBER.ACCOUNT_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return TMemberTable.T_MEMBER.REFER_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field8() {
|
||||
return TMemberTable.T_MEMBER.ALL_PID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field9() {
|
||||
return TMemberTable.T_MEMBER.PASSWORD_LOGIN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field10() {
|
||||
return TMemberTable.T_MEMBER.PASSWORD_PAY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field11() {
|
||||
return TMemberTable.T_MEMBER.SHARE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field12() {
|
||||
return TMemberTable.T_MEMBER.UID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field13() {
|
||||
return TMemberTable.T_MEMBER.LEVEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field14() {
|
||||
return TMemberTable.T_MEMBER.MIN_LEVEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field15() {
|
||||
return TMemberTable.T_MEMBER.SHARE_NUM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field16() {
|
||||
return TMemberTable.T_MEMBER.TEAM_NUM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field17() {
|
||||
return TMemberTable.T_MEMBER.CHAIN_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field18() {
|
||||
return TMemberTable.T_MEMBER.CODE_PROMPT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field19() {
|
||||
return TMemberTable.T_MEMBER.TWITTER_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field20() {
|
||||
return TMemberTable.T_MEMBER.TOP_USER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field21() {
|
||||
return TMemberTable.T_MEMBER.NODE_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field22() {
|
||||
return TMemberTable.T_MEMBER.TEAM_NODE_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte component4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getAccount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component6() {
|
||||
return getAccountType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getReferId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component8() {
|
||||
return getAllPid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component9() {
|
||||
return getPasswordLogin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component10() {
|
||||
return getPasswordPay();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component11() {
|
||||
return getShareCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component12() {
|
||||
return getUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component13() {
|
||||
return getLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component14() {
|
||||
return getMinLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component15() {
|
||||
return getShareNum();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component16() {
|
||||
return getTeamNum();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component17() {
|
||||
return getChainType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component18() {
|
||||
return getCodePrompt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component19() {
|
||||
return getTwitterType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component20() {
|
||||
return getTopUser();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component21() {
|
||||
return getNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component22() {
|
||||
return getTeamNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value3() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Byte value4() {
|
||||
return getFlag();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getAccount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value6() {
|
||||
return getAccountType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getReferId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value8() {
|
||||
return getAllPid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value9() {
|
||||
return getPasswordLogin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value10() {
|
||||
return getPasswordPay();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value11() {
|
||||
return getShareCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value12() {
|
||||
return getUid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value13() {
|
||||
return getLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value14() {
|
||||
return getMinLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value15() {
|
||||
return getShareNum();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value16() {
|
||||
return getTeamNum();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value17() {
|
||||
return getChainType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value18() {
|
||||
return getCodePrompt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value19() {
|
||||
return getTwitterType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value20() {
|
||||
return getTopUser();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value21() {
|
||||
return getNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value22() {
|
||||
return getTeamNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value3(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value4(Byte value) {
|
||||
setFlag(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value5(String value) {
|
||||
setAccount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value6(Integer value) {
|
||||
setAccountType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value7(Integer value) {
|
||||
setReferId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value8(String value) {
|
||||
setAllPid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value9(String value) {
|
||||
setPasswordLogin(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value10(String value) {
|
||||
setPasswordPay(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value11(String value) {
|
||||
setShareCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value12(String value) {
|
||||
setUid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value13(Integer value) {
|
||||
setLevel(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value14(Integer value) {
|
||||
setMinLevel(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value15(Integer value) {
|
||||
setShareNum(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value16(Integer value) {
|
||||
setTeamNum(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value17(Integer value) {
|
||||
setChainType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value18(Integer value) {
|
||||
setCodePrompt(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value19(Integer value) {
|
||||
setTwitterType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value20(Integer value) {
|
||||
setTopUser(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value21(Integer value) {
|
||||
setNodeNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord value22(Integer value) {
|
||||
setTeamNodeNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TMemberRecord values(Integer value1, Timestamp value2, Timestamp value3, Byte value4, String value5, Integer value6, Integer value7, String value8, String value9, String value10, String value11, String value12, Integer value13, Integer value14, Integer value15, Integer value16, Integer value17, Integer value18, Integer value19, Integer value20, Integer value21, Integer value22) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
value16(value16);
|
||||
value17(value17);
|
||||
value18(value18);
|
||||
value19(value19);
|
||||
value20(value20);
|
||||
value21(value21);
|
||||
value22(value22);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -422,7 +872,7 @@ BNB Chain 5=Arbitrum One
|
|||
/**
|
||||
* Create a detached, initialised TMemberRecord
|
||||
*/
|
||||
public TMemberRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, String account, Integer accountType, Integer referId, String allPid, String passwordLogin, String passwordPay, String shareCode, String uid, Integer level, Integer minLevel, Integer shareNum, Integer teamNum, Integer chainType, Integer codePrompt, Integer twitterType, String twitterId, String twitterName, String twitterImg, String twitterUserName, String discordId, String tgId, Integer topUser) {
|
||||
public TMemberRecord(Integer id, Timestamp createTime, Timestamp updateTime, Byte flag, String account, Integer accountType, Integer referId, String allPid, String passwordLogin, String passwordPay, String shareCode, String uid, Integer level, Integer minLevel, Integer shareNum, Integer teamNum, Integer chainType, Integer codePrompt, Integer twitterType, Integer topUser, Integer nodeNumber, Integer teamNodeNumber) {
|
||||
super(TMemberTable.T_MEMBER);
|
||||
|
||||
set(0, id);
|
||||
|
@ -444,12 +894,8 @@ BNB Chain 5=Arbitrum One
|
|||
set(16, chainType);
|
||||
set(17, codePrompt);
|
||||
set(18, twitterType);
|
||||
set(19, twitterId);
|
||||
set(20, twitterName);
|
||||
set(21, twitterImg);
|
||||
set(22, twitterUserName);
|
||||
set(23, discordId);
|
||||
set(24, tgId);
|
||||
set(25, topUser);
|
||||
set(19, topUser);
|
||||
set(20, nodeNumber);
|
||||
set(21, teamNodeNumber);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,822 @@
|
|||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package com.alive.db.jooq.tables.records;
|
||||
|
||||
|
||||
import com.alive.db.jooq.tables.UserNodeLogTable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record20;
|
||||
import org.jooq.Row20;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* 节点认购记录
|
||||
*/
|
||||
@Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.12.3"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class UserNodeLogRecord extends UpdatableRecordImpl<UserNodeLogRecord> implements Record20<Integer, Timestamp, String, Timestamp, String, String, Integer, String, BigDecimal, Integer, Integer, Integer, String, String, String, BigDecimal, String, BigDecimal, String, String> {
|
||||
|
||||
private static final long serialVersionUID = 1606659672;
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.id</code>.
|
||||
*/
|
||||
public void setId(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.id</code>.
|
||||
*/
|
||||
public Integer getId() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public void setCreateTime(Timestamp value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.create_time</code>. 创建时间
|
||||
*/
|
||||
public Timestamp getCreateTime() {
|
||||
return (Timestamp) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.create_by</code>. 创建人
|
||||
*/
|
||||
public void setCreateBy(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.create_by</code>. 创建人
|
||||
*/
|
||||
public String getCreateBy() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public void setUpdateTime(Timestamp value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.update_time</code>. 更新时间
|
||||
*/
|
||||
public Timestamp getUpdateTime() {
|
||||
return (Timestamp) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.update_by</code>. 更新人
|
||||
*/
|
||||
public void setUpdateBy(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.update_by</code>. 更新人
|
||||
*/
|
||||
public String getUpdateBy() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public void setWalletAddress(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.wallet_address</code>. 钱包地址
|
||||
*/
|
||||
public String getWalletAddress() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.node_number</code>. 认购数量
|
||||
*/
|
||||
public void setNodeNumber(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.node_number</code>. 认购数量
|
||||
*/
|
||||
public Integer getNodeNumber() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public void setPayCoin(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.pay_coin</code>. 支付币种
|
||||
*/
|
||||
public String getPayCoin() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public void setBuyAmount(BigDecimal value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.buy_amount</code>. 认购金额
|
||||
*/
|
||||
public BigDecimal getBuyAmount() {
|
||||
return (BigDecimal) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public void setNodeSettingId(Integer value) {
|
||||
set(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.node_setting_id</code>. 节点配置ID
|
||||
*/
|
||||
public Integer getNodeSettingId() {
|
||||
return (Integer) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public void setStatus(Integer value) {
|
||||
set(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.status</code>. 1:订单生成 2:链上确认 3:支付成功 4:支付失败
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return (Integer) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.user_id</code>. 用户id
|
||||
*/
|
||||
public void setUserId(Integer value) {
|
||||
set(11, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.user_id</code>. 用户id
|
||||
*/
|
||||
public Integer getUserId() {
|
||||
return (Integer) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.hash</code>. 交易hash
|
||||
*/
|
||||
public void setHash(String value) {
|
||||
set(12, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.hash</code>. 交易hash
|
||||
*/
|
||||
public String getHash() {
|
||||
return (String) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.order_number</code>. 订单号
|
||||
*/
|
||||
public void setOrderNumber(String value) {
|
||||
set(13, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.order_number</code>. 订单号
|
||||
*/
|
||||
public String getOrderNumber() {
|
||||
return (String) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.address_one</code>. 一代奖励
|
||||
*/
|
||||
public void setAddressOne(String value) {
|
||||
set(14, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.address_one</code>. 一代奖励
|
||||
*/
|
||||
public String getAddressOne() {
|
||||
return (String) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.award_one</code>. 一代奖励金额
|
||||
*/
|
||||
public void setAwardOne(BigDecimal value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.award_one</code>. 一代奖励金额
|
||||
*/
|
||||
public BigDecimal getAwardOne() {
|
||||
return (BigDecimal) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.address_two</code>. 二代奖励
|
||||
*/
|
||||
public void setAddressTwo(String value) {
|
||||
set(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.address_two</code>. 二代奖励
|
||||
*/
|
||||
public String getAddressTwo() {
|
||||
return (String) get(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.award_two</code>. 二代奖励金额
|
||||
*/
|
||||
public void setAwardTwo(BigDecimal value) {
|
||||
set(17, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.award_two</code>. 二代奖励金额
|
||||
*/
|
||||
public BigDecimal getAwardTwo() {
|
||||
return (BigDecimal) get(17);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public void setIllustrate(String value) {
|
||||
set(18, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.illustrate</code>. 订单说明
|
||||
*/
|
||||
public String getIllustrate() {
|
||||
return (String) get(18);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>user_node_log.data_json</code>. 数据JSON
|
||||
*/
|
||||
public void setDataJson(String value) {
|
||||
set(19, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>user_node_log.data_json</code>. 数据JSON
|
||||
*/
|
||||
public String getDataJson() {
|
||||
return (String) get(19);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record20 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row20<Integer, Timestamp, String, Timestamp, String, String, Integer, String, BigDecimal, Integer, Integer, Integer, String, String, String, BigDecimal, String, BigDecimal, String, String> fieldsRow() {
|
||||
return (Row20) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row20<Integer, Timestamp, String, Timestamp, String, String, Integer, String, BigDecimal, Integer, Integer, Integer, String, String, String, BigDecimal, String, BigDecimal, String, String> valuesRow() {
|
||||
return (Row20) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field1() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field2() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.CREATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field3() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.CREATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Timestamp> field4() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.UPDATE_TIME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field5() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.UPDATE_BY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field6() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.WALLET_ADDRESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field7() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.NODE_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field8() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.PAY_COIN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field9() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.BUY_AMOUNT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field10() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.NODE_SETTING_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field11() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.STATUS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Integer> field12() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.USER_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field13() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.HASH;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field14() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.ORDER_NUMBER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field15() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.ADDRESS_ONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field16() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.AWARD_ONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field17() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.ADDRESS_TWO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<BigDecimal> field18() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.AWARD_TWO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field19() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.ILLUSTRATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<String> field20() {
|
||||
return UserNodeLogTable.USER_NODE_LOG.DATA_JSON;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp component4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component6() {
|
||||
return getWalletAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component7() {
|
||||
return getNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component8() {
|
||||
return getPayCoin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component9() {
|
||||
return getBuyAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component10() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component11() {
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component12() {
|
||||
return getUserId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component13() {
|
||||
return getHash();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component14() {
|
||||
return getOrderNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component15() {
|
||||
return getAddressOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component16() {
|
||||
return getAwardOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component17() {
|
||||
return getAddressTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal component18() {
|
||||
return getAwardTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component19() {
|
||||
return getIllustrate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String component20() {
|
||||
return getDataJson();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value2() {
|
||||
return getCreateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value3() {
|
||||
return getCreateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Timestamp value4() {
|
||||
return getUpdateTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value5() {
|
||||
return getUpdateBy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value6() {
|
||||
return getWalletAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value7() {
|
||||
return getNodeNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value8() {
|
||||
return getPayCoin();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value9() {
|
||||
return getBuyAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value10() {
|
||||
return getNodeSettingId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value11() {
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value12() {
|
||||
return getUserId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value13() {
|
||||
return getHash();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value14() {
|
||||
return getOrderNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value15() {
|
||||
return getAddressOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value16() {
|
||||
return getAwardOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value17() {
|
||||
return getAddressTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal value18() {
|
||||
return getAwardTwo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value19() {
|
||||
return getIllustrate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value20() {
|
||||
return getDataJson();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value1(Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value2(Timestamp value) {
|
||||
setCreateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value3(String value) {
|
||||
setCreateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value4(Timestamp value) {
|
||||
setUpdateTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value5(String value) {
|
||||
setUpdateBy(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value6(String value) {
|
||||
setWalletAddress(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value7(Integer value) {
|
||||
setNodeNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value8(String value) {
|
||||
setPayCoin(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value9(BigDecimal value) {
|
||||
setBuyAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value10(Integer value) {
|
||||
setNodeSettingId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value11(Integer value) {
|
||||
setStatus(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value12(Integer value) {
|
||||
setUserId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value13(String value) {
|
||||
setHash(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value14(String value) {
|
||||
setOrderNumber(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value15(String value) {
|
||||
setAddressOne(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value16(BigDecimal value) {
|
||||
setAwardOne(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value17(String value) {
|
||||
setAddressTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value18(BigDecimal value) {
|
||||
setAwardTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value19(String value) {
|
||||
setIllustrate(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord value20(String value) {
|
||||
setDataJson(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserNodeLogRecord values(Integer value1, Timestamp value2, String value3, Timestamp value4, String value5, String value6, Integer value7, String value8, BigDecimal value9, Integer value10, Integer value11, Integer value12, String value13, String value14, String value15, BigDecimal value16, String value17, BigDecimal value18, String value19, String value20) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
value10(value10);
|
||||
value11(value11);
|
||||
value12(value12);
|
||||
value13(value13);
|
||||
value14(value14);
|
||||
value15(value15);
|
||||
value16(value16);
|
||||
value17(value17);
|
||||
value18(value18);
|
||||
value19(value19);
|
||||
value20(value20);
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached UserNodeLogRecord
|
||||
*/
|
||||
public UserNodeLogRecord() {
|
||||
super(UserNodeLogTable.USER_NODE_LOG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised UserNodeLogRecord
|
||||
*/
|
||||
public UserNodeLogRecord(Integer id, Timestamp createTime, String createBy, Timestamp updateTime, String updateBy, String walletAddress, Integer nodeNumber, String payCoin, BigDecimal buyAmount, Integer nodeSettingId, Integer status, Integer userId, String hash, String orderNumber, String addressOne, BigDecimal awardOne, String addressTwo, BigDecimal awardTwo, String illustrate, String dataJson) {
|
||||
super(UserNodeLogTable.USER_NODE_LOG);
|
||||
|
||||
set(0, id);
|
||||
set(1, createTime);
|
||||
set(2, createBy);
|
||||
set(3, updateTime);
|
||||
set(4, updateBy);
|
||||
set(5, walletAddress);
|
||||
set(6, nodeNumber);
|
||||
set(7, payCoin);
|
||||
set(8, buyAmount);
|
||||
set(9, nodeSettingId);
|
||||
set(10, status);
|
||||
set(11, userId);
|
||||
set(12, hash);
|
||||
set(13, orderNumber);
|
||||
set(14, addressOne);
|
||||
set(15, awardOne);
|
||||
set(16, addressTwo);
|
||||
set(17, awardTwo);
|
||||
set(18, illustrate);
|
||||
set(19, dataJson);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue