Commit d4e4289a authored by chenwj's avatar chenwj

新增代币申请和Dapp申请接口

parent e741d97e
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("dapps审核对象")
public class DappsAuditDTO {
private Long id;
@ApiModelProperty("Dapp网络")
private String chainCode;
@ApiModelProperty("Dapp名称")
private String name;
@ApiModelProperty("Dapp链接")
private String link;
@ApiModelProperty("Dapp简介")
private String description;
@ApiModelProperty("DappLogo链接")
private String logo;
@ApiModelProperty("电话")
private String tel;
@ApiModelProperty("微信")
private String wechat;
@ApiModelProperty("使用教程链接")
private String instructions;
@ApiModelProperty("审核不通过原因")
private String reason;
@ApiModelProperty("审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败")
private Byte status;
@ApiModelProperty("创建时间")
private Date createTime;
@ApiModelProperty("更新时间")
private Date updateTime;
}
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@ApiModel("代币申请对象")
@Data
public class TokenAuditDTO {
private Long id;
@ApiModelProperty("项目网络")
private String chainCode;
@ApiModelProperty("代币名称(英文)")
private String nameEn;
@ApiModelProperty("代币符号")
private String symbol;
@ApiModelProperty("代币名称")
private String name;
@ApiModelProperty("合约地址")
private String contractId;
@ApiModelProperty("精度")
private Integer decimal;
@ApiModelProperty("数量")
private Long totalSupply;
@ApiModelProperty("项目简介")
private String description;
@ApiModelProperty("邮箱地址")
private String email;
@ApiModelProperty("官网")
private String officailWeb;
@ApiModelProperty("logo链接")
private String logo;
@ApiModelProperty("审核不通过原因")
private String reason;
@ApiModelProperty("审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败")
private Byte status;
@ApiModelProperty("创建时间")
private Date createTime;
@ApiModelProperty("更新时间")
private Date updateTime;
}
package com.roo.enums;
public enum AuditStatusEnum {
PENDING_REVIEW((byte) 1),
EXAMINATION_PASSED((byte) 2),
PROCESSED((byte) 3),
AUDIT_FAILURE((byte) 4);
private byte code;
AuditStatusEnum(byte code) {
this.code = code;
}
public byte getCode() {
return code;
}
}
......@@ -78,6 +78,36 @@
<skipTests>true</skipTests>
</configuration>
</plugin>
<!--mybatis自动生成代码插件-->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<phase>deploy</phase>
</execution>
</executions>
<configuration>
<!-- generator 工具配置文件的位置 -->
<configurationFile>src\main\resources\generator\generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.8</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
......
package com.roo.controller;
import com.roo.commons.tools.utils.Result;
import com.roo.dto.DappsAuditDTO;
import com.roo.service.DappsAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/dappsAudit")
public class DappsAuditController {
@Autowired
private DappsAuditService dappsAuditService;
@RequestMapping("/settleIn")
public Result settleIn(@RequestBody DappsAuditDTO dto) {
dappsAuditService.save(dto);
return new Result();
}
}
package com.roo.controller;
import com.roo.commons.tools.utils.Result;
import com.roo.dto.TokenAuditDTO;
import com.roo.service.TokenAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/tokenAudit")
public class TokenAuditController {
@Autowired
private TokenAuditService tokenAuditService;
@RequestMapping("/settleIn")
public Result settleIn(@RequestBody TokenAuditDTO dto) {
tokenAuditService.save(dto);
return new Result();
}
}
package com.roo.dao;
import com.roo.entity.DappsAudit;
import com.roo.entity.DappsAuditExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface DappsAuditMapper {
int countByExample(DappsAuditExample example);
int deleteByExample(DappsAuditExample example);
int deleteByPrimaryKey(Long id);
int insert(DappsAudit record);
int insertSelective(DappsAudit record);
List<DappsAudit> selectByExample(DappsAuditExample example);
DappsAudit selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") DappsAudit record, @Param("example") DappsAuditExample example);
int updateByExample(@Param("record") DappsAudit record, @Param("example") DappsAuditExample example);
int updateByPrimaryKeySelective(DappsAudit record);
int updateByPrimaryKey(DappsAudit record);
}
\ No newline at end of file
package com.roo.dao;
import com.roo.entity.TokenAudit;
import com.roo.entity.TokenAuditExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface TokenAuditMapper {
int countByExample(TokenAuditExample example);
int deleteByExample(TokenAuditExample example);
int deleteByPrimaryKey(Long id);
int insert(TokenAudit record);
int insertSelective(TokenAudit record);
List<TokenAudit> selectByExample(TokenAuditExample example);
TokenAudit selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") TokenAudit record, @Param("example") TokenAuditExample example);
int updateByExample(@Param("record") TokenAudit record, @Param("example") TokenAuditExample example);
int updateByPrimaryKeySelective(TokenAudit record);
int updateByPrimaryKey(TokenAudit record);
}
\ No newline at end of file
package com.roo.entity;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@Builder
public class DappsAudit implements Serializable {
private Long id;
private String chainCode;
private String name;
private String link;
private String description;
private String logo;
private String tel;
private String wechat;
private String instructions;
private String reason;
private Byte status;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.roo.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DappsAuditExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DappsAuditExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andChainCodeIsNull() {
addCriterion("chain_code is null");
return (Criteria) this;
}
public Criteria andChainCodeIsNotNull() {
addCriterion("chain_code is not null");
return (Criteria) this;
}
public Criteria andChainCodeEqualTo(String value) {
addCriterion("chain_code =", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotEqualTo(String value) {
addCriterion("chain_code <>", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeGreaterThan(String value) {
addCriterion("chain_code >", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeGreaterThanOrEqualTo(String value) {
addCriterion("chain_code >=", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLessThan(String value) {
addCriterion("chain_code <", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLessThanOrEqualTo(String value) {
addCriterion("chain_code <=", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLike(String value) {
addCriterion("chain_code like", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotLike(String value) {
addCriterion("chain_code not like", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeIn(List<String> values) {
addCriterion("chain_code in", values, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotIn(List<String> values) {
addCriterion("chain_code not in", values, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeBetween(String value1, String value2) {
addCriterion("chain_code between", value1, value2, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotBetween(String value1, String value2) {
addCriterion("chain_code not between", value1, value2, "chainCode");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andLinkIsNull() {
addCriterion("link is null");
return (Criteria) this;
}
public Criteria andLinkIsNotNull() {
addCriterion("link is not null");
return (Criteria) this;
}
public Criteria andLinkEqualTo(String value) {
addCriterion("link =", value, "link");
return (Criteria) this;
}
public Criteria andLinkNotEqualTo(String value) {
addCriterion("link <>", value, "link");
return (Criteria) this;
}
public Criteria andLinkGreaterThan(String value) {
addCriterion("link >", value, "link");
return (Criteria) this;
}
public Criteria andLinkGreaterThanOrEqualTo(String value) {
addCriterion("link >=", value, "link");
return (Criteria) this;
}
public Criteria andLinkLessThan(String value) {
addCriterion("link <", value, "link");
return (Criteria) this;
}
public Criteria andLinkLessThanOrEqualTo(String value) {
addCriterion("link <=", value, "link");
return (Criteria) this;
}
public Criteria andLinkLike(String value) {
addCriterion("link like", value, "link");
return (Criteria) this;
}
public Criteria andLinkNotLike(String value) {
addCriterion("link not like", value, "link");
return (Criteria) this;
}
public Criteria andLinkIn(List<String> values) {
addCriterion("link in", values, "link");
return (Criteria) this;
}
public Criteria andLinkNotIn(List<String> values) {
addCriterion("link not in", values, "link");
return (Criteria) this;
}
public Criteria andLinkBetween(String value1, String value2) {
addCriterion("link between", value1, value2, "link");
return (Criteria) this;
}
public Criteria andLinkNotBetween(String value1, String value2) {
addCriterion("link not between", value1, value2, "link");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andLogoIsNull() {
addCriterion("logo is null");
return (Criteria) this;
}
public Criteria andLogoIsNotNull() {
addCriterion("logo is not null");
return (Criteria) this;
}
public Criteria andLogoEqualTo(String value) {
addCriterion("logo =", value, "logo");
return (Criteria) this;
}
public Criteria andLogoNotEqualTo(String value) {
addCriterion("logo <>", value, "logo");
return (Criteria) this;
}
public Criteria andLogoGreaterThan(String value) {
addCriterion("logo >", value, "logo");
return (Criteria) this;
}
public Criteria andLogoGreaterThanOrEqualTo(String value) {
addCriterion("logo >=", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLessThan(String value) {
addCriterion("logo <", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLessThanOrEqualTo(String value) {
addCriterion("logo <=", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLike(String value) {
addCriterion("logo like", value, "logo");
return (Criteria) this;
}
public Criteria andLogoNotLike(String value) {
addCriterion("logo not like", value, "logo");
return (Criteria) this;
}
public Criteria andLogoIn(List<String> values) {
addCriterion("logo in", values, "logo");
return (Criteria) this;
}
public Criteria andLogoNotIn(List<String> values) {
addCriterion("logo not in", values, "logo");
return (Criteria) this;
}
public Criteria andLogoBetween(String value1, String value2) {
addCriterion("logo between", value1, value2, "logo");
return (Criteria) this;
}
public Criteria andLogoNotBetween(String value1, String value2) {
addCriterion("logo not between", value1, value2, "logo");
return (Criteria) this;
}
public Criteria andTelIsNull() {
addCriterion("tel is null");
return (Criteria) this;
}
public Criteria andTelIsNotNull() {
addCriterion("tel is not null");
return (Criteria) this;
}
public Criteria andTelEqualTo(String value) {
addCriterion("tel =", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotEqualTo(String value) {
addCriterion("tel <>", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThan(String value) {
addCriterion("tel >", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThanOrEqualTo(String value) {
addCriterion("tel >=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThan(String value) {
addCriterion("tel <", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThanOrEqualTo(String value) {
addCriterion("tel <=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLike(String value) {
addCriterion("tel like", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotLike(String value) {
addCriterion("tel not like", value, "tel");
return (Criteria) this;
}
public Criteria andTelIn(List<String> values) {
addCriterion("tel in", values, "tel");
return (Criteria) this;
}
public Criteria andTelNotIn(List<String> values) {
addCriterion("tel not in", values, "tel");
return (Criteria) this;
}
public Criteria andTelBetween(String value1, String value2) {
addCriterion("tel between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andTelNotBetween(String value1, String value2) {
addCriterion("tel not between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andWechatIsNull() {
addCriterion("wechat is null");
return (Criteria) this;
}
public Criteria andWechatIsNotNull() {
addCriterion("wechat is not null");
return (Criteria) this;
}
public Criteria andWechatEqualTo(String value) {
addCriterion("wechat =", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatNotEqualTo(String value) {
addCriterion("wechat <>", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatGreaterThan(String value) {
addCriterion("wechat >", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatGreaterThanOrEqualTo(String value) {
addCriterion("wechat >=", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatLessThan(String value) {
addCriterion("wechat <", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatLessThanOrEqualTo(String value) {
addCriterion("wechat <=", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatLike(String value) {
addCriterion("wechat like", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatNotLike(String value) {
addCriterion("wechat not like", value, "wechat");
return (Criteria) this;
}
public Criteria andWechatIn(List<String> values) {
addCriterion("wechat in", values, "wechat");
return (Criteria) this;
}
public Criteria andWechatNotIn(List<String> values) {
addCriterion("wechat not in", values, "wechat");
return (Criteria) this;
}
public Criteria andWechatBetween(String value1, String value2) {
addCriterion("wechat between", value1, value2, "wechat");
return (Criteria) this;
}
public Criteria andWechatNotBetween(String value1, String value2) {
addCriterion("wechat not between", value1, value2, "wechat");
return (Criteria) this;
}
public Criteria andInstructionsIsNull() {
addCriterion("instructions is null");
return (Criteria) this;
}
public Criteria andInstructionsIsNotNull() {
addCriterion("instructions is not null");
return (Criteria) this;
}
public Criteria andInstructionsEqualTo(String value) {
addCriterion("instructions =", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotEqualTo(String value) {
addCriterion("instructions <>", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsGreaterThan(String value) {
addCriterion("instructions >", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsGreaterThanOrEqualTo(String value) {
addCriterion("instructions >=", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLessThan(String value) {
addCriterion("instructions <", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLessThanOrEqualTo(String value) {
addCriterion("instructions <=", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLike(String value) {
addCriterion("instructions like", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotLike(String value) {
addCriterion("instructions not like", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsIn(List<String> values) {
addCriterion("instructions in", values, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotIn(List<String> values) {
addCriterion("instructions not in", values, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsBetween(String value1, String value2) {
addCriterion("instructions between", value1, value2, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotBetween(String value1, String value2) {
addCriterion("instructions not between", value1, value2, "instructions");
return (Criteria) this;
}
public Criteria andReasonIsNull() {
addCriterion("reason is null");
return (Criteria) this;
}
public Criteria andReasonIsNotNull() {
addCriterion("reason is not null");
return (Criteria) this;
}
public Criteria andReasonEqualTo(String value) {
addCriterion("reason =", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotEqualTo(String value) {
addCriterion("reason <>", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThan(String value) {
addCriterion("reason >", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThanOrEqualTo(String value) {
addCriterion("reason >=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThan(String value) {
addCriterion("reason <", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThanOrEqualTo(String value) {
addCriterion("reason <=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLike(String value) {
addCriterion("reason like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotLike(String value) {
addCriterion("reason not like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonIn(List<String> values) {
addCriterion("reason in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonNotIn(List<String> values) {
addCriterion("reason not in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonBetween(String value1, String value2) {
addCriterion("reason between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andReasonNotBetween(String value1, String value2) {
addCriterion("reason not between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.roo.entity;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@Builder
public class TokenAudit implements Serializable {
private Long id;
private String chainCode;
private String nameEn;
private String symbol;
private String name;
private String contractId;
private Integer decimal;
private Long totalSupply;
private String description;
private String email;
private String officailWeb;
private String logo;
private String reason;
private Byte status;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.roo.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TokenAuditExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TokenAuditExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andChainCodeIsNull() {
addCriterion("chain_code is null");
return (Criteria) this;
}
public Criteria andChainCodeIsNotNull() {
addCriterion("chain_code is not null");
return (Criteria) this;
}
public Criteria andChainCodeEqualTo(String value) {
addCriterion("chain_code =", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotEqualTo(String value) {
addCriterion("chain_code <>", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeGreaterThan(String value) {
addCriterion("chain_code >", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeGreaterThanOrEqualTo(String value) {
addCriterion("chain_code >=", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLessThan(String value) {
addCriterion("chain_code <", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLessThanOrEqualTo(String value) {
addCriterion("chain_code <=", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeLike(String value) {
addCriterion("chain_code like", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotLike(String value) {
addCriterion("chain_code not like", value, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeIn(List<String> values) {
addCriterion("chain_code in", values, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotIn(List<String> values) {
addCriterion("chain_code not in", values, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeBetween(String value1, String value2) {
addCriterion("chain_code between", value1, value2, "chainCode");
return (Criteria) this;
}
public Criteria andChainCodeNotBetween(String value1, String value2) {
addCriterion("chain_code not between", value1, value2, "chainCode");
return (Criteria) this;
}
public Criteria andNameEnIsNull() {
addCriterion("name_en is null");
return (Criteria) this;
}
public Criteria andNameEnIsNotNull() {
addCriterion("name_en is not null");
return (Criteria) this;
}
public Criteria andNameEnEqualTo(String value) {
addCriterion("name_en =", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnNotEqualTo(String value) {
addCriterion("name_en <>", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnGreaterThan(String value) {
addCriterion("name_en >", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnGreaterThanOrEqualTo(String value) {
addCriterion("name_en >=", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnLessThan(String value) {
addCriterion("name_en <", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnLessThanOrEqualTo(String value) {
addCriterion("name_en <=", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnLike(String value) {
addCriterion("name_en like", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnNotLike(String value) {
addCriterion("name_en not like", value, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnIn(List<String> values) {
addCriterion("name_en in", values, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnNotIn(List<String> values) {
addCriterion("name_en not in", values, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnBetween(String value1, String value2) {
addCriterion("name_en between", value1, value2, "nameEn");
return (Criteria) this;
}
public Criteria andNameEnNotBetween(String value1, String value2) {
addCriterion("name_en not between", value1, value2, "nameEn");
return (Criteria) this;
}
public Criteria andSymbolIsNull() {
addCriterion("symbol is null");
return (Criteria) this;
}
public Criteria andSymbolIsNotNull() {
addCriterion("symbol is not null");
return (Criteria) this;
}
public Criteria andSymbolEqualTo(String value) {
addCriterion("symbol =", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolNotEqualTo(String value) {
addCriterion("symbol <>", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolGreaterThan(String value) {
addCriterion("symbol >", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolGreaterThanOrEqualTo(String value) {
addCriterion("symbol >=", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolLessThan(String value) {
addCriterion("symbol <", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolLessThanOrEqualTo(String value) {
addCriterion("symbol <=", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolLike(String value) {
addCriterion("symbol like", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolNotLike(String value) {
addCriterion("symbol not like", value, "symbol");
return (Criteria) this;
}
public Criteria andSymbolIn(List<String> values) {
addCriterion("symbol in", values, "symbol");
return (Criteria) this;
}
public Criteria andSymbolNotIn(List<String> values) {
addCriterion("symbol not in", values, "symbol");
return (Criteria) this;
}
public Criteria andSymbolBetween(String value1, String value2) {
addCriterion("symbol between", value1, value2, "symbol");
return (Criteria) this;
}
public Criteria andSymbolNotBetween(String value1, String value2) {
addCriterion("symbol not between", value1, value2, "symbol");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andContractIdIsNull() {
addCriterion("contract_id is null");
return (Criteria) this;
}
public Criteria andContractIdIsNotNull() {
addCriterion("contract_id is not null");
return (Criteria) this;
}
public Criteria andContractIdEqualTo(String value) {
addCriterion("contract_id =", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdNotEqualTo(String value) {
addCriterion("contract_id <>", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdGreaterThan(String value) {
addCriterion("contract_id >", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdGreaterThanOrEqualTo(String value) {
addCriterion("contract_id >=", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdLessThan(String value) {
addCriterion("contract_id <", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdLessThanOrEqualTo(String value) {
addCriterion("contract_id <=", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdLike(String value) {
addCriterion("contract_id like", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdNotLike(String value) {
addCriterion("contract_id not like", value, "contractId");
return (Criteria) this;
}
public Criteria andContractIdIn(List<String> values) {
addCriterion("contract_id in", values, "contractId");
return (Criteria) this;
}
public Criteria andContractIdNotIn(List<String> values) {
addCriterion("contract_id not in", values, "contractId");
return (Criteria) this;
}
public Criteria andContractIdBetween(String value1, String value2) {
addCriterion("contract_id between", value1, value2, "contractId");
return (Criteria) this;
}
public Criteria andContractIdNotBetween(String value1, String value2) {
addCriterion("contract_id not between", value1, value2, "contractId");
return (Criteria) this;
}
public Criteria andDecimalIsNull() {
addCriterion("decimal is null");
return (Criteria) this;
}
public Criteria andDecimalIsNotNull() {
addCriterion("decimal is not null");
return (Criteria) this;
}
public Criteria andDecimalEqualTo(Integer value) {
addCriterion("decimal =", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalNotEqualTo(Integer value) {
addCriterion("decimal <>", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalGreaterThan(Integer value) {
addCriterion("decimal >", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalGreaterThanOrEqualTo(Integer value) {
addCriterion("decimal >=", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalLessThan(Integer value) {
addCriterion("decimal <", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalLessThanOrEqualTo(Integer value) {
addCriterion("decimal <=", value, "decimal");
return (Criteria) this;
}
public Criteria andDecimalIn(List<Integer> values) {
addCriterion("decimal in", values, "decimal");
return (Criteria) this;
}
public Criteria andDecimalNotIn(List<Integer> values) {
addCriterion("decimal not in", values, "decimal");
return (Criteria) this;
}
public Criteria andDecimalBetween(Integer value1, Integer value2) {
addCriterion("decimal between", value1, value2, "decimal");
return (Criteria) this;
}
public Criteria andDecimalNotBetween(Integer value1, Integer value2) {
addCriterion("decimal not between", value1, value2, "decimal");
return (Criteria) this;
}
public Criteria andTotalSupplyIsNull() {
addCriterion("total_supply is null");
return (Criteria) this;
}
public Criteria andTotalSupplyIsNotNull() {
addCriterion("total_supply is not null");
return (Criteria) this;
}
public Criteria andTotalSupplyEqualTo(Long value) {
addCriterion("total_supply =", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyNotEqualTo(Long value) {
addCriterion("total_supply <>", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyGreaterThan(Long value) {
addCriterion("total_supply >", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyGreaterThanOrEqualTo(Long value) {
addCriterion("total_supply >=", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyLessThan(Long value) {
addCriterion("total_supply <", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyLessThanOrEqualTo(Long value) {
addCriterion("total_supply <=", value, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyIn(List<Long> values) {
addCriterion("total_supply in", values, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyNotIn(List<Long> values) {
addCriterion("total_supply not in", values, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyBetween(Long value1, Long value2) {
addCriterion("total_supply between", value1, value2, "totalSupply");
return (Criteria) this;
}
public Criteria andTotalSupplyNotBetween(Long value1, Long value2) {
addCriterion("total_supply not between", value1, value2, "totalSupply");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andEmailIsNull() {
addCriterion("email is null");
return (Criteria) this;
}
public Criteria andEmailIsNotNull() {
addCriterion("email is not null");
return (Criteria) this;
}
public Criteria andEmailEqualTo(String value) {
addCriterion("email =", value, "email");
return (Criteria) this;
}
public Criteria andEmailNotEqualTo(String value) {
addCriterion("email <>", value, "email");
return (Criteria) this;
}
public Criteria andEmailGreaterThan(String value) {
addCriterion("email >", value, "email");
return (Criteria) this;
}
public Criteria andEmailGreaterThanOrEqualTo(String value) {
addCriterion("email >=", value, "email");
return (Criteria) this;
}
public Criteria andEmailLessThan(String value) {
addCriterion("email <", value, "email");
return (Criteria) this;
}
public Criteria andEmailLessThanOrEqualTo(String value) {
addCriterion("email <=", value, "email");
return (Criteria) this;
}
public Criteria andEmailLike(String value) {
addCriterion("email like", value, "email");
return (Criteria) this;
}
public Criteria andEmailNotLike(String value) {
addCriterion("email not like", value, "email");
return (Criteria) this;
}
public Criteria andEmailIn(List<String> values) {
addCriterion("email in", values, "email");
return (Criteria) this;
}
public Criteria andEmailNotIn(List<String> values) {
addCriterion("email not in", values, "email");
return (Criteria) this;
}
public Criteria andEmailBetween(String value1, String value2) {
addCriterion("email between", value1, value2, "email");
return (Criteria) this;
}
public Criteria andEmailNotBetween(String value1, String value2) {
addCriterion("email not between", value1, value2, "email");
return (Criteria) this;
}
public Criteria andOfficailWebIsNull() {
addCriterion("officail_web is null");
return (Criteria) this;
}
public Criteria andOfficailWebIsNotNull() {
addCriterion("officail_web is not null");
return (Criteria) this;
}
public Criteria andOfficailWebEqualTo(String value) {
addCriterion("officail_web =", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebNotEqualTo(String value) {
addCriterion("officail_web <>", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebGreaterThan(String value) {
addCriterion("officail_web >", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebGreaterThanOrEqualTo(String value) {
addCriterion("officail_web >=", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebLessThan(String value) {
addCriterion("officail_web <", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebLessThanOrEqualTo(String value) {
addCriterion("officail_web <=", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebLike(String value) {
addCriterion("officail_web like", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebNotLike(String value) {
addCriterion("officail_web not like", value, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebIn(List<String> values) {
addCriterion("officail_web in", values, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebNotIn(List<String> values) {
addCriterion("officail_web not in", values, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebBetween(String value1, String value2) {
addCriterion("officail_web between", value1, value2, "officailWeb");
return (Criteria) this;
}
public Criteria andOfficailWebNotBetween(String value1, String value2) {
addCriterion("officail_web not between", value1, value2, "officailWeb");
return (Criteria) this;
}
public Criteria andLogoIsNull() {
addCriterion("logo is null");
return (Criteria) this;
}
public Criteria andLogoIsNotNull() {
addCriterion("logo is not null");
return (Criteria) this;
}
public Criteria andLogoEqualTo(String value) {
addCriterion("logo =", value, "logo");
return (Criteria) this;
}
public Criteria andLogoNotEqualTo(String value) {
addCriterion("logo <>", value, "logo");
return (Criteria) this;
}
public Criteria andLogoGreaterThan(String value) {
addCriterion("logo >", value, "logo");
return (Criteria) this;
}
public Criteria andLogoGreaterThanOrEqualTo(String value) {
addCriterion("logo >=", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLessThan(String value) {
addCriterion("logo <", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLessThanOrEqualTo(String value) {
addCriterion("logo <=", value, "logo");
return (Criteria) this;
}
public Criteria andLogoLike(String value) {
addCriterion("logo like", value, "logo");
return (Criteria) this;
}
public Criteria andLogoNotLike(String value) {
addCriterion("logo not like", value, "logo");
return (Criteria) this;
}
public Criteria andLogoIn(List<String> values) {
addCriterion("logo in", values, "logo");
return (Criteria) this;
}
public Criteria andLogoNotIn(List<String> values) {
addCriterion("logo not in", values, "logo");
return (Criteria) this;
}
public Criteria andLogoBetween(String value1, String value2) {
addCriterion("logo between", value1, value2, "logo");
return (Criteria) this;
}
public Criteria andLogoNotBetween(String value1, String value2) {
addCriterion("logo not between", value1, value2, "logo");
return (Criteria) this;
}
public Criteria andReasonIsNull() {
addCriterion("reason is null");
return (Criteria) this;
}
public Criteria andReasonIsNotNull() {
addCriterion("reason is not null");
return (Criteria) this;
}
public Criteria andReasonEqualTo(String value) {
addCriterion("reason =", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotEqualTo(String value) {
addCriterion("reason <>", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThan(String value) {
addCriterion("reason >", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThanOrEqualTo(String value) {
addCriterion("reason >=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThan(String value) {
addCriterion("reason <", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThanOrEqualTo(String value) {
addCriterion("reason <=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLike(String value) {
addCriterion("reason like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotLike(String value) {
addCriterion("reason not like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonIn(List<String> values) {
addCriterion("reason in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonNotIn(List<String> values) {
addCriterion("reason not in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonBetween(String value1, String value2) {
addCriterion("reason between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andReasonNotBetween(String value1, String value2) {
addCriterion("reason not between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.roo.service;
import com.roo.dto.DappsAuditDTO;
public interface DappsAuditService {
void save(DappsAuditDTO dto);
}
package com.roo.service;
import com.roo.dto.TokenAuditDTO;
public interface TokenAuditService {
void save(TokenAuditDTO dto);
}
package com.roo.service.impl;
import com.roo.dao.DappsAuditMapper;
import com.roo.dto.DappsAuditDTO;
import com.roo.entity.DappsAudit;
import com.roo.enums.AuditStatusEnum;
import com.roo.service.DappsAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
@Service
public class DappsAuditServiceImpl implements DappsAuditService {
@Autowired
private DappsAuditMapper dappsAuditMapper;
@Override
public void save(DappsAuditDTO dto) {
dappsAuditMapper.insert(DappsAudit.builder()
.chainCode(dto.getChainCode())
.createTime(new Date())
.description(dto.getDescription())
.instructions(dto.getInstructions())
.link(dto.getLink())
.logo(dto.getLogo())
.name(dto.getName())
.reason(dto.getReason())
.tel(dto.getTel())
.wechat(dto.getWechat())
.status(AuditStatusEnum.PENDING_REVIEW.getCode())
.build());
}
}
package com.roo.service.impl;
import com.roo.dao.TokenAuditMapper;
import com.roo.dto.TokenAuditDTO;
import com.roo.entity.TokenAudit;
import com.roo.enums.AuditStatusEnum;
import com.roo.service.TokenAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
@Service
public class TokenAuditServiceImpl implements TokenAuditService {
@Autowired
private TokenAuditMapper tokenAuditMapper;
@Override
public void save(TokenAuditDTO dto) {
tokenAuditMapper.insert(TokenAudit.builder()
.chainCode(dto.getChainCode())
.contractId(dto.getContractId())
.createTime(new Date())
.decimal(dto.getDecimal())
.description(dto.getDescription())
.email(dto.getEmail())
.logo(dto.getLogo())
.name(dto.getName())
.nameEn(dto.getNameEn())
.officailWeb(dto.getOfficailWeb())
.symbol(dto.getSymbol())
.totalSupply(dto.getTotalSupply())
.status(AuditStatusEnum.PENDING_REVIEW.getCode())
.build());
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!-- 导入配置文件 -->
<properties resource="bootstrap.yml"/>
<!-- defaultModelType="flat" 设置复合主键时不单独为主键创建实体 -->
<context id="MySql" defaultModelType="flat">
<!-- 生成的POJO实现java.io.Serializable接口 -->
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"/>
<!-- 覆盖生成的xml,而不是追加 -->
<commentGenerator>
<property name="suppressDate" value="true"/>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!-- 数据库连接,直接通过${}读取application.properties里的配置 -->
<jdbcConnection
driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://192.168.4.9:3306/roo_wallet?useUnicode=true&amp;characterEncoding=utf8"
userId="root"
password="MyNewPass@123">
<property name="nullCatalogMeansCurrent" value="true" />
</jdbcConnection>
<!-- 生成POJO对象 -->
<javaModelGenerator targetPackage="com.roo.entity"
targetProject="src/main/java">
</javaModelGenerator>
<!-- 生成mapper xml文件 -->
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- 生成mapper xml对应dao接口-->
<javaClientGenerator targetPackage="com.roo.dao"
targetProject="src/main/java" type="XMLMAPPER">
</javaClientGenerator>
<!--生成对应表及类名-->
<table tableName="t_token_audit" domainObjectName="TokenAudit"
enableCountByExample="true" enableUpdateByExample="true"
enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true">
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.roo.dao.DappsAuditMapper" >
<resultMap id="BaseResultMap" type="com.roo.entity.DappsAudit" >
<id column="id" property="id" jdbcType="BIGINT" />
<result column="chain_code" property="chainCode" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="link" property="link" jdbcType="VARCHAR" />
<result column="description" property="description" jdbcType="VARCHAR" />
<result column="logo" property="logo" jdbcType="VARCHAR" />
<result column="tel" property="tel" jdbcType="VARCHAR" />
<result column="wechat" property="wechat" jdbcType="VARCHAR" />
<result column="instructions" property="instructions" jdbcType="VARCHAR" />
<result column="reason" property="reason" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, chain_code, name, link, description, logo, tel, wechat, instructions, reason,
status, create_time, update_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.roo.entity.DappsAuditExample" >
select
<if test="distinct" >
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from t_dapps_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from t_dapps_audit
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from t_dapps_audit
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.roo.entity.DappsAuditExample" >
delete from t_dapps_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.roo.entity.DappsAudit" >
insert into t_dapps_audit (id, chain_code, name,
link, description, logo,
tel, wechat, instructions,
reason, status, create_time,
update_time)
values (#{id,jdbcType=BIGINT}, #{chainCode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{link,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
#{tel,jdbcType=VARCHAR}, #{wechat,jdbcType=VARCHAR}, #{instructions,jdbcType=VARCHAR},
#{reason,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.roo.entity.DappsAudit" >
insert into t_dapps_audit
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="chainCode != null" >
chain_code,
</if>
<if test="name != null" >
name,
</if>
<if test="link != null" >
link,
</if>
<if test="description != null" >
description,
</if>
<if test="logo != null" >
logo,
</if>
<if test="tel != null" >
tel,
</if>
<if test="wechat != null" >
wechat,
</if>
<if test="instructions != null" >
instructions,
</if>
<if test="reason != null" >
reason,
</if>
<if test="status != null" >
status,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="chainCode != null" >
#{chainCode,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="link != null" >
#{link,jdbcType=VARCHAR},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
#{logo,jdbcType=VARCHAR},
</if>
<if test="tel != null" >
#{tel,jdbcType=VARCHAR},
</if>
<if test="wechat != null" >
#{wechat,jdbcType=VARCHAR},
</if>
<if test="instructions != null" >
#{instructions,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
#{reason,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.roo.entity.DappsAuditExample" resultType="java.lang.Integer" >
select count(*) from t_dapps_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update t_dapps_audit
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.chainCode != null" >
chain_code = #{record.chainCode,jdbcType=VARCHAR},
</if>
<if test="record.name != null" >
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.link != null" >
link = #{record.link,jdbcType=VARCHAR},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.logo != null" >
logo = #{record.logo,jdbcType=VARCHAR},
</if>
<if test="record.tel != null" >
tel = #{record.tel,jdbcType=VARCHAR},
</if>
<if test="record.wechat != null" >
wechat = #{record.wechat,jdbcType=VARCHAR},
</if>
<if test="record.instructions != null" >
instructions = #{record.instructions,jdbcType=VARCHAR},
</if>
<if test="record.reason != null" >
reason = #{record.reason,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null" >
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update t_dapps_audit
set id = #{record.id,jdbcType=BIGINT},
chain_code = #{record.chainCode,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
link = #{record.link,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
logo = #{record.logo,jdbcType=VARCHAR},
tel = #{record.tel,jdbcType=VARCHAR},
wechat = #{record.wechat,jdbcType=VARCHAR},
instructions = #{record.instructions,jdbcType=VARCHAR},
reason = #{record.reason,jdbcType=VARCHAR},
status = #{record.status,jdbcType=TINYINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.roo.entity.DappsAudit" >
update t_dapps_audit
<set >
<if test="chainCode != null" >
chain_code = #{chainCode,jdbcType=VARCHAR},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="link != null" >
link = #{link,jdbcType=VARCHAR},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="tel != null" >
tel = #{tel,jdbcType=VARCHAR},
</if>
<if test="wechat != null" >
wechat = #{wechat,jdbcType=VARCHAR},
</if>
<if test="instructions != null" >
instructions = #{instructions,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.roo.entity.DappsAudit" >
update t_dapps_audit
set chain_code = #{chainCode,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
link = #{link,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
tel = #{tel,jdbcType=VARCHAR},
wechat = #{wechat,jdbcType=VARCHAR},
instructions = #{instructions,jdbcType=VARCHAR},
reason = #{reason,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.roo.dao.TokenAuditMapper" >
<resultMap id="BaseResultMap" type="com.roo.entity.TokenAudit" >
<id column="id" property="id" jdbcType="BIGINT" />
<result column="chain_code" property="chainCode" jdbcType="VARCHAR" />
<result column="name_en" property="nameEn" jdbcType="VARCHAR" />
<result column="symbol" property="symbol" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="contract_id" property="contractId" jdbcType="VARCHAR" />
<result column="decimal" property="decimal" jdbcType="INTEGER" />
<result column="total_supply" property="totalSupply" jdbcType="BIGINT" />
<result column="description" property="description" jdbcType="VARCHAR" />
<result column="email" property="email" jdbcType="VARCHAR" />
<result column="officail_web" property="officailWeb" jdbcType="VARCHAR" />
<result column="logo" property="logo" jdbcType="VARCHAR" />
<result column="reason" property="reason" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
id, chain_code, name_en, symbol, name, contract_id, decimal, total_supply, description,
email, officail_web, logo, reason, status, create_time, update_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.roo.entity.TokenAuditExample" >
select
<if test="distinct" >
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from t_token_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from t_token_audit
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from t_token_audit
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.roo.entity.TokenAuditExample" >
delete from t_token_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.roo.entity.TokenAudit" >
insert into t_token_audit (id, chain_code, name_en,
symbol, name, contract_id,
decimal, total_supply, description,
email, officail_web, logo,
reason, status, create_time,
update_time)
values (#{id,jdbcType=BIGINT}, #{chainCode,jdbcType=VARCHAR}, #{nameEn,jdbcType=VARCHAR},
#{symbol,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR},
#{decimal,jdbcType=INTEGER}, #{totalSupply,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{officailWeb,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
#{reason,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.roo.entity.TokenAudit" >
insert into t_token_audit
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="chainCode != null" >
chain_code,
</if>
<if test="nameEn != null" >
name_en,
</if>
<if test="symbol != null" >
symbol,
</if>
<if test="name != null" >
name,
</if>
<if test="contractId != null" >
contract_id,
</if>
<if test="decimal != null" >
decimal,
</if>
<if test="totalSupply != null" >
total_supply,
</if>
<if test="description != null" >
description,
</if>
<if test="email != null" >
email,
</if>
<if test="officailWeb != null" >
officail_web,
</if>
<if test="logo != null" >
logo,
</if>
<if test="reason != null" >
reason,
</if>
<if test="status != null" >
status,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="chainCode != null" >
#{chainCode,jdbcType=VARCHAR},
</if>
<if test="nameEn != null" >
#{nameEn,jdbcType=VARCHAR},
</if>
<if test="symbol != null" >
#{symbol,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="contractId != null" >
#{contractId,jdbcType=VARCHAR},
</if>
<if test="decimal != null" >
#{decimal,jdbcType=INTEGER},
</if>
<if test="totalSupply != null" >
#{totalSupply,jdbcType=BIGINT},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="email != null" >
#{email,jdbcType=VARCHAR},
</if>
<if test="officailWeb != null" >
#{officailWeb,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
#{logo,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
#{reason,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.roo.entity.TokenAuditExample" resultType="java.lang.Integer" >
select count(*) from t_token_audit
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update t_token_audit
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.chainCode != null" >
chain_code = #{record.chainCode,jdbcType=VARCHAR},
</if>
<if test="record.nameEn != null" >
name_en = #{record.nameEn,jdbcType=VARCHAR},
</if>
<if test="record.symbol != null" >
symbol = #{record.symbol,jdbcType=VARCHAR},
</if>
<if test="record.name != null" >
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.contractId != null" >
contract_id = #{record.contractId,jdbcType=VARCHAR},
</if>
<if test="record.decimal != null" >
decimal = #{record.decimal,jdbcType=INTEGER},
</if>
<if test="record.totalSupply != null" >
total_supply = #{record.totalSupply,jdbcType=BIGINT},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.email != null" >
email = #{record.email,jdbcType=VARCHAR},
</if>
<if test="record.officailWeb != null" >
officail_web = #{record.officailWeb,jdbcType=VARCHAR},
</if>
<if test="record.logo != null" >
logo = #{record.logo,jdbcType=VARCHAR},
</if>
<if test="record.reason != null" >
reason = #{record.reason,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null" >
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update t_token_audit
set id = #{record.id,jdbcType=BIGINT},
chain_code = #{record.chainCode,jdbcType=VARCHAR},
name_en = #{record.nameEn,jdbcType=VARCHAR},
symbol = #{record.symbol,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
contract_id = #{record.contractId,jdbcType=VARCHAR},
decimal = #{record.decimal,jdbcType=INTEGER},
total_supply = #{record.totalSupply,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR},
officail_web = #{record.officailWeb,jdbcType=VARCHAR},
logo = #{record.logo,jdbcType=VARCHAR},
reason = #{record.reason,jdbcType=VARCHAR},
status = #{record.status,jdbcType=TINYINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.roo.entity.TokenAudit" >
update t_token_audit
<set >
<if test="chainCode != null" >
chain_code = #{chainCode,jdbcType=VARCHAR},
</if>
<if test="nameEn != null" >
name_en = #{nameEn,jdbcType=VARCHAR},
</if>
<if test="symbol != null" >
symbol = #{symbol,jdbcType=VARCHAR},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="contractId != null" >
contract_id = #{contractId,jdbcType=VARCHAR},
</if>
<if test="decimal != null" >
decimal = #{decimal,jdbcType=INTEGER},
</if>
<if test="totalSupply != null" >
total_supply = #{totalSupply,jdbcType=BIGINT},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="email != null" >
email = #{email,jdbcType=VARCHAR},
</if>
<if test="officailWeb != null" >
officail_web = #{officailWeb,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.roo.entity.TokenAudit" >
update t_token_audit
set chain_code = #{chainCode,jdbcType=VARCHAR},
name_en = #{nameEn,jdbcType=VARCHAR},
symbol = #{symbol,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
contract_id = #{contractId,jdbcType=VARCHAR},
decimal = #{decimal,jdbcType=INTEGER},
total_supply = #{totalSupply,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
officail_web = #{officailWeb,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
reason = #{reason,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment