Commit 268f74cb authored by shiyu's avatar shiyu

结算记录

parent e699f9bb
package com.wwdz.ch.db.domain.distribution;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import com.xxdxxs.entity.Entity;
import lombok.Data;
/**
* @author shiyu
* @date 2024/07/11
*/
@Data
public class SettlementRecord implements Entity {
/**
* id
*/
private Long id;
/**
* 结算id
*/
private String settlementId;
/**
* 用户id
*/
private Long userId;
/**
* 银行卡号
*/
private String bankCardId;
/**
* 真实姓名
*/
private String realUserName;
/**
* 结算金额
*/
private Long settleAmount;
/**
* 结算时间
*/
private Date settleTime;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 关联账单id
*/
private String billId;
/**
* 类型
*/
private Integer type;
/**
* 状态
*/
private Integer state;
/**
* 结算凭证
*/
private String voucher;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", settlementId=").append(settlementId);
sb.append(", userId=").append(userId);
sb.append(", bankCardId=").append(bankCardId);
sb.append(", realUserName=").append(realUserName);
sb.append(", settleAmount=").append(settleAmount);
sb.append(", settleTime=").append(settleTime);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", billId=").append(billId);
sb.append(", type=").append(type);
sb.append(", state=").append(state);
sb.append(", voucher=").append(voucher);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SettlementRecord other = (SettlementRecord) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getSettlementId() == null ? other.getSettlementId() == null : this.getSettlementId().equals(other.getSettlementId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getBankCardId() == null ? other.getBankCardId() == null : this.getBankCardId().equals(other.getBankCardId()))
&& (this.getRealUserName() == null ? other.getRealUserName() == null : this.getRealUserName().equals(other.getRealUserName()))
&& (this.getSettleAmount() == null ? other.getSettleAmount() == null : this.getSettleAmount().equals(other.getSettleAmount()))
&& (this.getSettleTime() == null ? other.getSettleTime() == null : this.getSettleTime().equals(other.getSettleTime()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getBillId() == null ? other.getBillId() == null : this.getBillId().equals(other.getBillId()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
&& (this.getVoucher() == null ? other.getVoucher() == null : this.getVoucher().equals(other.getVoucher()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getSettlementId() == null) ? 0 : getSettlementId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getBankCardId() == null) ? 0 : getBankCardId().hashCode());
result = prime * result + ((getRealUserName() == null) ? 0 : getRealUserName().hashCode());
result = prime * result + ((getSettleAmount() == null) ? 0 : getSettleAmount().hashCode());
result = prime * result + ((getSettleTime() == null) ? 0 : getSettleTime().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getBillId() == null) ? 0 : getBillId().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
result = prime * result + ((getVoucher() == null) ? 0 : getVoucher().hashCode());
return result;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
settlementId("settlement_id", "settlementId", "VARCHAR", false),
userId("user_id", "userId", "BIGINT", false),
bankCardId("bank_card_id", "bankCardId", "VARCHAR", false),
realUserName("real_user_name", "realUserName", "VARCHAR", false),
settleAmount("settle_amount", "settleAmount", "BIGINT", false),
settleTime("settle_time", "settleTime", "TIMESTAMP", false),
createTime("create_time", "createTime", "TIMESTAMP", false),
updateTime("update_time", "updateTime", "TIMESTAMP", false),
billId("bill_id", "billId", "VARCHAR", false),
type("type", "type", "INTEGER", true),
state("state", "state", "INTEGER", true),
voucher("voucher", "voucher", "LONGVARCHAR", false);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String BEGINNING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String value() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getValue() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.getEscapedColumnName() + " DESC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.getEscapedColumnName() + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain.distribution;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SettlementRecordExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SettlementRecordExample() {
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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public SettlementRecordExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public SettlementRecordExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
SettlementRecordExample example = new SettlementRecordExample();
return example.createCriteria();
}
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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
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 andSettlementIdIsNull() {
addCriterion("settlement_id is null");
return (Criteria) this;
}
public Criteria andSettlementIdIsNotNull() {
addCriterion("settlement_id is not null");
return (Criteria) this;
}
public Criteria andSettlementIdEqualTo(String value) {
addCriterion("settlement_id =", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdNotEqualTo(String value) {
addCriterion("settlement_id <>", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdGreaterThan(String value) {
addCriterion("settlement_id >", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdGreaterThanOrEqualTo(String value) {
addCriterion("settlement_id >=", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdLessThan(String value) {
addCriterion("settlement_id <", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdLessThanOrEqualTo(String value) {
addCriterion("settlement_id <=", value, "settlementId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettlementIdLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settlement_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettlementIdLike(String value) {
addCriterion("settlement_id like", value, "settlementId");
return (Criteria) this;
}
public Criteria andSettlementIdNotLike(String value) {
addCriterion("settlement_id not like", value, "settlementId");
return (Criteria) this;
}
public Criteria andSettlementIdIn(List<String> values) {
addCriterion("settlement_id in", values, "settlementId");
return (Criteria) this;
}
public Criteria andSettlementIdNotIn(List<String> values) {
addCriterion("settlement_id not in", values, "settlementId");
return (Criteria) this;
}
public Criteria andSettlementIdBetween(String value1, String value2) {
addCriterion("settlement_id between", value1, value2, "settlementId");
return (Criteria) this;
}
public Criteria andSettlementIdNotBetween(String value1, String value2) {
addCriterion("settlement_id not between", value1, value2, "settlementId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUserIdLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("user_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andBankCardIdIsNull() {
addCriterion("bank_card_id is null");
return (Criteria) this;
}
public Criteria andBankCardIdIsNotNull() {
addCriterion("bank_card_id is not null");
return (Criteria) this;
}
public Criteria andBankCardIdEqualTo(String value) {
addCriterion("bank_card_id =", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdNotEqualTo(String value) {
addCriterion("bank_card_id <>", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdGreaterThan(String value) {
addCriterion("bank_card_id >", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdGreaterThanOrEqualTo(String value) {
addCriterion("bank_card_id >=", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdLessThan(String value) {
addCriterion("bank_card_id <", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdLessThanOrEqualTo(String value) {
addCriterion("bank_card_id <=", value, "bankCardId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBankCardIdLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bank_card_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBankCardIdLike(String value) {
addCriterion("bank_card_id like", value, "bankCardId");
return (Criteria) this;
}
public Criteria andBankCardIdNotLike(String value) {
addCriterion("bank_card_id not like", value, "bankCardId");
return (Criteria) this;
}
public Criteria andBankCardIdIn(List<String> values) {
addCriterion("bank_card_id in", values, "bankCardId");
return (Criteria) this;
}
public Criteria andBankCardIdNotIn(List<String> values) {
addCriterion("bank_card_id not in", values, "bankCardId");
return (Criteria) this;
}
public Criteria andBankCardIdBetween(String value1, String value2) {
addCriterion("bank_card_id between", value1, value2, "bankCardId");
return (Criteria) this;
}
public Criteria andBankCardIdNotBetween(String value1, String value2) {
addCriterion("bank_card_id not between", value1, value2, "bankCardId");
return (Criteria) this;
}
public Criteria andRealUserNameIsNull() {
addCriterion("real_user_name is null");
return (Criteria) this;
}
public Criteria andRealUserNameIsNotNull() {
addCriterion("real_user_name is not null");
return (Criteria) this;
}
public Criteria andRealUserNameEqualTo(String value) {
addCriterion("real_user_name =", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameNotEqualTo(String value) {
addCriterion("real_user_name <>", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameGreaterThan(String value) {
addCriterion("real_user_name >", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameGreaterThanOrEqualTo(String value) {
addCriterion("real_user_name >=", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameLessThan(String value) {
addCriterion("real_user_name <", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameLessThanOrEqualTo(String value) {
addCriterion("real_user_name <=", value, "realUserName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRealUserNameLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("real_user_name <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRealUserNameLike(String value) {
addCriterion("real_user_name like", value, "realUserName");
return (Criteria) this;
}
public Criteria andRealUserNameNotLike(String value) {
addCriterion("real_user_name not like", value, "realUserName");
return (Criteria) this;
}
public Criteria andRealUserNameIn(List<String> values) {
addCriterion("real_user_name in", values, "realUserName");
return (Criteria) this;
}
public Criteria andRealUserNameNotIn(List<String> values) {
addCriterion("real_user_name not in", values, "realUserName");
return (Criteria) this;
}
public Criteria andRealUserNameBetween(String value1, String value2) {
addCriterion("real_user_name between", value1, value2, "realUserName");
return (Criteria) this;
}
public Criteria andRealUserNameNotBetween(String value1, String value2) {
addCriterion("real_user_name not between", value1, value2, "realUserName");
return (Criteria) this;
}
public Criteria andSettleAmountIsNull() {
addCriterion("settle_amount is null");
return (Criteria) this;
}
public Criteria andSettleAmountIsNotNull() {
addCriterion("settle_amount is not null");
return (Criteria) this;
}
public Criteria andSettleAmountEqualTo(Long value) {
addCriterion("settle_amount =", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountNotEqualTo(Long value) {
addCriterion("settle_amount <>", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountGreaterThan(Long value) {
addCriterion("settle_amount >", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountGreaterThanOrEqualTo(Long value) {
addCriterion("settle_amount >=", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountLessThan(Long value) {
addCriterion("settle_amount <", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountLessThanOrEqualTo(Long value) {
addCriterion("settle_amount <=", value, "settleAmount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleAmountLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_amount <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleAmountIn(List<Long> values) {
addCriterion("settle_amount in", values, "settleAmount");
return (Criteria) this;
}
public Criteria andSettleAmountNotIn(List<Long> values) {
addCriterion("settle_amount not in", values, "settleAmount");
return (Criteria) this;
}
public Criteria andSettleAmountBetween(Long value1, Long value2) {
addCriterion("settle_amount between", value1, value2, "settleAmount");
return (Criteria) this;
}
public Criteria andSettleAmountNotBetween(Long value1, Long value2) {
addCriterion("settle_amount not between", value1, value2, "settleAmount");
return (Criteria) this;
}
public Criteria andSettleTimeIsNull() {
addCriterion("settle_time is null");
return (Criteria) this;
}
public Criteria andSettleTimeIsNotNull() {
addCriterion("settle_time is not null");
return (Criteria) this;
}
public Criteria andSettleTimeEqualTo(Date value) {
addCriterion("settle_time =", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeNotEqualTo(Date value) {
addCriterion("settle_time <>", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeGreaterThan(Date value) {
addCriterion("settle_time >", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeGreaterThanOrEqualTo(Date value) {
addCriterion("settle_time >=", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeLessThan(Date value) {
addCriterion("settle_time <", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeLessThanOrEqualTo(Date value) {
addCriterion("settle_time <=", value, "settleTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSettleTimeLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("settle_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSettleTimeIn(List<Date> values) {
addCriterion("settle_time in", values, "settleTime");
return (Criteria) this;
}
public Criteria andSettleTimeNotIn(List<Date> values) {
addCriterion("settle_time not in", values, "settleTime");
return (Criteria) this;
}
public Criteria andSettleTimeBetween(Date value1, Date value2) {
addCriterion("settle_time between", value1, value2, "settleTime");
return (Criteria) this;
}
public Criteria andSettleTimeNotBetween(Date value1, Date value2) {
addCriterion("settle_time not between", value1, value2, "settleTime");
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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
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 Criteria andBillIdIsNull() {
addCriterion("bill_id is null");
return (Criteria) this;
}
public Criteria andBillIdIsNotNull() {
addCriterion("bill_id is not null");
return (Criteria) this;
}
public Criteria andBillIdEqualTo(String value) {
addCriterion("bill_id =", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdNotEqualTo(String value) {
addCriterion("bill_id <>", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdGreaterThan(String value) {
addCriterion("bill_id >", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdGreaterThanOrEqualTo(String value) {
addCriterion("bill_id >=", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdLessThan(String value) {
addCriterion("bill_id <", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdLessThanOrEqualTo(String value) {
addCriterion("bill_id <=", value, "billId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBillIdLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("bill_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBillIdLike(String value) {
addCriterion("bill_id like", value, "billId");
return (Criteria) this;
}
public Criteria andBillIdNotLike(String value) {
addCriterion("bill_id not like", value, "billId");
return (Criteria) this;
}
public Criteria andBillIdIn(List<String> values) {
addCriterion("bill_id in", values, "billId");
return (Criteria) this;
}
public Criteria andBillIdNotIn(List<String> values) {
addCriterion("bill_id not in", values, "billId");
return (Criteria) this;
}
public Criteria andBillIdBetween(String value1, String value2) {
addCriterion("bill_id between", value1, value2, "billId");
return (Criteria) this;
}
public Criteria andBillIdNotBetween(String value1, String value2) {
addCriterion("bill_id not between", value1, value2, "billId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTypeLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`type` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andStateIsNull() {
addCriterion("`state` is null");
return (Criteria) this;
}
public Criteria andStateIsNotNull() {
addCriterion("`state` is not null");
return (Criteria) this;
}
public Criteria andStateEqualTo(Integer value) {
addCriterion("`state` =", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateNotEqualTo(Integer value) {
addCriterion("`state` <>", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateNotEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateGreaterThan(Integer value) {
addCriterion("`state` >", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateGreaterThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateGreaterThanOrEqualTo(Integer value) {
addCriterion("`state` >=", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateGreaterThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateLessThan(Integer value) {
addCriterion("`state` <", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateLessThanColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateLessThanOrEqualTo(Integer value) {
addCriterion("`state` <=", value, "state");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andStateLessThanOrEqualToColumn(SettlementRecord.Column column) {
addCriterion(new StringBuilder("`state` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andStateIn(List<Integer> values) {
addCriterion("`state` in", values, "state");
return (Criteria) this;
}
public Criteria andStateNotIn(List<Integer> values) {
addCriterion("`state` not in", values, "state");
return (Criteria) this;
}
public Criteria andStateBetween(Integer value1, Integer value2) {
addCriterion("`state` between", value1, value2, "state");
return (Criteria) this;
}
public Criteria andStateNotBetween(Integer value1, Integer value2) {
addCriterion("`state` not between", value1, value2, "state");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private SettlementRecordExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(SettlementRecordExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public SettlementRecordExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
if (ifAdd) {
add.add(this);
}
return this;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
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.wwdz.ch.db.mapper.distribution;
import com.wwdz.ch.db.domain.distribution.SettlementRecord;
import com.wwdz.ch.db.domain.distribution.SettlementRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SettlementRecordMapper {
long countByExample(SettlementRecordExample example);
int deleteByExample(SettlementRecordExample example);
int deleteByPrimaryKey(Long id);
int insert(SettlementRecord record);
int insertSelective(SettlementRecord record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
SettlementRecord selectOneByExample(SettlementRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
SettlementRecord selectOneByExampleSelective(@Param("example") SettlementRecordExample example, @Param("selective") SettlementRecord.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
SettlementRecord selectOneByExampleWithBLOBs(SettlementRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<SettlementRecord> selectByExampleSelective(@Param("example") SettlementRecordExample example, @Param("selective") SettlementRecord.Column ... selective);
List<SettlementRecord> selectByExampleWithBLOBs(SettlementRecordExample example);
List<SettlementRecord> selectByExample(SettlementRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table settlement_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
SettlementRecord selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") SettlementRecord.Column ... selective);
SettlementRecord selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SettlementRecord record, @Param("example") SettlementRecordExample example);
int updateByExampleWithBLOBs(@Param("record") SettlementRecord record, @Param("example") SettlementRecordExample example);
int updateByExample(@Param("record") SettlementRecord record, @Param("example") SettlementRecordExample example);
int updateByPrimaryKeySelective(SettlementRecord record);
int updateByPrimaryKeyWithBLOBs(SettlementRecord record);
int updateByPrimaryKey(SettlementRecord record);
}
\ 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.wwdz.ch.db.mapper.distribution.SettlementRecordMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.distribution.SettlementRecord">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="settlement_id" jdbcType="VARCHAR" property="settlementId" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="bank_card_id" jdbcType="VARCHAR" property="bankCardId" />
<result column="real_user_name" jdbcType="VARCHAR" property="realUserName" />
<result column="settle_amount" jdbcType="BIGINT" property="settleAmount" />
<result column="settle_time" jdbcType="TIMESTAMP" property="settleTime" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="bill_id" jdbcType="VARCHAR" property="billId" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="state" jdbcType="INTEGER" property="state" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.distribution.SettlementRecord">
<result column="voucher" jdbcType="LONGVARCHAR" property="voucher" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<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 close=")" collection="criterion.value" item="listItem" open="(" 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="(" prefixOverrides="and" suffix=")">
<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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, settlement_id, user_id, bank_card_id, real_user_name, settle_amount, settle_time,
create_time, update_time, bill_id, `type`, `state`
</sql>
<sql id="Blob_Column_List">
voucher
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if test="example.distinct">
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, settlement_id, user_id, bank_card_id, real_user_name, settle_amount, settle_time,
create_time, update_time, bill_id, `type`, `state`, voucher
</otherwise>
</choose>
from settlement_record
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from settlement_record
where id = #{id,jdbcType=BIGINT}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, settlement_id, user_id, bank_card_id, real_user_name, settle_amount, settle_time,
create_time, update_time, bill_id, `type`, `state`, voucher
</otherwise>
</choose>
from settlement_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from settlement_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample">
delete from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into settlement_record (settlement_id, user_id, bank_card_id,
real_user_name, settle_amount, settle_time,
create_time, update_time, bill_id,
`type`, `state`, voucher
)
values (#{settlementId,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{bankCardId,jdbcType=VARCHAR},
#{realUserName,jdbcType=VARCHAR}, #{settleAmount,jdbcType=BIGINT}, #{settleTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{billId,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}, #{voucher,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into settlement_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="settlementId != null">
settlement_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="bankCardId != null">
bank_card_id,
</if>
<if test="realUserName != null">
real_user_name,
</if>
<if test="settleAmount != null">
settle_amount,
</if>
<if test="settleTime != null">
settle_time,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="billId != null">
bill_id,
</if>
<if test="type != null">
`type`,
</if>
<if test="state != null">
`state`,
</if>
<if test="voucher != null">
voucher,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="settlementId != null">
#{settlementId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="bankCardId != null">
#{bankCardId,jdbcType=VARCHAR},
</if>
<if test="realUserName != null">
#{realUserName,jdbcType=VARCHAR},
</if>
<if test="settleAmount != null">
#{settleAmount,jdbcType=BIGINT},
</if>
<if test="settleTime != null">
#{settleTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="billId != null">
#{billId,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="state != null">
#{state,jdbcType=INTEGER},
</if>
<if test="voucher != null">
#{voucher,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample" resultType="java.lang.Long">
select count(*) from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update settlement_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.settlementId != null">
settlement_id = #{record.settlementId,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.bankCardId != null">
bank_card_id = #{record.bankCardId,jdbcType=VARCHAR},
</if>
<if test="record.realUserName != null">
real_user_name = #{record.realUserName,jdbcType=VARCHAR},
</if>
<if test="record.settleAmount != null">
settle_amount = #{record.settleAmount,jdbcType=BIGINT},
</if>
<if test="record.settleTime != null">
settle_time = #{record.settleTime,jdbcType=TIMESTAMP},
</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>
<if test="record.billId != null">
bill_id = #{record.billId,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.state != null">
`state` = #{record.state,jdbcType=INTEGER},
</if>
<if test="record.voucher != null">
voucher = #{record.voucher,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update settlement_record
set id = #{record.id,jdbcType=BIGINT},
settlement_id = #{record.settlementId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
bank_card_id = #{record.bankCardId,jdbcType=VARCHAR},
real_user_name = #{record.realUserName,jdbcType=VARCHAR},
settle_amount = #{record.settleAmount,jdbcType=BIGINT},
settle_time = #{record.settleTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
bill_id = #{record.billId,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER},
voucher = #{record.voucher,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update settlement_record
set id = #{record.id,jdbcType=BIGINT},
settlement_id = #{record.settlementId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
bank_card_id = #{record.bankCardId,jdbcType=VARCHAR},
real_user_name = #{record.realUserName,jdbcType=VARCHAR},
settle_amount = #{record.settleAmount,jdbcType=BIGINT},
settle_time = #{record.settleTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
bill_id = #{record.billId,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecord">
update settlement_record
<set>
<if test="settlementId != null">
settlement_id = #{settlementId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="bankCardId != null">
bank_card_id = #{bankCardId,jdbcType=VARCHAR},
</if>
<if test="realUserName != null">
real_user_name = #{realUserName,jdbcType=VARCHAR},
</if>
<if test="settleAmount != null">
settle_amount = #{settleAmount,jdbcType=BIGINT},
</if>
<if test="settleTime != null">
settle_time = #{settleTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="billId != null">
bill_id = #{billId,jdbcType=VARCHAR},
</if>
<if test="type != null">
`type` = #{type,jdbcType=INTEGER},
</if>
<if test="state != null">
`state` = #{state,jdbcType=INTEGER},
</if>
<if test="voucher != null">
voucher = #{voucher,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecord">
update settlement_record
set settlement_id = #{settlementId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
bank_card_id = #{bankCardId,jdbcType=VARCHAR},
real_user_name = #{realUserName,jdbcType=VARCHAR},
settle_amount = #{settleAmount,jdbcType=BIGINT},
settle_time = #{settleTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
bill_id = #{billId,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER},
voucher = #{voucher,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecord">
update settlement_record
set settlement_id = #{settlementId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
bank_card_id = #{bankCardId,jdbcType=VARCHAR},
real_user_name = #{realUserName,jdbcType=VARCHAR},
settle_amount = #{settleAmount,jdbcType=BIGINT},
settle_time = #{settleTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
bill_id = #{billId,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.distribution.SettlementRecordExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from settlement_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, settlement_id, user_id, bank_card_id, real_user_name, settle_amount, settle_time,
create_time, update_time, bill_id, `type`, `state`, voucher
</otherwise>
</choose>
from settlement_record
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<javaClientGenerator type="XMLMAPPER" targetPackage="com.wwdz.ch.db.mapper.distribution" <javaClientGenerator type="XMLMAPPER" targetPackage="com.wwdz.ch.db.mapper.distribution"
targetProject="ch-dao/src/main/java"/> targetProject="ch-dao/src/main/java"/>
<table tableName="distributor_profit" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"> <table tableName="settlement_record" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true">
<generatedKey column="id" sqlStatement="Mysql" identity="true" /> <generatedKey column="id" sqlStatement="Mysql" identity="true" />
</table> </table>
......
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