53 changed files with 9982 additions and 1988 deletions
@ -0,0 +1,84 @@ |
|||||
|
package com.ccsens.game.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class GameGroup implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long recordId; |
||||
|
|
||||
|
private String name; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getRecordId() { |
||||
|
return recordId; |
||||
|
} |
||||
|
|
||||
|
public void setRecordId(Long recordId) { |
||||
|
this.recordId = recordId; |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public void setName(String name) { |
||||
|
this.name = name == null ? null : name.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", recordId=").append(recordId); |
||||
|
sb.append(", name=").append(name); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,571 @@ |
|||||
|
package com.ccsens.game.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class GameGroupExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public GameGroupExample() { |
||||
|
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 andRecordIdIsNull() { |
||||
|
addCriterion("record_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdIsNotNull() { |
||||
|
addCriterion("record_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdEqualTo(Long value) { |
||||
|
addCriterion("record_id =", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdNotEqualTo(Long value) { |
||||
|
addCriterion("record_id <>", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdGreaterThan(Long value) { |
||||
|
addCriterion("record_id >", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("record_id >=", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdLessThan(Long value) { |
||||
|
addCriterion("record_id <", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("record_id <=", value, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdIn(List<Long> values) { |
||||
|
addCriterion("record_id in", values, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdNotIn(List<Long> values) { |
||||
|
addCriterion("record_id not in", values, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("record_id between", value1, value2, "recordId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecordIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("record_id not between", value1, value2, "recordId"); |
||||
|
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 andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
package com.ccsens.game.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class GameUserJoinGroup implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long userJoinId; |
||||
|
|
||||
|
private Long gameGroupId; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getUserJoinId() { |
||||
|
return userJoinId; |
||||
|
} |
||||
|
|
||||
|
public void setUserJoinId(Long userJoinId) { |
||||
|
this.userJoinId = userJoinId; |
||||
|
} |
||||
|
|
||||
|
public Long getGameGroupId() { |
||||
|
return gameGroupId; |
||||
|
} |
||||
|
|
||||
|
public void setGameGroupId(Long gameGroupId) { |
||||
|
this.gameGroupId = gameGroupId; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", userJoinId=").append(userJoinId); |
||||
|
sb.append(", gameGroupId=").append(gameGroupId); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,561 @@ |
|||||
|
package com.ccsens.game.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class GameUserJoinGroupExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public GameUserJoinGroupExample() { |
||||
|
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 andUserJoinIdIsNull() { |
||||
|
addCriterion("user_join_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdIsNotNull() { |
||||
|
addCriterion("user_join_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdEqualTo(Long value) { |
||||
|
addCriterion("user_join_id =", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdNotEqualTo(Long value) { |
||||
|
addCriterion("user_join_id <>", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdGreaterThan(Long value) { |
||||
|
addCriterion("user_join_id >", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_join_id >=", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdLessThan(Long value) { |
||||
|
addCriterion("user_join_id <", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_join_id <=", value, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdIn(List<Long> values) { |
||||
|
addCriterion("user_join_id in", values, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdNotIn(List<Long> values) { |
||||
|
addCriterion("user_join_id not in", values, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_join_id between", value1, value2, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserJoinIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_join_id not between", value1, value2, "userJoinId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdIsNull() { |
||||
|
addCriterion("game_group_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdIsNotNull() { |
||||
|
addCriterion("game_group_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdEqualTo(Long value) { |
||||
|
addCriterion("game_group_id =", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdNotEqualTo(Long value) { |
||||
|
addCriterion("game_group_id <>", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdGreaterThan(Long value) { |
||||
|
addCriterion("game_group_id >", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("game_group_id >=", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdLessThan(Long value) { |
||||
|
addCriterion("game_group_id <", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("game_group_id <=", value, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdIn(List<Long> values) { |
||||
|
addCriterion("game_group_id in", values, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdNotIn(List<Long> values) { |
||||
|
addCriterion("game_group_id not in", values, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("game_group_id between", value1, value2, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andGameGroupIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("game_group_id not between", value1, value2, "gameGroupId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.game.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.game.bean.po.GameGroup; |
||||
|
import com.ccsens.game.bean.po.GameGroupExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface GameGroupMapper { |
||||
|
long countByExample(GameGroupExample example); |
||||
|
|
||||
|
int deleteByExample(GameGroupExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(GameGroup record); |
||||
|
|
||||
|
int insertSelective(GameGroup record); |
||||
|
|
||||
|
List<GameGroup> selectByExample(GameGroupExample example); |
||||
|
|
||||
|
GameGroup selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") GameGroup record, @Param("example") GameGroupExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") GameGroup record, @Param("example") GameGroupExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(GameGroup record); |
||||
|
|
||||
|
int updateByPrimaryKey(GameGroup record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.game.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.game.bean.po.GameUserJoinGroup; |
||||
|
import com.ccsens.game.bean.po.GameUserJoinGroupExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface GameUserJoinGroupMapper { |
||||
|
long countByExample(GameUserJoinGroupExample example); |
||||
|
|
||||
|
int deleteByExample(GameUserJoinGroupExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(GameUserJoinGroup record); |
||||
|
|
||||
|
int insertSelective(GameUserJoinGroup record); |
||||
|
|
||||
|
List<GameUserJoinGroup> selectByExample(GameUserJoinGroupExample example); |
||||
|
|
||||
|
GameUserJoinGroup selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") GameUserJoinGroup record, @Param("example") GameUserJoinGroupExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") GameUserJoinGroup record, @Param("example") GameUserJoinGroupExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(GameUserJoinGroup record); |
||||
|
|
||||
|
int updateByPrimaryKey(GameUserJoinGroup record); |
||||
|
} |
@ -0,0 +1,228 @@ |
|||||
|
<?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.ccsens.game.persist.mapper.GameGroupMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.game.bean.po.GameGroup"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
||||
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, record_id, name, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameGroupExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_game_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_game_group |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_game_group |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.game.bean.po.GameGroupExample"> |
||||
|
delete from t_game_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameGroup"> |
||||
|
insert into t_game_group (id, record_id, name, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameGroup"> |
||||
|
insert into t_game_group |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="recordId != null"> |
||||
|
record_id, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="recordId != null"> |
||||
|
#{recordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
#{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameGroupExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_game_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_game_group |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.recordId != null"> |
||||
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.name != null"> |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_game_group |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
record_id = #{record.recordId,jdbcType=BIGINT}, |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.game.bean.po.GameGroup"> |
||||
|
update t_game_group |
||||
|
<set> |
||||
|
<if test="recordId != null"> |
||||
|
record_id = #{recordId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.game.bean.po.GameGroup"> |
||||
|
update t_game_group |
||||
|
set record_id = #{recordId,jdbcType=BIGINT}, |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,228 @@ |
|||||
|
<?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.ccsens.game.persist.mapper.GameUserJoinGroupMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.game.bean.po.GameUserJoinGroup"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="user_join_id" jdbcType="BIGINT" property="userJoinId" /> |
||||
|
<result column="game_group_id" jdbcType="BIGINT" property="gameGroupId" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, user_join_id, game_group_id, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameUserJoinGroupExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_game_user_join_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_game_user_join_group |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_game_user_join_group |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.game.bean.po.GameUserJoinGroupExample"> |
||||
|
delete from t_game_user_join_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameUserJoinGroup"> |
||||
|
insert into t_game_user_join_group (id, user_join_id, game_group_id, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{userJoinId,jdbcType=BIGINT}, #{gameGroupId,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameUserJoinGroup"> |
||||
|
insert into t_game_user_join_group |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="userJoinId != null"> |
||||
|
user_join_id, |
||||
|
</if> |
||||
|
<if test="gameGroupId != null"> |
||||
|
game_group_id, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userJoinId != null"> |
||||
|
#{userJoinId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="gameGroupId != null"> |
||||
|
#{gameGroupId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.game.bean.po.GameUserJoinGroupExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_game_user_join_group |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_game_user_join_group |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.userJoinId != null"> |
||||
|
user_join_id = #{record.userJoinId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.gameGroupId != null"> |
||||
|
game_group_id = #{record.gameGroupId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_game_user_join_group |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
user_join_id = #{record.userJoinId,jdbcType=BIGINT}, |
||||
|
game_group_id = #{record.gameGroupId,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.game.bean.po.GameUserJoinGroup"> |
||||
|
update t_game_user_join_group |
||||
|
<set> |
||||
|
<if test="userJoinId != null"> |
||||
|
user_join_id = #{userJoinId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="gameGroupId != null"> |
||||
|
game_group_id = #{gameGroupId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.game.bean.po.GameUserJoinGroup"> |
||||
|
update t_game_user_join_group |
||||
|
set user_join_id = #{userJoinId,jdbcType=BIGINT}, |
||||
|
game_group_id = #{gameGroupId,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,117 @@ |
|||||
|
package com.ccsens.mt.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class MtSigninBasic implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long userId; |
||||
|
|
||||
|
private Long taskPluginId; |
||||
|
|
||||
|
private Long signinTime; |
||||
|
|
||||
|
private Integer sequence; |
||||
|
|
||||
|
private Byte isSign; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getUserId() { |
||||
|
return userId; |
||||
|
} |
||||
|
|
||||
|
public void setUserId(Long userId) { |
||||
|
this.userId = userId; |
||||
|
} |
||||
|
|
||||
|
public Long getTaskPluginId() { |
||||
|
return taskPluginId; |
||||
|
} |
||||
|
|
||||
|
public void setTaskPluginId(Long taskPluginId) { |
||||
|
this.taskPluginId = taskPluginId; |
||||
|
} |
||||
|
|
||||
|
public Long getSigninTime() { |
||||
|
return signinTime; |
||||
|
} |
||||
|
|
||||
|
public void setSigninTime(Long signinTime) { |
||||
|
this.signinTime = signinTime; |
||||
|
} |
||||
|
|
||||
|
public Integer getSequence() { |
||||
|
return sequence; |
||||
|
} |
||||
|
|
||||
|
public void setSequence(Integer sequence) { |
||||
|
this.sequence = sequence; |
||||
|
} |
||||
|
|
||||
|
public Byte getIsSign() { |
||||
|
return isSign; |
||||
|
} |
||||
|
|
||||
|
public void setIsSign(Byte isSign) { |
||||
|
this.isSign = isSign; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", userId=").append(userId); |
||||
|
sb.append(", taskPluginId=").append(taskPluginId); |
||||
|
sb.append(", signinTime=").append(signinTime); |
||||
|
sb.append(", sequence=").append(sequence); |
||||
|
sb.append(", isSign=").append(isSign); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,741 @@ |
|||||
|
package com.ccsens.mt.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class MtSigninBasicExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public MtSigninBasicExample() { |
||||
|
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 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; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotEqualTo(Long value) { |
||||
|
addCriterion("user_id <>", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThan(Long value) { |
||||
|
addCriterion("user_id >", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id >=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThan(Long value) { |
||||
|
addCriterion("user_id <", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id <=", value, "userId"); |
||||
|
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 andTaskPluginIdIsNull() { |
||||
|
addCriterion("task_plugin_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdIsNotNull() { |
||||
|
addCriterion("task_plugin_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id =", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id <>", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdGreaterThan(Long value) { |
||||
|
addCriterion("task_plugin_id >", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id >=", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdLessThan(Long value) { |
||||
|
addCriterion("task_plugin_id <", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id <=", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdIn(List<Long> values) { |
||||
|
addCriterion("task_plugin_id in", values, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotIn(List<Long> values) { |
||||
|
addCriterion("task_plugin_id not in", values, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_plugin_id between", value1, value2, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_plugin_id not between", value1, value2, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeIsNull() { |
||||
|
addCriterion("signin_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeIsNotNull() { |
||||
|
addCriterion("signin_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeEqualTo(Long value) { |
||||
|
addCriterion("signin_time =", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeNotEqualTo(Long value) { |
||||
|
addCriterion("signin_time <>", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeGreaterThan(Long value) { |
||||
|
addCriterion("signin_time >", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_time >=", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeLessThan(Long value) { |
||||
|
addCriterion("signin_time <", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_time <=", value, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeIn(List<Long> values) { |
||||
|
addCriterion("signin_time in", values, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeNotIn(List<Long> values) { |
||||
|
addCriterion("signin_time not in", values, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_time between", value1, value2, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninTimeNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_time not between", value1, value2, "signinTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceIsNull() { |
||||
|
addCriterion("sequence is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceIsNotNull() { |
||||
|
addCriterion("sequence is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceEqualTo(Integer value) { |
||||
|
addCriterion("sequence =", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceNotEqualTo(Integer value) { |
||||
|
addCriterion("sequence <>", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceGreaterThan(Integer value) { |
||||
|
addCriterion("sequence >", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceGreaterThanOrEqualTo(Integer value) { |
||||
|
addCriterion("sequence >=", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceLessThan(Integer value) { |
||||
|
addCriterion("sequence <", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceLessThanOrEqualTo(Integer value) { |
||||
|
addCriterion("sequence <=", value, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceIn(List<Integer> values) { |
||||
|
addCriterion("sequence in", values, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceNotIn(List<Integer> values) { |
||||
|
addCriterion("sequence not in", values, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("sequence between", value1, value2, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSequenceNotBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("sequence not between", value1, value2, "sequence"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignIsNull() { |
||||
|
addCriterion("is_sign is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignIsNotNull() { |
||||
|
addCriterion("is_sign is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignEqualTo(Byte value) { |
||||
|
addCriterion("is_sign =", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignNotEqualTo(Byte value) { |
||||
|
addCriterion("is_sign <>", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignGreaterThan(Byte value) { |
||||
|
addCriterion("is_sign >", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_sign >=", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignLessThan(Byte value) { |
||||
|
addCriterion("is_sign <", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_sign <=", value, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignIn(List<Byte> values) { |
||||
|
addCriterion("is_sign in", values, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignNotIn(List<Byte> values) { |
||||
|
addCriterion("is_sign not in", values, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_sign between", value1, value2, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsSignNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_sign not between", value1, value2, "isSign"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
package com.ccsens.mt.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class MtSigninOther implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long userId; |
||||
|
|
||||
|
private String key; |
||||
|
|
||||
|
private String value; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getUserId() { |
||||
|
return userId; |
||||
|
} |
||||
|
|
||||
|
public void setUserId(Long userId) { |
||||
|
this.userId = userId; |
||||
|
} |
||||
|
|
||||
|
public String getKey() { |
||||
|
return key; |
||||
|
} |
||||
|
|
||||
|
public void setKey(String key) { |
||||
|
this.key = key == null ? null : key.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public void setValue(String value) { |
||||
|
this.value = value == null ? null : value.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", userId=").append(userId); |
||||
|
sb.append(", key=").append(key); |
||||
|
sb.append(", value=").append(value); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,641 @@ |
|||||
|
package com.ccsens.mt.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class MtSigninOtherExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public MtSigninOtherExample() { |
||||
|
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 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; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotEqualTo(Long value) { |
||||
|
addCriterion("user_id <>", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThan(Long value) { |
||||
|
addCriterion("user_id >", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id >=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThan(Long value) { |
||||
|
addCriterion("user_id <", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id <=", value, "userId"); |
||||
|
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 andKeyIsNull() { |
||||
|
addCriterion("key is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyIsNotNull() { |
||||
|
addCriterion("key is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyEqualTo(String value) { |
||||
|
addCriterion("key =", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyNotEqualTo(String value) { |
||||
|
addCriterion("key <>", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyGreaterThan(String value) { |
||||
|
addCriterion("key >", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("key >=", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyLessThan(String value) { |
||||
|
addCriterion("key <", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyLessThanOrEqualTo(String value) { |
||||
|
addCriterion("key <=", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyLike(String value) { |
||||
|
addCriterion("key like", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyNotLike(String value) { |
||||
|
addCriterion("key not like", value, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyIn(List<String> values) { |
||||
|
addCriterion("key in", values, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyNotIn(List<String> values) { |
||||
|
addCriterion("key not in", values, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyBetween(String value1, String value2) { |
||||
|
addCriterion("key between", value1, value2, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andKeyNotBetween(String value1, String value2) { |
||||
|
addCriterion("key not between", value1, value2, "key"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueIsNull() { |
||||
|
addCriterion("value is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueIsNotNull() { |
||||
|
addCriterion("value is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueEqualTo(String value) { |
||||
|
addCriterion("value =", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueNotEqualTo(String value) { |
||||
|
addCriterion("value <>", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueGreaterThan(String value) { |
||||
|
addCriterion("value >", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("value >=", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueLessThan(String value) { |
||||
|
addCriterion("value <", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueLessThanOrEqualTo(String value) { |
||||
|
addCriterion("value <=", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueLike(String value) { |
||||
|
addCriterion("value like", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueNotLike(String value) { |
||||
|
addCriterion("value not like", value, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueIn(List<String> values) { |
||||
|
addCriterion("value in", values, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueNotIn(List<String> values) { |
||||
|
addCriterion("value not in", values, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueBetween(String value1, String value2) { |
||||
|
addCriterion("value between", value1, value2, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andValueNotBetween(String value1, String value2) { |
||||
|
addCriterion("value not between", value1, value2, "value"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.mt.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.mt.bean.po.MtSigninBasic; |
||||
|
import com.ccsens.mt.bean.po.MtSigninBasicExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface MtSigninBasicMapper { |
||||
|
long countByExample(MtSigninBasicExample example); |
||||
|
|
||||
|
int deleteByExample(MtSigninBasicExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(MtSigninBasic record); |
||||
|
|
||||
|
int insertSelective(MtSigninBasic record); |
||||
|
|
||||
|
List<MtSigninBasic> selectByExample(MtSigninBasicExample example); |
||||
|
|
||||
|
MtSigninBasic selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") MtSigninBasic record, @Param("example") MtSigninBasicExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") MtSigninBasic record, @Param("example") MtSigninBasicExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(MtSigninBasic record); |
||||
|
|
||||
|
int updateByPrimaryKey(MtSigninBasic record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.mt.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.mt.bean.po.MtSigninOther; |
||||
|
import com.ccsens.mt.bean.po.MtSigninOtherExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface MtSigninOtherMapper { |
||||
|
long countByExample(MtSigninOtherExample example); |
||||
|
|
||||
|
int deleteByExample(MtSigninOtherExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(MtSigninOther record); |
||||
|
|
||||
|
int insertSelective(MtSigninOther record); |
||||
|
|
||||
|
List<MtSigninOther> selectByExample(MtSigninOtherExample example); |
||||
|
|
||||
|
MtSigninOther selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") MtSigninOther record, @Param("example") MtSigninOtherExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") MtSigninOther record, @Param("example") MtSigninOtherExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(MtSigninOther record); |
||||
|
|
||||
|
int updateByPrimaryKey(MtSigninOther record); |
||||
|
} |
@ -0,0 +1,276 @@ |
|||||
|
<?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.ccsens.mt.persist.mapper.MtSigninBasicMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.MtSigninBasic"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
|
<result column="task_plugin_id" jdbcType="BIGINT" property="taskPluginId" /> |
||||
|
<result column="signin_time" jdbcType="BIGINT" property="signinTime" /> |
||||
|
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
||||
|
<result column="is_sign" jdbcType="TINYINT" property="isSign" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, user_id, task_plugin_id, signin_time, sequence, is_sign, created_at, updated_at, |
||||
|
rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.MtSigninBasicExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_mt_signin_basic |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_mt_signin_basic |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_mt_signin_basic |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.MtSigninBasicExample"> |
||||
|
delete from t_mt_signin_basic |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.MtSigninBasic"> |
||||
|
insert into t_mt_signin_basic (id, user_id, task_plugin_id, |
||||
|
signin_time, sequence, is_sign, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{taskPluginId,jdbcType=BIGINT}, |
||||
|
#{signinTime,jdbcType=BIGINT}, #{sequence,jdbcType=INTEGER}, #{isSign,jdbcType=TINYINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.MtSigninBasic"> |
||||
|
insert into t_mt_signin_basic |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id, |
||||
|
</if> |
||||
|
<if test="taskPluginId != null"> |
||||
|
task_plugin_id, |
||||
|
</if> |
||||
|
<if test="signinTime != null"> |
||||
|
signin_time, |
||||
|
</if> |
||||
|
<if test="sequence != null"> |
||||
|
sequence, |
||||
|
</if> |
||||
|
<if test="isSign != null"> |
||||
|
is_sign, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
#{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="taskPluginId != null"> |
||||
|
#{taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinTime != null"> |
||||
|
#{signinTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="sequence != null"> |
||||
|
#{sequence,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="isSign != null"> |
||||
|
#{isSign,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.MtSigninBasicExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_mt_signin_basic |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_mt_signin_basic |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.userId != null"> |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.taskPluginId != null"> |
||||
|
task_plugin_id = #{record.taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.signinTime != null"> |
||||
|
signin_time = #{record.signinTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.sequence != null"> |
||||
|
sequence = #{record.sequence,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.isSign != null"> |
||||
|
is_sign = #{record.isSign,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_mt_signin_basic |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
task_plugin_id = #{record.taskPluginId,jdbcType=BIGINT}, |
||||
|
signin_time = #{record.signinTime,jdbcType=BIGINT}, |
||||
|
sequence = #{record.sequence,jdbcType=INTEGER}, |
||||
|
is_sign = #{record.isSign,jdbcType=TINYINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.MtSigninBasic"> |
||||
|
update t_mt_signin_basic |
||||
|
<set> |
||||
|
<if test="userId != null"> |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="taskPluginId != null"> |
||||
|
task_plugin_id = #{taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinTime != null"> |
||||
|
signin_time = #{signinTime,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="sequence != null"> |
||||
|
sequence = #{sequence,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="isSign != null"> |
||||
|
is_sign = #{isSign,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.MtSigninBasic"> |
||||
|
update t_mt_signin_basic |
||||
|
set user_id = #{userId,jdbcType=BIGINT}, |
||||
|
task_plugin_id = #{taskPluginId,jdbcType=BIGINT}, |
||||
|
signin_time = #{signinTime,jdbcType=BIGINT}, |
||||
|
sequence = #{sequence,jdbcType=INTEGER}, |
||||
|
is_sign = #{isSign,jdbcType=TINYINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,243 @@ |
|||||
|
<?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.ccsens.mt.persist.mapper.MtSigninOtherMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.mt.bean.po.MtSigninOther"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
|
<result column="key" jdbcType="VARCHAR" property="key" /> |
||||
|
<result column="value" jdbcType="VARCHAR" property="value" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, user_id, key, value, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.MtSigninOtherExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_mt_signin_other |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_mt_signin_other |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_mt_signin_other |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.mt.bean.po.MtSigninOtherExample"> |
||||
|
delete from t_mt_signin_other |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.MtSigninOther"> |
||||
|
insert into t_mt_signin_other (id, user_id, key, |
||||
|
value, created_at, updated_at, |
||||
|
rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{key,jdbcType=VARCHAR}, |
||||
|
#{value,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
#{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.MtSigninOther"> |
||||
|
insert into t_mt_signin_other |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id, |
||||
|
</if> |
||||
|
<if test="key != null"> |
||||
|
key, |
||||
|
</if> |
||||
|
<if test="value != null"> |
||||
|
value, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
#{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="key != null"> |
||||
|
#{key,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="value != null"> |
||||
|
#{value,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.MtSigninOtherExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_mt_signin_other |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_mt_signin_other |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.userId != null"> |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.key != null"> |
||||
|
key = #{record.key,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.value != null"> |
||||
|
value = #{record.value,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_mt_signin_other |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
key = #{record.key,jdbcType=VARCHAR}, |
||||
|
value = #{record.value,jdbcType=VARCHAR}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.mt.bean.po.MtSigninOther"> |
||||
|
update t_mt_signin_other |
||||
|
<set> |
||||
|
<if test="userId != null"> |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="key != null"> |
||||
|
key = #{key,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="value != null"> |
||||
|
value = #{value,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.mt.bean.po.MtSigninOther"> |
||||
|
update t_mt_signin_other |
||||
|
set user_id = #{userId,jdbcType=BIGINT}, |
||||
|
key = #{key,jdbcType=VARCHAR}, |
||||
|
value = #{value,jdbcType=VARCHAR}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,106 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class ProPluginSignin implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long taskPluginId; |
||||
|
|
||||
|
private Long signinFieldId; |
||||
|
|
||||
|
private Byte isFuzzy; |
||||
|
|
||||
|
private Byte isRequired; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getTaskPluginId() { |
||||
|
return taskPluginId; |
||||
|
} |
||||
|
|
||||
|
public void setTaskPluginId(Long taskPluginId) { |
||||
|
this.taskPluginId = taskPluginId; |
||||
|
} |
||||
|
|
||||
|
public Long getSigninFieldId() { |
||||
|
return signinFieldId; |
||||
|
} |
||||
|
|
||||
|
public void setSigninFieldId(Long signinFieldId) { |
||||
|
this.signinFieldId = signinFieldId; |
||||
|
} |
||||
|
|
||||
|
public Byte getIsFuzzy() { |
||||
|
return isFuzzy; |
||||
|
} |
||||
|
|
||||
|
public void setIsFuzzy(Byte isFuzzy) { |
||||
|
this.isFuzzy = isFuzzy; |
||||
|
} |
||||
|
|
||||
|
public Byte getIsRequired() { |
||||
|
return isRequired; |
||||
|
} |
||||
|
|
||||
|
public void setIsRequired(Byte isRequired) { |
||||
|
this.isRequired = isRequired; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", taskPluginId=").append(taskPluginId); |
||||
|
sb.append(", signinFieldId=").append(signinFieldId); |
||||
|
sb.append(", isFuzzy=").append(isFuzzy); |
||||
|
sb.append(", isRequired=").append(isRequired); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,681 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class ProPluginSigninExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public ProPluginSigninExample() { |
||||
|
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 andTaskPluginIdIsNull() { |
||||
|
addCriterion("task_plugin_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdIsNotNull() { |
||||
|
addCriterion("task_plugin_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id =", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id <>", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdGreaterThan(Long value) { |
||||
|
addCriterion("task_plugin_id >", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id >=", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdLessThan(Long value) { |
||||
|
addCriterion("task_plugin_id <", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("task_plugin_id <=", value, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdIn(List<Long> values) { |
||||
|
addCriterion("task_plugin_id in", values, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotIn(List<Long> values) { |
||||
|
addCriterion("task_plugin_id not in", values, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_plugin_id between", value1, value2, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTaskPluginIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("task_plugin_id not between", value1, value2, "taskPluginId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIsNull() { |
||||
|
addCriterion("signin_field_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIsNotNull() { |
||||
|
addCriterion("signin_field_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id =", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id <>", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdGreaterThan(Long value) { |
||||
|
addCriterion("signin_field_id >", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id >=", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdLessThan(Long value) { |
||||
|
addCriterion("signin_field_id <", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id <=", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIn(List<Long> values) { |
||||
|
addCriterion("signin_field_id in", values, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotIn(List<Long> values) { |
||||
|
addCriterion("signin_field_id not in", values, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_field_id between", value1, value2, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_field_id not between", value1, value2, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyIsNull() { |
||||
|
addCriterion("is_fuzzy is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyIsNotNull() { |
||||
|
addCriterion("is_fuzzy is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyEqualTo(Byte value) { |
||||
|
addCriterion("is_fuzzy =", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyNotEqualTo(Byte value) { |
||||
|
addCriterion("is_fuzzy <>", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyGreaterThan(Byte value) { |
||||
|
addCriterion("is_fuzzy >", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_fuzzy >=", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyLessThan(Byte value) { |
||||
|
addCriterion("is_fuzzy <", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_fuzzy <=", value, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyIn(List<Byte> values) { |
||||
|
addCriterion("is_fuzzy in", values, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyNotIn(List<Byte> values) { |
||||
|
addCriterion("is_fuzzy not in", values, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_fuzzy between", value1, value2, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsFuzzyNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_fuzzy not between", value1, value2, "isFuzzy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredIsNull() { |
||||
|
addCriterion("is_required is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredIsNotNull() { |
||||
|
addCriterion("is_required is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredEqualTo(Byte value) { |
||||
|
addCriterion("is_required =", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredNotEqualTo(Byte value) { |
||||
|
addCriterion("is_required <>", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredGreaterThan(Byte value) { |
||||
|
addCriterion("is_required >", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_required >=", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredLessThan(Byte value) { |
||||
|
addCriterion("is_required <", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("is_required <=", value, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredIn(List<Byte> values) { |
||||
|
addCriterion("is_required in", values, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredNotIn(List<Byte> values) { |
||||
|
addCriterion("is_required not in", values, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_required between", value1, value2, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIsRequiredNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("is_required not between", value1, value2, "isRequired"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class ProPluginSigninFuzzy implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long projectId; |
||||
|
|
||||
|
private Long signinFieldId; |
||||
|
|
||||
|
private String description; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getProjectId() { |
||||
|
return projectId; |
||||
|
} |
||||
|
|
||||
|
public void setProjectId(Long projectId) { |
||||
|
this.projectId = projectId; |
||||
|
} |
||||
|
|
||||
|
public Long getSigninFieldId() { |
||||
|
return signinFieldId; |
||||
|
} |
||||
|
|
||||
|
public void setSigninFieldId(Long signinFieldId) { |
||||
|
this.signinFieldId = signinFieldId; |
||||
|
} |
||||
|
|
||||
|
public String getDescription() { |
||||
|
return description; |
||||
|
} |
||||
|
|
||||
|
public void setDescription(String description) { |
||||
|
this.description = description == null ? null : description.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", projectId=").append(projectId); |
||||
|
sb.append(", signinFieldId=").append(signinFieldId); |
||||
|
sb.append(", description=").append(description); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,631 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class ProPluginSigninFuzzyExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public ProPluginSigninFuzzyExample() { |
||||
|
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 andProjectIdIsNull() { |
||||
|
addCriterion("project_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdIsNotNull() { |
||||
|
addCriterion("project_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdEqualTo(Long value) { |
||||
|
addCriterion("project_id =", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotEqualTo(Long value) { |
||||
|
addCriterion("project_id <>", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdGreaterThan(Long value) { |
||||
|
addCriterion("project_id >", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("project_id >=", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdLessThan(Long value) { |
||||
|
addCriterion("project_id <", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("project_id <=", value, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdIn(List<Long> values) { |
||||
|
addCriterion("project_id in", values, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotIn(List<Long> values) { |
||||
|
addCriterion("project_id not in", values, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("project_id between", value1, value2, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("project_id not between", value1, value2, "projectId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIsNull() { |
||||
|
addCriterion("signin_field_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIsNotNull() { |
||||
|
addCriterion("signin_field_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id =", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id <>", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdGreaterThan(Long value) { |
||||
|
addCriterion("signin_field_id >", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id >=", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdLessThan(Long value) { |
||||
|
addCriterion("signin_field_id <", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("signin_field_id <=", value, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdIn(List<Long> values) { |
||||
|
addCriterion("signin_field_id in", values, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotIn(List<Long> values) { |
||||
|
addCriterion("signin_field_id not in", values, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_field_id between", value1, value2, "signinFieldId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSigninFieldIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("signin_field_id not between", value1, value2, "signinFieldId"); |
||||
|
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 andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,117 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class SigninField implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String description; |
||||
|
|
||||
|
private String name; |
||||
|
|
||||
|
private Byte type; |
||||
|
|
||||
|
private String fieldValue; |
||||
|
|
||||
|
private String format; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getDescription() { |
||||
|
return description; |
||||
|
} |
||||
|
|
||||
|
public void setDescription(String description) { |
||||
|
this.description = description == null ? null : description.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public void setName(String name) { |
||||
|
this.name = name == null ? null : name.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getType() { |
||||
|
return type; |
||||
|
} |
||||
|
|
||||
|
public void setType(Byte type) { |
||||
|
this.type = type; |
||||
|
} |
||||
|
|
||||
|
public String getFieldValue() { |
||||
|
return fieldValue; |
||||
|
} |
||||
|
|
||||
|
public void setFieldValue(String fieldValue) { |
||||
|
this.fieldValue = fieldValue == null ? null : fieldValue.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getFormat() { |
||||
|
return format; |
||||
|
} |
||||
|
|
||||
|
public void setFormat(String format) { |
||||
|
this.format = format == null ? null : format.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@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(", description=").append(description); |
||||
|
sb.append(", name=").append(name); |
||||
|
sb.append(", type=").append(type); |
||||
|
sb.append(", fieldValue=").append(fieldValue); |
||||
|
sb.append(", format=").append(format); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,781 @@ |
|||||
|
package com.ccsens.tall.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class SigninFieldExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public SigninFieldExample() { |
||||
|
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 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 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 andTypeIsNull() { |
||||
|
addCriterion("type is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIsNotNull() { |
||||
|
addCriterion("type is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeEqualTo(Byte value) { |
||||
|
addCriterion("type =", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotEqualTo(Byte value) { |
||||
|
addCriterion("type <>", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThan(Byte value) { |
||||
|
addCriterion("type >", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type >=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThan(Byte value) { |
||||
|
addCriterion("type <", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type <=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIn(List<Byte> values) { |
||||
|
addCriterion("type in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotIn(List<Byte> values) { |
||||
|
addCriterion("type not in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type not between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueIsNull() { |
||||
|
addCriterion("field_value is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueIsNotNull() { |
||||
|
addCriterion("field_value is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueEqualTo(String value) { |
||||
|
addCriterion("field_value =", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueNotEqualTo(String value) { |
||||
|
addCriterion("field_value <>", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueGreaterThan(String value) { |
||||
|
addCriterion("field_value >", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("field_value >=", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueLessThan(String value) { |
||||
|
addCriterion("field_value <", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueLessThanOrEqualTo(String value) { |
||||
|
addCriterion("field_value <=", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueLike(String value) { |
||||
|
addCriterion("field_value like", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueNotLike(String value) { |
||||
|
addCriterion("field_value not like", value, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueIn(List<String> values) { |
||||
|
addCriterion("field_value in", values, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueNotIn(List<String> values) { |
||||
|
addCriterion("field_value not in", values, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueBetween(String value1, String value2) { |
||||
|
addCriterion("field_value between", value1, value2, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFieldValueNotBetween(String value1, String value2) { |
||||
|
addCriterion("field_value not between", value1, value2, "fieldValue"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatIsNull() { |
||||
|
addCriterion("format is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatIsNotNull() { |
||||
|
addCriterion("format is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatEqualTo(String value) { |
||||
|
addCriterion("format =", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatNotEqualTo(String value) { |
||||
|
addCriterion("format <>", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatGreaterThan(String value) { |
||||
|
addCriterion("format >", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("format >=", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatLessThan(String value) { |
||||
|
addCriterion("format <", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatLessThanOrEqualTo(String value) { |
||||
|
addCriterion("format <=", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatLike(String value) { |
||||
|
addCriterion("format like", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatNotLike(String value) { |
||||
|
addCriterion("format not like", value, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatIn(List<String> values) { |
||||
|
addCriterion("format in", values, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatNotIn(List<String> values) { |
||||
|
addCriterion("format not in", values, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatBetween(String value1, String value2) { |
||||
|
addCriterion("format between", value1, value2, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andFormatNotBetween(String value1, String value2) { |
||||
|
addCriterion("format not between", value1, value2, "format"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,117 +1,117 @@ |
|||||
package com.ccsens.tall.bean.po; |
package com.ccsens.tall.bean.po; |
||||
|
|
||||
import java.io.Serializable; |
import java.io.Serializable; |
||||
import java.util.Date; |
import java.util.Date; |
||||
|
|
||||
public class SysBalanceLog implements Serializable { |
public class SysBalanceLog implements Serializable { |
||||
private Long id; |
private Long id; |
||||
|
|
||||
private Long userId; |
private Long userId; |
||||
|
|
||||
private Integer balance; |
private Long balance; |
||||
|
|
||||
private Integer offset; |
private Long offset; |
||||
|
|
||||
private Integer type; |
private Integer type; |
||||
|
|
||||
private String phase; |
private String description; |
||||
|
|
||||
private Date createdAt; |
private Date createdAt; |
||||
|
|
||||
private Date updatedAt; |
private Date updatedAt; |
||||
|
|
||||
private Byte recStatus; |
private Byte recStatus; |
||||
|
|
||||
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
||||
|
|
||||
public Long getId() { |
public Long getId() { |
||||
return id; |
return id; |
||||
} |
} |
||||
|
|
||||
public void setId(Long id) { |
public void setId(Long id) { |
||||
this.id = id; |
this.id = id; |
||||
} |
} |
||||
|
|
||||
public Long getUserId() { |
public Long getUserId() { |
||||
return userId; |
return userId; |
||||
} |
} |
||||
|
|
||||
public void setUserId(Long userId) { |
public void setUserId(Long userId) { |
||||
this.userId = userId; |
this.userId = userId; |
||||
} |
} |
||||
|
|
||||
public Integer getBalance() { |
public Long getBalance() { |
||||
return balance; |
return balance; |
||||
} |
} |
||||
|
|
||||
public void setBalance(Integer balance) { |
public void setBalance(Long balance) { |
||||
this.balance = balance; |
this.balance = balance; |
||||
} |
} |
||||
|
|
||||
public Integer getOffset() { |
public Long getOffset() { |
||||
return offset; |
return offset; |
||||
} |
} |
||||
|
|
||||
public void setOffset(Integer offset) { |
public void setOffset(Long offset) { |
||||
this.offset = offset; |
this.offset = offset; |
||||
} |
} |
||||
|
|
||||
public Integer getType() { |
public Integer getType() { |
||||
return type; |
return type; |
||||
} |
} |
||||
|
|
||||
public void setType(Integer type) { |
public void setType(Integer type) { |
||||
this.type = type; |
this.type = type; |
||||
} |
} |
||||
|
|
||||
public String getPhase() { |
public String getDescription() { |
||||
return phase; |
return description; |
||||
} |
} |
||||
|
|
||||
public void setPhase(String phase) { |
public void setDescription(String description) { |
||||
this.phase = phase == null ? null : phase.trim(); |
this.description = description == null ? null : description.trim(); |
||||
} |
} |
||||
|
|
||||
public Date getCreatedAt() { |
public Date getCreatedAt() { |
||||
return createdAt; |
return createdAt; |
||||
} |
} |
||||
|
|
||||
public void setCreatedAt(Date createdAt) { |
public void setCreatedAt(Date createdAt) { |
||||
this.createdAt = createdAt; |
this.createdAt = createdAt; |
||||
} |
} |
||||
|
|
||||
public Date getUpdatedAt() { |
public Date getUpdatedAt() { |
||||
return updatedAt; |
return updatedAt; |
||||
} |
} |
||||
|
|
||||
public void setUpdatedAt(Date updatedAt) { |
public void setUpdatedAt(Date updatedAt) { |
||||
this.updatedAt = updatedAt; |
this.updatedAt = updatedAt; |
||||
} |
} |
||||
|
|
||||
public Byte getRecStatus() { |
public Byte getRecStatus() { |
||||
return recStatus; |
return recStatus; |
||||
} |
} |
||||
|
|
||||
public void setRecStatus(Byte recStatus) { |
public void setRecStatus(Byte recStatus) { |
||||
this.recStatus = recStatus; |
this.recStatus = recStatus; |
||||
} |
} |
||||
|
|
||||
@Override |
@Override |
||||
public String toString() { |
public String toString() { |
||||
StringBuilder sb = new StringBuilder(); |
StringBuilder sb = new StringBuilder(); |
||||
sb.append(getClass().getSimpleName()); |
sb.append(getClass().getSimpleName()); |
||||
sb.append(" ["); |
sb.append(" ["); |
||||
sb.append("Hash = ").append(hashCode()); |
sb.append("Hash = ").append(hashCode()); |
||||
sb.append(", id=").append(id); |
sb.append(", id=").append(id); |
||||
sb.append(", userId=").append(userId); |
sb.append(", userId=").append(userId); |
||||
sb.append(", balance=").append(balance); |
sb.append(", balance=").append(balance); |
||||
sb.append(", offset=").append(offset); |
sb.append(", offset=").append(offset); |
||||
sb.append(", type=").append(type); |
sb.append(", type=").append(type); |
||||
sb.append(", phase=").append(phase); |
sb.append(", description=").append(description); |
||||
sb.append(", createdAt=").append(createdAt); |
sb.append(", createdAt=").append(createdAt); |
||||
sb.append(", updatedAt=").append(updatedAt); |
sb.append(", updatedAt=").append(updatedAt); |
||||
sb.append(", recStatus=").append(recStatus); |
sb.append(", recStatus=").append(recStatus); |
||||
sb.append("]"); |
sb.append("]"); |
||||
return sb.toString(); |
return sb.toString(); |
||||
} |
} |
||||
} |
} |
File diff suppressed because it is too large
@ -0,0 +1,8 @@ |
|||||
|
package com.ccsens.tall.persist.dao; |
||||
|
|
||||
|
import com.ccsens.tall.persist.mapper.SysBalanceLogMapper; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
@Repository |
||||
|
public interface SysBalanceLogDao extends SysBalanceLogMapper { |
||||
|
} |
@ -1,8 +1,23 @@ |
|||||
package com.ccsens.tall.persist.dao; |
package com.ccsens.tall.persist.dao; |
||||
|
|
||||
import com.ccsens.tall.persist.mapper.SysUserMapper; |
import com.ccsens.tall.persist.mapper.SysUserMapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.stereotype.Repository; |
import org.springframework.stereotype.Repository; |
||||
|
|
||||
@Repository |
@Repository |
||||
public interface SysUserDao extends SysUserMapper { |
public interface SysUserDao extends SysUserMapper { |
||||
|
|
||||
|
void replaceAuth(@Param("oldUserId") Long userId,@Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceAttention(@Param("oldUserId") Long userId, @Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceBalance(@Param("oldUserId") Long userId,@Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceProject(@Param("oldUserId") Long userId, @Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceMember(@Param("oldUserId") Long userId, @Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceDeliverPostLog(@Param("oldUserId") Long userId, @Param("newUserId") Long currentUserId); |
||||
|
|
||||
|
void replaceProLog(@Param("oldUserId") Long userId,@Param("newUserId") Long currentUserId); |
||||
} |
} |
||||
|
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.tall.bean.po.ProPluginSigninFuzzy; |
||||
|
import com.ccsens.tall.bean.po.ProPluginSigninFuzzyExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface ProPluginSigninFuzzyMapper { |
||||
|
long countByExample(ProPluginSigninFuzzyExample example); |
||||
|
|
||||
|
int deleteByExample(ProPluginSigninFuzzyExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(ProPluginSigninFuzzy record); |
||||
|
|
||||
|
int insertSelective(ProPluginSigninFuzzy record); |
||||
|
|
||||
|
List<ProPluginSigninFuzzy> selectByExample(ProPluginSigninFuzzyExample example); |
||||
|
|
||||
|
ProPluginSigninFuzzy selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") ProPluginSigninFuzzy record, @Param("example") ProPluginSigninFuzzyExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") ProPluginSigninFuzzy record, @Param("example") ProPluginSigninFuzzyExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(ProPluginSigninFuzzy record); |
||||
|
|
||||
|
int updateByPrimaryKey(ProPluginSigninFuzzy record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.tall.bean.po.ProPluginSignin; |
||||
|
import com.ccsens.tall.bean.po.ProPluginSigninExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface ProPluginSigninMapper { |
||||
|
long countByExample(ProPluginSigninExample example); |
||||
|
|
||||
|
int deleteByExample(ProPluginSigninExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(ProPluginSignin record); |
||||
|
|
||||
|
int insertSelective(ProPluginSignin record); |
||||
|
|
||||
|
List<ProPluginSignin> selectByExample(ProPluginSigninExample example); |
||||
|
|
||||
|
ProPluginSignin selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") ProPluginSignin record, @Param("example") ProPluginSigninExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") ProPluginSignin record, @Param("example") ProPluginSigninExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(ProPluginSignin record); |
||||
|
|
||||
|
int updateByPrimaryKey(ProPluginSignin record); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.tall.bean.po.SigninField; |
||||
|
import com.ccsens.tall.bean.po.SigninFieldExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface SigninFieldMapper { |
||||
|
long countByExample(SigninFieldExample example); |
||||
|
|
||||
|
int deleteByExample(SigninFieldExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(SigninField record); |
||||
|
|
||||
|
int insertSelective(SigninField record); |
||||
|
|
||||
|
List<SigninField> selectByExample(SigninFieldExample example); |
||||
|
|
||||
|
SigninField selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") SigninField record, @Param("example") SigninFieldExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") SigninField record, @Param("example") SigninFieldExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(SigninField record); |
||||
|
|
||||
|
int updateByPrimaryKey(SigninField record); |
||||
|
} |
@ -1,31 +1,30 @@ |
|||||
package com.ccsens.tall.persist.mapper; |
package com.ccsens.tall.persist.mapper; |
||||
|
|
||||
import com.ccsens.tall.bean.po.SysBalanceLog; |
import com.ccsens.tall.bean.po.SysBalanceLog; |
||||
import com.ccsens.tall.bean.po.SysBalanceLogExample; |
import com.ccsens.tall.bean.po.SysBalanceLogExample; |
||||
import org.apache.ibatis.annotations.Param; |
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
|
||||
|
public interface SysBalanceLogMapper { |
||||
public interface SysBalanceLogMapper { |
long countByExample(SysBalanceLogExample example); |
||||
long countByExample(SysBalanceLogExample example); |
|
||||
|
int deleteByExample(SysBalanceLogExample example); |
||||
int deleteByExample(SysBalanceLogExample example); |
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
int deleteByPrimaryKey(Long id); |
|
||||
|
int insert(SysBalanceLog record); |
||||
int insert(SysBalanceLog record); |
|
||||
|
int insertSelective(SysBalanceLog record); |
||||
int insertSelective(SysBalanceLog record); |
|
||||
|
List<SysBalanceLog> selectByExample(SysBalanceLogExample example); |
||||
List<SysBalanceLog> selectByExample(SysBalanceLogExample example); |
|
||||
|
SysBalanceLog selectByPrimaryKey(Long id); |
||||
SysBalanceLog selectByPrimaryKey(Long id); |
|
||||
|
int updateByExampleSelective(@Param("record") SysBalanceLog record, @Param("example") SysBalanceLogExample example); |
||||
int updateByExampleSelective(@Param("record") SysBalanceLog record, @Param("example") SysBalanceLogExample example); |
|
||||
|
int updateByExample(@Param("record") SysBalanceLog record, @Param("example") SysBalanceLogExample example); |
||||
int updateByExample(@Param("record") SysBalanceLog record, @Param("example") SysBalanceLogExample example); |
|
||||
|
int updateByPrimaryKeySelective(SysBalanceLog record); |
||||
int updateByPrimaryKeySelective(SysBalanceLog record); |
|
||||
|
int updateByPrimaryKey(SysBalanceLog record); |
||||
int updateByPrimaryKey(SysBalanceLog record); |
|
||||
} |
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.ccsens.tall.service; |
||||
|
|
||||
|
import com.ccsens.tall.bean.po.ProMember; |
||||
|
import com.ccsens.tall.bean.po.ProTaskDetail; |
||||
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
public interface IWbsSubSheetService { |
||||
|
|
||||
|
void getSubTask(XSSFWorkbook xssfWorkbook, String sheetName, ProTaskDetail parentTaskDetail, |
||||
|
List<ProTaskDetail> taskDetails, List<ProMember> proMembers, String deliverCell, Map<String, List<ProTaskDetail>> hasGroupMap); |
||||
|
|
||||
|
void getSubTaskMt(XSSFWorkbook xssfWorkbook, String sheetName, ProTaskDetail parentTaskDetail, |
||||
|
List<ProTaskDetail> taskDetails, List<ProMember> proMembers, String deliverCell, Map<String, List<ProTaskDetail>> hasGroupMap); |
||||
|
|
||||
|
} |
@ -0,0 +1,252 @@ |
|||||
|
package com.ccsens.tall.service; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||
|
import cn.hutool.core.lang.Snowflake; |
||||
|
import cn.hutool.core.util.ObjectUtil; |
||||
|
import cn.hutool.core.util.StrUtil; |
||||
|
import com.ccsens.tall.bean.po.*; |
||||
|
import com.ccsens.util.CodeEnum; |
||||
|
import com.ccsens.util.ExcelUtil; |
||||
|
import com.ccsens.util.StringUtil; |
||||
|
import com.ccsens.util.WebConstant; |
||||
|
import com.ccsens.util.exception.BaseException; |
||||
|
import org.apache.poi.xssf.usermodel.XSSFCell; |
||||
|
import org.apache.poi.xssf.usermodel.XSSFRow; |
||||
|
import org.apache.poi.xssf.usermodel.XSSFSheet; |
||||
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
@Service |
||||
|
public class WbsSubSheetService implements IWbsSubSheetService{ |
||||
|
@Autowired |
||||
|
private Snowflake snowflake; |
||||
|
@Autowired |
||||
|
private ITaskMemberService taskMemberService; |
||||
|
@Autowired |
||||
|
private IProTaskDetailService proTaskDetailService; |
||||
|
@Autowired |
||||
|
private IExcelService excelService; |
||||
|
/** |
||||
|
* 读取子任务表 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void getSubTask(XSSFWorkbook xssfWorkbook, String sheetName, ProTaskDetail parentTaskDetail, |
||||
|
List<ProTaskDetail> taskDetails, List<ProMember> proMembers, String deliverCell, Map<String, List<ProTaskDetail>> hasGroupMap) { |
||||
|
XSSFSheet subTaskSheet = xssfWorkbook.getSheet(sheetName); |
||||
|
Long startTime = parentTaskDetail.getBeginTime(); |
||||
|
if (ObjectUtil.isNotNull(subTaskSheet)) { |
||||
|
String str = ExcelUtil.getCellValue(subTaskSheet.getRow(1).getCell(4)); |
||||
|
for (int a = 2; a < subTaskSheet.getLastRowNum(); a++) { |
||||
|
String nameCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(1)); |
||||
|
String beginCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(2)); |
||||
|
String endCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(3)); |
||||
|
//重复时间、相对时间
|
||||
|
String repeatCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(4)); |
||||
|
String memberCell = StringUtil.replaceComma(ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(6))); |
||||
|
//备注
|
||||
|
String descriptionCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(8)); |
||||
|
if (StrUtil.isNotEmpty(nameCell)) { |
||||
|
ProTaskDetail subTask = new ProTaskDetail(); |
||||
|
BeanUtil.copyProperties(parentTaskDetail, subTask); |
||||
|
subTask.setId(snowflake.nextId()); |
||||
|
subTask.setName(nameCell); |
||||
|
subTask.setDescription(descriptionCell); |
||||
|
subTask.setLevel((byte) 3); |
||||
|
subTask.setHasGroup((byte) 0); |
||||
|
subTask.setParentId(parentTaskDetail.getId()); |
||||
|
if (StrUtil.isNotEmpty(memberCell)) { |
||||
|
if (memberCell.equalsIgnoreCase(WebConstant.ROLE_NAME.AllMember.phase)) { |
||||
|
parentTaskDetail.setAllMember((byte) 1); |
||||
|
subTask.setAllMember((byte) 1); |
||||
|
} else { |
||||
|
parentTaskDetail.setAllMember((byte) 0); |
||||
|
subTask.setAllMember((byte) 0); |
||||
|
List<String> memberList = StringUtil.extractMessage(memberCell); |
||||
|
if (CollectionUtil.isNotEmpty(memberList)) { |
||||
|
for (String memberName : memberList) { |
||||
|
if (CollectionUtil.isNotEmpty(proMembers)) { |
||||
|
Long proMemberId = null; |
||||
|
for (ProMember proMember : proMembers) { |
||||
|
if (memberName.equalsIgnoreCase(proMember.getNickname())) { |
||||
|
proMemberId = proMember.getId(); |
||||
|
ProTaskMember proTaskMember = new ProTaskMember(); |
||||
|
proTaskMember.setId(snowflake.nextId()); |
||||
|
proTaskMember.setTaskDetailId(subTask.getId()); |
||||
|
proTaskMember.setMemberId(proMemberId); |
||||
|
taskMemberService.saveTaskMember(proTaskMember); |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
if (ObjectUtil.isNull(proMemberId)) { |
||||
|
throw new BaseException(CodeEnum.WSB_NOT_MEMBER.addMsg(subTaskSheet.getSheetName() + a)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} else { |
||||
|
throw new BaseException(CodeEnum.WSB_NOT_MEMBER.addMsg(subTaskSheet.getSheetName() + a)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (StrUtil.isNotEmpty(repeatCell)) { |
||||
|
if ("重复时间".equals(str)) { |
||||
|
subTask.setCycle(repeatCell); |
||||
|
} |
||||
|
if ("相对时间".equals(str)) { |
||||
|
subTask.setBeginTime(startTime); |
||||
|
Long relative = StringUtil.severalDay(repeatCell); |
||||
|
if (ObjectUtil.isNotNull(relative)) { |
||||
|
subTask.setEndTime(startTime + relative); |
||||
|
} |
||||
|
} |
||||
|
} else { |
||||
|
if (ObjectUtil.isNotNull(beginCell)) { |
||||
|
subTask.setBeginTime(Long.valueOf(beginCell)); |
||||
|
} |
||||
|
if (ObjectUtil.isNotNull(endCell)) { |
||||
|
subTask.setEndTime(Long.valueOf(endCell)); |
||||
|
} |
||||
|
parentTaskDetail.setBeginTime(subTask.getBeginTime()); |
||||
|
} |
||||
|
startTime = subTask.getEndTime(); |
||||
|
//给每个子任务添加交付物
|
||||
|
excelService.readDeliverSheet(deliverCell, xssfWorkbook, subTask.getId()); |
||||
|
|
||||
|
proTaskDetailService.saveTaskDetail(subTask); |
||||
|
taskDetails.add(subTask); |
||||
|
} |
||||
|
} |
||||
|
} else { |
||||
|
throw new BaseException(CodeEnum.WBS_NOT_SUB_TASK); |
||||
|
} |
||||
|
parentTaskDetail.setRecStatus((byte) 2); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 读取年终总结子表 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void getSubTaskMt(XSSFWorkbook xssfWorkbook, String sheetName, ProTaskDetail parentTaskDetail, |
||||
|
List<ProTaskDetail> taskDetails, List<ProMember> proMembers, String deliverCell, Map<String, List<ProTaskDetail>> hasGroupMap) { |
||||
|
List<ProTaskDetail> taskNameList = new ArrayList<>(); |
||||
|
|
||||
|
XSSFSheet subTaskSheet = xssfWorkbook.getSheet(sheetName); |
||||
|
if (ObjectUtil.isNotNull(subTaskSheet)) { |
||||
|
for (int a = 2; a < subTaskSheet.getLastRowNum(); a++) { |
||||
|
String nameCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(1)); |
||||
|
String beginCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(2)); |
||||
|
String endCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(3)); |
||||
|
//重复时间、相对时间
|
||||
|
String repeatCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(4)); |
||||
|
String memberCell = StringUtil.replaceComma(ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(6))); |
||||
|
//备注
|
||||
|
String descriptionCell = ExcelUtil.getCellValue(subTaskSheet.getRow(a).getCell(8)); |
||||
|
if (StrUtil.isNotEmpty(nameCell)) { |
||||
|
ProTaskDetail subTask = new ProTaskDetail(); |
||||
|
BeanUtil.copyProperties(parentTaskDetail, subTask); |
||||
|
subTask.setId(snowflake.nextId()); |
||||
|
subTask.setName(nameCell); |
||||
|
subTask.setDescription(descriptionCell); |
||||
|
if (StrUtil.isNotEmpty(beginCell)) { |
||||
|
subTask.setBeginTime(Long.valueOf(beginCell)); |
||||
|
} |
||||
|
if (StrUtil.isNotEmpty(endCell)) { |
||||
|
subTask.setEndTime(Long.valueOf(endCell)); |
||||
|
} |
||||
|
subTask.setLevel((byte) 2); |
||||
|
subTask.setHasGroup((byte) 0); |
||||
|
if (StrUtil.isNotEmpty(memberCell)) { |
||||
|
if (memberCell.equalsIgnoreCase(WebConstant.ROLE_NAME.AllMember.phase)) { |
||||
|
subTask.setAllMember((byte) 1); |
||||
|
} else { |
||||
|
subTask.setAllMember((byte) 0); |
||||
|
if (CollectionUtil.isNotEmpty(proMembers)) { |
||||
|
Long proMemberId = null; |
||||
|
for (ProMember proMember : proMembers) { |
||||
|
if (memberCell.equalsIgnoreCase(proMember.getNickname())) { |
||||
|
proMemberId = proMember.getId(); |
||||
|
ProTaskMember proTaskMember = new ProTaskMember(); |
||||
|
proTaskMember.setId(snowflake.nextId()); |
||||
|
proTaskMember.setMemberId(proMemberId); |
||||
|
proTaskMember.setTaskDetailId(subTask.getId()); |
||||
|
taskMemberService.saveTaskMember(proTaskMember); |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
if (ObjectUtil.isNull(proMemberId)) { |
||||
|
throw new BaseException(CodeEnum.WSB_NOT_MEMBER.addMsg(subTaskSheet.getSheetName() + a)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} else { |
||||
|
throw new BaseException(CodeEnum.WSB_NOT_MEMBER.addMsg(subTaskSheet.getSheetName() + a)); |
||||
|
} |
||||
|
|
||||
|
//给每个子任务添加交付物
|
||||
|
excelService.readDeliverSheet(deliverCell, xssfWorkbook, subTask.getId()); |
||||
|
|
||||
|
proTaskDetailService.saveTaskDetail(subTask); |
||||
|
taskDetails.add(subTask); |
||||
|
taskNameList.add(subTask); |
||||
|
} |
||||
|
} |
||||
|
hasGroupMap.put(parentTaskDetail.getName(), taskNameList); |
||||
|
} else { |
||||
|
throw new BaseException(CodeEnum.WBS_NOT_SUB_TASK); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public void getSigninSheet(XSSFWorkbook xssfWorkbook,List<ProTaskDetail> taskDetails){ |
||||
|
XSSFSheet signSheet = xssfWorkbook.getSheet("签到信息表"); |
||||
|
int fuzzyStart = 0; |
||||
|
for (int i = 0; i <= signSheet.getLastRowNum(); i++) { |
||||
|
XSSFRow xssfRow = signSheet.getRow(i); |
||||
|
if (xssfRow == null) { |
||||
|
continue; |
||||
|
} |
||||
|
XSSFCell xssfCell = xssfRow.getCell(0); |
||||
|
if (xssfCell == null) { |
||||
|
continue; |
||||
|
} |
||||
|
String s = ExcelUtil.getCellValue(xssfCell); |
||||
|
|
||||
|
if (s.indexOf("需要模糊查询的信息") == 0) { |
||||
|
fuzzyStart = i + 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
for (int i = 0; i < fuzzyStart; i++) { |
||||
|
String taskName = ExcelUtil.getCellValue(signSheet.getRow(i).getCell(1)); |
||||
|
String pluginName = ExcelUtil.getCellValue(signSheet.getRow(i).getCell(2)); |
||||
|
String signName = ExcelUtil.getCellValue(signSheet.getRow(i).getCell(3)); |
||||
|
String isRequired = ExcelUtil.getCellValue(signSheet.getRow(i).getCell(3)); |
||||
|
|
||||
|
ProPluginSignin proPluginSignin = new ProPluginSignin(); |
||||
|
|
||||
|
|
||||
|
Long taskDetailId = null; |
||||
|
if(StrUtil.isNotEmpty(taskName) && CollectionUtil.isNotEmpty(taskDetails)){ |
||||
|
for(ProTaskDetail taskDetail : taskDetails){ |
||||
|
if(taskName.equalsIgnoreCase(taskDetail.getName())){ |
||||
|
taskDetailId = taskDetail.getId(); |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
if(ObjectUtil.isNotNull(pluginName)){ |
||||
|
SysPluginExample sysPluginExample = new SysPluginExample(); |
||||
|
sysPluginExample.createCriteria().andNameEqualTo(pluginName); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
<?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.ccsens.tall.persist.dao.SysUserDao"> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<update id="replaceAuth" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_sys_auth |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceAttention" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_sys_user_attention |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceBalance" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_sys_balance_log |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceProject" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_sys_project |
||||
|
set |
||||
|
creator_id = #{newUserId} |
||||
|
where |
||||
|
creator_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceMember" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_pro_member |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceDeliverPostLog" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_pro_task_deliver_post_log |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="replaceProLog" parameterType="java.util.Map"> |
||||
|
update |
||||
|
t_pro_log |
||||
|
set |
||||
|
user_id = #{newUserId} |
||||
|
where |
||||
|
user_id = #{oldUserId} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,243 @@ |
|||||
|
<?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.ccsens.tall.persist.mapper.ProPluginSigninFuzzyMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProPluginSigninFuzzy"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
||||
|
<result column="signin_field_id" jdbcType="BIGINT" property="signinFieldId" /> |
||||
|
<result column="description" jdbcType="VARCHAR" property="description" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, project_id, signin_field_id, description, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzyExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_pro_plugin_signin_fuzzy |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_pro_plugin_signin_fuzzy |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_pro_plugin_signin_fuzzy |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzyExample"> |
||||
|
delete from t_pro_plugin_signin_fuzzy |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzy"> |
||||
|
insert into t_pro_plugin_signin_fuzzy (id, project_id, signin_field_id, |
||||
|
description, created_at, updated_at, |
||||
|
rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{signinFieldId,jdbcType=BIGINT}, |
||||
|
#{description,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
#{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzy"> |
||||
|
insert into t_pro_plugin_signin_fuzzy |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="projectId != null"> |
||||
|
project_id, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
signin_field_id, |
||||
|
</if> |
||||
|
<if test="description != null"> |
||||
|
description, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="projectId != null"> |
||||
|
#{projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
#{signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="description != null"> |
||||
|
#{description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzyExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_pro_plugin_signin_fuzzy |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_pro_plugin_signin_fuzzy |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.projectId != null"> |
||||
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.signinFieldId != null"> |
||||
|
signin_field_id = #{record.signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.description != null"> |
||||
|
description = #{record.description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_pro_plugin_signin_fuzzy |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
||||
|
signin_field_id = #{record.signinFieldId,jdbcType=BIGINT}, |
||||
|
description = #{record.description,jdbcType=VARCHAR}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzy"> |
||||
|
update t_pro_plugin_signin_fuzzy |
||||
|
<set> |
||||
|
<if test="projectId != null"> |
||||
|
project_id = #{projectId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
signin_field_id = #{signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="description != null"> |
||||
|
description = #{description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProPluginSigninFuzzy"> |
||||
|
update t_pro_plugin_signin_fuzzy |
||||
|
set project_id = #{projectId,jdbcType=BIGINT}, |
||||
|
signin_field_id = #{signinFieldId,jdbcType=BIGINT}, |
||||
|
description = #{description,jdbcType=VARCHAR}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,259 @@ |
|||||
|
<?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.ccsens.tall.persist.mapper.ProPluginSigninMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProPluginSignin"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="task_plugin_id" jdbcType="BIGINT" property="taskPluginId" /> |
||||
|
<result column="signin_field_id" jdbcType="BIGINT" property="signinFieldId" /> |
||||
|
<result column="is_fuzzy" jdbcType="TINYINT" property="isFuzzy" /> |
||||
|
<result column="is_required" jdbcType="TINYINT" property="isRequired" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, task_plugin_id, signin_field_id, is_fuzzy, is_required, created_at, updated_at, |
||||
|
rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_pro_plugin_signin |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_pro_plugin_signin |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_pro_plugin_signin |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninExample"> |
||||
|
delete from t_pro_plugin_signin |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProPluginSignin"> |
||||
|
insert into t_pro_plugin_signin (id, task_plugin_id, signin_field_id, |
||||
|
is_fuzzy, is_required, created_at, |
||||
|
updated_at, rec_status) |
||||
|
values (#{id,jdbcType=BIGINT}, #{taskPluginId,jdbcType=BIGINT}, #{signinFieldId,jdbcType=BIGINT}, |
||||
|
#{isFuzzy,jdbcType=TINYINT}, #{isRequired,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProPluginSignin"> |
||||
|
insert into t_pro_plugin_signin |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="taskPluginId != null"> |
||||
|
task_plugin_id, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
signin_field_id, |
||||
|
</if> |
||||
|
<if test="isFuzzy != null"> |
||||
|
is_fuzzy, |
||||
|
</if> |
||||
|
<if test="isRequired != null"> |
||||
|
is_required, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="taskPluginId != null"> |
||||
|
#{taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
#{signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="isFuzzy != null"> |
||||
|
#{isFuzzy,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="isRequired != null"> |
||||
|
#{isRequired,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProPluginSigninExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_pro_plugin_signin |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_pro_plugin_signin |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.taskPluginId != null"> |
||||
|
task_plugin_id = #{record.taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.signinFieldId != null"> |
||||
|
signin_field_id = #{record.signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.isFuzzy != null"> |
||||
|
is_fuzzy = #{record.isFuzzy,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.isRequired != null"> |
||||
|
is_required = #{record.isRequired,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_pro_plugin_signin |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
task_plugin_id = #{record.taskPluginId,jdbcType=BIGINT}, |
||||
|
signin_field_id = #{record.signinFieldId,jdbcType=BIGINT}, |
||||
|
is_fuzzy = #{record.isFuzzy,jdbcType=TINYINT}, |
||||
|
is_required = #{record.isRequired,jdbcType=TINYINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProPluginSignin"> |
||||
|
update t_pro_plugin_signin |
||||
|
<set> |
||||
|
<if test="taskPluginId != null"> |
||||
|
task_plugin_id = #{taskPluginId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="signinFieldId != null"> |
||||
|
signin_field_id = #{signinFieldId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="isFuzzy != null"> |
||||
|
is_fuzzy = #{isFuzzy,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="isRequired != null"> |
||||
|
is_required = #{isRequired,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProPluginSignin"> |
||||
|
update t_pro_plugin_signin |
||||
|
set task_plugin_id = #{taskPluginId,jdbcType=BIGINT}, |
||||
|
signin_field_id = #{signinFieldId,jdbcType=BIGINT}, |
||||
|
is_fuzzy = #{isFuzzy,jdbcType=TINYINT}, |
||||
|
is_required = #{isRequired,jdbcType=TINYINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,275 @@ |
|||||
|
<?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.ccsens.tall.persist.mapper.SigninFieldMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SigninField"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="description" jdbcType="VARCHAR" property="description" /> |
||||
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
|
<result column="type" jdbcType="TINYINT" property="type" /> |
||||
|
<result column="field_value" jdbcType="VARCHAR" property="fieldValue" /> |
||||
|
<result column="format" jdbcType="VARCHAR" property="format" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</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, description, name, type, field_value, format, created_at, updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SigninFieldExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_sys_signin_field |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_sys_signin_field |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_sys_signin_field |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SigninFieldExample"> |
||||
|
delete from t_sys_signin_field |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SigninField"> |
||||
|
insert into t_sys_signin_field (id, description, name, |
||||
|
type, field_value, format, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
||||
|
#{type,jdbcType=TINYINT}, #{fieldValue,jdbcType=VARCHAR}, #{format,jdbcType=VARCHAR}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SigninField"> |
||||
|
insert into t_sys_signin_field |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="description != null"> |
||||
|
description, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type, |
||||
|
</if> |
||||
|
<if test="fieldValue != null"> |
||||
|
field_value, |
||||
|
</if> |
||||
|
<if test="format != null"> |
||||
|
format, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="description != null"> |
||||
|
#{description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
#{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
#{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="fieldValue != null"> |
||||
|
#{fieldValue,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="format != null"> |
||||
|
#{format,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SigninFieldExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_sys_signin_field |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_sys_signin_field |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.description != null"> |
||||
|
description = #{record.description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.name != null"> |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.type != null"> |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.fieldValue != null"> |
||||
|
field_value = #{record.fieldValue,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.format != null"> |
||||
|
format = #{record.format,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_sys_signin_field |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
description = #{record.description,jdbcType=VARCHAR}, |
||||
|
name = #{record.name,jdbcType=VARCHAR}, |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
field_value = #{record.fieldValue,jdbcType=VARCHAR}, |
||||
|
format = #{record.format,jdbcType=VARCHAR}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SigninField"> |
||||
|
update t_sys_signin_field |
||||
|
<set> |
||||
|
<if test="description != null"> |
||||
|
description = #{description,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="name != null"> |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="fieldValue != null"> |
||||
|
field_value = #{fieldValue,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="format != null"> |
||||
|
format = #{format,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SigninField"> |
||||
|
update t_sys_signin_field |
||||
|
set description = #{description,jdbcType=VARCHAR}, |
||||
|
name = #{name,jdbcType=VARCHAR}, |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
field_value = #{fieldValue,jdbcType=VARCHAR}, |
||||
|
format = #{format,jdbcType=VARCHAR}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -1,275 +1,275 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.ccsens.tall.persist.mapper.SysBalanceLogMapper"> |
<mapper namespace="com.ccsens.tall.persist.mapper.SysBalanceLogMapper"> |
||||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysBalanceLog"> |
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysBalanceLog"> |
||||
<id column="id" jdbcType="BIGINT" property="id" /> |
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
<result column="balance" jdbcType="INTEGER" property="balance" /> |
<result column="balance" jdbcType="BIGINT" property="balance" /> |
||||
<result column="offset" jdbcType="INTEGER" property="offset" /> |
<result column="offset" jdbcType="BIGINT" property="offset" /> |
||||
<result column="type" jdbcType="INTEGER" property="type" /> |
<result column="type" jdbcType="INTEGER" property="type" /> |
||||
<result column="phase" jdbcType="VARCHAR" property="phase" /> |
<result column="description" jdbcType="VARCHAR" property="description" /> |
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
</resultMap> |
</resultMap> |
||||
<sql id="Example_Where_Clause"> |
<sql id="Example_Where_Clause"> |
||||
<where> |
<where> |
||||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
<if test="criteria.valid"> |
<if test="criteria.valid"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<choose> |
<choose> |
||||
<when test="criterion.noValue"> |
<when test="criterion.noValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
</when> |
</when> |
||||
<when test="criterion.singleValue"> |
<when test="criterion.singleValue"> |
||||
and ${criterion.condition} #{criterion.value} |
and ${criterion.condition} #{criterion.value} |
||||
</when> |
</when> |
||||
<when test="criterion.betweenValue"> |
<when test="criterion.betweenValue"> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
</when> |
</when> |
||||
<when test="criterion.listValue"> |
<when test="criterion.listValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
#{listItem} |
#{listItem} |
||||
</foreach> |
</foreach> |
||||
</when> |
</when> |
||||
</choose> |
</choose> |
||||
</foreach> |
</foreach> |
||||
</trim> |
</trim> |
||||
</if> |
</if> |
||||
</foreach> |
</foreach> |
||||
</where> |
</where> |
||||
</sql> |
</sql> |
||||
<sql id="Update_By_Example_Where_Clause"> |
<sql id="Update_By_Example_Where_Clause"> |
||||
<where> |
<where> |
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
<if test="criteria.valid"> |
<if test="criteria.valid"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<choose> |
<choose> |
||||
<when test="criterion.noValue"> |
<when test="criterion.noValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
</when> |
</when> |
||||
<when test="criterion.singleValue"> |
<when test="criterion.singleValue"> |
||||
and ${criterion.condition} #{criterion.value} |
and ${criterion.condition} #{criterion.value} |
||||
</when> |
</when> |
||||
<when test="criterion.betweenValue"> |
<when test="criterion.betweenValue"> |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
</when> |
</when> |
||||
<when test="criterion.listValue"> |
<when test="criterion.listValue"> |
||||
and ${criterion.condition} |
and ${criterion.condition} |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
#{listItem} |
#{listItem} |
||||
</foreach> |
</foreach> |
||||
</when> |
</when> |
||||
</choose> |
</choose> |
||||
</foreach> |
</foreach> |
||||
</trim> |
</trim> |
||||
</if> |
</if> |
||||
</foreach> |
</foreach> |
||||
</where> |
</where> |
||||
</sql> |
</sql> |
||||
<sql id="Base_Column_List"> |
<sql id="Base_Column_List"> |
||||
id, user_id, balance, offset, type, phase, created_at, updated_at, rec_status |
id, user_id, balance, offset, type, description, created_at, updated_at, rec_status |
||||
</sql> |
</sql> |
||||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample" resultMap="BaseResultMap"> |
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample" resultMap="BaseResultMap"> |
||||
select |
select |
||||
<if test="distinct"> |
<if test="distinct"> |
||||
distinct |
distinct |
||||
</if> |
</if> |
||||
<include refid="Base_Column_List" /> |
<include refid="Base_Column_List" /> |
||||
from t_sys_balance_log |
from t_sys_balance_log |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
<if test="orderByClause != null"> |
<if test="orderByClause != null"> |
||||
order by ${orderByClause} |
order by ${orderByClause} |
||||
</if> |
</if> |
||||
</select> |
</select> |
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
select |
select |
||||
<include refid="Base_Column_List" /> |
<include refid="Base_Column_List" /> |
||||
from t_sys_balance_log |
from t_sys_balance_log |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</select> |
</select> |
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
delete from t_sys_balance_log |
delete from t_sys_balance_log |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</delete> |
</delete> |
||||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample"> |
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample"> |
||||
delete from t_sys_balance_log |
delete from t_sys_balance_log |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</delete> |
</delete> |
||||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
||||
insert into t_sys_balance_log (id, user_id, balance, |
insert into t_sys_balance_log (id, user_id, balance, |
||||
offset, type, phase, |
offset, type, description, |
||||
created_at, updated_at, rec_status |
created_at, updated_at, rec_status |
||||
) |
) |
||||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{balance,jdbcType=INTEGER}, |
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{balance,jdbcType=BIGINT}, |
||||
#{offset,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{phase,jdbcType=VARCHAR}, |
#{offset,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}, |
||||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
) |
) |
||||
</insert> |
</insert> |
||||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
||||
insert into t_sys_balance_log |
insert into t_sys_balance_log |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="id != null"> |
<if test="id != null"> |
||||
id, |
id, |
||||
</if> |
</if> |
||||
<if test="userId != null"> |
<if test="userId != null"> |
||||
user_id, |
user_id, |
||||
</if> |
</if> |
||||
<if test="balance != null"> |
<if test="balance != null"> |
||||
balance, |
balance, |
||||
</if> |
</if> |
||||
<if test="offset != null"> |
<if test="offset != null"> |
||||
offset, |
offset, |
||||
</if> |
</if> |
||||
<if test="type != null"> |
<if test="type != null"> |
||||
type, |
type, |
||||
</if> |
</if> |
||||
<if test="phase != null"> |
<if test="description != null"> |
||||
phase, |
description, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
created_at, |
created_at, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
updated_at, |
updated_at, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
rec_status, |
rec_status, |
||||
</if> |
</if> |
||||
</trim> |
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="id != null"> |
<if test="id != null"> |
||||
#{id,jdbcType=BIGINT}, |
#{id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="userId != null"> |
<if test="userId != null"> |
||||
#{userId,jdbcType=BIGINT}, |
#{userId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="balance != null"> |
<if test="balance != null"> |
||||
#{balance,jdbcType=INTEGER}, |
#{balance,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="offset != null"> |
<if test="offset != null"> |
||||
#{offset,jdbcType=INTEGER}, |
#{offset,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="type != null"> |
<if test="type != null"> |
||||
#{type,jdbcType=INTEGER}, |
#{type,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
<if test="phase != null"> |
<if test="description != null"> |
||||
#{phase,jdbcType=VARCHAR}, |
#{description,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
#{createdAt,jdbcType=TIMESTAMP}, |
#{createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
#{updatedAt,jdbcType=TIMESTAMP}, |
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
#{recStatus,jdbcType=TINYINT}, |
#{recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</trim> |
</trim> |
||||
</insert> |
</insert> |
||||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample" resultType="java.lang.Long"> |
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysBalanceLogExample" resultType="java.lang.Long"> |
||||
select count(*) from t_sys_balance_log |
select count(*) from t_sys_balance_log |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Example_Where_Clause" /> |
<include refid="Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</select> |
</select> |
||||
<update id="updateByExampleSelective" parameterType="map"> |
<update id="updateByExampleSelective" parameterType="map"> |
||||
update t_sys_balance_log |
update t_sys_balance_log |
||||
<set> |
<set> |
||||
<if test="record.id != null"> |
<if test="record.id != null"> |
||||
id = #{record.id,jdbcType=BIGINT}, |
id = #{record.id,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.userId != null"> |
<if test="record.userId != null"> |
||||
user_id = #{record.userId,jdbcType=BIGINT}, |
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.balance != null"> |
<if test="record.balance != null"> |
||||
balance = #{record.balance,jdbcType=INTEGER}, |
balance = #{record.balance,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.offset != null"> |
<if test="record.offset != null"> |
||||
offset = #{record.offset,jdbcType=INTEGER}, |
offset = #{record.offset,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.type != null"> |
<if test="record.type != null"> |
||||
type = #{record.type,jdbcType=INTEGER}, |
type = #{record.type,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
<if test="record.phase != null"> |
<if test="record.description != null"> |
||||
phase = #{record.phase,jdbcType=VARCHAR}, |
description = #{record.description,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.createdAt != null"> |
<if test="record.createdAt != null"> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.updatedAt != null"> |
<if test="record.updatedAt != null"> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.recStatus != null"> |
<if test="record.recStatus != null"> |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</set> |
</set> |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</update> |
</update> |
||||
<update id="updateByExample" parameterType="map"> |
<update id="updateByExample" parameterType="map"> |
||||
update t_sys_balance_log |
update t_sys_balance_log |
||||
set id = #{record.id,jdbcType=BIGINT}, |
set id = #{record.id,jdbcType=BIGINT}, |
||||
user_id = #{record.userId,jdbcType=BIGINT}, |
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
balance = #{record.balance,jdbcType=INTEGER}, |
balance = #{record.balance,jdbcType=BIGINT}, |
||||
offset = #{record.offset,jdbcType=INTEGER}, |
offset = #{record.offset,jdbcType=BIGINT}, |
||||
type = #{record.type,jdbcType=INTEGER}, |
type = #{record.type,jdbcType=INTEGER}, |
||||
phase = #{record.phase,jdbcType=VARCHAR}, |
description = #{record.description,jdbcType=VARCHAR}, |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
<if test="_parameter != null"> |
<if test="_parameter != null"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
</if> |
</if> |
||||
</update> |
</update> |
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
||||
update t_sys_balance_log |
update t_sys_balance_log |
||||
<set> |
<set> |
||||
<if test="userId != null"> |
<if test="userId != null"> |
||||
user_id = #{userId,jdbcType=BIGINT}, |
user_id = #{userId,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="balance != null"> |
<if test="balance != null"> |
||||
balance = #{balance,jdbcType=INTEGER}, |
balance = #{balance,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="offset != null"> |
<if test="offset != null"> |
||||
offset = #{offset,jdbcType=INTEGER}, |
offset = #{offset,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="type != null"> |
<if test="type != null"> |
||||
type = #{type,jdbcType=INTEGER}, |
type = #{type,jdbcType=INTEGER}, |
||||
</if> |
</if> |
||||
<if test="phase != null"> |
<if test="description != null"> |
||||
phase = #{phase,jdbcType=VARCHAR}, |
description = #{description,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="createdAt != null"> |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
<if test="updatedAt != null"> |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="recStatus != null"> |
<if test="recStatus != null"> |
||||
rec_status = #{recStatus,jdbcType=TINYINT}, |
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
</set> |
</set> |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</update> |
</update> |
||||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysBalanceLog"> |
||||
update t_sys_balance_log |
update t_sys_balance_log |
||||
set user_id = #{userId,jdbcType=BIGINT}, |
set user_id = #{userId,jdbcType=BIGINT}, |
||||
balance = #{balance,jdbcType=INTEGER}, |
balance = #{balance,jdbcType=BIGINT}, |
||||
offset = #{offset,jdbcType=INTEGER}, |
offset = #{offset,jdbcType=BIGINT}, |
||||
type = #{type,jdbcType=INTEGER}, |
type = #{type,jdbcType=INTEGER}, |
||||
phase = #{phase,jdbcType=VARCHAR}, |
description = #{description,jdbcType=VARCHAR}, |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
rec_status = #{recStatus,jdbcType=TINYINT} |
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
where id = #{id,jdbcType=BIGINT} |
where id = #{id,jdbcType=BIGINT} |
||||
</update> |
</update> |
||||
</mapper> |
</mapper> |
@ -1,430 +1,430 @@ |
|||||
package com.ccsens.util; |
//package com.ccsens.util;
|
||||
|
//
|
||||
import cn.hutool.core.util.ObjectUtil; |
//import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil; |
//import cn.hutool.core.util.StrUtil;
|
||||
import lombok.Data; |
//import lombok.Data;
|
||||
import org.apache.commons.codec.digest.DigestUtils; |
//import org.apache.commons.codec.digest.DigestUtils;
|
||||
|
//
|
||||
import java.io.ByteArrayInputStream; |
//import java.io.ByteArrayInputStream;
|
||||
import java.io.UnsupportedEncodingException; |
//import java.io.UnsupportedEncodingException;
|
||||
import java.net.ConnectException; |
//import java.net.ConnectException;
|
||||
import java.util.*; |
//import java.util.*;
|
||||
|
//
|
||||
@Data |
//@Data
|
||||
class GetUserInfoException extends RuntimeException{ |
//class GetUserInfoException extends RuntimeException{
|
||||
private int code; |
// private int code;
|
||||
public GetUserInfoException(int code,String message){ |
// public GetUserInfoException(int code,String message){
|
||||
super(message); |
// super(message);
|
||||
this.code = code; |
// this.code = code;
|
||||
} |
// }
|
||||
} |
//}
|
||||
|
//
|
||||
@Data |
//@Data
|
||||
class PayException extends RuntimeException{ |
//class PayException extends RuntimeException{
|
||||
private int code; |
// private int code;
|
||||
public PayException(int code,String message){ |
// public PayException(int code,String message){
|
||||
super(message); |
// super(message);
|
||||
this.code = code; |
// this.code = code;
|
||||
} |
// }
|
||||
|
//
|
||||
public PayException(String message){ |
// public PayException(String message){
|
||||
super(message); |
// super(message);
|
||||
this.code = -1; |
// this.code = -1;
|
||||
} |
// }
|
||||
} |
//}
|
||||
|
//
|
||||
public class WechatUtil { |
//public class WechatUtil {
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 被Jasckson使用的内部类 必须是static的 |
// * 被Jasckson使用的内部类 必须是static的
|
||||
*/ |
// */
|
||||
public static class WechatUser { |
// public static class WechatUser {
|
||||
public String openid; |
// public String openid;
|
||||
public String session_key; |
// public String session_key;
|
||||
public String unionid; |
// public String unionid;
|
||||
public String errcode; |
// public String errcode;
|
||||
public String errmsg; |
// public String errmsg;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Access_Token |
// * Access_Token
|
||||
*/ |
// */
|
||||
public static class WechatToken{ |
// public static class WechatToken{
|
||||
public String access_token; |
// public String access_token;
|
||||
public Long expires_in; |
// public Long expires_in;
|
||||
public String errcode; |
// public String errcode;
|
||||
public String errmsg; |
// public String errmsg;
|
||||
public Date create_at; |
// public Date create_at;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Get wx code |
// * Get wx code
|
||||
*/ |
// */
|
||||
public static class WechatCode{ |
// public static class WechatCode{
|
||||
public String scene; |
// public String scene;
|
||||
public String page; |
// public String page;
|
||||
public Integer width; |
// public Integer width;
|
||||
public Boolean auto_color; |
// public Boolean auto_color;
|
||||
public Boolean line_color; |
// public Boolean line_color;
|
||||
public Boolean is_hyaline; |
// public Boolean is_hyaline;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Prepare pay |
// * Prepare pay
|
||||
*/ |
// */
|
||||
public static class PreparePayBean{ |
// public static class PreparePayBean{
|
||||
public String appid;//小程序ID
|
// public String appid;//小程序ID
|
||||
public String mch_id;//商户号
|
// public String mch_id;//商户号
|
||||
public String device_info;//设备号
|
// public String device_info;//设备号
|
||||
public String nonce_str;//随机字符串
|
// public String nonce_str;//随机字符串
|
||||
public String sign;//签名
|
// public String sign;//签名
|
||||
public String sign_type; //签名类型
|
// public String sign_type; //签名类型
|
||||
public String body;//商品描述
|
// public String body;//商品描述
|
||||
public String detail;//商品详情
|
// public String detail;//商品详情
|
||||
public String attach;//附加数据
|
// public String attach;//附加数据
|
||||
public String out_trade_no;//商户订单号
|
// public String out_trade_no;//商户订单号
|
||||
public String fee_type;//货币类型
|
// public String fee_type;//货币类型
|
||||
public Integer total_fee; //金额(分)
|
// public Integer total_fee; //金额(分)
|
||||
public String spbill_create_ip;//终端IP
|
// public String spbill_create_ip;//终端IP
|
||||
public String time_start;//交易起始时间
|
// public String time_start;//交易起始时间
|
||||
public String time_expire;//交易结束时间
|
// public String time_expire;//交易结束时间
|
||||
public String goods_tag;//商品标记
|
// public String goods_tag;//商品标记
|
||||
public String notify_url;//通知地址
|
// public String notify_url;//通知地址
|
||||
public String trade_type;//交易类型
|
// public String trade_type;//交易类型
|
||||
public String product_id;//商品id
|
// public String product_id;//商品id
|
||||
public String limit_pay;//指定支付方式
|
// public String limit_pay;//指定支付方式
|
||||
public String openid;//用户标识
|
// public String openid;//用户标识
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Prepare pay result |
// * Prepare pay result
|
||||
*/ |
// */
|
||||
public static class PreparePayResultBean{ |
// public static class PreparePayResultBean{
|
||||
public String return_code; |
// public String return_code;
|
||||
public String return_msg; |
// public String return_msg;
|
||||
public String result_code; |
// public String result_code;
|
||||
public String prepay_id; |
// public String prepay_id;
|
||||
public String err_code; |
// public String err_code;
|
||||
public String err_code_des; |
// public String err_code_des;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Prepare pay resign |
// * Prepare pay resign
|
||||
*/ |
// */
|
||||
public static class PreparePayReSignBean{ |
// public static class PreparePayReSignBean{
|
||||
public String nonceStr; |
// public String nonceStr;
|
||||
public String _package; |
// public String _package;
|
||||
public long timeStamp; |
// public long timeStamp;
|
||||
public String paySign; |
// public String paySign;
|
||||
public String signType; |
// public String signType;
|
||||
} |
// }
|
||||
|
//
|
||||
private static final String URL_LOGIN |
// private static final String URL_LOGIN
|
||||
= "https://api.weixin.qq.com/sns/jscode2session?appid=%1$s&secret=%2$s&js_code=%3$s&grant_type=%4$s"; |
// = "https://api.weixin.qq.com/sns/jscode2session?appid=%1$s&secret=%2$s&js_code=%3$s&grant_type=%4$s";
|
||||
private static final String URL_GET_ACCESS_TOKEN |
// private static final String URL_GET_ACCESS_TOKEN
|
||||
= "https://api.weixin.qq.com/cgi-bin/token?grant_type=%1$s&appid=%2$s&secret=%3$s"; |
// = "https://api.weixin.qq.com/cgi-bin/token?grant_type=%1$s&appid=%2$s&secret=%3$s";
|
||||
private static final String URL_GET_WX_CODE_A |
// private static final String URL_GET_WX_CODE_A
|
||||
= "https://api.weixin.qq.com/wxa/getwxacode?access_token=%1$s"; |
// = "https://api.weixin.qq.com/wxa/getwxacode?access_token=%1$s";
|
||||
private static final String URL_GET_WX_CODE_B |
// private static final String URL_GET_WX_CODE_B
|
||||
= "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=%1$s"; |
// = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=%1$s";
|
||||
private static final String URL_GET_WX_CODE_C |
// private static final String URL_GET_WX_CODE_C
|
||||
= "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=%1$s"; |
// = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=%1$s";
|
||||
private static final String URL_PREPARE_PAY |
// private static final String URL_PREPARE_PAY
|
||||
= "https://api.mch.weixin.qq.com/pay/unifiedorder"; |
// = "https://api.mch.weixin.qq.com/pay/unifiedorder";
|
||||
private static final String URL_PAY_TO_USR_WX |
// private static final String URL_PAY_TO_USR_WX
|
||||
= "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers"; |
// = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";
|
||||
private static final String URL_PAY_TO_USR_BANK |
// private static final String URL_PAY_TO_USR_BANK
|
||||
= "https://api.mch.weixin.qq.com/mmpaysptrans/pay_bank"; |
// = "https://api.mch.weixin.qq.com/mmpaysptrans/pay_bank";
|
||||
|
//
|
||||
private static final String appid = "wx356e01c7eb01d55d"; |
// private static final String appid = "wx356e01c7eb01d55d";
|
||||
private static final String secret = "83149f3e151d9532f1d2eb76ca10722b"; |
// private static final String secret = "83149f3e151d9532f1d2eb76ca10722b";
|
||||
private static final String mchid = "1513955071"; |
// private static final String mchid = "1513955071";
|
||||
private static final String key = "5a689a2d6b8c4ff499c23d998fde0941"; //商户平台key
|
// private static final String key = "5a689a2d6b8c4ff499c23d998fde0941"; //商户平台key
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 小程序登陆,根据code获取用户信息(openid,sessionKey,) |
// * 小程序登陆,根据code获取用户信息(openid,sessionKey,)
|
||||
* @param code |
// * @param code
|
||||
* @return |
// * @return
|
||||
* @throws ConnectException |
// * @throws ConnectException
|
||||
* @throws Exception |
// * @throws Exception
|
||||
*/ |
// */
|
||||
public static WechatUser getUserInfo(String code) throws Exception { |
// public static WechatUser getUserInfo(String code) throws Exception {
|
||||
String response = null; |
// String response = null;
|
||||
WechatUser wechatUser = null; |
// WechatUser wechatUser = null;
|
||||
String url_login = String.format(URL_LOGIN, appid, secret, code, "authorization_code"); |
// String url_login = String.format(URL_LOGIN, appid, secret, code, "authorization_code");
|
||||
|
//
|
||||
try { |
// try {
|
||||
response = HttpsUtil.httpsRequest(url_login, "GET", null); |
// response = HttpsUtil.httpsRequest(url_login, "GET", null);
|
||||
wechatUser = JacksonUtil.jsonToBean(response, WechatUser.class); |
// wechatUser = JacksonUtil.jsonToBean(response, WechatUser.class);
|
||||
}catch (Exception e){ |
// }catch (Exception e){
|
||||
throw new GetUserInfoException(-1,e.getMessage()); |
// throw new GetUserInfoException(-1,e.getMessage());
|
||||
} |
// }
|
||||
|
//
|
||||
if(wechatUser == null) { |
// if(wechatUser == null) {
|
||||
throw new GetUserInfoException(-1, "Get UserInfoByCode failed."); |
// throw new GetUserInfoException(-1, "Get UserInfoByCode failed.");
|
||||
} |
// }
|
||||
if(!StrUtil.isEmpty(wechatUser.errcode)) { |
// if(!StrUtil.isEmpty(wechatUser.errcode)) {
|
||||
throw new GetUserInfoException(Integer.valueOf(wechatUser.errcode), wechatUser.errmsg); |
// throw new GetUserInfoException(Integer.valueOf(wechatUser.errcode), wechatUser.errmsg);
|
||||
} |
// }
|
||||
|
//
|
||||
return wechatUser; |
// return wechatUser;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 获取Access_token |
// * 获取Access_token
|
||||
* @return |
// * @return
|
||||
* @throws Exception |
// * @throws Exception
|
||||
*/ |
// */
|
||||
public static WechatToken getAccessToken() throws Exception { |
// public static WechatToken getAccessToken() throws Exception {
|
||||
String response = null; |
// String response = null;
|
||||
WechatToken wechatToken = null; |
// WechatToken wechatToken = null;
|
||||
String url = String.format(URL_GET_ACCESS_TOKEN,"client_credential",appid,secret); |
// String url = String.format(URL_GET_ACCESS_TOKEN,"client_credential",appid,secret);
|
||||
|
//
|
||||
response = HttpsUtil.httpsRequest(url,"GET",null); |
// response = HttpsUtil.httpsRequest(url,"GET",null);
|
||||
if(StrUtil.isEmpty(response)) { |
// if(StrUtil.isEmpty(response)) {
|
||||
return null; |
// return null;
|
||||
} |
// }
|
||||
wechatToken = JacksonUtil.jsonToBean(response,WechatToken.class); |
// wechatToken = JacksonUtil.jsonToBean(response,WechatToken.class);
|
||||
wechatToken.create_at = new Date(); |
// wechatToken.create_at = new Date();
|
||||
return wechatToken; |
// return wechatToken;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 获取小程序二维码/小程序码 |
// * 获取小程序二维码/小程序码
|
||||
* @return |
// * @return
|
||||
* @throws Exception |
// * @throws Exception
|
||||
*/ |
// */
|
||||
public static void getWxCode(String page,String scene,String path) throws Exception { |
// public static void getWxCode(String page,String scene,String path) throws Exception {
|
||||
WechatToken wechatToken = getAccessToken(); |
// WechatToken wechatToken = getAccessToken();
|
||||
String url = String.format(URL_GET_WX_CODE_B,wechatToken.access_token); |
// String url = String.format(URL_GET_WX_CODE_B,wechatToken.access_token);
|
||||
|
//
|
||||
WechatCode wechatCode = new WechatCode(); |
// WechatCode wechatCode = new WechatCode();
|
||||
wechatCode.page = page; |
// wechatCode.page = page;
|
||||
wechatCode.scene = scene; |
// wechatCode.scene = scene;
|
||||
|
//
|
||||
String postStr = JacksonUtil.beanToJson(wechatCode); |
// String postStr = JacksonUtil.beanToJson(wechatCode);
|
||||
System.out.println(postStr); |
// System.out.println(postStr);
|
||||
|
//
|
||||
HttpsUtil.httpsRequest(url,"POST",postStr,path); |
// HttpsUtil.httpsRequest(url,"POST",postStr,path);
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 统一下单 |
// * 统一下单
|
||||
*/ |
// */
|
||||
public static PreparePayReSignBean preparePay(String openid,String out_trade_no,String body,int total_fee,String spbill_create_ip, |
// public static PreparePayReSignBean preparePay(String openid,String out_trade_no,String body,int total_fee,String spbill_create_ip,
|
||||
String notify_url) throws Exception { |
// String notify_url) throws Exception {
|
||||
PreparePayBean preparePayBean = new PreparePayBean(); |
// PreparePayBean preparePayBean = new PreparePayBean();
|
||||
preparePayBean.appid = appid; |
// preparePayBean.appid = appid;
|
||||
preparePayBean.mch_id = mchid; |
// preparePayBean.mch_id = mchid;
|
||||
preparePayBean.openid = openid; |
// preparePayBean.openid = openid;
|
||||
preparePayBean.total_fee = total_fee; |
// preparePayBean.total_fee = total_fee;
|
||||
preparePayBean.out_trade_no = out_trade_no; |
// preparePayBean.out_trade_no = out_trade_no;
|
||||
preparePayBean.body = new String(body.getBytes("ISO-8859-1"),"UTF-8");//以utf-8编码放入paymentPo,微信支付要求字符编码统一采用UTF-8字符编码
|
// preparePayBean.body = new String(body.getBytes("ISO-8859-1"),"UTF-8");//以utf-8编码放入paymentPo,微信支付要求字符编码统一采用UTF-8字符编码
|
||||
//preparePayBean.body = new String("聊天密码小程序-充值");
|
// //preparePayBean.body = new String("聊天密码小程序-充值");
|
||||
preparePayBean.spbill_create_ip = spbill_create_ip; |
// preparePayBean.spbill_create_ip = spbill_create_ip;
|
||||
preparePayBean.notify_url = notify_url; |
// preparePayBean.notify_url = notify_url;
|
||||
preparePayBean.trade_type = "JSAPI"; |
// preparePayBean.trade_type = "JSAPI";
|
||||
preparePayBean.nonce_str = createNonceStr(); |
// preparePayBean.nonce_str = createNonceStr();
|
||||
|
//
|
||||
// 把请求参数打包成数组
|
// // 把请求参数打包成数组
|
||||
Map<String,Object> sParaTemp = new HashMap(); |
// Map<String,Object> sParaTemp = new HashMap();
|
||||
sParaTemp.put("appid", preparePayBean.appid); |
// sParaTemp.put("appid", preparePayBean.appid);
|
||||
sParaTemp.put("mch_id", preparePayBean.mch_id); |
// sParaTemp.put("mch_id", preparePayBean.mch_id);
|
||||
sParaTemp.put("openid", preparePayBean.openid); |
// sParaTemp.put("openid", preparePayBean.openid);
|
||||
sParaTemp.put("total_fee",preparePayBean.total_fee + ""); |
// sParaTemp.put("total_fee",preparePayBean.total_fee + "");
|
||||
sParaTemp.put("out_trade_no", preparePayBean.out_trade_no); |
// sParaTemp.put("out_trade_no", preparePayBean.out_trade_no);
|
||||
sParaTemp.put("body", preparePayBean.body); |
// sParaTemp.put("body", preparePayBean.body);
|
||||
sParaTemp.put("spbill_create_ip", preparePayBean.spbill_create_ip); |
// sParaTemp.put("spbill_create_ip", preparePayBean.spbill_create_ip);
|
||||
sParaTemp.put("notify_url",preparePayBean.notify_url); |
// sParaTemp.put("notify_url",preparePayBean.notify_url);
|
||||
sParaTemp.put("trade_type", preparePayBean.trade_type); |
// sParaTemp.put("trade_type", preparePayBean.trade_type);
|
||||
sParaTemp.put("nonce_str", preparePayBean.nonce_str); |
// sParaTemp.put("nonce_str", preparePayBean.nonce_str);
|
||||
|
//
|
||||
preparePayBean.sign = createSign(sParaTemp); |
// preparePayBean.sign = createSign(sParaTemp);
|
||||
|
//
|
||||
String reqrXml = JacksonUtil.beanToXml(preparePayBean,"xml"); |
// String reqrXml = JacksonUtil.beanToXml(preparePayBean,"xml");
|
||||
String respXml = HttpsUtil.httpsRequest(URL_PREPARE_PAY,"POST",reqrXml); |
// String respXml = HttpsUtil.httpsRequest(URL_PREPARE_PAY,"POST",reqrXml);
|
||||
|
//
|
||||
System.out.println("---------------PreparePay Request Xml-----------------"); |
// System.out.println("---------------PreparePay Request Xml-----------------");
|
||||
System.out.println(reqrXml); |
// System.out.println(reqrXml);
|
||||
System.out.println("---------------PreparePay Response Xml-----------------"); |
// System.out.println("---------------PreparePay Response Xml-----------------");
|
||||
System.out.println(respXml); |
// System.out.println(respXml);
|
||||
System.out.println("---------------PreparePay end-----------------"); |
// System.out.println("---------------PreparePay end-----------------");
|
||||
|
//
|
||||
PreparePayResultBean resultBean = null; |
// PreparePayResultBean resultBean = null;
|
||||
PreparePayReSignBean reSignBean = new PreparePayReSignBean(); |
// PreparePayReSignBean reSignBean = new PreparePayReSignBean();
|
||||
resultBean = JacksonUtil.xmlToBean(new ByteArrayInputStream(respXml.getBytes()),PreparePayResultBean.class); |
// resultBean = JacksonUtil.xmlToBean(new ByteArrayInputStream(respXml.getBytes()),PreparePayResultBean.class);
|
||||
|
//
|
||||
if(ObjectUtil.isNull(resultBean)) { |
// if(ObjectUtil.isNull(resultBean)) {
|
||||
throw new PayException("PreparePay 返回的resultBean为空"); |
// throw new PayException("PreparePay 返回的resultBean为空");
|
||||
} |
// }
|
||||
|
//
|
||||
if(!StrUtil.isEmpty(resultBean.return_code) |
// if(!StrUtil.isEmpty(resultBean.return_code)
|
||||
&& !StrUtil.isEmpty(resultBean.result_code)){ |
// && !StrUtil.isEmpty(resultBean.result_code)){
|
||||
if(resultBean.result_code.equals("SUCCESS") && resultBean.return_code.equals(resultBean.result_code)){ |
// if(resultBean.result_code.equals("SUCCESS") && resultBean.return_code.equals(resultBean.result_code)){
|
||||
reSignBean.nonceStr = createNonceStr(); |
// reSignBean.nonceStr = createNonceStr();
|
||||
reSignBean._package = "prepay_id="+resultBean.prepay_id; |
// reSignBean._package = "prepay_id="+resultBean.prepay_id;
|
||||
reSignBean.timeStamp = System.currentTimeMillis() / 1000; |
// reSignBean.timeStamp = System.currentTimeMillis() / 1000;
|
||||
reSignBean.signType = "MD5"; |
// reSignBean.signType = "MD5";
|
||||
|
//
|
||||
// 把请求参数打包成数组
|
// // 把请求参数打包成数组
|
||||
sParaTemp = new HashMap(); |
// sParaTemp = new HashMap();
|
||||
sParaTemp.put("appId", appid); |
// sParaTemp.put("appId", appid);
|
||||
sParaTemp.put("package", reSignBean._package); |
// sParaTemp.put("package", reSignBean._package);
|
||||
sParaTemp.put("nonceStr", reSignBean.nonceStr); |
// sParaTemp.put("nonceStr", reSignBean.nonceStr);
|
||||
sParaTemp.put("signType", reSignBean.signType); |
// sParaTemp.put("signType", reSignBean.signType);
|
||||
sParaTemp.put("timeStamp",reSignBean.timeStamp + ""); |
// sParaTemp.put("timeStamp",reSignBean.timeStamp + "");
|
||||
|
//
|
||||
reSignBean.paySign = createSign(sParaTemp); |
// reSignBean.paySign = createSign(sParaTemp);
|
||||
|
//
|
||||
return reSignBean; |
// return reSignBean;
|
||||
}else{ |
// }else{
|
||||
throw new PayException("[" + resultBean.err_code + "]" |
// throw new PayException("[" + resultBean.err_code + "]"
|
||||
+ resultBean.err_code_des); |
// + resultBean.err_code_des);
|
||||
} |
// }
|
||||
}else { |
// }else {
|
||||
throw new PayException(resultBean.return_msg); |
// throw new PayException(resultBean.return_msg);
|
||||
} |
// }
|
||||
//return null;
|
// //return null;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* Create Sign |
// * Create Sign
|
||||
* @param sParaTemp |
// * @param sParaTemp
|
||||
* @return |
// * @return
|
||||
*/ |
// */
|
||||
public static String createSign(Map<String,Object> sParaTemp){ |
// public static String createSign(Map<String,Object> sParaTemp){
|
||||
// 除去数组中的空值和签名参数
|
// // 除去数组中的空值和签名参数
|
||||
Map sPara = paraFilter(sParaTemp); |
// Map sPara = paraFilter(sParaTemp);
|
||||
String prestr = createLinkString(sPara); // 把数组所有元素,按照“参数=参数值”的模式用“&”字符拼接成字符串
|
// String prestr = createLinkString(sPara); // 把数组所有元素,按照“参数=参数值”的模式用“&”字符拼接成字符串
|
||||
//MD5运算生成签名
|
// //MD5运算生成签名
|
||||
String sign = sign(prestr, key, "utf-8").toUpperCase(); |
// String sign = sign(prestr, key, "utf-8").toUpperCase();
|
||||
return sign; |
// return sign;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 除去数组中的空值和签名参数 |
// * 除去数组中的空值和签名参数
|
||||
* @param sArray 签名参数组 |
// * @param sArray 签名参数组
|
||||
* @return 去掉空值与签名参数后的新签名参数组 |
// * @return 去掉空值与签名参数后的新签名参数组
|
||||
*/ |
// */
|
||||
private static Map paraFilter(Map<String,Object> sArray) { |
// private static Map paraFilter(Map<String,Object> sArray) {
|
||||
Map result = new HashMap(); |
// Map result = new HashMap();
|
||||
if (sArray == null || sArray.size() <= 0) { |
// if (sArray == null || sArray.size() <= 0) {
|
||||
return result; |
// return result;
|
||||
} |
// }
|
||||
for (String key : sArray.keySet()) { |
// for (String key : sArray.keySet()) {
|
||||
String value = "" + sArray.get(key); |
// String value = "" + sArray.get(key);
|
||||
if (StrUtil.isEmpty(value) || key.equalsIgnoreCase("sign") || key.equalsIgnoreCase("sign_type")) { |
// if (StrUtil.isEmpty(value) || key.equalsIgnoreCase("sign") || key.equalsIgnoreCase("sign_type")) {
|
||||
continue; |
// continue;
|
||||
} |
// }
|
||||
result.put(key, value); |
// result.put(key, value);
|
||||
} |
// }
|
||||
return result; |
// return result;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 把数组所有元素排序,并按照“参数=参数值”的模式用“&”字符拼接成字符串 |
// * 把数组所有元素排序,并按照“参数=参数值”的模式用“&”字符拼接成字符串
|
||||
* @param params 需要排序并参与字符拼接的参数组 |
// * @param params 需要排序并参与字符拼接的参数组
|
||||
* @return 拼接后字符串 |
// * @return 拼接后字符串
|
||||
*/ |
// */
|
||||
private static String createLinkString(Map<String,String> params) { |
// private static String createLinkString(Map<String,String> params) {
|
||||
List<String> keys = new ArrayList(params.keySet()); |
// List<String> keys = new ArrayList(params.keySet());
|
||||
Collections.sort(keys); |
// Collections.sort(keys);
|
||||
String prestr = ""; |
// String prestr = "";
|
||||
for (int i = 0; i < keys.size(); i++) { |
// for (int i = 0; i < keys.size(); i++) {
|
||||
String key = keys.get(i); |
// String key = keys.get(i);
|
||||
String value = params.get(key); |
// String value = params.get(key);
|
||||
if (i == keys.size() - 1) {// 拼接时,不包括最后一个&字符
|
// if (i == keys.size() - 1) {// 拼接时,不包括最后一个&字符
|
||||
prestr = prestr + key + "=" + value; |
// prestr = prestr + key + "=" + value;
|
||||
} else { |
// } else {
|
||||
prestr = prestr + key + "=" + value + "&"; |
// prestr = prestr + key + "=" + value + "&";
|
||||
} |
// }
|
||||
} |
// }
|
||||
return prestr; |
// return prestr;
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* 签名字符串 |
// * 签名字符串
|
||||
* @param text 需要签名的字符串 |
// * @param text 需要签名的字符串
|
||||
* @param key 密钥 |
// * @param key 密钥
|
||||
* @param input_charset 编码格式 |
// * @param input_charset 编码格式
|
||||
* @return 签名结果 |
// * @return 签名结果
|
||||
*/ |
// */
|
||||
private static String sign(String text, String key, String input_charset) { |
// private static String sign(String text, String key, String input_charset) {
|
||||
text = text + "&key=" + key; |
// text = text + "&key=" + key;
|
||||
return DigestUtils.md5Hex(getContentBytes(text, input_charset)); |
// return DigestUtils.md5Hex(getContentBytes(text, input_charset));
|
||||
} |
// }
|
||||
|
//
|
||||
/** |
// /**
|
||||
* @param content |
// * @param content
|
||||
* @param charset |
// * @param charset
|
||||
* @return |
// * @return
|
||||
* @throws |
// * @throws
|
||||
* @throws UnsupportedEncodingException |
// * @throws UnsupportedEncodingException
|
||||
*/ |
// */
|
||||
private static byte[] getContentBytes(String content, String charset) { |
// private static byte[] getContentBytes(String content, String charset) {
|
||||
if (charset == null || "".equals(charset)) { |
// if (charset == null || "".equals(charset)) {
|
||||
return content.getBytes(); |
// return content.getBytes();
|
||||
} |
// }
|
||||
try { |
// try {
|
||||
return content.getBytes(charset); |
// return content.getBytes(charset);
|
||||
} catch (UnsupportedEncodingException e) { |
// } catch (UnsupportedEncodingException e) {
|
||||
throw new RuntimeException("MD5签名过程中出现错误,指定的编码集不对,您目前指定的编码集是:" + charset); |
// throw new RuntimeException("MD5签名过程中出现错误,指定的编码集不对,您目前指定的编码集是:" + charset);
|
||||
} |
// }
|
||||
} |
// }
|
||||
|
//
|
||||
private static String createNonceStr(){ |
// private static String createNonceStr(){
|
||||
return UUID.randomUUID().toString().replace("-",""); |
// return UUID.randomUUID().toString().replace("-","");
|
||||
} |
// }
|
||||
|
//
|
||||
public static Map<String,Object> payToUsrWx( |
// public static Map<String,Object> payToUsrWx(
|
||||
String partner_trade_no,String openid,int total_fee,String desc,String spbill_create_ip) |
// String partner_trade_no,String openid,int total_fee,String desc,String spbill_create_ip)
|
||||
throws Exception{ |
// throws Exception{
|
||||
//1.构造请求字符串
|
// //1.构造请求字符串
|
||||
Map<String,Object> reqMap = new HashMap<String,Object>(); |
// Map<String,Object> reqMap = new HashMap<String,Object>();
|
||||
reqMap.put("mch_appid",appid); |
// reqMap.put("mch_appid",appid);
|
||||
reqMap.put("mchid",mchid); |
// reqMap.put("mchid",mchid);
|
||||
//reqMap.put("device_info",null); //不能添加空字段,Jackson会生成闭包xml <device_info/>导致签名失败
|
// //reqMap.put("device_info",null); //不能添加空字段,Jackson会生成闭包xml <device_info/>导致签名失败
|
||||
reqMap.put("nonce_str",createNonceStr()); |
// reqMap.put("nonce_str",createNonceStr());
|
||||
reqMap.put("partner_trade_no",partner_trade_no); |
// reqMap.put("partner_trade_no",partner_trade_no);
|
||||
reqMap.put("openid",openid); |
// reqMap.put("openid",openid);
|
||||
reqMap.put("check_name","NO_CHECK"); |
// reqMap.put("check_name","NO_CHECK");
|
||||
//reqMap.put("re_user_name",null);
|
// //reqMap.put("re_user_name",null);
|
||||
reqMap.put("amount",total_fee + ""); |
// reqMap.put("amount",total_fee + "");
|
||||
reqMap.put("desc",desc); |
// reqMap.put("desc",desc);
|
||||
reqMap.put("spbill_create_ip",spbill_create_ip); |
// reqMap.put("spbill_create_ip",spbill_create_ip);
|
||||
reqMap.put("sign",createSign(reqMap)); |
// reqMap.put("sign",createSign(reqMap));
|
||||
|
//
|
||||
//2.发送付款请求
|
// //2.发送付款请求
|
||||
String reqrXml = JacksonUtil.mapToXml(reqMap,"xml"); |
// String reqrXml = JacksonUtil.mapToXml(reqMap,"xml");
|
||||
String respXml = HttpsUtil.httpsRequest(URL_PAY_TO_USR_WX,"POST",reqrXml, |
// String respXml = HttpsUtil.httpsRequest(URL_PAY_TO_USR_WX,"POST",reqrXml,
|
||||
WebConstant.PATH_WX_CRET,mchid); |
// WebConstant.PATH_WX_CRET,mchid);
|
||||
System.out.println("---------------PayToUsrWx Request Xml-----------------"); |
// System.out.println("---------------PayToUsrWx Request Xml-----------------");
|
||||
System.out.println(reqrXml); |
// System.out.println(reqrXml);
|
||||
System.out.println("---------------PayToUsrWx Response Xml-----------------"); |
// System.out.println("---------------PayToUsrWx Response Xml-----------------");
|
||||
System.out.println(respXml); |
// System.out.println(respXml);
|
||||
System.out.println("---------------PayToUsrWx end-----------------"); |
// System.out.println("---------------PayToUsrWx end-----------------");
|
||||
|
//
|
||||
//3.判断成功失败
|
// //3.判断成功失败
|
||||
Map<String,Object> respMap = JacksonUtil.xmlToMap(new ByteArrayInputStream(respXml.getBytes())); |
// Map<String,Object> respMap = JacksonUtil.xmlToMap(new ByteArrayInputStream(respXml.getBytes()));
|
||||
String return_code,result_code; |
// String return_code,result_code;
|
||||
return_code = (String) respMap.get("return_code"); |
// return_code = (String) respMap.get("return_code");
|
||||
result_code = (String) respMap.get("result_code"); |
// result_code = (String) respMap.get("result_code");
|
||||
|
//
|
||||
if(!StrUtil.isEmpty(return_code) && !StrUtil.isEmpty(result_code)){ |
// if(!StrUtil.isEmpty(return_code) && !StrUtil.isEmpty(result_code)){
|
||||
if(return_code.equals("SUCCESS") && return_code.equals(result_code)){ |
// if(return_code.equals("SUCCESS") && return_code.equals(result_code)){
|
||||
return respMap; |
// return respMap;
|
||||
}else{ |
// }else{
|
||||
throw new PayException("[" + respMap.get("err_code") + "]" |
// throw new PayException("[" + respMap.get("err_code") + "]"
|
||||
+ respMap.get("err_code_des")); |
// + respMap.get("err_code_des"));
|
||||
} |
// }
|
||||
}else { |
// }else {
|
||||
throw new PayException((String) respMap.get("return_msg")); |
// throw new PayException((String) respMap.get("return_msg"));
|
||||
} |
// }
|
||||
//return null;
|
// //return null;
|
||||
} |
// }
|
||||
|
//
|
||||
public static Map<String,String> payToUsrBank(){ |
// public static Map<String,String> payToUsrBank(){
|
||||
//Fix Me
|
// //Fix Me
|
||||
return null; |
// return null;
|
||||
} |
// }
|
||||
} |
//}
|
||||
|
@ -0,0 +1,15 @@ |
|||||
|
package com.ccsens.util; |
||||
|
|
||||
|
import org.apache.commons.lang3.RandomStringUtils; |
||||
|
import org.assertj.core.internal.bytebuddy.utility.RandomString; |
||||
|
import org.junit.Test; |
||||
|
|
||||
|
public class RandomRest { |
||||
|
@Test |
||||
|
public void test01() throws Exception { |
||||
|
|
||||
|
String a = RandomStringUtils.random(8, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); |
||||
|
System.out.println(a); |
||||
|
|
||||
|
} |
||||
|
} |
Loading…
Reference in new issue