迭代做题版本

main
SmileToCandy 6 years ago
parent 47a900d48b
commit 3a113ceb20

@ -166,6 +166,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -1,63 +0,0 @@
sitename=tamguo
domain.name=http://localhost:8081/
admin.domain.name=http://admin.tanguoguo.com
server.port=8081
jasypt.encryptor.password=tamguo
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.filters=stat,wall,log4j
spring.datasource.initialSize=5
spring.datasource.maxActive=20
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.maxWait=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.minIdle=5
spring.datasource.password=Tanguo
spring.datasource.poolPreparedStatements=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.testWhileIdle=true
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tamguo?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.username=root
spring.datasource.validationQuery=SELECT 1 FROM DUAL
mybatis-plus.mapper-locations=classpath:/mappers/*Mapper.xml
mybatis-plus.typeAliasesPackage=com.tamguo.model
mybatis-plus.typeEnumsPackage=com.tamguo.model.enums
mybatis-plus.global-config.id-type=5
mybatis-plus.global-config.field-strategy=2
mybatis-plus.global-config.db-column-underline=true
mybatis-plus.global-config.refresh-mapper=true
mybatis-plus.global-config.key-generator=com.baomidou.mybatisplus.incrementer.H2KeyGenerator
mybatis-plus.global-config.logic-delete-value=0
mybatis-plus.global-config.logic-not-delete-value=1
mybatis-plus.global-config.sql-injector=com.baomidou.mybatisplus.mapper.LogicSqlInjector
mybatis-plus.global-config.meta-object-handler=com.tamguo.config.dao.MyMetaObjectHandler
mybatis-plus.global-config.sql-parser-cache=true
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
redis.hostname=127.0.0.1
redis.port=6379
redis.password=
logging.level.root=INFO
logging.level.org.springframework.web=INFO
logging.file=/home/webdata/log/tamguo.log
logging.pattern.console=%d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
logging.pattern.file=%d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain
file.storage.path=/home/webdata/files/

@ -1,63 +0,0 @@
sitename=tamguo
domain.name=http://localhost:8081/
admin.domain.name=http://admin.tanguoguo.com
server.port=8081
jasypt.encryptor.password=tamguo
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.filters=stat,wall,log4j
spring.datasource.initialSize=5
spring.datasource.maxActive=20
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.maxWait=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.minIdle=5
spring.datasource.password=admin
spring.datasource.poolPreparedStatements=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.testWhileIdle=true
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tamguo?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.username=root
spring.datasource.validationQuery=SELECT 1 FROM DUAL
mybatis-plus.mapper-locations=classpath:/mappers/*Mapper.xml
mybatis-plus.typeAliasesPackage=com.tamguo.model
mybatis-plus.typeEnumsPackage=com.tamguo.model.enums
mybatis-plus.global-config.id-type=5
mybatis-plus.global-config.field-strategy=2
mybatis-plus.global-config.db-column-underline=true
mybatis-plus.global-config.refresh-mapper=true
mybatis-plus.global-config.key-generator=com.baomidou.mybatisplus.incrementer.H2KeyGenerator
mybatis-plus.global-config.logic-delete-value=0
mybatis-plus.global-config.logic-not-delete-value=1
mybatis-plus.global-config.sql-injector=com.baomidou.mybatisplus.mapper.LogicSqlInjector
mybatis-plus.global-config.meta-object-handler=com.tamguo.config.dao.MyMetaObjectHandler
mybatis-plus.global-config.sql-parser-cache=true
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
redis.hostname=127.0.0.1
redis.port=6379
redis.password=
logging.level.root=INFO
logging.level.org.springframework.web=INFO
logging.file=/home/webdata/log/tamguo.log
logging.pattern.console=%d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
logging.pattern.file=%d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain
file.storage.path=/home/webdata/files/

@ -102,6 +102,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -166,6 +166,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -67,6 +67,12 @@
<artifactId>commons-email</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.20</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>

@ -6,7 +6,9 @@ import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="b_book_category")
public class BookCategoryEntity extends Model<BookCategoryEntity>{
@ -28,90 +30,6 @@ public class BookCategoryEntity extends Model<BookCategoryEntity>{
private Date createDate;
private Date updateDate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTreeSort() {
return treeSort;
}
public void setTreeSort(String treeSort) {
this.treeSort = treeSort;
}
public String getTreeSorts() {
return treeSorts;
}
public void setTreeSorts(String treeSorts) {
this.treeSorts = treeSorts;
}
public String getTreeLeaf() {
return treeLeaf;
}
public void setTreeLeaf(String treeLeaf) {
this.treeLeaf = treeLeaf;
}
public String getTreeLevel() {
return treeLevel;
}
public void setTreeLevel(String treeLevel) {
this.treeLevel = treeLevel;
}
public String getTreeNames() {
return treeNames;
}
public void setTreeNames(String treeNames) {
this.treeNames = treeNames;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getParentIds() {
return parentIds;
}
public void setParentIds(String parentIds) {
this.parentIds = parentIds;
}
@Override
protected Serializable pkVal() {
return getId();

@ -8,7 +8,9 @@ import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="b_book")
public class BookEntity extends Model<BookEntity>{
@ -33,86 +35,8 @@ public class BookEntity extends Model<BookEntity>{
@TableField(exist=false)
private String categoryName;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getBookImage() {
return bookImage;
}
public void setBookImage(String bookImage) {
this.bookImage = bookImage;
}
@Override
protected Serializable pkVal() {
return getId();
}
public List<String> getCategoryIds() {
return categoryIds;
}
public void setCategoryIds(List<String> categoryIds) {
this.categoryIds = categoryIds;
}
public String getMemberName() {
return memberName;
}
public void setMemberName(String memberName) {
this.memberName = memberName;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
}

@ -11,7 +11,9 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.modules.book.model.enums.DocumentStatusEnum;
import lombok.Data;
@Data
@TableName(value="b_document")
public class DocumentEntity extends Model<DocumentEntity>{
@ -48,117 +50,9 @@ public class DocumentEntity extends Model<DocumentEntity>{
@TableField(exist=false)
private List<FileUploadEntity> fileUploads;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getBookId() {
return bookId;
}
public void setBookId(String bookId) {
this.bookId = bookId;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getMarkdown() {
return markdown;
}
public void setMarkdown(String markdown) {
this.markdown = markdown;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public String getRootId() {
return rootId;
}
public void setRootId(String rootId) {
this.rootId = rootId;
}
public boolean isLeaf() {
return leaf;
}
public void setLeaf(boolean leaf) {
this.leaf = leaf;
}
public String getIsOpen() {
return isOpen;
}
public void setIsOpen(String isOpen) {
this.isOpen = isOpen;
}
public List<DocumentEntity> getChildren() {
return children;
}
public void setChildren(List<DocumentEntity> children) {
this.children = children;
}
@Override
protected Serializable pkVal() {
return getId();
}
public String getCover() {
return cover;
}
public void setCover(String cover) {
this.cover = cover;
}
public DocumentStatusEnum getStatus() {
return status;
}
public void setStatus(DocumentStatusEnum status) {
this.status = status;
}
public List<FileUploadEntity> getFileUploads() {
return fileUploads;
}
public void setFileUploads(List<FileUploadEntity> fileUploads) {
this.fileUploads = fileUploads;
}
public String getBatchNo() {
return batchNo;
}
public void setBatchNo(String batchNo) {
this.batchNo = batchNo;
}
}

@ -2,14 +2,9 @@ package com.tamguo.modules.book.model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
/**
*
* Entity -
*
* @author tamguo
*
*/
@Data
@TableName(value="b_file_entity")
public class FileEntity {
@ -21,49 +16,4 @@ public class FileEntity {
private String fileContentType;
private String fileExtension;
private Long fileSize;
public String getFileId() {
return fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public String getFileMd5() {
return fileMd5;
}
public void setFileMd5(String fileMd5) {
this.fileMd5 = fileMd5;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getFileContentType() {
return fileContentType;
}
public void setFileContentType(String fileContentType) {
this.fileContentType = fileContentType;
}
public String getFileExtension() {
return fileExtension;
}
public void setFileExtension(String fileExtension) {
this.fileExtension = fileExtension;
}
public Long getFileSize() {
return fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public String getFileUrl() {
return getFilePath();
}
public String getId() {
return getFileId();
}
}

@ -10,7 +10,9 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.modules.book.model.enums.BizTypeEnum;
import com.tamguo.modules.book.model.enums.FileUploadStatusEnum;
import lombok.Data;
@Data
@TableName(value="b_file_upload")
public class FileUploadEntity extends Model<FileUploadEntity>{
@ -30,99 +32,13 @@ public class FileUploadEntity extends Model<FileUploadEntity>{
private String updateBy;
private Date updateDate;
private String remarks;
@TableField(exist=false)
private String filePath;
@TableField(exist=false)
private Long fileSize;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getFileId() {
return fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getFileType() {
return fileType;
}
public void setFileType(String fileType) {
this.fileType = fileType;
}
public String getBizKey() {
return bizKey;
}
public void setBizKey(String bizKey) {
this.bizKey = bizKey;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
@Override
protected Serializable pkVal() {
return getId();
}
public BizTypeEnum getBizType() {
return bizType;
}
public void setBizType(BizTypeEnum bizType) {
this.bizType = bizType;
}
public FileUploadStatusEnum getStatus() {
return status;
}
public void setStatus(FileUploadStatusEnum status) {
this.status = status;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Long getFileSize() {
return fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
}

@ -7,164 +7,29 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import lombok.Data;
/**
* The persistent class for the tiku_ad database table.
*
*/
@Data
@TableName(value="t_member")
public class MemberEntity extends SuperEntity<MemberEntity> implements Serializable {
private static final long serialVersionUID = 1L;
private String username;
private String nickName;
private String password;
private String avatar;
private String mobile;
private String email;
private Integer point;
private BigDecimal amount;
private Date lastLoginTime;
private Integer paperNum;
private Integer questionNum;
private Integer downNum;
private Integer hitsNum;
@TableField(exist=false)
private String verifyCode;
@TableField(exist=false)
private String nowPassword;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getPoint() {
return point;
}
public void setPoint(Integer point) {
this.point = point;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public Integer getPaperNum() {
return paperNum;
}
public void setPaperNum(Integer paperNum) {
this.paperNum = paperNum;
}
public Integer getQuestionNum() {
return questionNum;
}
public void setQuestionNum(Integer questionNum) {
this.questionNum = questionNum;
}
public Integer getHitsNum() {
return hitsNum;
}
public void setHitsNum(Integer hitsNum) {
this.hitsNum = hitsNum;
}
public Integer getDownNum() {
return downNum;
}
public void setDownNum(Integer downNum) {
this.downNum = downNum;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getVerifyCode() {
return verifyCode;
}
public void setVerifyCode(String verifyCode) {
this.verifyCode = verifyCode;
}
public String getNowPassword() {
return nowPassword;
}
public void setNowPassword(String nowPassword) {
this.nowPassword = nowPassword;
}
public Date getLastLoginTime() {
return lastLoginTime;
}
public void setLastLoginTime(Date lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}
}

@ -12,12 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.sys.model.enums.SysAreaStatusEnum;
import lombok.Data;
/**
* The persistent class for the sys_area database table.
*
*/
@Data
@TableName(value="sys_area")
public class SysAreaEntity implements Serializable {
private static final long serialVersionUID = 1L;
@ -54,154 +56,7 @@ public class SysAreaEntity implements Serializable {
@TableField(exist=false)
private List<SysAreaEntity> children;
public SysAreaEntity() {
}
public String getAreaCode() {
return this.areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getAreaType() {
return this.areaType;
}
public void setAreaType(String areaType) {
this.areaType = areaType;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getParentCode() {
return this.parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
public String getParentCodes() {
return this.parentCodes;
}
public void setParentCodes(String parentCodes) {
this.parentCodes = parentCodes;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public BigDecimal getTreeLevel() {
return this.treeLevel;
}
public void setTreeLevel(BigDecimal treeLevel) {
this.treeLevel = treeLevel;
}
public String getTreeNames() {
return this.treeNames;
}
public void setTreeNames(String treeNames) {
this.treeNames = treeNames;
}
public BigDecimal getTreeSort() {
return this.treeSort;
}
public void setTreeSort(BigDecimal treeSort) {
this.treeSort = treeSort;
}
public String getTreeSorts() {
return this.treeSorts;
}
public void setTreeSorts(String treeSorts) {
this.treeSorts = treeSorts;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getId() {
return getAreaCode();
}
public Boolean getTreeLeaf() {
return treeLeaf;
}
public void setTreeLeaf(Boolean treeLeaf) {
this.treeLeaf = treeLeaf;
}
public SysAreaStatusEnum getStatus() {
return status;
}
public void setStatus(SysAreaStatusEnum status) {
this.status = status;
}
public List<SysAreaEntity> getChildren() {
return children;
}
public void setChildren(List<SysAreaEntity> children) {
this.children = children;
}
public String getValue() {
return getAreaCode();
}
public String getLable() {
return getAreaName();
return areaCode;
}
}

@ -9,11 +9,9 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;
/**
* The persistent class for the sys_company database table.
*
*/
@Data
@TableName(value="sys_company")
@KeySequence
public class SysCompanyEntity implements Serializable {
@ -48,183 +46,10 @@ public class SysCompanyEntity implements Serializable {
@TableField(fill = FieldFill.INSERT)
private Date updateDate;
private String viewCode;
@TableField(exist=false)
private String treeAreaNames;
public SysCompanyEntity() {
}
public String getAreaCode() {
return this.areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getCompanyName() {
return this.companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getCorpCode() {
return this.corpCode;
}
public void setCorpCode(String corpCode) {
this.corpCode = corpCode;
}
public String getCorpName() {
return this.corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getFullName() {
return this.fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getParentCode() {
return this.parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
public String getParentCodes() {
return this.parentCodes;
}
public void setParentCodes(String parentCodes) {
this.parentCodes = parentCodes;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public BigDecimal getTreeLevel() {
return this.treeLevel;
}
public void setTreeLevel(BigDecimal treeLevel) {
this.treeLevel = treeLevel;
}
public String getTreeNames() {
return this.treeNames;
}
public void setTreeNames(String treeNames) {
this.treeNames = treeNames;
}
public String getTreeSort() {
return this.treeSort;
}
public void setTreeSort(String treeSort) {
this.treeSort = treeSort;
}
public String getTreeSorts() {
return this.treeSorts;
}
public void setTreeSorts(String treeSorts) {
this.treeSorts = treeSorts;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getViewCode() {
return this.viewCode;
}
public void setViewCode(String viewCode) {
this.viewCode = viewCode;
}
public Boolean getTreeLeaf() {
return treeLeaf;
}
public void setTreeLeaf(Boolean treeLeaf) {
this.treeLeaf = treeLeaf;
}
public String getId() {
return this.getCompanyCode();
}
public String getCompanyCode() {
return companyCode;
}
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
public String getTreeAreaNames() {
return treeAreaNames;
}
public void setTreeAreaNames(String treeAreaNames) {
this.treeAreaNames = treeAreaNames;
}
}

@ -11,12 +11,9 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.sys.model.enums.SysMenuStatusEnum;
import lombok.Data;
/**
* The persistent class for the sys_menu database table.
*
*/
@Data
@TableName(value="sys_menu")
public class SysMenuEntity implements Serializable {
private static final long serialVersionUID = 1L;
@ -57,205 +54,7 @@ public class SysMenuEntity implements Serializable {
private Date updateDate;
private BigDecimal weight;
public SysMenuEntity() {
}
public String getMenuCode() {
return this.menuCode;
}
public void setMenuCode(String menuCode) {
this.menuCode = menuCode;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getIsShow() {
return this.isShow;
}
public void setIsShow(String isShow) {
this.isShow = isShow;
}
public String getMenuColor() {
return this.menuColor;
}
public void setMenuColor(String menuColor) {
this.menuColor = menuColor;
}
public String getMenuHref() {
return this.menuHref;
}
public void setMenuHref(String menuHref) {
this.menuHref = menuHref;
}
public String getMenuIcon() {
return this.menuIcon;
}
public void setMenuIcon(String menuIcon) {
this.menuIcon = menuIcon;
}
public String getMenuName() {
return this.menuName;
}
public void setMenuName(String menuName) {
this.menuName = menuName;
}
public String getMenuTarget() {
return this.menuTarget;
}
public void setMenuTarget(String menuTarget) {
this.menuTarget = menuTarget;
}
public String getMenuType() {
return this.menuType;
}
public void setMenuType(String menuType) {
this.menuType = menuType;
}
public String getParentCode() {
return this.parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
public String getParentCodes() {
return this.parentCodes;
}
public void setParentCodes(String parentCodes) {
this.parentCodes = parentCodes;
}
public String getPermission() {
return this.permission;
}
public void setPermission(String permission) {
this.permission = permission;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getSysCode() {
return this.sysCode;
}
public void setSysCode(String sysCode) {
this.sysCode = sysCode;
}
public BigDecimal getTreeLevel() {
return this.treeLevel;
}
public void setTreeLevel(BigDecimal treeLevel) {
this.treeLevel = treeLevel;
}
public String getTreeNames() {
return this.treeNames;
}
public void setTreeNames(String treeNames) {
this.treeNames = treeNames;
}
public BigDecimal getTreeSort() {
return this.treeSort;
}
public void setTreeSort(BigDecimal treeSort) {
this.treeSort = treeSort;
}
public String getTreeSorts() {
return this.treeSorts;
}
public void setTreeSorts(String treeSorts) {
this.treeSorts = treeSorts;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public BigDecimal getWeight() {
return this.weight;
}
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
// grid tree
public String getId() {
return getMenuCode();
}
public SysMenuStatusEnum getStatus() {
return status;
}
public void setStatus(SysMenuStatusEnum status) {
this.status = status;
}
public Boolean getTreeLeaf() {
return treeLeaf;
}
public void setTreeLeaf(Boolean treeLeaf) {
this.treeLeaf = treeLeaf;
}
public String getId() {
return menuCode;
}
}

@ -8,12 +8,14 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;
/**
* The persistent class for the sys_office database table.
*
*/
@Data
@TableName(value="sys_office")
public class SysOfficeEntity implements Serializable {
private static final long serialVersionUID = 1L;
@ -52,209 +54,6 @@ public class SysOfficeEntity implements Serializable {
private String viewCode;
private String zipCode;
public SysOfficeEntity() {
}
public String getOfficeCode() {
return this.officeCode;
}
public void setOfficeCode(String officeCode) {
this.officeCode = officeCode;
}
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public String getCorpCode() {
return this.corpCode;
}
public void setCorpCode(String corpCode) {
this.corpCode = corpCode;
}
public String getCorpName() {
return this.corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getFullName() {
return this.fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getLeader() {
return this.leader;
}
public void setLeader(String leader) {
this.leader = leader;
}
public String getOfficeName() {
return this.officeName;
}
public void setOfficeName(String officeName) {
this.officeName = officeName;
}
public String getOfficeType() {
return this.officeType;
}
public void setOfficeType(String officeType) {
this.officeType = officeType;
}
public String getParentCode() {
return this.parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
public String getParentCodes() {
return this.parentCodes;
}
public void setParentCodes(String parentCodes) {
this.parentCodes = parentCodes;
}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public Boolean getTreeLeaf() {
return this.treeLeaf;
}
public void setTreeLeaf(Boolean treeLeaf) {
this.treeLeaf = treeLeaf;
}
public BigDecimal getTreeLevel() {
return this.treeLevel;
}
public void setTreeLevel(BigDecimal treeLevel) {
this.treeLevel = treeLevel;
}
public String getTreeNames() {
return this.treeNames;
}
public void setTreeNames(String treeNames) {
this.treeNames = treeNames;
}
public BigDecimal getTreeSort() {
return this.treeSort;
}
public void setTreeSort(BigDecimal treeSort) {
this.treeSort = treeSort;
}
public String getTreeSorts() {
return this.treeSorts;
}
public void setTreeSorts(String treeSorts) {
this.treeSorts = treeSorts;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getViewCode() {
return this.viewCode;
}
public void setViewCode(String viewCode) {
this.viewCode = viewCode;
}
public String getZipCode() {
return this.zipCode;
}
public void setZipCode(String zipCode) {
this.zipCode = zipCode;
}
// grid tree
public String getId() {
return this.getOfficeCode();

@ -12,12 +12,9 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.sys.model.enums.SysPostStatusEnum;
import lombok.Data;
/**
* The persistent class for the sys_post database table.
*
*/
@Data
@TableName(value="sys_post")
public class SysPostEntity extends Model<SysPostEntity> implements Serializable {
private static final long serialVersionUID = 1L;
@ -42,105 +39,6 @@ public class SysPostEntity extends Model<SysPostEntity> implements Serializable
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
public SysPostEntity() {
}
public String getPostCode() {
return this.postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
public String getCorpCode() {
return this.corpCode;
}
public void setCorpCode(String corpCode) {
this.corpCode = corpCode;
}
public String getCorpName() {
return this.corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getPostName() {
return this.postName;
}
public void setPostName(String postName) {
this.postName = postName;
}
public BigDecimal getPostSort() {
return this.postSort;
}
public void setPostSort(BigDecimal postSort) {
this.postSort = postSort;
}
public String getPostType() {
return this.postType;
}
public void setPostType(String postType) {
this.postType = postType;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public SysPostStatusEnum getStatus() {
return this.status;
}
public void setStatus(SysPostStatusEnum status) {
this.status = status;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
@Override
protected Serializable pkVal() {
return getPostCode();

@ -1,7 +1,9 @@
package com.tamguo.modules.sys.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="sys_role_data_scope")
public class SysRoleDataScopeEntity {
@ -10,29 +12,4 @@ public class SysRoleDataScopeEntity {
private String ctrlData;
private String ctrlPermi;
public String getRoleCode() {
return roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
public String getCtrlType() {
return ctrlType;
}
public void setCtrlType(String ctrlType) {
this.ctrlType = ctrlType;
}
public String getCtrlData() {
return ctrlData;
}
public void setCtrlData(String ctrlData) {
this.ctrlData = ctrlData;
}
public String getCtrlPermi() {
return ctrlPermi;
}
public void setCtrlPermi(String ctrlPermi) {
this.ctrlPermi = ctrlPermi;
}
}

@ -8,12 +8,9 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;
/**
* The persistent class for the sys_role database table.
*
*/
@Data
@TableName(value="sys_role")
public class SysRoleEntity implements Serializable {
private static final long serialVersionUID = 1L;
@ -44,147 +41,4 @@ public class SysRoleEntity implements Serializable {
@TableField(exist=false)
private String roleDataScopeListJson;
public SysRoleEntity() {
}
public String getRoleCode() {
return this.roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
public String getCorpCode() {
return this.corpCode;
}
public void setCorpCode(String corpCode) {
this.corpCode = corpCode;
}
public String getCorpName() {
return this.corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getDataScope() {
return this.dataScope;
}
public void setDataScope(String dataScope) {
this.dataScope = dataScope;
}
public String getIsSys() {
return this.isSys;
}
public void setIsSys(String isSys) {
this.isSys = isSys;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getRoleName() {
return this.roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
public BigDecimal getRoleSort() {
return this.roleSort;
}
public void setRoleSort(BigDecimal roleSort) {
this.roleSort = roleSort;
}
public String getRoleType() {
return this.roleType;
}
public void setRoleType(String roleType) {
this.roleType = roleType;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUserType() {
return this.userType;
}
public void setUserType(String userType) {
this.userType = userType;
}
public String getId() {
return getRoleCode();
}
public String getRoleMenuListJson() {
return roleMenuListJson;
}
public void setRoleMenuListJson(String roleMenuListJson) {
this.roleMenuListJson = roleMenuListJson;
}
public String getRoleDataScopeListJson() {
return roleDataScopeListJson;
}
public void setRoleDataScopeListJson(String roleDataScopeListJson) {
this.roleDataScopeListJson = roleDataScopeListJson;
}
}

@ -1,24 +1,13 @@
package com.tamguo.modules.sys.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="sys_role_menu")
public class SysRoleMenuEntity {
private String roleCode;
private String menuCode;
public String getRoleCode() {
return roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
public String getMenuCode() {
return menuCode;
}
public void setMenuCode(String menuCode) {
this.menuCode = menuCode;
}
}

@ -1,7 +1,9 @@
package com.tamguo.modules.sys.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="sys_user_data_scope")
public class SysUserDataScopeEntity {
@ -9,29 +11,5 @@ public class SysUserDataScopeEntity {
private String ctrlType;
private String ctrlData;
private String ctrlPermi;
public String getUserCode() {
return userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
public String getCtrlType() {
return ctrlType;
}
public void setCtrlType(String ctrlType) {
this.ctrlType = ctrlType;
}
public String getCtrlData() {
return ctrlData;
}
public void setCtrlData(String ctrlData) {
this.ctrlData = ctrlData;
}
public String getCtrlPermi() {
return ctrlPermi;
}
public void setCtrlPermi(String ctrlPermi) {
this.ctrlPermi = ctrlPermi;
}
}

@ -15,12 +15,9 @@ import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.sys.model.enums.SysUserMgrTypeEnum;
import com.tamguo.modules.sys.model.enums.SysUserStatusEnum;
import com.tamguo.modules.sys.model.enums.SysUserTypeEnum;
import lombok.Data;
/**
* The persistent class for the sys_user database table.
*
*/
@Data
@TableName(value="sys_user")
public class SysUserEntity extends Model<SysUserEntity> implements Serializable {
private static final long serialVersionUID = 1L;
@ -96,392 +93,6 @@ public class SysUserEntity extends Model<SysUserEntity> implements Serializable
@TableField(exist=false)
private String userDataScopeListJson;
public SysUserEntity() {
}
public String getUserCode() {
return this.userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
public String getAvatar() {
return this.avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
public String getCorpCode() {
return this.corpCode;
}
public void setCorpCode(String corpCode) {
this.corpCode = corpCode;
}
public String getCorpName() {
return this.corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName;
}
public String getCreateBy() {
return this.createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getFreezeCause() {
return this.freezeCause;
}
public void setFreezeCause(String freezeCause) {
this.freezeCause = freezeCause;
}
public Date getFreezeDate() {
return this.freezeDate;
}
public void setFreezeDate(Date freezeDate) {
this.freezeDate = freezeDate;
}
public Date getLastLoginDate() {
return this.lastLoginDate;
}
public void setLastLoginDate(Date lastLoginDate) {
this.lastLoginDate = lastLoginDate;
}
public String getLastLoginIp() {
return this.lastLoginIp;
}
public void setLastLoginIp(String lastLoginIp) {
this.lastLoginIp = lastLoginIp;
}
public String getLoginCode() {
return this.loginCode;
}
public void setLoginCode(String loginCode) {
this.loginCode = loginCode;
}
public String getMobile() {
return this.mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getMobileImei() {
return this.mobileImei;
}
public void setMobileImei(String mobileImei) {
this.mobileImei = mobileImei;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Date getPwdQuestUpdateDate() {
return this.pwdQuestUpdateDate;
}
public void setPwdQuestUpdateDate(Date pwdQuestUpdateDate) {
this.pwdQuestUpdateDate = pwdQuestUpdateDate;
}
public String getPwdQuestion() {
return this.pwdQuestion;
}
public void setPwdQuestion(String pwdQuestion) {
this.pwdQuestion = pwdQuestion;
}
public String getPwdQuestion2() {
return this.pwdQuestion2;
}
public void setPwdQuestion2(String pwdQuestion2) {
this.pwdQuestion2 = pwdQuestion2;
}
public String getPwdQuestion3() {
return this.pwdQuestion3;
}
public void setPwdQuestion3(String pwdQuestion3) {
this.pwdQuestion3 = pwdQuestion3;
}
public String getPwdQuestionAnswer() {
return this.pwdQuestionAnswer;
}
public void setPwdQuestionAnswer(String pwdQuestionAnswer) {
this.pwdQuestionAnswer = pwdQuestionAnswer;
}
public String getPwdQuestionAnswer2() {
return this.pwdQuestionAnswer2;
}
public void setPwdQuestionAnswer2(String pwdQuestionAnswer2) {
this.pwdQuestionAnswer2 = pwdQuestionAnswer2;
}
public String getPwdQuestionAnswer3() {
return this.pwdQuestionAnswer3;
}
public void setPwdQuestionAnswer3(String pwdQuestionAnswer3) {
this.pwdQuestionAnswer3 = pwdQuestionAnswer3;
}
public BigDecimal getPwdSecurityLevel() {
return this.pwdSecurityLevel;
}
public void setPwdSecurityLevel(BigDecimal pwdSecurityLevel) {
this.pwdSecurityLevel = pwdSecurityLevel;
}
public Date getPwdUpdateDate() {
return this.pwdUpdateDate;
}
public void setPwdUpdateDate(Date pwdUpdateDate) {
this.pwdUpdateDate = pwdUpdateDate;
}
public String getPwdUpdateRecord() {
return this.pwdUpdateRecord;
}
public void setPwdUpdateRecord(String pwdUpdateRecord) {
this.pwdUpdateRecord = pwdUpdateRecord;
}
public String getRefCode() {
return this.refCode;
}
public void setRefCode(String refCode) {
this.refCode = refCode;
}
public String getRefName() {
return this.refName;
}
public void setRefName(String refName) {
this.refName = refName;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getSex() {
return this.sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getSign() {
return this.sign;
}
public void setSign(String sign) {
this.sign = sign;
}
public SysUserStatusEnum getStatus() {
return this.status;
}
public void setStatus(SysUserStatusEnum status) {
this.status = status;
}
public String getUpdateBy() {
return this.updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateDate() {
return this.updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public BigDecimal getUserWeight() {
return this.userWeight;
}
public void setUserWeight(BigDecimal userWeight) {
this.userWeight = userWeight;
}
public String getWxOpenid() {
return this.wxOpenid;
}
public void setWxOpenid(String wxOpenid) {
this.wxOpenid = wxOpenid;
}
public String getOfficeCode() {
return officeCode;
}
public void setOfficeCode(String officeCode) {
this.officeCode = officeCode;
}
public String getOfficeName() {
return officeName;
}
public void setOfficeName(String officeName) {
this.officeName = officeName;
}
public String getCompanyCode() {
return companyCode;
}
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public SysUserMgrTypeEnum getMgrType() {
return mgrType;
}
public void setMgrType(SysUserMgrTypeEnum mgrType) {
this.mgrType = mgrType;
}
public String getUserNameEn() {
return userNameEn;
}
public void setUserNameEn(String userNameEn) {
this.userNameEn = userNameEn;
}
public List<String> getEmployeePosts() {
return employeePosts;
}
public void setEmployeePosts(List<String> employeePosts) {
this.employeePosts = employeePosts;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public String getUserRoleString() {
return userRoleString;
}
public void setUserRoleString(String userRoleString) {
this.userRoleString = userRoleString;
}
public SysUserTypeEnum getUserType() {
return userType;
}
public void setUserType(SysUserTypeEnum userType) {
this.userType = userType;
}
public String getUserDataScopeListJson() {
return userDataScopeListJson;
}
public void setUserDataScopeListJson(String userDataScopeListJson) {
this.userDataScopeListJson = userDataScopeListJson;
}
@Override
protected Serializable pkVal() {

@ -1,23 +1,12 @@
package com.tamguo.modules.sys.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="sys_user_post")
public class SysUserPostEntity {
private String userCode;
private String postCode;
public String getUserCode() {
return userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
public String getPostCode() {
return postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
}

@ -1,23 +1,13 @@
package com.tamguo.modules.sys.model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@Data
@TableName(value="sys_user_role")
public class SysUserRoleEntity {
private String userCode;
private String roleCode;
public String getRoleCode() {
return roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
public String getUserCode() {
return userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
}

@ -6,159 +6,27 @@ import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import com.tamguo.modules.sys.model.enums.TeacherStatus;
import lombok.Data;
/**
* The persistent class for the tiku_teacher database table.
*
*/
@Data
@TableName(value="t_teacher")
public class TeacherEntity extends SuperEntity<TeacherEntity> implements Serializable {
private static final long serialVersionUID = 1L;
private String mobile;
private String email;
private String name;
private String motto;
private String provinceId;
private String cityId;
private String subjectId;
private String courseId;
private String cardId;
private String cardPhoto;
private String occupationPapers;
private Long createTime;
@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
private TeacherStatus status;
private String qq;
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMotto() {
return motto;
}
public void setMotto(String motto) {
this.motto = motto;
}
public String getCourseId() {
return courseId;
}
public void setCourseId(String courseId) {
this.courseId = courseId;
}
public String getCardId() {
return cardId;
}
public void setCardId(String cardId) {
this.cardId = cardId;
}
public String getCardPhoto() {
return cardPhoto;
}
public void setCardPhoto(String cardPhoto) {
this.cardPhoto = cardPhoto;
}
public String getOccupationPapers() {
return occupationPapers;
}
public void setOccupationPapers(String occupationPapers) {
this.occupationPapers = occupationPapers;
}
public String getQq() {
return qq;
}
public void setQq(String qq) {
this.qq = qq;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getSubjectId() {
return subjectId;
}
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getProvinceId() {
return provinceId;
}
public void setProvinceId(String provinceId) {
this.provinceId = provinceId;
}
public String getCityId() {
return cityId;
}
public void setCityId(String cityId) {
this.cityId = cityId;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public TeacherStatus getStatus() {
return status;
}
public void setStatus(TeacherStatus status) {
this.status = status;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}

@ -0,0 +1,10 @@
package com.tamguo.modules.tiku.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tamguo.modules.tiku.model.QuestionOptionsEntity;
/**
* Created by TanGuo on 2019/3/25.
*/
public interface QuestionOptionsMapper extends BaseMapper<QuestionOptionsEntity> {
}

@ -1,59 +1,29 @@
package com.tamguo.modules.tiku.model;
import java.io.Serializable;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
/**
* The persistent class for the t_ad database table.
*
*/
@Data
@TableName(value="t_ad")
public class AdEntity extends SuperEntity<AdEntity> implements Serializable {
private static final long serialVersionUID = 1L;
private String businessKey;
private String name;
private String adInfo;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getAdInfo() {
return adInfo;
}
public void setAdInfo(String adInfo) {
this.adInfo = adInfo;
}
public JSONArray getAds(){
if(StringUtils.isEmpty(getAdInfo())){
if(StringUtils.isEmpty(adInfo)){
return null;
}
return JSONArray.parseArray(getAdInfo());
}
public String getBusinessKey() {
return businessKey;
return JSONArray.parseArray(adInfo);
}
public void setBusinessKey(String businessKey) {
this.businessKey = businessKey;
}
}

@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import com.tamguo.modules.tiku.model.enums.ChapterStatusEnum;
import lombok.Data;
import java.util.List;
@ -17,6 +18,7 @@ import java.util.List;
*
*/
@TableName(value="t_chapter")
@Data
public class ChapterEntity extends SuperEntity<ChapterEntity> implements Serializable {
private static final long serialVersionUID = 1L;
@ -41,127 +43,4 @@ public class ChapterEntity extends SuperEntity<ChapterEntity> implements Seriali
@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
private ChapterStatusEnum status;
public ChapterEntity() {
}
public String getCourseId() {
return this.courseId;
}
public void setCourseId(String courseId) {
this.courseId = courseId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public List<ChapterEntity> getChildChapterList() {
return childChapterList;
}
public void setChildChapterList(List<ChapterEntity> childChapterList) {
this.childChapterList = childChapterList;
}
public Integer getQuestionNum() {
return questionNum;
}
public void setQuestionNum(Integer questionNum) {
this.questionNum = questionNum;
}
public Integer getPointNum() {
return pointNum;
}
public void setPointNum(Integer pointNum) {
this.pointNum = pointNum;
}
public Integer getOrders() {
return orders;
}
public void setOrders(Integer orders) {
this.orders = orders;
}
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
public String getParentCodes() {
return parentCodes;
}
public void setParentCodes(String parentCodes) {
this.parentCodes = parentCodes;
}
public Boolean getTreeLeaf() {
return treeLeaf;
}
public void setTreeLeaf(Boolean treeLeaf) {
this.treeLeaf = treeLeaf;
}
public Integer getTreeLevel() {
return treeLevel;
}
public void setTreeLevel(Integer treeLevel) {
this.treeLevel = treeLevel;
}
public ChapterStatusEnum getStatus() {
return status;
}
public void setStatus(ChapterStatusEnum status) {
this.status = status;
}
public String getBookId() {
return bookId;
}
public void setBookId(String bookId) {
this.bookId = bookId;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
}

@ -8,7 +8,9 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.tiku.model.enums.CourseStatusEnum;
import lombok.Data;
@Data
@TableName(value="t_course")
public class CourseEntity {
@ -38,101 +40,4 @@ public class CourseEntity {
@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
private CourseStatusEnum status;
public String getSubjectId() {
return subjectId;
}
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Integer getQuestionNum() {
return questionNum;
}
public void setQuestionNum(Integer questionNum) {
this.questionNum = questionNum;
}
public Integer getPointNum() {
return pointNum;
}
public void setPointNum(Integer pointNum) {
this.pointNum = pointNum;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public CourseStatusEnum getStatus() {
return status;
}
public void setStatus(CourseStatusEnum status) {
this.status = status;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
}

@ -8,7 +8,9 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.tiku.model.enums.BookStatusEnum;
import lombok.Data;
@Data
@TableName(value="t_know_point")
public class KnowPointEntity {
@ -40,133 +42,4 @@ public class KnowPointEntity {
@TableField(exist=false)
private String courseName;
public String getSubjectId() {
return subjectId;
}
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getCourseId() {
return courseId;
}
public void setCourseId(String courseId) {
this.courseId = courseId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPublishingHouse() {
return publishingHouse;
}
public void setPublishingHouse(String publishingHouse) {
this.publishingHouse = publishingHouse;
}
public Integer getQuestionNum() {
return questionNum;
}
public void setQuestionNum(Integer questionNum) {
this.questionNum = questionNum;
}
public Integer getPointNum() {
return pointNum;
}
public void setPointNum(Integer pointNum) {
this.pointNum = pointNum;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getSubjectName() {
return subjectName;
}
public void setSubjectName(String subjectName) {
this.subjectName = subjectName;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public BookStatusEnum getStatus() {
return status;
}
public void setStatus(BookStatusEnum status) {
this.status = status;
}
}

@ -4,6 +4,7 @@ import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import lombok.Data;
import java.util.List;
@ -12,6 +13,7 @@ import java.util.List;
* The persistent class for the t_subject database table.
*
*/
@Data
@TableName(value="t_menu")
public class MenuEntity extends SuperEntity<MenuEntity> implements Serializable {
private static final long serialVersionUID = 1L;
@ -29,71 +31,4 @@ public class MenuEntity extends SuperEntity<MenuEntity> implements Serializable
@TableField(exist=false)
private List<MenuEntity> childSubjects;
public MenuEntity() {
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public List<MenuEntity> getChildSubjects() {
return childSubjects;
}
public void setChildSubjects(List<MenuEntity> childSubjects) {
this.childSubjects = childSubjects;
}
public String getPinyin() {
return pinyin;
}
public void setPinyin(String pinyin) {
this.pinyin = pinyin;
}
public String getIsShow() {
return isShow;
}
public void setIsShow(String isShow) {
this.isShow = isShow;
}
public Integer getOrders() {
return orders;
}
public void setOrders(Integer orders) {
this.orders = orders;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getReserve1() {
return reserve1;
}
public void setReserve1(String reserve1) {
this.reserve1 = reserve1;
}
}

@ -1,6 +1,8 @@
package com.tamguo.modules.tiku.model;
import java.io.Serializable;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import com.alibaba.fastjson.JSONArray;
@ -13,234 +15,42 @@ import com.tamguo.config.dao.SuperEntity;
* The persistent class for the t_chapter database table.
*
*/
@Data
@TableName(value="t_paper")
public class PaperEntity extends SuperEntity<PaperEntity> implements Serializable {
private static final long serialVersionUID = 1L;
private String subjectId;
private String courseId;
private String schoolId;
private String areaId;
private String createrId;
private String name;
private String questionInfo;
private String type;
private String year;
private Integer downHits;
private Integer openHits;
private String seoTitle;
private String seoKeywords;
private String seoDescription;
@TableField(value="free")
private String free;
private String point;
private String money;
@TableField(exist=false)
private String subjectName;
@TableField(exist=false)
private String courseName;
@TableField(exist=false)
private String areaName;
@TableField(exist=false)
private String schoolName;
public JSONArray getQueInfo(){
if(StringUtils.isEmpty(getQuestionInfo())){
if(StringUtils.isEmpty(questionInfo)){
return null;
}
return JSONArray.parseArray(getQuestionInfo());
}
public String getCourseId() {
return courseId;
}
public void setCourseId(String courseId) {
this.courseId = courseId;
}
public String getAreaId() {
return areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getSchoolId() {
return schoolId;
}
public void setSchoolId(String schoolId) {
this.schoolId = schoolId;
}
public Integer getDownHits() {
return downHits;
}
public void setDownHits(Integer downHits) {
this.downHits = downHits;
}
public Integer getOpenHits() {
return openHits;
}
public void setOpenHits(Integer openHits) {
this.openHits = openHits;
}
public String getQuestionInfo() {
return questionInfo;
}
public void setQuestionInfo(String questionInfo) {
this.questionInfo = questionInfo;
}
public String getCreaterId() {
return createrId;
}
public void setCreaterId(String createrId) {
this.createrId = createrId;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getAreaName() {
return areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getSchoolName() {
return schoolName;
}
public void setSchoolName(String schoolName) {
this.schoolName = schoolName;
}
public String getSubjectId() {
return subjectId;
}
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getSubjectName() {
return subjectName;
}
public void setSubjectName(String subjectName) {
this.subjectName = subjectName;
}
public String getPoint() {
return point;
}
public void setPoint(String point) {
this.point = point;
}
public String getMoney() {
return money;
}
public void setMoney(String money) {
this.money = money;
}
public String getFree() {
return free;
}
public void setFree(String free) {
this.free = free;
return JSONArray.parseArray(questionInfo);
}
}

@ -4,7 +4,9 @@ import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import lombok.Data;
@Data
@TableName(value="t_question_answer")
public class QuestionAnswerEntity extends SuperEntity<PaperEntity> implements Serializable{
@ -19,56 +21,4 @@ public class QuestionAnswerEntity extends SuperEntity<PaperEntity> implements Se
private Integer disagreeNum;
private Date createDate;
public String getQuestionId() {
return questionId;
}
public void setQuestionId(String questionId) {
this.questionId = questionId;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getMemberName() {
return memberName;
}
public void setMemberName(String memberName) {
this.memberName = memberName;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
public Integer getAgreeNum() {
return agreeNum;
}
public void setAgreeNum(Integer agreeNum) {
this.agreeNum = agreeNum;
}
public Integer getDisagreeNum() {
return disagreeNum;
}
public void setDisagreeNum(Integer disagreeNum) {
this.disagreeNum = disagreeNum;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getMemberAvatar() {
return memberAvatar;
}
public void setMemberAvatar(String memberAvatar) {
this.memberAvatar = memberAvatar;
}
}

@ -1,14 +1,18 @@
package com.tamguo.modules.tiku.model;
import java.io.Serializable;
import java.util.List;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import lombok.Data;
/**
* The persistent class for the t_question database table.
*
*/
@Data
@TableName(value="t_question")
public class QuestionEntity extends SuperEntity<QuestionEntity> implements Serializable {
private static final long serialVersionUID = 1L;
@ -32,128 +36,7 @@ public class QuestionEntity extends SuperEntity<QuestionEntity> implements Seria
private String chapterName;
@TableField(exist=false)
private String subjectName;
public QuestionEntity() {
}
public String getAnalysis() {
return this.analysis;
}
public void setAnalysis(String analysis) {
this.analysis = analysis;
}
public String getAnswer() {
return this.answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
public String getChapterId() {
return this.chapterId;
}
public void setChapterId(String chapterId) {
this.chapterId = chapterId;
}
public String getQuestionType() {
return this.questionType;
}
public void setQuestionType(String questionType) {
this.questionType = questionType;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getReviewPoint() {
return reviewPoint;
}
public void setReviewPoint(String reviewPoint) {
this.reviewPoint = reviewPoint;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public String getScore() {
return score;
}
public void setScore(String score) {
this.score = score;
}
public String getPaperId() {
return paperId;
}
public void setPaperId(String paperId) {
this.paperId = paperId;
}
public String getCourseId() {
return courseId;
}
public void setCourseId(String courseId) {
this.courseId = courseId;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getChapterName() {
return chapterName;
}
public void setChapterName(String chapterName) {
this.chapterName = chapterName;
}
public String getSubjectId() {
return subjectId;
}
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getSubjectName() {
return subjectName;
}
public void setSubjectName(String subjectName) {
this.subjectName = subjectName;
}
public String getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(String auditStatus) {
this.auditStatus = auditStatus;
}
@TableField(exist = false)
private List<QuestionOptionsEntity> questionOptions;
}

@ -0,0 +1,17 @@
package com.tamguo.modules.tiku.model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
@TableName(value="t_question_options")
@Data
public class QuestionOptionsEntity {
@TableId
private String id;
private String questionId;
private String option;
private String optionNo;
private int order;
}

@ -6,63 +6,18 @@ import java.util.List;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tamguo.config.dao.SuperEntity;
import lombok.Data;
/**
* The persistent class for the t_chapter database table.
*
*/
@Data
@TableName(value="t_school")
public class SchoolEntity extends SuperEntity<SchoolEntity> implements Serializable {
private static final long serialVersionUID = 1L;
private String areaId;
private String name;
private String image;
// 试卷
@TableField(exist=false)
private List<PaperEntity> paperList;
public SchoolEntity() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getAreaId() {
return areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public List<PaperEntity> getPaperList() {
return paperList;
}
public void setPaperList(List<PaperEntity> paperList) {
this.paperList = paperList;
}
}

@ -8,7 +8,9 @@ import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.tamguo.modules.tiku.model.enums.SubjectStatusEnum;
import lombok.Data;
@Data
@TableName(value="t_subject")
public class SubjectEntity {
@ -33,79 +35,4 @@ public class SubjectEntity {
@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
private SubjectStatusEnum status;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public SubjectStatusEnum getStatus() {
return status;
}
public void setStatus(SubjectStatusEnum status) {
this.status = status;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
}

@ -4,6 +4,7 @@ import java.util.List;
import com.baomidou.mybatisplus.service.IService;
import com.tamguo.common.utils.Result;
import com.tamguo.modules.tiku.model.PaperEntity;
import com.tamguo.modules.tiku.model.QuestionEntity;
public interface IPaperService extends IService<PaperEntity>{
@ -25,4 +26,6 @@ public interface IPaperService extends IService<PaperEntity>{
void addPaper(PaperEntity paper);
Result updatePaper(PaperEntity paper , String currMemberId);
List<QuestionEntity> findQuestionList(String paperId);
}

@ -0,0 +1,11 @@
package com.tamguo.modules.tiku.service;
import com.baomidou.mybatisplus.service.IService;
import com.tamguo.modules.tiku.model.QuestionOptionsEntity;
/**
* Created by TanGuo on 2019/3/25.
*/
public interface IQuestionOptionsService extends IService<QuestionOptionsEntity> {
}

@ -4,6 +4,9 @@ import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import com.tamguo.modules.tiku.dao.QuestionOptionsMapper;
import com.tamguo.modules.tiku.model.QuestionEntity;
import com.tamguo.modules.tiku.model.QuestionOptionsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -39,6 +42,8 @@ public class PaperServiceImpl extends ServiceImpl<PaperMapper, PaperEntity> impl
private CacheService cacheService;
@Autowired
private QuestionMapper questionMapper;
@Autowired
private QuestionOptionsMapper questionOptionsMapper;
@SuppressWarnings("unchecked")
@Override
@ -187,12 +192,15 @@ public class PaperServiceImpl extends ServiceImpl<PaperMapper, PaperEntity> impl
return Result.result(Result.SUCCESS_CODE, paper, "修改成功");
}
public ISubjectService getiSubjectService() {
return iSubjectService;
}
public void setiSubjectService(ISubjectService iSubjectService) {
this.iSubjectService = iSubjectService;
@Override
public List<QuestionEntity> findQuestionList(String paperId) {
// 查询选项信息
List<QuestionEntity> questionList = questionMapper.selectList(Condition.create().eq("paper_id", paperId));
questionList.forEach(question -> {
List<QuestionOptionsEntity> questionOptions = questionOptionsMapper.selectList(Condition.create().eq("question_id" , question.getId()));
question.setQuestionOptions(questionOptions);
});
return questionList;
}
}

@ -0,0 +1,15 @@
package com.tamguo.modules.tiku.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.tamguo.modules.tiku.dao.QuestionOptionsMapper;
import com.tamguo.modules.tiku.model.QuestionOptionsEntity;
import com.tamguo.modules.tiku.service.IQuestionOptionsService;
import org.springframework.stereotype.Service;
/**
* Created by zhangshukang on 2019/3/25.
*/
@Service
public class QuestionOptionsServiceImpl extends ServiceImpl<QuestionOptionsMapper, QuestionOptionsEntity> implements IQuestionOptionsService {
}

@ -160,6 +160,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -11,7 +11,6 @@ import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
@SpringBootApplication
@ComponentScan("com.tamguo")
public class Application {
public static void main(String[] args) {

@ -17,7 +17,7 @@ import com.tamguo.modules.tiku.service.IChapterService;
@Controller
@RequestMapping(path="tiku/chapter")
public class ChapterController {
public class {
private final String ADD_CHAPTER_PAGE = "modules/tiku/chapter/add";
private final String UPDATE_CHAPTER_PAGE = "modules/tiku/chapter/update";

@ -162,6 +162,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -11,7 +11,6 @@ import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
@SpringBootApplication
@ComponentScan("com.tamguo")
public class Application {
public static void main(String[] args) {

@ -7,6 +7,7 @@ import com.tamguo.modules.sys.model.SysAreaEntity;
import com.tamguo.modules.sys.service.ISysAreaService;
import com.tamguo.modules.tiku.model.CourseEntity;
import com.tamguo.modules.tiku.model.PaperEntity;
import com.tamguo.modules.tiku.model.QuestionEntity;
import com.tamguo.modules.tiku.model.SubjectEntity;
import com.tamguo.modules.tiku.service.ICourseService;
import com.tamguo.modules.tiku.service.IPaperService;
@ -115,8 +116,9 @@ public class PaperController {
model.addObject("paper", paper);
model.addObject("subject", StringUtils.isEmpty(paper.getSubjectId()) ? null : iSubjectService.selectById(paper.getSubjectId()));
model.addObject("course", StringUtils.isEmpty(paper.getCourseId()) ? null : iCourseService.selectById(paper.getCourseId()));
model.addObject("questionList", iQuestionService.selectList(Condition.create().eq("paper_id", paperId)));
// 查询试卷题目
model.addObject("questionList", iPaperService.findQuestionList(paperId));
// 获取推荐试卷
model.addObject("zhentiPaperList", iPaperService.selectPage(new Page<PaperEntity>(1, 5) , Condition.create().eq("subject_id", paper.getSubjectId()).eq("type",SystemConstant.ZHENGTI_PAPER_ID)).getRecords());
model.addObject("moniPaperList", iPaperService.selectPage(new Page<PaperEntity>(1, 5) , Condition.create().eq("subject_id", paper.getSubjectId()).eq("type",SystemConstant.MONI_PAPER_ID)).getRecords());
@ -125,10 +127,10 @@ public class PaperController {
if(BrowserUtils.isMobile(request.getHeader("user-agent"))) {
model.setViewName("mobile/paper");
}else {
model.setViewName("paper");
}
model.setViewName("mobile/paper");
}else {
model.setViewName("paper");
}
return model;
} catch (Exception e) {
model.setViewName("404");

@ -1,11 +1,14 @@
package com.tamguo.web.tiku;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import javax.servlet.http.HttpServletRequest;
import com.tamguo.modules.tiku.model.*;
import com.tamguo.modules.tiku.service.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -19,17 +22,8 @@ import org.springframework.web.servlet.ModelAndView;
import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.plugins.Page;
import com.tamguo.common.utils.Result;
import com.tamguo.modules.tiku.model.ChapterEntity;
import com.tamguo.modules.tiku.model.CourseEntity;
import com.tamguo.modules.tiku.model.QuestionEntity;
import com.tamguo.modules.tiku.model.SubjectEntity;
import com.tamguo.modules.tiku.model.enums.QuestionTypeEnum;
import com.tamguo.modules.tiku.model.queue.LearnChapterQueue;
import com.tamguo.modules.tiku.service.IChapterService;
import com.tamguo.modules.tiku.service.ICourseService;
import com.tamguo.modules.tiku.service.IQuestionAnswerService;
import com.tamguo.modules.tiku.service.IQuestionService;
import com.tamguo.modules.tiku.service.ISubjectService;
import com.tamguo.utils.BrowserUtils;
@Controller
@ -47,6 +41,8 @@ public class QuestionContrller {
private ICourseService iCourseService;
@Autowired
private IQuestionAnswerService iQuestionAnswerService;
@Autowired
private IQuestionOptionsService iQuestionOptionsService;
// 章节
BlockingQueue<ChapterEntity> chapterQueue = new LinkedBlockingQueue<ChapterEntity>(10);
@ -104,6 +100,8 @@ public class QuestionContrller {
logger.info("request url :{}" , request.getRequestURI());
model.setViewName("question");
QuestionEntity question = iQuestionService.selectById(uid);
List<QuestionOptionsEntity> questionOptions = iQuestionOptionsService.selectList(Condition.create().eq("question_id" , question.getId()));
question.setQuestionOptions(questionOptions);
question.setQuestionType(QuestionTypeEnum.getQuestionType(question.getQuestionType()).getDesc());
model.addObject("question", question);
model.addObject("course", iCourseService.selectById(question.getCourseId()));

@ -1,7 +1,7 @@
domain.name=https://www.tamguo.com/
domain.name=http://localhost:8081/
admin.domain.name=https://admin.tamguo.com/
member.domain.name=https://member.tamguo.com/
cookie.domian.name=tamguo.com
cookie.domian.name=localhost
server.port=8081
jasypt.encryptor.password=tamguo
@ -14,29 +14,26 @@ spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.maxWait=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.minIdle=5
spring.datasource.password=tanguo520pig
spring.datasource.password=boomauto
spring.datasource.poolPreparedStatements=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.testWhileIdle=true
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tamguo?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.url=jdbc:mysql://120.77.219.107:3306/tamguo?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.username=root
spring.datasource.validationQuery=SELECT 1 FROM DUAL
mybatis-plus.mapper-locations=classpath:/mappers/*Mapper.xml
mybatis-plus.typeAliasesPackage=com.tamguo.modules.*.model
mybatis-plus.typeEnumsPackage=com.tamguo.modules.*.model.enums
mybatis-plus.global-config.id-type=5
mybatis-plus.global-config.id-type=2
mybatis-plus.global-config.field-strategy=2
mybatis-plus.global-config.db-column-underline=true
mybatis-plus.global-config.refresh-mapper=true
mybatis-plus.global-config.key-generator=com.baomidou.mybatisplus.incrementer.H2KeyGenerator
mybatis-plus.global-config.logic-delete-value=0
mybatis-plus.global-config.logic-not-delete-value=1
mybatis-plus.global-config.sql-injector=com.baomidou.mybatisplus.mapper.LogicSqlInjector
mybatis-plus.global-config.meta-object-handler=com.tamguo.config.dao.MyMetaObjectHandler
mybatis-plus.global-config.sql-parser-cache=true
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.cache-enabled=false
@ -45,10 +42,9 @@ spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
redis.hostname=127.0.0.1
redis.hostname=120.77.219.107
redis.port=6379
redis.password=

@ -680,3 +680,25 @@
font-size: xx-large;
content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";
}
.quelist-wrap .question-box .question-box-inner .que-options {
font-size: 16px;
color: #828386;
margin-top: 20px;
line-height: 1.5;
}
.quelist-wrap .question-box .question-box-inner .que-options .opt-item {
display: inline-block;
padding-right: 20px;
}
.quelist-wrap .question-box .question-box-inner .que-options .opt-item p {
display: inline-block;
}
.bdjson .ext_text-align_left {
text-align: left;
}
.quelist-wrap .question-box .question-box-inner .que-options .opt-item .prefix {
padding-right: 10px;
}
.quelist-wrap .question-box .question-box-inner .que-options .opt-item .prefix::after {
content: '. ';
}

@ -2,7 +2,7 @@
<html lang="Zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="${'探果网_' + paper.name}">探果网_聪明的学生都在这里</title>
<title th:text="${paper.name + ' - 探果网'}">聪明的学生都在这里 - 探果网</title>
<meta name="keywords" th:content="${#strings.isEmpty(course.seoKeywords) ? subject.seoKeywords : course.seoKeywords}"/>
<meta name="description" th:content="${#strings.isEmpty(course.seoDescription) ? subject.seoDescription : course.seoDescription}"/>
<meta name="author" content="Tamguo Team" />
@ -88,23 +88,33 @@
<div class="bd-content" style="visibility: visible;">
<div class="quelist-wrap">
<div class="ques-container" th:each="p,pStat:${paper.queInfo}">
<div class="ques-info-wrap">
<div class="ques-info-wrap">
<span class="que-type" th:text="${p.name}">单选题</span>
<span class="que-info" th:text="${p.title}"></span>
</div>
<div th:attr="data-id=${q.id},data-index=${q.id}" class="question-box que-multi" th:if="${q.questionType == p.type}" th:each="q,qStat:${questionList}">
<div class="question-box-inner" >
<span class="queindex-wrap"><span class="queindex" th:text="${qStat.index + 1}">1</span></span>
<span class="pieces" th:text="${p.name}">
多选题
</span>
<div class="que-stem">
<div class="questem-inner bdjson" th:utext="${q.content }"><p><span>社会工作专业化是在长期社会服务实践中形成,在实践中被接受的。在专业化过程中,社会工作发展的重要特点包括( )。</span><br><br><span> A专业理论的完善</span><br><span>B专业方法的发展</span><br><span>C目标模式的变化</span><br><span>D工作对象的拓展</span><br><span>E理论派别的形成</span><br></p></div>
</div>
<div class="view-analyse">
<a class="view-link" th:href="${domainName + 'question/' + q.id + '.html'}">查看题目解析 &gt;</a>
<div th:attr="data-id=${q.id},data-index=${q.id}" class="question-box que-select" th:if="${q.questionType == p.type}" th:each="q,qStat:${questionList}">
<div class="question-box-inner">
<span class="queindex-wrap"><span class="queindex" th:text="${qStat.index + 1}">1</span></span>
<span class="pieces" th:text="${p.name + ' . ' + q.score}">单选题· 2 分</span>
<div class="que-stem">
<div class="questem-inner bdjson">
<p class="ext_text-align_left" th:utext="${q.getContent()}">下列关于细胞中化合物及其化学键的叙述,正确的是(  )</p>
</div>
</div>
<div class="que-options">
<div class="queoptions-inner bdjson clearfix">
<div class="opt-item" style="display: block;" th:each="o,qStat:${q.questionOptions}">
<p class="ext_text-align_left"><span class="prefix" th:text="${o.optionNo}">A</span><span th:text="${o.option}">tRNA分子中含有一定数量的氢键</span></p>
</div>
</div>
</div>
</div>
<div class="view-analyse">
<a class="view-link" th:href="${domainName + 'question/' + q.id + '.html'}">查看题目解析 &gt;</a>
</div>
</div>
</div>
</div>

@ -38,6 +38,13 @@
<p><span>社会工作专业化是在长期社会服务实践中形成,在实践中被接受的。在专业化过程中,社会工作发展的重要特点包括( )。</span><br><br><span> A专业理论的完善</span><br><span>B专业方法的发展</span><br><span>C目标模式的变化</span><br><span>D工作对象的拓展</span><br><span>E理论派别的形成</span><br></p>
</div>
</div>
<div class="que-options">
<div class="queoptions-inner bdjson clearfix">
<div class="opt-item" style="display: block;" th:each="o,qStat:${question.questionOptions}">
<p class="ext_text-align_left"><span class="prefix" th:text="${o.optionNo}">A</span><span th:text="${o.option}">tRNA分子中含有一定数量的氢键</span></p>
</div>
</div>
</div>
</div>
</div>
</div>

@ -51,6 +51,13 @@
<p><span>社会工作专业化是在长期社会服务实践中形成,在实践中被接受的。在专业化过程中,社会工作发展的重要特点包括( )。</span><br><br><span> A专业理论的完善</span><br><span>B专业方法的发展</span><br><span>C目标模式的变化</span><br><span>D工作对象的拓展</span><br><span>E理论派别的形成</span><br></p>
</div>
</div>
<div class="que-options">
<div class="queoptions-inner bdjson clearfix">
<div class="opt-item" style="display: block;" th:each="o,qStat:${q.questionOptions}">
<p class="ext_text-align_left"><span class="prefix" th:text="${o.optionNo}">A</span><span th:text="${o.option}">tRNA分子中含有一定数量的氢键</span></p>
</div>
</div>
</div>
<div class="view-analyse">
<a class="view-link" th:href="${domainName + 'question/' + q.id + '.html'}">查看题目解析 &gt;</a>
</div>

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

3
tamguo/.gitignore vendored

@ -1,3 +0,0 @@
/target/
/target/
/target/

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tamguo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

@ -1,8 +0,0 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/static/js/plugins/ueditor/jsp/config.json=UTF-8
encoding//src/main/resources/static/libs/area.json=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8

@ -1,5 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8

@ -1,4 +0,0 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

@ -5,7 +5,7 @@
<groupId>com.tamguo</groupId>
<artifactId>tamguo</artifactId>
<version>V1.0.1</version>
<name>探果网</name>
<name>tamguo</name>
<parent>
<groupId>org.springframework.boot</groupId>

@ -1,67 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tamguo</groupId>
<artifactId>tanmguo-config-server</artifactId>
<version>1.0.0</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<build>
<finalName>tamguo-config-server</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

@ -1,22 +0,0 @@
package com.tamguo.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer
@Slf4j
public class ConfigServerApplication implements CommandLineRunner{
public static void main(String[] args) {
SpringApplication.run(ConfigServerApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
log.info(">>>>>>>>>>>>>>> tamguo-config-server 启动完成<<<<<<<<<<<<<");
}
}

@ -1,24 +0,0 @@
server:
port: 9999
spring:
application:
name: tamguo-config-server
cloud:
config:
allowOverride: true
server:
git:
uri: https://gitee.com/zhangshukang/tamguo-config-server-repo.git
username: 434329122@qq.com
password:
search-paths: tamguo
fail-fast: true
override-none: true #覆盖非系统属性 true不覆盖
override-system-properties: true #覆盖系统属性 false不覆盖
logging:
level:
root: info

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
<facet type="web" name="Web">
<configuration>
<webroots />
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-config:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-config-client:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.5" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-config-server:2.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.5" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.9.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.0.4.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.jgit:org.eclipse.jgit:4.11.0.201803080745-r" level="project" />
<orderEntry type="library" name="Maven: com.jcraft:jsch:0.1.54" level="project" />
<orderEntry type="library" name="Maven: com.jcraft:jzlib:1.1.1" level="project" />
<orderEntry type="library" name="Maven: com.googlecode.javaewah:JavaEWAH:1.1.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.5" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.jgit:org.eclipse.jgit.http.apache:4.11.0.201803080745-r" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.9" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.19" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-actuator:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.5" level="project" />
<orderEntry type="library" name="Maven: io.micrometer:micrometer-core:1.0.3" level="project" />
<orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.10" level="project" />
<orderEntry type="library" name="Maven: org.latencyutils:LatencyUtils:2.0.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-eureka:unknown" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.16.20" level="project" />
</component>
</module>

@ -1,24 +0,0 @@
server:
port: 9999
spring:
application:
name: tamguo-config-server
cloud:
config:
allowOverride: true
server:
git:
uri: https://gitee.com/zhangshukang/tamguo-config-server-repo.git
username: 434329122@qq.com
password: zklovecjj801122
search-paths: tamguo
fail-fast: true
override-none: true #覆盖非系统属性 true不覆盖
override-system-properties: true #覆盖系统属性 false不覆盖
logging:
level:
root: info
Loading…
Cancel
Save