Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update tables for thread, board and poll #16

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 42 additions & 19 deletions src/main/java/com/zfgc/zfgbb/dbo/BoardDbo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,48 @@
import com.zfgc.zfgbb.dbo.AbstractDbo;
import java.time.LocalDateTime;

public class BoardDbo extends AbstractDbo{
public class BoardDbo extends AbstractDbo {

/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.board_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private Integer boardId;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.board_name
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private String boardName;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.description
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private String description;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.created_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private LocalDateTime createdTs;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.updated_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private LocalDateTime updatedTs;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.category_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private Integer categoryId;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column zfgbb.board.seqno
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
private Integer seqno;

/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.board_id
* @return the value of zfgbb.board.board_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public Integer getBoardId() {
return boardId;
Expand All @@ -52,7 +57,7 @@ public Integer getBoardId() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.board_id
* @param boardId the value for zfgbb.board.board_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setBoardId(Integer boardId) {
this.boardId = boardId;
Expand All @@ -61,7 +66,7 @@ public void setBoardId(Integer boardId) {
/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.board_name
* @return the value of zfgbb.board.board_name
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public String getBoardName() {
return boardName;
Expand All @@ -70,7 +75,7 @@ public String getBoardName() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.board_name
* @param boardName the value for zfgbb.board.board_name
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setBoardName(String boardName) {
this.boardName = boardName;
Expand All @@ -79,7 +84,7 @@ public void setBoardName(String boardName) {
/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.description
* @return the value of zfgbb.board.description
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public String getDescription() {
return description;
Expand All @@ -88,7 +93,7 @@ public String getDescription() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.description
* @param description the value for zfgbb.board.description
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setDescription(String description) {
this.description = description;
Expand All @@ -97,7 +102,7 @@ public void setDescription(String description) {
/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.created_ts
* @return the value of zfgbb.board.created_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public LocalDateTime getCreatedTs() {
return createdTs;
Expand All @@ -106,7 +111,7 @@ public LocalDateTime getCreatedTs() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.created_ts
* @param createdTs the value for zfgbb.board.created_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setCreatedTs(LocalDateTime createdTs) {
this.createdTs = createdTs;
Expand All @@ -115,7 +120,7 @@ public void setCreatedTs(LocalDateTime createdTs) {
/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.updated_ts
* @return the value of zfgbb.board.updated_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public LocalDateTime getUpdatedTs() {
return updatedTs;
Expand All @@ -124,7 +129,7 @@ public LocalDateTime getUpdatedTs() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.updated_ts
* @param updatedTs the value for zfgbb.board.updated_ts
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setUpdatedTs(LocalDateTime updatedTs) {
this.updatedTs = updatedTs;
Expand All @@ -133,7 +138,7 @@ public void setUpdatedTs(LocalDateTime updatedTs) {
/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.category_id
* @return the value of zfgbb.board.category_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public Integer getCategoryId() {
return categoryId;
Expand All @@ -142,12 +147,30 @@ public Integer getCategoryId() {
/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.category_id
* @param categoryId the value for zfgbb.board.category_id
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}

/**
* This method was generated by MyBatis Generator. This method returns the value of the database column zfgbb.board.seqno
* @return the value of zfgbb.board.seqno
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public Integer getSeqno() {
return seqno;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of the database column zfgbb.board.seqno
* @param seqno the value for zfgbb.board.seqno
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setSeqno(Integer seqno) {
this.seqno = seqno;
}

@Override
public Integer getPkId() {
return boardId;
Expand Down
92 changes: 76 additions & 16 deletions src/main/java/com/zfgc/zfgbb/dbo/BoardDboExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,79 +9,79 @@
public class BoardDboExample {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
protected List<Criteria> oredCriteria;

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public BoardDboExample() {
oredCriteria = new ArrayList<>();
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public String getOrderByClause() {
return orderByClause;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public boolean isDistinct() {
return distinct;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
Expand All @@ -91,7 +91,7 @@ public Criteria or() {

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
Expand All @@ -103,7 +103,7 @@ public Criteria createCriteria() {

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
Expand All @@ -112,7 +112,7 @@ protected Criteria createCriteriaInternal() {

/**
* This method was generated by MyBatis Generator. This method corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public void clear() {
oredCriteria.clear();
Expand All @@ -122,7 +122,7 @@ public void clear() {

/**
* This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
Expand Down Expand Up @@ -544,11 +544,71 @@ public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

public Criteria andSeqnoIsNull() {
addCriterion("seqno is null");
return (Criteria) this;
}

public Criteria andSeqnoIsNotNull() {
addCriterion("seqno is not null");
return (Criteria) this;
}

public Criteria andSeqnoEqualTo(Integer value) {
addCriterion("seqno =", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoNotEqualTo(Integer value) {
addCriterion("seqno <>", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoGreaterThan(Integer value) {
addCriterion("seqno >", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoGreaterThanOrEqualTo(Integer value) {
addCriterion("seqno >=", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoLessThan(Integer value) {
addCriterion("seqno <", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoLessThanOrEqualTo(Integer value) {
addCriterion("seqno <=", value, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoIn(List<Integer> values) {
addCriterion("seqno in", values, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoNotIn(List<Integer> values) {
addCriterion("seqno not in", values, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoBetween(Integer value1, Integer value2) {
addCriterion("seqno between", value1, value2, "seqno");
return (Criteria) this;
}

public Criteria andSeqnoNotBetween(Integer value1, Integer value2) {
addCriterion("seqno not between", value1, value2, "seqno");
return (Criteria) this;
}
}

/**
* This class was generated by MyBatis Generator. This class corresponds to the database table zfgbb.board
* @mbg.generated Thu Aug 22 20:55:49 EDT 2024
* @mbg.generated Sun Sep 29 01:06:50 EDT 2024
*/
public static class Criterion {
private String condition;
Expand Down
Loading