Merge branch 'main' of http://118.31.7.2:3000/tzjy-code/digital_trade
commit
d2b64c8244
@ -0,0 +1,75 @@
|
|||||||
|
package com.sztzjy.trade.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class StuKnowledgeSummary {
|
||||||
|
private String summaryId;
|
||||||
|
|
||||||
|
private String directoryId;
|
||||||
|
|
||||||
|
private String directoryName;
|
||||||
|
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
private String summaryContent;
|
||||||
|
|
||||||
|
private String module;
|
||||||
|
|
||||||
|
private Date readingTime;
|
||||||
|
|
||||||
|
public String getSummaryId() {
|
||||||
|
return summaryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummaryId(String summaryId) {
|
||||||
|
this.summaryId = summaryId == null ? null : summaryId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDirectoryId() {
|
||||||
|
return directoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectoryId(String directoryId) {
|
||||||
|
this.directoryId = directoryId == null ? null : directoryId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDirectoryName() {
|
||||||
|
return directoryName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectoryName(String directoryName) {
|
||||||
|
this.directoryName = directoryName == null ? null : directoryName.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParentId() {
|
||||||
|
return parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentId(String parentId) {
|
||||||
|
this.parentId = parentId == null ? null : parentId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSummaryContent() {
|
||||||
|
return summaryContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummaryContent(String summaryContent) {
|
||||||
|
this.summaryContent = summaryContent == null ? null : summaryContent.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getModule() {
|
||||||
|
return module;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModule(String module) {
|
||||||
|
this.module = module == null ? null : module.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getReadingTime() {
|
||||||
|
return readingTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReadingTime(Date readingTime) {
|
||||||
|
this.readingTime = readingTime;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.sztzjy.trade.entity;/*
|
||||||
|
*@title StuKnowledgeSummaryChildrenVo
|
||||||
|
*@description
|
||||||
|
*@author 17803
|
||||||
|
*@version 1.0
|
||||||
|
*@create 2023/8/31 15:05
|
||||||
|
*/
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class StuKnowledgeSummaryChildrenDto {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String childrenId;
|
||||||
|
|
||||||
|
private String childrenName;
|
||||||
|
|
||||||
|
private String childrenSummaryContent;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,680 @@
|
|||||||
|
package com.sztzjy.trade.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class StuKnowledgeSummaryExample {
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
public StuKnowledgeSummaryExample() {
|
||||||
|
oredCriteria = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
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<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
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 andSummaryIdIsNull() {
|
||||||
|
addCriterion("summary_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdIsNotNull() {
|
||||||
|
addCriterion("summary_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdEqualTo(String value) {
|
||||||
|
addCriterion("summary_id =", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdNotEqualTo(String value) {
|
||||||
|
addCriterion("summary_id <>", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdGreaterThan(String value) {
|
||||||
|
addCriterion("summary_id >", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("summary_id >=", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdLessThan(String value) {
|
||||||
|
addCriterion("summary_id <", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("summary_id <=", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdLike(String value) {
|
||||||
|
addCriterion("summary_id like", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdNotLike(String value) {
|
||||||
|
addCriterion("summary_id not like", value, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdIn(List<String> values) {
|
||||||
|
addCriterion("summary_id in", values, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdNotIn(List<String> values) {
|
||||||
|
addCriterion("summary_id not in", values, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("summary_id between", value1, value2, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("summary_id not between", value1, value2, "summaryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdIsNull() {
|
||||||
|
addCriterion("directory_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdIsNotNull() {
|
||||||
|
addCriterion("directory_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdEqualTo(String value) {
|
||||||
|
addCriterion("directory_id =", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdNotEqualTo(String value) {
|
||||||
|
addCriterion("directory_id <>", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdGreaterThan(String value) {
|
||||||
|
addCriterion("directory_id >", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("directory_id >=", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdLessThan(String value) {
|
||||||
|
addCriterion("directory_id <", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("directory_id <=", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdLike(String value) {
|
||||||
|
addCriterion("directory_id like", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdNotLike(String value) {
|
||||||
|
addCriterion("directory_id not like", value, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdIn(List<String> values) {
|
||||||
|
addCriterion("directory_id in", values, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdNotIn(List<String> values) {
|
||||||
|
addCriterion("directory_id not in", values, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("directory_id between", value1, value2, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("directory_id not between", value1, value2, "directoryId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameIsNull() {
|
||||||
|
addCriterion("directory_name is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameIsNotNull() {
|
||||||
|
addCriterion("directory_name is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameEqualTo(String value) {
|
||||||
|
addCriterion("directory_name =", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameNotEqualTo(String value) {
|
||||||
|
addCriterion("directory_name <>", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameGreaterThan(String value) {
|
||||||
|
addCriterion("directory_name >", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("directory_name >=", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameLessThan(String value) {
|
||||||
|
addCriterion("directory_name <", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("directory_name <=", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameLike(String value) {
|
||||||
|
addCriterion("directory_name like", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameNotLike(String value) {
|
||||||
|
addCriterion("directory_name not like", value, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameIn(List<String> values) {
|
||||||
|
addCriterion("directory_name in", values, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameNotIn(List<String> values) {
|
||||||
|
addCriterion("directory_name not in", values, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameBetween(String value1, String value2) {
|
||||||
|
addCriterion("directory_name between", value1, value2, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andDirectoryNameNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("directory_name not between", value1, value2, "directoryName");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdIsNull() {
|
||||||
|
addCriterion("parent_id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdIsNotNull() {
|
||||||
|
addCriterion("parent_id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdEqualTo(String value) {
|
||||||
|
addCriterion("parent_id =", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdNotEqualTo(String value) {
|
||||||
|
addCriterion("parent_id <>", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdGreaterThan(String value) {
|
||||||
|
addCriterion("parent_id >", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("parent_id >=", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdLessThan(String value) {
|
||||||
|
addCriterion("parent_id <", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("parent_id <=", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdLike(String value) {
|
||||||
|
addCriterion("parent_id like", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdNotLike(String value) {
|
||||||
|
addCriterion("parent_id not like", value, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdIn(List<String> values) {
|
||||||
|
addCriterion("parent_id in", values, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdNotIn(List<String> values) {
|
||||||
|
addCriterion("parent_id not in", values, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("parent_id between", value1, value2, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andParentIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("parent_id not between", value1, value2, "parentId");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentIsNull() {
|
||||||
|
addCriterion("summary_content is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentIsNotNull() {
|
||||||
|
addCriterion("summary_content is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentEqualTo(String value) {
|
||||||
|
addCriterion("summary_content =", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentNotEqualTo(String value) {
|
||||||
|
addCriterion("summary_content <>", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentGreaterThan(String value) {
|
||||||
|
addCriterion("summary_content >", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("summary_content >=", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentLessThan(String value) {
|
||||||
|
addCriterion("summary_content <", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("summary_content <=", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentLike(String value) {
|
||||||
|
addCriterion("summary_content like", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentNotLike(String value) {
|
||||||
|
addCriterion("summary_content not like", value, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentIn(List<String> values) {
|
||||||
|
addCriterion("summary_content in", values, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentNotIn(List<String> values) {
|
||||||
|
addCriterion("summary_content not in", values, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentBetween(String value1, String value2) {
|
||||||
|
addCriterion("summary_content between", value1, value2, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andSummaryContentNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("summary_content not between", value1, value2, "summaryContent");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleIsNull() {
|
||||||
|
addCriterion("module is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleIsNotNull() {
|
||||||
|
addCriterion("module is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleEqualTo(String value) {
|
||||||
|
addCriterion("module =", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleNotEqualTo(String value) {
|
||||||
|
addCriterion("module <>", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleGreaterThan(String value) {
|
||||||
|
addCriterion("module >", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("module >=", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleLessThan(String value) {
|
||||||
|
addCriterion("module <", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("module <=", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleLike(String value) {
|
||||||
|
addCriterion("module like", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleNotLike(String value) {
|
||||||
|
addCriterion("module not like", value, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleIn(List<String> values) {
|
||||||
|
addCriterion("module in", values, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleNotIn(List<String> values) {
|
||||||
|
addCriterion("module not in", values, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleBetween(String value1, String value2) {
|
||||||
|
addCriterion("module between", value1, value2, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andModuleNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("module not between", value1, value2, "module");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeIsNull() {
|
||||||
|
addCriterion("reading_time is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeIsNotNull() {
|
||||||
|
addCriterion("reading_time is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeEqualTo(Date value) {
|
||||||
|
addCriterion("reading_time =", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("reading_time <>", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeGreaterThan(Date value) {
|
||||||
|
addCriterion("reading_time >", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("reading_time >=", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeLessThan(Date value) {
|
||||||
|
addCriterion("reading_time <", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("reading_time <=", value, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeIn(List<Date> values) {
|
||||||
|
addCriterion("reading_time in", values, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("reading_time not in", values, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("reading_time between", value1, value2, "readingTime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andReadingTimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("reading_time not between", value1, value2, "readingTime");
|
||||||
|
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,26 @@
|
|||||||
|
package com.sztzjy.trade.entity;/*
|
||||||
|
*@title StuKnowledgeSummaryParentVo
|
||||||
|
*@description
|
||||||
|
*@author 17803
|
||||||
|
*@version 1.0
|
||||||
|
*@create 2023/8/31 15:03
|
||||||
|
*/
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class StuKnowledgeSummaryParentDto {
|
||||||
|
|
||||||
|
private String uid;
|
||||||
|
|
||||||
|
private Integer parentId;
|
||||||
|
|
||||||
|
private String parentName;
|
||||||
|
|
||||||
|
private String parentSummaryContent;
|
||||||
|
|
||||||
|
// 子分类
|
||||||
|
private List<StuKnowledgeSummaryChildrenDto> childrenVoList;
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.sztzjy.trade.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.sztzjy.trade.entity.StuKnowledgeSummary;
|
||||||
|
import com.sztzjy.trade.entity.StuKnowledgeSummaryExample;
|
||||||
|
import com.sztzjy.trade.entity.StuKnowledgeSummaryParentDto;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface StuKnowledgeSummaryMapper {
|
||||||
|
long countByExample(StuKnowledgeSummaryExample example);
|
||||||
|
|
||||||
|
int deleteByExample(StuKnowledgeSummaryExample example);
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(String summaryId);
|
||||||
|
|
||||||
|
int insert(StuKnowledgeSummary record);
|
||||||
|
|
||||||
|
int insertSelective(StuKnowledgeSummary record);
|
||||||
|
|
||||||
|
List<StuKnowledgeSummary> selectByExample(StuKnowledgeSummaryExample example);
|
||||||
|
|
||||||
|
StuKnowledgeSummary selectByPrimaryKey(String summaryId);
|
||||||
|
|
||||||
|
int updateByExampleSelective(@Param("record") StuKnowledgeSummary record, @Param("example") StuKnowledgeSummaryExample example);
|
||||||
|
|
||||||
|
int updateByExample(@Param("record") StuKnowledgeSummary record, @Param("example") StuKnowledgeSummaryExample example);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(StuKnowledgeSummary record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(StuKnowledgeSummary record);
|
||||||
|
|
||||||
|
List<StuKnowledgeSummaryParentDto> queryDirAndContext(String module);
|
||||||
|
}
|
@ -0,0 +1,266 @@
|
|||||||
|
<?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.sztzjy.trade.mapper.StuKnowledgeSummaryMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuKnowledgeSummary">
|
||||||
|
<id column="summary_id" jdbcType="VARCHAR" property="summaryId" />
|
||||||
|
<result column="directory_id" jdbcType="VARCHAR" property="directoryId" />
|
||||||
|
<result column="directory_name" jdbcType="VARCHAR" property="directoryName" />
|
||||||
|
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
|
||||||
|
<result column="summary_content" jdbcType="VARCHAR" property="summaryContent" />
|
||||||
|
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||||
|
<result column="reading_time" jdbcType="TIMESTAMP" property="readingTime" />
|
||||||
|
</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">
|
||||||
|
summary_id, directory_id, directory_name, parent_id, summary_content, module, reading_time
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummaryExample" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from stu_knowledge_summary
|
||||||
|
<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.String" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from stu_knowledge_summary
|
||||||
|
where summary_id = #{summaryId,jdbcType=VARCHAR}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||||
|
delete from stu_knowledge_summary
|
||||||
|
where summary_id = #{summaryId,jdbcType=VARCHAR}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummaryExample">
|
||||||
|
delete from stu_knowledge_summary
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummary">
|
||||||
|
insert into stu_knowledge_summary (summary_id, directory_id, directory_name,
|
||||||
|
parent_id, summary_content, module,
|
||||||
|
reading_time)
|
||||||
|
values (#{summaryId,jdbcType=VARCHAR}, #{directoryId,jdbcType=VARCHAR}, #{directoryName,jdbcType=VARCHAR},
|
||||||
|
#{parentId,jdbcType=VARCHAR}, #{summaryContent,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR},
|
||||||
|
#{readingTime,jdbcType=TIMESTAMP})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummary">
|
||||||
|
insert into stu_knowledge_summary
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="summaryId != null">
|
||||||
|
summary_id,
|
||||||
|
</if>
|
||||||
|
<if test="directoryId != null">
|
||||||
|
directory_id,
|
||||||
|
</if>
|
||||||
|
<if test="directoryName != null">
|
||||||
|
directory_name,
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id,
|
||||||
|
</if>
|
||||||
|
<if test="summaryContent != null">
|
||||||
|
summary_content,
|
||||||
|
</if>
|
||||||
|
<if test="module != null">
|
||||||
|
module,
|
||||||
|
</if>
|
||||||
|
<if test="readingTime != null">
|
||||||
|
reading_time,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="summaryId != null">
|
||||||
|
#{summaryId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="directoryId != null">
|
||||||
|
#{directoryId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="directoryName != null">
|
||||||
|
#{directoryName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
#{parentId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="summaryContent != null">
|
||||||
|
#{summaryContent,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="module != null">
|
||||||
|
#{module,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="readingTime != null">
|
||||||
|
#{readingTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummaryExample" resultType="java.lang.Long">
|
||||||
|
select count(*) from stu_knowledge_summary
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
update stu_knowledge_summary
|
||||||
|
<set>
|
||||||
|
<if test="record.summaryId != null">
|
||||||
|
summary_id = #{record.summaryId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.directoryId != null">
|
||||||
|
directory_id = #{record.directoryId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.directoryName != null">
|
||||||
|
directory_name = #{record.directoryName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.parentId != null">
|
||||||
|
parent_id = #{record.parentId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.summaryContent != null">
|
||||||
|
summary_content = #{record.summaryContent,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.module != null">
|
||||||
|
module = #{record.module,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.readingTime != null">
|
||||||
|
reading_time = #{record.readingTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
update stu_knowledge_summary
|
||||||
|
set summary_id = #{record.summaryId,jdbcType=VARCHAR},
|
||||||
|
directory_id = #{record.directoryId,jdbcType=VARCHAR},
|
||||||
|
directory_name = #{record.directoryName,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{record.parentId,jdbcType=VARCHAR},
|
||||||
|
summary_content = #{record.summaryContent,jdbcType=VARCHAR},
|
||||||
|
module = #{record.module,jdbcType=VARCHAR},
|
||||||
|
reading_time = #{record.readingTime,jdbcType=TIMESTAMP}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummary">
|
||||||
|
update stu_knowledge_summary
|
||||||
|
<set>
|
||||||
|
<if test="directoryId != null">
|
||||||
|
directory_id = #{directoryId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="directoryName != null">
|
||||||
|
directory_name = #{directoryName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="parentId != null">
|
||||||
|
parent_id = #{parentId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="summaryContent != null">
|
||||||
|
summary_content = #{summaryContent,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="module != null">
|
||||||
|
module = #{module,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="readingTime != null">
|
||||||
|
reading_time = #{readingTime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where summary_id = #{summaryId,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.StuKnowledgeSummary">
|
||||||
|
update stu_knowledge_summary
|
||||||
|
set directory_id = #{directoryId,jdbcType=VARCHAR},
|
||||||
|
directory_name = #{directoryName,jdbcType=VARCHAR},
|
||||||
|
parent_id = #{parentId,jdbcType=VARCHAR},
|
||||||
|
summary_content = #{summaryContent,jdbcType=VARCHAR},
|
||||||
|
module = #{module,jdbcType=VARCHAR},
|
||||||
|
reading_time = #{readingTime,jdbcType=TIMESTAMP}
|
||||||
|
where summary_id = #{summaryId,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<resultMap id="KnowledgeSummaryMap" type="com.sztzjy.trade.entity.StuKnowledgeSummaryParentDto">
|
||||||
|
<id column="uid" property="uid" />
|
||||||
|
<result property="parentId" column="parentId" />
|
||||||
|
<result property="parentName" column="parentName"/>
|
||||||
|
<result property="parentSummaryContent" column="parentSummaryContent"/>
|
||||||
|
<collection property="childrenVoList" ofType="com.sztzjy.trade.entity.StuKnowledgeSummaryChildrenDto" javaType="list" >
|
||||||
|
<id column="id" property="id" />
|
||||||
|
<result property="childrenId" column="childrenId"/>
|
||||||
|
<result property="childrenName" column="childrenName"/>
|
||||||
|
<result property="childrenSummaryContent" column="childrenSummaryContent"/>
|
||||||
|
</collection>
|
||||||
|
</resultMap>
|
||||||
|
<select id="queryDirAndContext" resultMap="KnowledgeSummaryMap">
|
||||||
|
|
||||||
|
SELECT x.summary_id as uid , x.directory_id as parentId , x.directory_name as parentName, x.summary_content as parentSummaryContent
|
||||||
|
,y.summary_id as id, y.parent_id as childrenId ,y.directory_name as childrenName, y.summary_content as childrenSummaryContent
|
||||||
|
FROM stu_knowledge_summary AS x
|
||||||
|
LEFT JOIN stu_knowledge_summary AS y
|
||||||
|
ON y.parent_id = x.directory_id
|
||||||
|
WHERE x.module = #{module}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -1,25 +0,0 @@
|
|||||||
package com.sztzjy;/**
|
|
||||||
* @author 17803
|
|
||||||
* @date 2024-08-09 8:52
|
|
||||||
*/
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @projectName: digital_trade
|
|
||||||
* @package: com.sztzjy
|
|
||||||
* @className: Tset
|
|
||||||
* @author: WangHaoBo
|
|
||||||
* @description: TODO
|
|
||||||
* @date: 2024/8/9 8:52
|
|
||||||
*/
|
|
||||||
public class Tset {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void test(){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue