commit 70e3764011ea5942b9d43eb683c7796487708f85
Author: zhuyiyi <649091362@qq.com>
Date: Thu Feb 20 15:14:38 2025 +0800
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e87c343
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.idea/*
+target/*
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29
diff --git a/pom.properties b/pom.properties
new file mode 100644
index 0000000..f784bbc
--- /dev/null
+++ b/pom.properties
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Sun Feb 06 16:55:31 CST 2022
+version=0.0.1-SNAPSHOT
+groupId=lingtao.net
+artifactId=quote_price
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..4815562
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,211 @@
+
+ 4.0.0
+ lingtao.net
+ quote_price
+ 0.0.1-SNAPSHOT
+ war
+
+ quote_price
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.6.1
+
+ 1.8
+ 1.8
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+
+ src/main/resources/lib
+ WEB-INF/lib/
+
+ **/*.jar
+
+
+
+
+
+
+
+
+
+
+ com.github.pagehelper
+ pagehelper
+ 5.0.0
+
+
+
+ org.springframework
+ spring-webmvc
+ 4.2.4.RELEASE
+
+
+
+ org.springframework
+ spring-jdbc
+ 4.2.4.RELEASE
+
+
+
+ org.springframework
+ spring-aspects
+ 4.2.4.RELEASE
+
+
+
+ org.mybatis
+ mybatis
+ 3.4.6
+
+
+
+ org.mybatis
+ mybatis-spring
+ 1.3.2
+
+
+
+ com.mchange
+ c3p0
+ 0.9.5.2
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.32
+
+
+
+ jstl
+ jstl
+ 1.2
+
+
+
+ taglibs
+ standard
+ 1.1.2
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.0.1
+ provided
+
+
+
+ junit
+ junit
+ 4.12
+
+
+
+
+ org.springframework
+ spring-test
+ 4.2.4.RELEASE
+
+
+ javax.servlet
+ jsp-api
+ 2.0
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.8.8
+
+
+
+ org.hibernate
+ hibernate-validator
+ 5.3.6.Final
+
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.12
+ provided
+
+
+
+ commons-fileupload
+ commons-fileupload
+ 1.3.3
+
+
+ org.apache.poi
+ poi-ooxml
+ 3.14-beta1
+
+
+ org.apache.poi
+ poi-ooxml-schemas
+ 3.14-beta1
+
+
+ org.apache.poi
+ poi
+ 3.14-beta1
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+ net.sf.json-lib
+ json-lib
+ 2.4
+ jdk15
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.14
+
+
+
+ org.apache.shiro
+ shiro-all
+ 1.3.2
+
+
+
+ eu.bitwalker
+ UserAgentUtils
+ 1.20
+
+
+ com.alibaba
+ fastjson
+ 1.2.24
+
+
+ com.singularsys
+ jep
+ 3.5
+ system
+ ${project.basedir}/src/main/resources/lib/jep-java-3.5-trial.jar
+
+
+
+
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/base/ActionMessage.java b/src/main/java/lingtao/net/base/ActionMessage.java
new file mode 100644
index 0000000..629aced
--- /dev/null
+++ b/src/main/java/lingtao/net/base/ActionMessage.java
@@ -0,0 +1,16 @@
+package lingtao.net.base;
+
+public interface ActionMessage{
+ public final String SYS_STATE = "state";
+ public final String SYS_STATUS = "status";
+ public final String SYS_MESSAGE = "message";
+ public final String SYS_SUCESS_MESSAGE = "操作成功!";
+ public final String SYS_FAIL_MESSAGE = "操作失败!";
+ public final String SYS_NO_MESSAGE = "数据库无数据更新!";
+ public static final String SYS_WARN = "系统出错!请联系管理员";
+ public final String LMQ_SUCESS_MESSAGE = "SUCCESS";
+ public final String LMQ_FAIL_MESSAGE = "FAIL";
+
+ public final String SYS_CODE = "code";
+ public final String SYS_DATA = "data";
+}
diff --git a/src/main/java/lingtao/net/bean/Article.java b/src/main/java/lingtao/net/bean/Article.java
new file mode 100644
index 0000000..8b9c6d9
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Article.java
@@ -0,0 +1,125 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+public class Article {
+ private Integer id;
+
+ private String title;
+
+ private String type;
+
+ private String status;
+
+ private String imagesUrl;
+
+ private Integer hit;
+
+ private String remark;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+ private String content;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title == null ? null : title.trim();
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type == null ? null : type.trim();
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status == null ? null : status.trim();
+ }
+
+ public String getImagesUrl() {
+ return imagesUrl;
+ }
+
+ public void setImagesUrl(String imagesUrl) {
+ this.imagesUrl = imagesUrl == null ? null : imagesUrl.trim();
+ }
+
+ public Integer getHit() {
+ return hit;
+ }
+
+ public void setHit(Integer hit) {
+ this.hit = hit;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark == null ? null : remark.trim();
+ }
+
+ public String getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(String createBy) {
+ this.createBy = createBy == null ? null : createBy.trim();
+ }
+
+ 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 == null ? null : updateBy.trim();
+ }
+
+ 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 == null ? null : content.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/ArticleExample.java b/src/main/java/lingtao/net/bean/ArticleExample.java
new file mode 100644
index 0000000..07fd71e
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/ArticleExample.java
@@ -0,0 +1,931 @@
+package lingtao.net.bean;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ArticleExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public ArticleExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleIsNull() {
+ addCriterion("title is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleIsNotNull() {
+ addCriterion("title is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleEqualTo(String value) {
+ addCriterion("title =", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotEqualTo(String value) {
+ addCriterion("title <>", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleGreaterThan(String value) {
+ addCriterion("title >", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleGreaterThanOrEqualTo(String value) {
+ addCriterion("title >=", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLessThan(String value) {
+ addCriterion("title <", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLessThanOrEqualTo(String value) {
+ addCriterion("title <=", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLike(String value) {
+ addCriterion("title like", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotLike(String value) {
+ addCriterion("title not like", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleIn(List values) {
+ addCriterion("title in", values, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotIn(List values) {
+ addCriterion("title not in", values, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleBetween(String value1, String value2) {
+ addCriterion("title between", value1, value2, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotBetween(String value1, String value2) {
+ addCriterion("title not between", value1, value2, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNull() {
+ addCriterion("type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(String value) {
+ addCriterion("type =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(String value) {
+ addCriterion("type <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(String value) {
+ addCriterion("type >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(String value) {
+ addCriterion("type >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(String value) {
+ addCriterion("type <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(String value) {
+ addCriterion("type <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLike(String value) {
+ addCriterion("type like", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotLike(String value) {
+ addCriterion("type not like", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("type in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("type not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(String value1, String value2) {
+ addCriterion("type between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(String value1, String value2) {
+ addCriterion("type not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNull() {
+ addCriterion("status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNotNull() {
+ addCriterion("status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusEqualTo(String value) {
+ addCriterion("status =", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotEqualTo(String value) {
+ addCriterion("status <>", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThan(String value) {
+ addCriterion("status >", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThanOrEqualTo(String value) {
+ addCriterion("status >=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThan(String value) {
+ addCriterion("status <", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThanOrEqualTo(String value) {
+ addCriterion("status <=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLike(String value) {
+ addCriterion("status like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotLike(String value) {
+ addCriterion("status not like", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIn(List values) {
+ addCriterion("status in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotIn(List values) {
+ addCriterion("status not in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusBetween(String value1, String value2) {
+ addCriterion("status between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotBetween(String value1, String value2) {
+ addCriterion("status not between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlIsNull() {
+ addCriterion("imagesUrl is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlIsNotNull() {
+ addCriterion("imagesUrl is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlEqualTo(String value) {
+ addCriterion("imagesUrl =", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlNotEqualTo(String value) {
+ addCriterion("imagesUrl <>", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlGreaterThan(String value) {
+ addCriterion("imagesUrl >", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("imagesUrl >=", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlLessThan(String value) {
+ addCriterion("imagesUrl <", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlLessThanOrEqualTo(String value) {
+ addCriterion("imagesUrl <=", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlLike(String value) {
+ addCriterion("imagesUrl like", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlNotLike(String value) {
+ addCriterion("imagesUrl not like", value, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlIn(List values) {
+ addCriterion("imagesUrl in", values, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlNotIn(List values) {
+ addCriterion("imagesUrl not in", values, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlBetween(String value1, String value2) {
+ addCriterion("imagesUrl between", value1, value2, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andImagesUrlNotBetween(String value1, String value2) {
+ addCriterion("imagesUrl not between", value1, value2, "imagesUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitIsNull() {
+ addCriterion("hit is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitIsNotNull() {
+ addCriterion("hit is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitEqualTo(Integer value) {
+ addCriterion("hit =", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitNotEqualTo(Integer value) {
+ addCriterion("hit <>", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitGreaterThan(Integer value) {
+ addCriterion("hit >", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitGreaterThanOrEqualTo(Integer value) {
+ addCriterion("hit >=", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitLessThan(Integer value) {
+ addCriterion("hit <", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitLessThanOrEqualTo(Integer value) {
+ addCriterion("hit <=", value, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitIn(List values) {
+ addCriterion("hit in", values, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitNotIn(List values) {
+ addCriterion("hit not in", values, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitBetween(Integer value1, Integer value2) {
+ addCriterion("hit between", value1, value2, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andHitNotBetween(Integer value1, Integer value2) {
+ addCriterion("hit not between", value1, value2, "hit");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNull() {
+ addCriterion("remark is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNotNull() {
+ addCriterion("remark is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkEqualTo(String value) {
+ addCriterion("remark =", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotEqualTo(String value) {
+ addCriterion("remark <>", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThan(String value) {
+ addCriterion("remark >", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThanOrEqualTo(String value) {
+ addCriterion("remark >=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThan(String value) {
+ addCriterion("remark <", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThanOrEqualTo(String value) {
+ addCriterion("remark <=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLike(String value) {
+ addCriterion("remark like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotLike(String value) {
+ addCriterion("remark not like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIn(List values) {
+ addCriterion("remark in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotIn(List values) {
+ addCriterion("remark not in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkBetween(String value1, String value2) {
+ addCriterion("remark between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotBetween(String value1, String value2) {
+ addCriterion("remark not between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIsNull() {
+ addCriterion("createBy is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIsNotNull() {
+ addCriterion("createBy is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByEqualTo(String value) {
+ addCriterion("createBy =", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotEqualTo(String value) {
+ addCriterion("createBy <>", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByGreaterThan(String value) {
+ addCriterion("createBy >", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByGreaterThanOrEqualTo(String value) {
+ addCriterion("createBy >=", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLessThan(String value) {
+ addCriterion("createBy <", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLessThanOrEqualTo(String value) {
+ addCriterion("createBy <=", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLike(String value) {
+ addCriterion("createBy like", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotLike(String value) {
+ addCriterion("createBy not like", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIn(List values) {
+ addCriterion("createBy in", values, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotIn(List values) {
+ addCriterion("createBy not in", values, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByBetween(String value1, String value2) {
+ addCriterion("createBy between", value1, value2, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotBetween(String value1, String value2) {
+ addCriterion("createBy not between", value1, value2, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIsNull() {
+ addCriterion("createDate is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIsNotNull() {
+ addCriterion("createDate is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateEqualTo(Date value) {
+ addCriterion("createDate =", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotEqualTo(Date value) {
+ addCriterion("createDate <>", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateGreaterThan(Date value) {
+ addCriterion("createDate >", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
+ addCriterion("createDate >=", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateLessThan(Date value) {
+ addCriterion("createDate <", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateLessThanOrEqualTo(Date value) {
+ addCriterion("createDate <=", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIn(List values) {
+ addCriterion("createDate in", values, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotIn(List values) {
+ addCriterion("createDate not in", values, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateBetween(Date value1, Date value2) {
+ addCriterion("createDate between", value1, value2, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotBetween(Date value1, Date value2) {
+ addCriterion("createDate not between", value1, value2, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIsNull() {
+ addCriterion("updateBy is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIsNotNull() {
+ addCriterion("updateBy is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByEqualTo(String value) {
+ addCriterion("updateBy =", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotEqualTo(String value) {
+ addCriterion("updateBy <>", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByGreaterThan(String value) {
+ addCriterion("updateBy >", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
+ addCriterion("updateBy >=", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLessThan(String value) {
+ addCriterion("updateBy <", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLessThanOrEqualTo(String value) {
+ addCriterion("updateBy <=", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLike(String value) {
+ addCriterion("updateBy like", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotLike(String value) {
+ addCriterion("updateBy not like", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIn(List values) {
+ addCriterion("updateBy in", values, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotIn(List values) {
+ addCriterion("updateBy not in", values, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByBetween(String value1, String value2) {
+ addCriterion("updateBy between", value1, value2, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotBetween(String value1, String value2) {
+ addCriterion("updateBy not between", value1, value2, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIsNull() {
+ addCriterion("updateDate is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIsNotNull() {
+ addCriterion("updateDate is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateEqualTo(Date value) {
+ addCriterion("updateDate =", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotEqualTo(Date value) {
+ addCriterion("updateDate <>", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateGreaterThan(Date value) {
+ addCriterion("updateDate >", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
+ addCriterion("updateDate >=", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateLessThan(Date value) {
+ addCriterion("updateDate <", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
+ addCriterion("updateDate <=", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIn(List values) {
+ addCriterion("updateDate in", values, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotIn(List values) {
+ addCriterion("updateDate not in", values, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateBetween(Date value1, Date value2) {
+ addCriterion("updateDate between", value1, value2, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
+ addCriterion("updateDate not between", value1, value2, "updateDate");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/Bug.java b/src/main/java/lingtao/net/bean/Bug.java
new file mode 100644
index 0000000..c0c7787
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Bug.java
@@ -0,0 +1,65 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 问题反馈
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class Bug {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getProduct() {
+ return product;
+ }
+
+ public void setProduct(String product) {
+ this.product = product;
+ }
+
+ public String getBugRemark() {
+ return bugRemark;
+ }
+
+ public void setBugRemark(String bugRemark) {
+ this.bugRemark = bugRemark;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String product;
+
+ private String bugRemark;
+
+ private String createBy;
+
+ private Date createDate;
+}
diff --git a/src/main/java/lingtao/net/bean/CustomerAward.java b/src/main/java/lingtao/net/bean/CustomerAward.java
new file mode 100644
index 0000000..cc08134
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/CustomerAward.java
@@ -0,0 +1,129 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class CustomerAward {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getNickname() {
+ return nickname;
+ }
+
+ public void setNickname(String nickname) {
+ this.nickname = nickname;
+ }
+
+ public Double getPayPercent() {
+ return payPercent;
+ }
+
+ public void setPayPercent(Double payPercent) {
+ this.payPercent = payPercent;
+ }
+
+ public Double getAskNumber() {
+ return askNumber;
+ }
+
+ public void setAskNumber(Double askNumber) {
+ this.askNumber = askNumber;
+ }
+
+ public Double getCustomerPrice() {
+ return customerPrice;
+ }
+
+ public void setCustomerPrice(Double customerPrice) {
+ this.customerPrice = customerPrice;
+ }
+
+ public Integer getAward() {
+ return award;
+ }
+
+ public void setAward(Integer award) {
+ this.award = award;
+ }
+
+ public String getShopname() {
+ return shopname;
+ }
+
+ public void setShopname(String shopname) {
+ this.shopname = shopname;
+ }
+
+ public String getAwardDate() {
+ return awardDate;
+ }
+
+ public void setAwardDate(String awardDate) {
+ this.awardDate = awardDate;
+ }
+
+ public String getCreator() {
+ return creator;
+ }
+
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
+ public Date getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+
+ public String getCreateTimeBegin() {
+ return createTimeBegin;
+ }
+
+ public void setCreateTimeBegin(String createTimeBegin) {
+ this.createTimeBegin = createTimeBegin;
+ }
+
+ public String getCreateTimeEnd() {
+ return createTimeEnd;
+ }
+
+ public void setCreateTimeEnd(String createTimeEnd) {
+ this.createTimeEnd = createTimeEnd;
+ }
+
+ private Integer id;
+
+ private String nickname;
+
+ private Double payPercent;
+
+ private Double askNumber;
+
+ private Double customerPrice;
+
+ private Integer award;
+
+ private String shopname;
+
+ private String awardDate;
+
+ private String creator;
+
+ private Date createDate;
+
+ private String createTimeBegin;
+
+ private String createTimeEnd;
+}
diff --git a/src/main/java/lingtao/net/bean/CustomerData.java b/src/main/java/lingtao/net/bean/CustomerData.java
new file mode 100644
index 0000000..edf7ede
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/CustomerData.java
@@ -0,0 +1,241 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 客服数据
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class CustomerData {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname;
+ }
+
+ public String getRole() {
+ return role;
+ }
+
+ public void setRole(String role) {
+ this.role = role;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+
+ public String getProductExplain() {
+ return productExplain;
+ }
+
+ public void setProductExplain(String productExplain) {
+ this.productExplain = productExplain;
+ }
+
+ public String getWangwang() {
+ return wangwang;
+ }
+
+ public void setWangwang(String wangwang) {
+ this.wangwang = wangwang;
+ }
+
+ public String getIsBuy() {
+ return isBuy;
+ }
+
+ public void setIsBuy(String isBuy) {
+ this.isBuy = isBuy;
+ }
+
+ public String getCommentSelf() {
+ return commentSelf;
+ }
+
+ public void setCommentSelf(String commentSelf) {
+ this.commentSelf = commentSelf;
+ }
+
+ public String getCommentManager() {
+ return commentManager;
+ }
+
+ public void setCommentManager(String commentManager) {
+ this.commentManager = commentManager;
+ }
+
+ public Date getCommentDate() {
+ return commentDate;
+ }
+
+ public void setCommentDate(Date commentDate) {
+ this.commentDate = commentDate;
+ }
+
+ public String getIsDelete() {
+ return isDelete;
+ }
+
+ public void setIsDelete(String isDelete) {
+ this.isDelete = isDelete;
+ }
+
+ 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 Date getCompleteDate() {
+ return completeDate;
+ }
+
+ public void setCompleteDate(Date completeDate) {
+ this.completeDate = completeDate;
+ }
+
+ public String getRoleSearch() {
+ return roleSearch;
+ }
+
+ public void setRoleSearch(String roleSearch) {
+ this.roleSearch = roleSearch;
+ }
+
+ public String[] getRoleArr() {
+ return roleArr;
+ }
+
+ public void setRoleArr(String[] roleArr) {
+ this.roleArr = roleArr;
+ }
+
+ public String getCreateDateBegin() {
+ return createDateBegin;
+ }
+
+ public void setCreateDateBegin(String createDateBegin) {
+ this.createDateBegin = createDateBegin;
+ }
+
+ public String getCreateDateEnd() {
+ return createDateEnd;
+ }
+
+ public void setCreateDateEnd(String createDateEnd) {
+ this.createDateEnd = createDateEnd;
+ }
+
+ // 主键id
+ private Integer id;
+
+ // 用户名
+ private String username;
+
+ // 真实姓名
+ private String realname;
+
+ // 所属店铺/角色
+ private String role;
+
+ // 价格
+ private double price;
+
+ // 产品说明
+ private String productExplain;
+
+ // 客人旺旺
+ private String wangwang;
+
+ // 是否购买
+ private String isBuy;
+
+ // 自评
+ private String commentSelf;
+
+ // 店长评语
+ private String commentManager;
+
+ // 店长评语时间
+ private Date commentDate;
+
+ // 是否删除 0:否 1:是
+ private String isDelete;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+ // 完成时间
+ private Date completeDate;
+
+ // 根据角色(部门)查找数据
+ private String roleSearch;
+
+ // 用户所拥有的部门数组
+ private String[] roleArr;
+
+ private String createDateBegin;
+
+ private String createDateEnd;
+
+}
diff --git a/src/main/java/lingtao/net/bean/CustomerTrainContent.java b/src/main/java/lingtao/net/bean/CustomerTrainContent.java
new file mode 100644
index 0000000..c3d3cd2
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/CustomerTrainContent.java
@@ -0,0 +1,110 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class CustomerTrainContent {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getProType() {
+ return proType;
+ }
+
+ public void setProType(String proType) {
+ this.proType = proType;
+ }
+
+ public String getKind() {
+ return kind;
+ }
+
+ public void setKind(String kind) {
+ this.kind = kind;
+ }
+
+ public Integer getSort() {
+ return sort;
+ }
+
+ public void setSort(Integer sort) {
+ this.sort = sort;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String proType;
+
+ private String kind;
+
+ private Integer sort;
+
+ private String content;
+
+ private String type;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+}
diff --git a/src/main/java/lingtao/net/bean/CustomerTrainKindLabel.java b/src/main/java/lingtao/net/bean/CustomerTrainKindLabel.java
new file mode 100644
index 0000000..7cc1ada
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/CustomerTrainKindLabel.java
@@ -0,0 +1,110 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class CustomerTrainKindLabel {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getProType() {
+ return proType;
+ }
+
+ public void setProType(String proType) {
+ this.proType = proType;
+ }
+
+ public String getKindLabel() {
+ return kindLabel;
+ }
+
+ public void setKindLabel(String kindLabel) {
+ this.kindLabel = kindLabel;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public Integer getSort() {
+ return sort;
+ }
+
+ public void setSort(Integer sort) {
+ this.sort = sort;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String proType;
+
+ private String kindLabel;
+
+ private String remark;
+
+ private Integer sort;
+
+ private String type;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+}
diff --git a/src/main/java/lingtao/net/bean/CustomerTrainProType.java b/src/main/java/lingtao/net/bean/CustomerTrainProType.java
new file mode 100644
index 0000000..9216e48
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/CustomerTrainProType.java
@@ -0,0 +1,100 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class CustomerTrainProType {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getProType() {
+ return proType;
+ }
+
+ public void setProType(String proType) {
+ this.proType = proType;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public Integer getSort() {
+ return sort;
+ }
+
+ public void setSort(Integer sort) {
+ this.sort = sort;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String proType;
+
+ private String remark;
+
+ private Integer sort;
+
+ private String type;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+}
diff --git a/src/main/java/lingtao/net/bean/ExpressFee.java b/src/main/java/lingtao/net/bean/ExpressFee.java
new file mode 100644
index 0000000..923a129
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/ExpressFee.java
@@ -0,0 +1,125 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 省份快递费
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class ExpressFee {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getProvince() {
+ return province;
+ }
+
+ public void setProvince(String province) {
+ this.province = province;
+ }
+
+ public String getProTypeValue() {
+ return proTypeValue;
+ }
+
+ public void setProTypeValue(String proTypeValue) {
+ this.proTypeValue = proTypeValue;
+ }
+
+ public String getProTypeLabel() {
+ return proTypeLabel;
+ }
+
+ public void setProTypeLabel(String proTypeLabel) {
+ this.proTypeLabel = proTypeLabel;
+ }
+
+ public double getFirstWeightPrice() {
+ return firstWeightPrice;
+ }
+
+ public void setFirstWeightPrice(double firstWeightPrice) {
+ this.firstWeightPrice = firstWeightPrice;
+ }
+
+ public double getContinuedWeightPrice() {
+ return continuedWeightPrice;
+ }
+
+ public void setContinuedWeightPrice(double continuedWeightPrice) {
+ this.continuedWeightPrice = continuedWeightPrice;
+ }
+
+ public double getStartPrice() {
+ return startPrice;
+ }
+
+ public void setStartPrice(double startPrice) {
+ this.startPrice = startPrice;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String province;
+
+ private String proTypeValue;
+
+ private String proTypeLabel;
+
+ private double firstWeightPrice;
+
+ private double continuedWeightPrice;
+
+ private double startPrice;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+}
diff --git a/src/main/java/lingtao/net/bean/Finance.java b/src/main/java/lingtao/net/bean/Finance.java
new file mode 100644
index 0000000..9caf72e
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Finance.java
@@ -0,0 +1,149 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class Finance {
+
+ private Integer id;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Date getAddTime() {
+ return addTime;
+ }
+
+ public void setAddTime(Date addTime) {
+ this.addTime = addTime;
+ }
+
+ public String getSupplier() {
+ return supplier;
+ }
+
+ public void setSupplier(String supplier) {
+ this.supplier = supplier;
+ }
+
+ public String getShopname() {
+ return shopname;
+ }
+
+ public void setShopname(String shopname) {
+ this.shopname = shopname;
+ }
+
+ public String getKind() {
+ return kind;
+ }
+
+ public void setKind(String kind) {
+ this.kind = kind;
+ }
+
+ public String getKind2() {
+ return kind2;
+ }
+
+ public void setKind2(String kind2) {
+ this.kind2 = kind2;
+ }
+
+ public String getOrderNumber() {
+ return orderNumber;
+ }
+
+ public void setOrderNumber(String orderNumber) {
+ this.orderNumber = orderNumber;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public String getCount() {
+ return count;
+ }
+
+ public void setCount(String count) {
+ this.count = count;
+ }
+
+ public String getNumber() {
+ return number;
+ }
+
+ public void setNumber(String number) {
+ this.number = number;
+ }
+
+ public String getZhang() {
+ return zhang;
+ }
+
+ public void setZhang(String zhang) {
+ this.zhang = zhang;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public Date getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+
+ public String getCreator() {
+ return creator;
+ }
+
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
+ private Date addTime;
+
+ private String supplier;
+
+ private String shopname;
+
+ private String kind;
+
+ private String kind2;
+
+ private String orderNumber;
+
+ private String filename;
+
+ private String count;
+
+ private String number;
+
+ private String zhang;
+
+ private String remark;
+
+ private Date createDate;
+
+ private String creator;
+}
diff --git a/src/main/java/lingtao/net/bean/FinanceDifference.java b/src/main/java/lingtao/net/bean/FinanceDifference.java
new file mode 100644
index 0000000..31effb8
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/FinanceDifference.java
@@ -0,0 +1,135 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 拆分补差价单号
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class FinanceDifference {
+
+ private Integer id;
+
+ private String orderNumber;
+
+ private String shopname;
+
+ private String wangwang;
+
+ private Date payTime;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getOrderNumber() {
+ return orderNumber;
+ }
+
+ public void setOrderNumber(String orderNumber) {
+ this.orderNumber = orderNumber;
+ }
+
+ public String getShopname() {
+ return shopname;
+ }
+
+ public void setShopname(String shopname) {
+ this.shopname = shopname;
+ }
+
+ public String getWangwang() {
+ return wangwang;
+ }
+
+ public void setWangwang(String wangwang) {
+ this.wangwang = wangwang;
+ }
+
+ public Date getPayTime() {
+ return payTime;
+ }
+
+ public void setPayTime(Date payTime) {
+ this.payTime = payTime;
+ }
+
+ public String getPrice() {
+ return price;
+ }
+
+ public void setPrice(String price) {
+ this.price = price;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getTaobaoStatus() {
+ return taobaoStatus;
+ }
+
+ public void setTaobaoStatus(String taobaoStatus) {
+ this.taobaoStatus = taobaoStatus;
+ }
+
+ public String getOpenOrderNumber() {
+ return openOrderNumber;
+ }
+
+ public void setOpenOrderNumber(String openOrderNumber) {
+ this.openOrderNumber = openOrderNumber;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public String getCreator() {
+ return creator;
+ }
+
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
+ public Date getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+
+ private String price;
+
+ private String remark;
+
+ private String taobaoStatus;
+
+ private String openOrderNumber;
+
+ private String filename;
+
+ private String creator;
+
+ private Date createDate;
+}
diff --git a/src/main/java/lingtao/net/bean/FinanceExtract.java b/src/main/java/lingtao/net/bean/FinanceExtract.java
new file mode 100644
index 0000000..d7d0c88
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/FinanceExtract.java
@@ -0,0 +1,115 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 提取尺寸
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class FinanceExtract {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getOrderNumber() {
+ return orderNumber;
+ }
+
+ public void setOrderNumber(String orderNumber) {
+ this.orderNumber = orderNumber;
+ }
+
+ public String getLength() {
+ return length;
+ }
+
+ public void setLength(String length) {
+ this.length = length;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String getCount() {
+ return count;
+ }
+
+ public void setCount(String count) {
+ this.count = count;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public String getCreator() {
+ return creator;
+ }
+
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
+ public Date getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+
+ private Integer id;
+
+ private String orderNumber;
+
+ private String length;
+
+ private String width;
+
+ private String height;
+
+ private String count;
+
+ private String remark;
+
+ private String filename;
+
+ private String creator;
+
+ private Date createDate;
+}
diff --git a/src/main/java/lingtao/net/bean/Information.java b/src/main/java/lingtao/net/bean/Information.java
new file mode 100644
index 0000000..5ce8fc3
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Information.java
@@ -0,0 +1,85 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 产品知识点;
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class Information {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String content;
+
+ private String type;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+}
diff --git a/src/main/java/lingtao/net/bean/LoginIp.java b/src/main/java/lingtao/net/bean/LoginIp.java
new file mode 100644
index 0000000..06141cb
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/LoginIp.java
@@ -0,0 +1,86 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 允许登录的IP
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class LoginIp {
+
+ private Integer id;
+
+ private String agreeIp;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getAgreeIp() {
+ return agreeIp;
+ }
+
+ public void setAgreeIp(String agreeIp) {
+ this.agreeIp = agreeIp;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(String createBy) {
+ this.createBy = createBy;
+ }
+
+ public Date getCreateDate() {
+ return CreateDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ CreateDate = createDate;
+ }
+
+ public String getUpdateBy() {
+ return updateBy;
+ }
+
+ public void setUpdateBy(String updateBy) {
+ this.updateBy = updateBy;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ private String remark;
+
+ private String createBy;
+
+ private Date CreateDate;
+
+ private String updateBy;
+
+ private Date updateTime;
+
+}
diff --git a/src/main/java/lingtao/net/bean/LoginLog.java b/src/main/java/lingtao/net/bean/LoginLog.java
new file mode 100644
index 0000000..bfa178c
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/LoginLog.java
@@ -0,0 +1,54 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 登录日志
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class LoginLog {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public Date getLoginTime() {
+ return loginTime;
+ }
+
+ public void setLoginTime(Date loginTime) {
+ this.loginTime = loginTime;
+ }
+
+ private Integer id;
+
+ private String remark;
+
+ private String status;
+
+ private Date loginTime;
+}
diff --git a/src/main/java/lingtao/net/bean/Msg.java b/src/main/java/lingtao/net/bean/Msg.java
new file mode 100644
index 0000000..2186167
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Msg.java
@@ -0,0 +1,102 @@
+package lingtao.net.bean;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import lombok.Data;
+
+/**
+ * 通用的返回的类
+ */
+@Data
+public class Msg {
+
+ // 状态码 200--成功 100--失败 300禁用
+ private int code;
+
+ public int getCode() {
+ return code;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public Map getData() {
+ return data;
+ }
+
+ public void setData(Map data) {
+ this.data = data;
+ }
+
+ // 提示信息
+ private String msg;
+
+ // 用户要返回给浏览器的数据
+ private Map data = new HashMap();
+
+ public static Msg success() {
+ Msg result = new Msg();
+ result.setCode(200);
+ result.setMsg("成功");
+ return result;
+ }
+
+ public static Msg success(String msg) {
+ Msg result = new Msg();
+ result.setCode(200);
+ result.setMsg(msg);
+ return result;
+ }
+
+ public static Msg fail() {
+ Msg result = new Msg();
+ result.setCode(100);
+ result.setMsg("失败");
+ return result;
+ }
+
+ public static Msg fail(String msg) {
+ Msg result = new Msg();
+ result.setCode(100);
+ result.setMsg(msg);
+ return result;
+ }
+
+ public static Msg fail(Integer code, String msg) {
+ Msg result = new Msg();
+ result.setCode(code);
+ result.setMsg(msg);
+ return result;
+ }
+
+ public static Msg isDisable() {
+ Msg result = new Msg();
+ result.setCode(300);
+ result.setMsg("失败");
+ return result;
+ }
+
+ public static Msg isDisable(String msg) {
+ Msg result = new Msg();
+ result.setCode(300);
+ result.setMsg(msg);
+ return result;
+ }
+
+ public Msg add(String key, Object value) {
+ this.getData().put(key, value);
+ return this;
+
+ }
+
+}
diff --git a/src/main/java/lingtao/net/bean/MyFile.java b/src/main/java/lingtao/net/bean/MyFile.java
new file mode 100644
index 0000000..4b56d5d
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/MyFile.java
@@ -0,0 +1,85 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+public class MyFile {
+ private Integer fileId;
+
+ private String fileName;
+
+ private String filePath;
+
+ private String remark;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+ public Integer getFileId() {
+ return fileId;
+ }
+
+ public void setFileId(Integer fileId) {
+ this.fileId = fileId;
+ }
+
+ public String getFileName() {
+ return fileName;
+ }
+
+ public void setFileName(String fileName) {
+ this.fileName = fileName == null ? null : fileName.trim();
+ }
+
+ public String getFilePath() {
+ return filePath;
+ }
+
+ public void setFilePath(String filePath) {
+ this.filePath = filePath == null ? null : filePath.trim();
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark == null ? null : remark.trim();
+ }
+
+ public String getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(String createBy) {
+ this.createBy = createBy == null ? null : createBy.trim();
+ }
+
+ 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 == null ? null : updateBy.trim();
+ }
+
+ public Date getUpdateDate() {
+ return updateDate;
+ }
+
+ public void setUpdateDate(Date updateDate) {
+ this.updateDate = updateDate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/MyFileExample.java b/src/main/java/lingtao/net/bean/MyFileExample.java
new file mode 100644
index 0000000..62b43f2
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/MyFileExample.java
@@ -0,0 +1,731 @@
+package lingtao.net.bean;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class MyFileExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public MyFileExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andFileIdIsNull() {
+ addCriterion("fileId is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIsNotNull() {
+ addCriterion("fileId is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdEqualTo(Integer value) {
+ addCriterion("fileId =", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotEqualTo(Integer value) {
+ addCriterion("fileId <>", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThan(Integer value) {
+ addCriterion("fileId >", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("fileId >=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThan(Integer value) {
+ addCriterion("fileId <", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdLessThanOrEqualTo(Integer value) {
+ addCriterion("fileId <=", value, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdIn(List values) {
+ addCriterion("fileId in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotIn(List values) {
+ addCriterion("fileId not in", values, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdBetween(Integer value1, Integer value2) {
+ addCriterion("fileId between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("fileId not between", value1, value2, "fileId");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameIsNull() {
+ addCriterion("fileName is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameIsNotNull() {
+ addCriterion("fileName is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameEqualTo(String value) {
+ addCriterion("fileName =", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameNotEqualTo(String value) {
+ addCriterion("fileName <>", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameGreaterThan(String value) {
+ addCriterion("fileName >", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameGreaterThanOrEqualTo(String value) {
+ addCriterion("fileName >=", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameLessThan(String value) {
+ addCriterion("fileName <", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameLessThanOrEqualTo(String value) {
+ addCriterion("fileName <=", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameLike(String value) {
+ addCriterion("fileName like", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameNotLike(String value) {
+ addCriterion("fileName not like", value, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameIn(List values) {
+ addCriterion("fileName in", values, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameNotIn(List values) {
+ addCriterion("fileName not in", values, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameBetween(String value1, String value2) {
+ addCriterion("fileName between", value1, value2, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFileNameNotBetween(String value1, String value2) {
+ addCriterion("fileName not between", value1, value2, "fileName");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathIsNull() {
+ addCriterion("filePath is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathIsNotNull() {
+ addCriterion("filePath is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathEqualTo(String value) {
+ addCriterion("filePath =", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathNotEqualTo(String value) {
+ addCriterion("filePath <>", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathGreaterThan(String value) {
+ addCriterion("filePath >", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathGreaterThanOrEqualTo(String value) {
+ addCriterion("filePath >=", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathLessThan(String value) {
+ addCriterion("filePath <", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathLessThanOrEqualTo(String value) {
+ addCriterion("filePath <=", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathLike(String value) {
+ addCriterion("filePath like", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathNotLike(String value) {
+ addCriterion("filePath not like", value, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathIn(List values) {
+ addCriterion("filePath in", values, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathNotIn(List values) {
+ addCriterion("filePath not in", values, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathBetween(String value1, String value2) {
+ addCriterion("filePath between", value1, value2, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andFilePathNotBetween(String value1, String value2) {
+ addCriterion("filePath not between", value1, value2, "filePath");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNull() {
+ addCriterion("remark is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNotNull() {
+ addCriterion("remark is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkEqualTo(String value) {
+ addCriterion("remark =", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotEqualTo(String value) {
+ addCriterion("remark <>", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThan(String value) {
+ addCriterion("remark >", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThanOrEqualTo(String value) {
+ addCriterion("remark >=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThan(String value) {
+ addCriterion("remark <", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThanOrEqualTo(String value) {
+ addCriterion("remark <=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLike(String value) {
+ addCriterion("remark like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotLike(String value) {
+ addCriterion("remark not like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIn(List values) {
+ addCriterion("remark in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotIn(List values) {
+ addCriterion("remark not in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkBetween(String value1, String value2) {
+ addCriterion("remark between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotBetween(String value1, String value2) {
+ addCriterion("remark not between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIsNull() {
+ addCriterion("createBy is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIsNotNull() {
+ addCriterion("createBy is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByEqualTo(String value) {
+ addCriterion("createBy =", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotEqualTo(String value) {
+ addCriterion("createBy <>", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByGreaterThan(String value) {
+ addCriterion("createBy >", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByGreaterThanOrEqualTo(String value) {
+ addCriterion("createBy >=", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLessThan(String value) {
+ addCriterion("createBy <", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLessThanOrEqualTo(String value) {
+ addCriterion("createBy <=", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByLike(String value) {
+ addCriterion("createBy like", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotLike(String value) {
+ addCriterion("createBy not like", value, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByIn(List values) {
+ addCriterion("createBy in", values, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotIn(List values) {
+ addCriterion("createBy not in", values, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByBetween(String value1, String value2) {
+ addCriterion("createBy between", value1, value2, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateByNotBetween(String value1, String value2) {
+ addCriterion("createBy not between", value1, value2, "createBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIsNull() {
+ addCriterion("createDate is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIsNotNull() {
+ addCriterion("createDate is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateEqualTo(Date value) {
+ addCriterion("createDate =", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotEqualTo(Date value) {
+ addCriterion("createDate <>", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateGreaterThan(Date value) {
+ addCriterion("createDate >", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
+ addCriterion("createDate >=", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateLessThan(Date value) {
+ addCriterion("createDate <", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateLessThanOrEqualTo(Date value) {
+ addCriterion("createDate <=", value, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateIn(List values) {
+ addCriterion("createDate in", values, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotIn(List values) {
+ addCriterion("createDate not in", values, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateBetween(Date value1, Date value2) {
+ addCriterion("createDate between", value1, value2, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateDateNotBetween(Date value1, Date value2) {
+ addCriterion("createDate not between", value1, value2, "createDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIsNull() {
+ addCriterion("updateBy is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIsNotNull() {
+ addCriterion("updateBy is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByEqualTo(String value) {
+ addCriterion("updateBy =", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotEqualTo(String value) {
+ addCriterion("updateBy <>", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByGreaterThan(String value) {
+ addCriterion("updateBy >", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
+ addCriterion("updateBy >=", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLessThan(String value) {
+ addCriterion("updateBy <", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLessThanOrEqualTo(String value) {
+ addCriterion("updateBy <=", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByLike(String value) {
+ addCriterion("updateBy like", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotLike(String value) {
+ addCriterion("updateBy not like", value, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByIn(List values) {
+ addCriterion("updateBy in", values, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotIn(List values) {
+ addCriterion("updateBy not in", values, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByBetween(String value1, String value2) {
+ addCriterion("updateBy between", value1, value2, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateByNotBetween(String value1, String value2) {
+ addCriterion("updateBy not between", value1, value2, "updateBy");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIsNull() {
+ addCriterion("updateDate is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIsNotNull() {
+ addCriterion("updateDate is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateEqualTo(Date value) {
+ addCriterion("updateDate =", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotEqualTo(Date value) {
+ addCriterion("updateDate <>", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateGreaterThan(Date value) {
+ addCriterion("updateDate >", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
+ addCriterion("updateDate >=", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateLessThan(Date value) {
+ addCriterion("updateDate <", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
+ addCriterion("updateDate <=", value, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateIn(List values) {
+ addCriterion("updateDate in", values, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotIn(List values) {
+ addCriterion("updateDate not in", values, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateBetween(Date value1, Date value2) {
+ addCriterion("updateDate between", value1, value2, "updateDate");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
+ addCriterion("updateDate not between", value1, value2, "updateDate");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/Product.java b/src/main/java/lingtao/net/bean/Product.java
new file mode 100644
index 0000000..721802d
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Product.java
@@ -0,0 +1,168 @@
+package lingtao.net.bean;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class Product {
+ // id
+ private Integer proId;
+
+ // 长度
+ private Double length;
+
+ // 宽度
+ private Double width;
+
+ // 数量
+ private Integer count;
+
+ // 面积
+ private Double area;
+
+ // 价格
+ private Double price;
+
+ // 价格倍数
+ private Double priceMultiple;
+
+ // 折扣价
+ private Double discountPrice;
+
+ // 底价
+ private Double floorPrice;
+
+ // 重量
+ private String weight;
+
+ // 产品种类
+ private String proTypeValue;
+
+ // 产品种类说明
+ private String proTypeLabel;
+
+ // 产品品种类型
+ private String kindValue;
+
+ // 产品品种类型说明
+ private String kindLabel;
+
+ private String kind1Value;
+
+ private String kind1Label;
+
+ private String kind2Value;
+
+ private String kind2Label;
+
+ private String updater;
+
+ private Date updateDate;
+
+ /* ========================= */
+
+ // 尺寸
+ private String size;
+
+ // 工艺
+ private String craft[];
+
+ // 不干胶种类标识--常规/少数量
+ private String stickerKind;
+ // 透明不干胶印白墨
+ private String yinbai;
+ // 款数
+ private Integer number;
+ // 位数
+ private Integer num;
+ // 手提袋/合版封套/房卡套种类标识
+ private String k;
+ // 卡片、金属标种类标识
+ private String kind;
+ // 吊旗300克铜版纸走优惠券价格--标识
+ private String d;
+ // 吊旗300克铜版纸走优惠券价格--0-20位贵10块、20以上5块
+ private Integer p;
+ // 卡片种类标识--常规/少数量
+ private String couponKind;
+ // 自定义尺寸复选开关
+ private boolean switchSize;
+ // 卡片- 特种纸名片 -珠光纸自定义数量
+ private boolean switchCardCount;
+ // 卡片--存酒卡编码类型
+ private String bianma;
+ // 手提袋自定义数量
+ private boolean diyCount;
+ // 模切工艺
+ private String craftQie;
+ // 不干胶模切工艺类型
+ private String craftQieType;
+ // 覆膜/PVC名片印刷
+ private String craftMo;
+ // 凹凸工艺
+ private String aotu;
+ // 烫金工艺
+ private String craftTang;
+ // 0.38PVC亮光异型卡片背胶工艺
+ private String craftJiao;
+ // 海报-双喷布的工艺
+ private String craftBu;
+ // 桌贴印刷工艺
+ private String craftShua;
+ // 印刷烫金工艺长/宽
+ private double lengthTang;
+ private double widthTang;
+ // 宣传单折页折数
+ private Integer zheye;
+ // 宣传单压痕数
+ private Integer yaheng;
+ // 便签本种类标识--联单/便签本
+ private String notePaperKind;
+ // 画册P数
+ private Integer pcount;
+ // 画册装订方式
+ private String kind3Value;
+ // 角色标识--用于不同店铺不同价格
+ private String role;
+ // UV转印贴显示信息(出货时间)
+ private String Msg;
+ // 报价给哪个客户旺旺号
+ private String wangwang;
+ // 吊牌600克第二尺寸
+ private String size1;
+ // 服装吊牌绳子
+ private String craftSheng;
+ // 合板封套长/宽/舌头(高)
+ private double lengthSize;
+ private double widthSize;
+ private double heightSize;
+ private String craftTiao;//条幅工艺
+
+ // 印艺接口参数
+ private Double xx;// 长度
+ private Double yy;// 宽度
+ private Integer shuliang;// 数量
+ private Integer pinzhong;// 款数
+ private String cailiao;// 种类
+ private String fm;// 覆膜
+ private String fmType;//卡片贴膜类型 0贴膜1配膜
+ private Integer awards;//奖项
+ private Integer stickNum;//几处贴膜
+
+ private String switchz3Size;//种子纸是否自定义尺寸
+ private String z3type;//种子纸是否自定义尺寸
+
+ private String toothpick_size;//牙签规格
+
+ private String craftPai;
+
+ //内部模切参数
+ private Integer n_mq_num;
+ private String n_mq_size;
+ //位置数,颜色数
+ private Integer po_number;
+ private Integer co_number;
+ private Integer shen_type;
+ private String shen_color;
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/ProductImg.java b/src/main/java/lingtao/net/bean/ProductImg.java
new file mode 100644
index 0000000..f24e611
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/ProductImg.java
@@ -0,0 +1,197 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class ProductImg {
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getProTypeLabel() {
+ return proTypeLabel;
+ }
+
+ public void setProTypeLabel(String proTypeLabel) {
+ this.proTypeLabel = proTypeLabel;
+ }
+
+ public String getProTypeValue() {
+ return proTypeValue;
+ }
+
+ public void setProTypeValue(String proTypeValue) {
+ this.proTypeValue = proTypeValue;
+ }
+
+ public String getKindValue() {
+ return kindValue;
+ }
+
+ public void setKindValue(String kindValue) {
+ this.kindValue = kindValue;
+ }
+
+ public String getKindLabel() {
+ return kindLabel;
+ }
+
+ public void setKindLabel(String kindLabel) {
+ this.kindLabel = kindLabel;
+ }
+
+ public String getKind2Value() {
+ return kind2Value;
+ }
+
+ public void setKind2Value(String kind2Value) {
+ this.kind2Value = kind2Value;
+ }
+
+ public String getKind2Label() {
+ return kind2Label;
+ }
+
+ public void setKind2Label(String kind2Label) {
+ this.kind2Label = kind2Label;
+ }
+
+ public String getImgUrl() {
+ return imgUrl;
+ }
+
+ public void setImgUrl(String imgUrl) {
+ this.imgUrl = imgUrl;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public Long getCreator() {
+ return creator;
+ }
+
+ public void setCreator(Long creator) {
+ this.creator = creator;
+ }
+
+ public Date getCreateDate() {
+ return createDate;
+ }
+
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+
+ public Long getUpdater() {
+ return updater;
+ }
+
+ public void setUpdater(Long updater) {
+ this.updater = updater;
+ }
+
+ public String getImgWidth() {
+ return imgWidth;
+ }
+
+ public void setImgWidth(String imgWidth) {
+ this.imgWidth = imgWidth;
+ }
+
+ public String getImgHeight() {
+ return imgHeight;
+ }
+
+ public void setImgHeight(String imgHeight) {
+ this.imgHeight = imgHeight;
+ }
+
+ /**
+ *
+ */
+ private Long id;
+
+ /**
+ * 产品名称
+ */
+ private String proTypeLabel;
+
+ /**
+ * 名称编号
+ */
+ private String proTypeValue;
+
+ /**
+ * 产品种类1
+ */
+ private String kindValue;
+
+ /**
+ * 产品种类说明1
+ */
+ private String kindLabel;
+
+ /**
+ * 产品种类2
+ */
+ private String kind2Value;
+
+ /**
+ * 产品种类说明2
+ */
+ private String kind2Label;
+
+ /**
+ * 图片地址
+ */
+ private String imgUrl;
+
+ /**
+ * 产品说明
+ */
+ private String remark;
+
+ /**
+ * 文件名字
+ */
+ private String filename;
+
+ /**
+ * 创建者
+ */
+ private Long creator;
+
+ /**
+ * 创建时间
+ */
+ private Date createDate;
+
+ /**
+ * 更新者
+ */
+ private Long updater;
+
+ private String imgWidth;
+
+ private String imgHeight;
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/Question.java b/src/main/java/lingtao/net/bean/Question.java
new file mode 100644
index 0000000..ee5a2d5
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/Question.java
@@ -0,0 +1,146 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 产品知识测试表
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class Question {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getQuestion() {
+ return question;
+ }
+
+ public void setQuestion(String question) {
+ this.question = question;
+ }
+
+ public String getAnswer() {
+ return answer;
+ }
+
+ public void setAnswer(String answer) {
+ this.answer = answer;
+ }
+
+ public String getAnswer1() {
+ return answer1;
+ }
+
+ public void setAnswer1(String answer1) {
+ this.answer1 = answer1;
+ }
+
+ public String getAnswer2() {
+ return answer2;
+ }
+
+ public void setAnswer2(String answer2) {
+ this.answer2 = answer2;
+ }
+
+ public String getAnswer3() {
+ return answer3;
+ }
+
+ public void setAnswer3(String answer3) {
+ this.answer3 = answer3;
+ }
+
+ public String getAnswer4() {
+ return answer4;
+ }
+
+ public void setAnswer4(String answer4) {
+ this.answer4 = answer4;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Integer getAnsCount() {
+ return ansCount;
+ }
+
+ public void setAnsCount(Integer ansCount) {
+ this.ansCount = ansCount;
+ }
+
+ 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;
+ }
+
+ private Integer id;
+
+ private String question;
+
+ private String answer;
+
+ private String answer1;
+
+ private String answer2;
+
+ private String answer3;
+
+ private String answer4;
+
+ // 题目类型 0:单选 1:多选
+ private String type;
+
+ private Integer ansCount;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+}
diff --git a/src/main/java/lingtao/net/bean/QuoteData.java b/src/main/java/lingtao/net/bean/QuoteData.java
new file mode 100644
index 0000000..5f643fa
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/QuoteData.java
@@ -0,0 +1,429 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 操作日志--供新增客服数据,只保留几天数据
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class QuoteData {
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getRemarkJudge() {
+ return remarkJudge;
+ }
+
+ public void setRemarkJudge(String remarkJudge) {
+ this.remarkJudge = remarkJudge;
+ }
+
+ public String getRole() {
+ return role;
+ }
+
+ public void setRole(String role) {
+ this.role = role;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname;
+ }
+
+ public String getShopname() {
+ return shopname;
+ }
+
+ public void setShopname(String shopname) {
+ this.shopname = shopname;
+ }
+
+ public Double getPrice() {
+ return price;
+ }
+
+ public void setPrice(Double price) {
+ this.price = price;
+ }
+
+ public Date getQuoteTime() {
+ return quoteTime;
+ }
+
+ public void setQuoteTime(Date quoteTime) {
+ this.quoteTime = quoteTime;
+ }
+
+ public String getWangwang() {
+ return wangwang;
+ }
+
+ public void setWangwang(String wangwang) {
+ this.wangwang = wangwang;
+ }
+
+ public String getIsBuy() {
+ return isBuy;
+ }
+
+ public void setIsBuy(String isBuy) {
+ this.isBuy = isBuy;
+ }
+
+ public Date getBuyDate() {
+ return buyDate;
+ }
+
+ public void setBuyDate(Date buyDate) {
+ this.buyDate = buyDate;
+ }
+
+ public String getIsBuyToDay() {
+ return isBuyToDay;
+ }
+
+ public void setIsBuyToDay(String isBuyToDay) {
+ this.isBuyToDay = isBuyToDay;
+ }
+
+ public Date getIsBuyToDayDate() {
+ return isBuyToDayDate;
+ }
+
+ public void setIsBuyToDayDate(Date isBuyToDayDate) {
+ this.isBuyToDayDate = isBuyToDayDate;
+ }
+
+ public String getCommentSelf() {
+ return commentSelf;
+ }
+
+ public void setCommentSelf(String commentSelf) {
+ this.commentSelf = commentSelf;
+ }
+
+ public Date getCommentSelfDate() {
+ return commentSelfDate;
+ }
+
+ public void setCommentSelfDate(Date commentSelfDate) {
+ this.commentSelfDate = commentSelfDate;
+ }
+
+ public String getCommentManager() {
+ return commentManager;
+ }
+
+ public void setCommentManager(String commentManager) {
+ this.commentManager = commentManager;
+ }
+
+ public Date getCommentManagerDate() {
+ return commentManagerDate;
+ }
+
+ public void setCommentManagerDate(Date commentManagerDate) {
+ this.commentManagerDate = commentManagerDate;
+ }
+
+ public String getIsSelect() {
+ return isSelect;
+ }
+
+ public void setIsSelect(String isSelect) {
+ this.isSelect = isSelect;
+ }
+
+ public Date getSelectDate() {
+ return selectDate;
+ }
+
+ public void setSelectDate(Date selectDate) {
+ this.selectDate = selectDate;
+ }
+
+ public String getIsFillIn() {
+ return isFillIn;
+ }
+
+ public void setIsFillIn(String isFillIn) {
+ this.isFillIn = isFillIn;
+ }
+
+ public Date getFillInDate() {
+ return fillInDate;
+ }
+
+ public void setFillInDate(Date fillInDate) {
+ this.fillInDate = fillInDate;
+ }
+
+ public String getProTypeLabel() {
+ return proTypeLabel;
+ }
+
+ public void setProTypeLabel(String proTypeLabel) {
+ this.proTypeLabel = proTypeLabel;
+ }
+
+ public Double getBuyPrice() {
+ return buyPrice;
+ }
+
+ public void setBuyPrice(Double buyPrice) {
+ this.buyPrice = buyPrice;
+ }
+
+ public String getOrderNumber() {
+ return orderNumber;
+ }
+
+ public void setOrderNumber(String orderNumber) {
+ this.orderNumber = orderNumber;
+ }
+
+ public String getRoleSearch() {
+ return roleSearch;
+ }
+
+ public void setRoleSearch(String roleSearch) {
+ this.roleSearch = roleSearch;
+ }
+
+ public String[] getRoleArr() {
+ return roleArr;
+ }
+
+ public void setRoleArr(String[] roleArr) {
+ this.roleArr = roleArr;
+ }
+
+ public String[] getRoleSearchArr() {
+ return roleSearchArr;
+ }
+
+ public void setRoleSearchArr(String[] roleSearchArr) {
+ this.roleSearchArr = roleSearchArr;
+ }
+
+ public String getQuoteTimeBegin() {
+ return quoteTimeBegin;
+ }
+
+ public void setQuoteTimeBegin(String quoteTimeBegin) {
+ this.quoteTimeBegin = quoteTimeBegin;
+ }
+
+ public String getQuoteTimeEnd() {
+ return quoteTimeEnd;
+ }
+
+ public void setQuoteTimeEnd(String quoteTimeEnd) {
+ this.quoteTimeEnd = quoteTimeEnd;
+ }
+
+ public Double getAllData() {
+ return allData;
+ }
+
+ public void setAllData(Double allData) {
+ this.allData = allData;
+ }
+
+ public Double getAllNotBuy() {
+ return allNotBuy;
+ }
+
+ public void setAllNotBuy(Double allNotBuy) {
+ this.allNotBuy = allNotBuy;
+ }
+
+ public Double getAllBuy() {
+ return allBuy;
+ }
+
+ public void setAllBuy(Double allBuy) {
+ this.allBuy = allBuy;
+ }
+
+ public Double getTodayBuy() {
+ return todayBuy;
+ }
+
+ public void setTodayBuy(Double todayBuy) {
+ this.todayBuy = todayBuy;
+ }
+
+ public Double getNotTodayBuy() {
+ return notTodayBuy;
+ }
+
+ public void setNotTodayBuy(Double notTodayBuy) {
+ this.notTodayBuy = notTodayBuy;
+ }
+
+ public Double getAllBuyPrice() {
+ return allBuyPrice;
+ }
+
+ public void setAllBuyPrice(Double allBuyPrice) {
+ this.allBuyPrice = allBuyPrice;
+ }
+
+ public Double getTodayBuyPrice() {
+ return todayBuyPrice;
+ }
+
+ public void setTodayBuyPrice(Double todayBuyPrice) {
+ this.todayBuyPrice = todayBuyPrice;
+ }
+
+ public Double getNotTodayBuyPrice() {
+ return notTodayBuyPrice;
+ }
+
+ public void setNotTodayBuyPrice(Double notTodayBuyPrice) {
+ this.notTodayBuyPrice = notTodayBuyPrice;
+ }
+
+ public Double getAllBuyPercentage() {
+ return allBuyPercentage;
+ }
+
+ public void setAllBuyPercentage(Double allBuyPercentage) {
+ this.allBuyPercentage = allBuyPercentage;
+ }
+
+ public String getIsSelfShop() {
+ return isSelfShop;
+ }
+
+ public void setIsSelfShop(String isSelfShop) {
+ this.isSelfShop = isSelfShop;
+ }
+
+ public String getByProTypeLabel() {
+ return byProTypeLabel;
+ }
+
+ public void setByProTypeLabel(String byProTypeLabel) {
+ this.byProTypeLabel = byProTypeLabel;
+ }
+
+ private Integer id;
+
+ private String remark;
+
+ private String remarkJudge;
+
+ private String role;
+
+ private String username;
+
+ private String realname;
+
+ private String shopname;
+
+ private Double price;
+
+ private Date quoteTime;
+
+ private String wangwang;
+
+ private String isBuy;
+
+ private Date buyDate;
+
+ private String isBuyToDay;
+
+ private Date isBuyToDayDate;
+
+ private String commentSelf;
+
+ private Date commentSelfDate;
+
+ private String commentManager;
+
+ private Date commentManagerDate;
+
+ private String isSelect;
+
+ private Date selectDate;
+
+ private String isFillIn;
+
+ private Date fillInDate;
+
+ private String proTypeLabel;
+
+ private Double buyPrice;
+
+ private String orderNumber;
+
+ /*================*/
+
+ // 根据角色(部门)查找数据
+ private String roleSearch;
+
+ // 用户所拥有的部门数组
+ private String[] roleArr;
+
+ private String[] roleSearchArr;
+
+ private String quoteTimeBegin;
+
+ private String quoteTimeEnd;
+
+ private Double allData;
+
+ private Double allNotBuy;
+
+ private Double allBuy;
+
+ private Double todayBuy;
+
+ private Double notTodayBuy;
+
+ private Double allBuyPrice;
+
+ private Double todayBuyPrice;
+
+ private Double notTodayBuyPrice;
+
+ private Double allBuyPercentage;
+
+ private String isSelfShop;
+
+ private String byProTypeLabel;
+}
diff --git a/src/main/java/lingtao/net/bean/QuoteLog.java b/src/main/java/lingtao/net/bean/QuoteLog.java
new file mode 100644
index 0000000..f548581
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/QuoteLog.java
@@ -0,0 +1,135 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 报价操作日志
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class QuoteLog {
+
+ public Integer getQuoteId() {
+ return quoteId;
+ }
+
+ public void setQuoteId(Integer quoteId) {
+ this.quoteId = quoteId;
+ }
+
+ public Date getQuoteTime() {
+ return quoteTime;
+ }
+
+ public void setQuoteTime(Date quoteTime) {
+ this.quoteTime = quoteTime;
+ }
+
+ public String getQuoteIp() {
+ return quoteIp;
+ }
+
+ public void setQuoteIp(String quoteIp) {
+ this.quoteIp = quoteIp;
+ }
+
+ public String getOs() {
+ return os;
+ }
+
+ public void setOs(String os) {
+ this.os = os;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname;
+ }
+
+ public String getBrower() {
+ return brower;
+ }
+
+ public void setBrower(String brower) {
+ this.brower = brower;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public String getShopname() {
+ return Shopname;
+ }
+
+ public void setShopname(String shopname) {
+ Shopname = shopname;
+ }
+
+ public Double getPrice() {
+ return price;
+ }
+
+ public void setPrice(Double price) {
+ this.price = price;
+ }
+
+ public String getQuoteTimeBegin() {
+ return quoteTimeBegin;
+ }
+
+ public void setQuoteTimeBegin(String quoteTimeBegin) {
+ this.quoteTimeBegin = quoteTimeBegin;
+ }
+
+ public String getQuoteTimeEnd() {
+ return quoteTimeEnd;
+ }
+
+ public void setQuoteTimeEnd(String quoteTimeEnd) {
+ this.quoteTimeEnd = quoteTimeEnd;
+ }
+
+ private Integer quoteId;
+
+ private Date quoteTime;
+
+ private String quoteIp;
+
+ private String os;
+
+ private String username;
+
+ private String realname;
+
+ private String brower;
+
+ private String remark;
+
+ private String Shopname;
+
+ private Double price;
+
+ private String quoteTimeBegin;
+
+ private String quoteTimeEnd;
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/SysDictProduct.java b/src/main/java/lingtao/net/bean/SysDictProduct.java
new file mode 100644
index 0000000..361211a
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/SysDictProduct.java
@@ -0,0 +1,161 @@
+package lingtao.net.bean;
+
+import lombok.Data;
+
+@Data
+public class SysDictProduct {
+
+ public Integer getProId() {
+ return proId;
+ }
+
+ public void setProId(Integer proId) {
+ this.proId = proId;
+ }
+
+ public String getKindValue() {
+ return kindValue;
+ }
+
+ public void setKindValue(String kindValue) {
+ this.kindValue = kindValue;
+ }
+
+ public String getKindLabel() {
+ return kindLabel;
+ }
+
+ public void setKindLabel(String kindLabel) {
+ this.kindLabel = kindLabel;
+ }
+
+ public String getKind2Value() {
+ return kind2Value;
+ }
+
+ public void setKind2Value(String kind2Value) {
+ this.kind2Value = kind2Value;
+ }
+
+ public String getKind2Label() {
+ return kind2Label;
+ }
+
+ public void setKind2Label(String kind2Label) {
+ this.kind2Label = kind2Label;
+ }
+
+ public Double getKindPrice() {
+ return kindPrice;
+ }
+
+ public void setKindPrice(Double kindPrice) {
+ this.kindPrice = kindPrice;
+ }
+
+ public Double getDiscountPrice() {
+ return discountPrice;
+ }
+
+ public void setDiscountPrice(Double discountPrice) {
+ this.discountPrice = discountPrice;
+ }
+
+ public Double getFloorPrice() {
+ return floorPrice;
+ }
+
+ public void setFloorPrice(Double floorPrice) {
+ this.floorPrice = floorPrice;
+ }
+
+ public Double getWeight() {
+ return weight;
+ }
+
+ public void setWeight(Double weight) {
+ this.weight = weight;
+ }
+
+ public String getProTypeValue() {
+ return proTypeValue;
+ }
+
+ public void setProTypeValue(String proTypeValue) {
+ this.proTypeValue = proTypeValue;
+ }
+
+ public String getProTypeLabel() {
+ return proTypeLabel;
+ }
+
+ public void setProTypeLabel(String proTypeLabel) {
+ this.proTypeLabel = proTypeLabel;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ /**
+ *
+ */
+ private Integer proId;
+
+ /**
+ * 值
+ */
+ private String kindValue;
+
+ /**
+ * 种类名称
+ */
+ private String kindLabel;
+ /**
+ * 值
+ */
+ private String kind2Value;
+
+ /**
+ * 种类名称
+ */
+ private String kind2Label;
+ /**
+ * 报价单价
+ */
+ private Double kindPrice;
+
+ /**
+ * 打折报价
+ */
+ private Double discountPrice;
+
+ /**
+ * 跳楼价报价
+ */
+ private Double floorPrice;
+
+ /**
+ * 重量
+ */
+ private Double weight;
+
+ /**
+ * 名称
+ */
+ private String proTypeValue;
+
+ /**
+ * 产品类型
+ */
+ private String proTypeLabel;
+
+ /**
+ * 说明
+ */
+ private String remark;
+}
diff --git a/src/main/java/lingtao/net/bean/SysDictSearchPro.java b/src/main/java/lingtao/net/bean/SysDictSearchPro.java
new file mode 100644
index 0000000..529461d
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/SysDictSearchPro.java
@@ -0,0 +1,106 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class SysDictSearchPro {
+ public Integer getId() {
+ return id;
+ }
+ public void setId(Integer id) {
+ this.id = id;
+ }
+ public String getProTypeLabel() {
+ return proTypeLabel;
+ }
+ public void setProTypeLabel(String proTypeLabel) {
+ this.proTypeLabel = proTypeLabel;
+ }
+ public String getLikeProTypeLabel() {
+ return likeProTypeLabel;
+ }
+ public void setLikeProTypeLabel(String likeProTypeLabel) {
+ this.likeProTypeLabel = likeProTypeLabel;
+ }
+ public String getStatus() {
+ return status;
+ }
+ public void setStatus(String status) {
+ this.status = status;
+ }
+ public String getUrl() {
+ return url;
+ }
+ public void setUrl(String url) {
+ this.url = url;
+ }
+ public String getCreator() {
+ return creator;
+ }
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+ public Date getCreateDate() {
+ return createDate;
+ }
+ public void setCreateDate(Date createDate) {
+ this.createDate = createDate;
+ }
+ public String getUpdater() {
+ return updater;
+ }
+ public void setUpdater(String updater) {
+ this.updater = updater;
+ }
+ public Date getUpdateDate() {
+ return updateDate;
+ }
+ public void setUpdateDate(Date updateDate) {
+ this.updateDate = updateDate;
+ }
+ /**
+ *
+ */
+ private Integer id;
+
+ /**
+ * 产品名称
+ */
+ private String proTypeLabel;
+
+ /**
+ * 产品名称
+ */
+ private String likeProTypeLabel;
+
+ /**
+ * 产品名称
+ */
+ private String status;
+
+ /**
+ * 图片地址
+ */
+ private String url;
+
+ /**
+ * 创建者
+ */
+ private String creator;
+
+ /**
+ * 创建时间
+ */
+ private Date createDate;
+
+ /**
+ * 更新者
+ */
+ private String updater;
+ /**
+ * 创建时间
+ */
+ private Date updateDate;
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/SysPermission.java b/src/main/java/lingtao/net/bean/SysPermission.java
new file mode 100644
index 0000000..a9aaf8a
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/SysPermission.java
@@ -0,0 +1,145 @@
+package lingtao.net.bean;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+import lombok.Data;
+
+@Data
+public class SysPermission implements Serializable {
+ private static final long serialVersionUID = 1L;
+ private Integer perId;
+ private String perName;
+ private String url;
+ private String type;
+ private String perCode;
+ private String perIcon;
+ private Integer parentId;
+ public Integer getPerId() {
+ return perId;
+ }
+
+ public void setPerId(Integer perId) {
+ this.perId = perId;
+ }
+
+ public String getPerName() {
+ return perName;
+ }
+
+ public void setPerName(String perName) {
+ this.perName = perName;
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getPerCode() {
+ return perCode;
+ }
+
+ public void setPerCode(String perCode) {
+ this.perCode = perCode;
+ }
+
+ public String getPerIcon() {
+ return perIcon;
+ }
+
+ public void setPerIcon(String perIcon) {
+ this.perIcon = perIcon;
+ }
+
+ public Integer getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(Integer parentId) {
+ this.parentId = parentId;
+ }
+
+ public String getOrderNo() {
+ return orderNo;
+ }
+
+ public void setOrderNo(String orderNo) {
+ this.orderNo = orderNo;
+ }
+
+ public String getThirdOrderName() {
+ return thirdOrderName;
+ }
+
+ public void setThirdOrderName(String thirdOrderName) {
+ this.thirdOrderName = thirdOrderName;
+ }
+
+ public Integer getThirdParentId() {
+ return thirdParentId;
+ }
+
+ public void setThirdParentId(Integer thirdParentId) {
+ this.thirdParentId = thirdParentId;
+ }
+
+ 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 boolean isOpen() {
+ return open;
+ }
+
+ public void setOpen(boolean open) {
+ this.open = open;
+ }
+
+ public List getChildren() {
+ return children;
+ }
+
+ public void setChildren(List children) {
+ this.children = children;
+ }
+
+ public static long getSerialversionuid() {
+ return serialVersionUID;
+ }
+
+ private String orderNo;
+ private String thirdOrderName;
+ private Integer thirdParentId;
+ private String createBy;
+ private Date createDate;
+
+ private boolean open = true;
+
+ private List children; // 子权限集合
+
+}
diff --git a/src/main/java/lingtao/net/bean/SysRole.java b/src/main/java/lingtao/net/bean/SysRole.java
new file mode 100644
index 0000000..8d88618
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/SysRole.java
@@ -0,0 +1,95 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 角色
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class SysRole {
+ private Integer roleId;
+
+ private String roleName;
+
+ private String isRegist;
+
+ private String remark;
+
+ public Integer getRoleId() {
+ return roleId;
+ }
+
+ public void setRoleId(Integer roleId) {
+ this.roleId = roleId;
+ }
+
+ public String getRoleName() {
+ return roleName;
+ }
+
+ public void setRoleName(String roleName) {
+ this.roleName = roleName;
+ }
+
+ public String getIsRegist() {
+ return isRegist;
+ }
+
+ public void setIsRegist(String isRegist) {
+ this.isRegist = isRegist;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ 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;
+ }
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/SysUser.java b/src/main/java/lingtao/net/bean/SysUser.java
new file mode 100644
index 0000000..1d55371
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/SysUser.java
@@ -0,0 +1,208 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 用户
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class SysUser {
+ private Integer userId;
+
+ public Integer getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Integer userId) {
+ this.userId = userId;
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname;
+ }
+
+ 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 getUserStatus() {
+ return userStatus;
+ }
+
+ public void setUserStatus(String userStatus) {
+ this.userStatus = userStatus;
+ }
+
+ public String getRole() {
+ return role;
+ }
+
+ public void setRole(String role) {
+ this.role = role;
+ }
+
+ public String getSysStatus() {
+ return sysStatus;
+ }
+
+ public void setSysStatus(String sysStatus) {
+ this.sysStatus = sysStatus;
+ }
+
+ public String getReadLogStatus() {
+ return readLogStatus;
+ }
+
+ public void setReadLogStatus(String readLogStatus) {
+ this.readLogStatus = readLogStatus;
+ }
+
+ 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 getBirthDay() {
+ return birthDay;
+ }
+
+ public void setBirthDay(String birthDay) {
+ this.birthDay = birthDay;
+ }
+
+ public String getBirthType() {
+ return birthType;
+ }
+
+ public void setBirthType(String birthType) {
+ this.birthType = birthType;
+ }
+
+ public Integer getIsBirthDay() {
+ return isBirthDay;
+ }
+
+ public void setIsBirthDay(Integer isBirthDay) {
+ this.isBirthDay = isBirthDay;
+ }
+
+ public String getEntryDate() {
+ return entryDate;
+ }
+
+ public void setEntryDate(String entryDate) {
+ this.entryDate = entryDate;
+ }
+
+ public String getNeedIp() {
+ return needIp;
+ }
+
+ public void setNeedIp(String needIp) {
+ this.needIp = needIp;
+ }
+
+ public String getRoleSearch() {
+ return roleSearch;
+ }
+
+ public void setRoleSearch(String roleSearch) {
+ this.roleSearch = roleSearch;
+ }
+
+ public String[] getRoleArr() {
+ return roleArr;
+ }
+
+ public void setRoleArr(String[] roleArr) {
+ this.roleArr = roleArr;
+ }
+
+ private String realname;
+
+ private String username;
+
+ private String password;
+
+ private String userStatus;
+
+ private String role;
+
+ private String sysStatus;
+
+ private String readLogStatus;
+
+ private String createBy;
+
+ private Date createDate;
+
+ private String updateBy;
+
+ private Date updateDate;
+
+ private String birthDay;
+
+ private String birthType;
+
+ private Integer isBirthDay;
+
+ private String entryDate;
+
+ // 是否需要判断IP 0:否 1:是
+ private String needIp;
+
+ // 根据角色查找用户
+ private String roleSearch;
+
+ // 用户所拥有角色数组
+ private String[] roleArr;
+
+}
\ No newline at end of file
diff --git a/src/main/java/lingtao/net/bean/UpdateLog.java b/src/main/java/lingtao/net/bean/UpdateLog.java
new file mode 100644
index 0000000..7387633
--- /dev/null
+++ b/src/main/java/lingtao/net/bean/UpdateLog.java
@@ -0,0 +1,97 @@
+package lingtao.net.bean;
+
+import java.util.Date;
+
+import lombok.Data;
+
+/**
+ * 更新日志
+ *
+ * @author Administrator
+ *
+ */
+@Data
+public class UpdateLog {
+
+ private Integer id;
+
+ private String content;
+
+ private Date addTime;
+
+ private String createBy;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public Date getAddTime() {
+ return addTime;
+ }
+
+ public void setAddTime(Date addTime) {
+ this.addTime = addTime;
+ }
+
+ 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 getAddTimeStr() {
+ return addTimeStr;
+ }
+
+ public void setAddTimeStr(String addTimeStr) {
+ this.addTimeStr = addTimeStr;
+ }
+
+ public String getAdd_time_begin() {
+ return add_time_begin;
+ }
+
+ public void setAdd_time_begin(String add_time_begin) {
+ this.add_time_begin = add_time_begin;
+ }
+
+ public String getAdd_time_end() {
+ return add_time_end;
+ }
+
+ public void setAdd_time_end(String add_time_end) {
+ this.add_time_end = add_time_end;
+ }
+
+ private Date createDate;
+
+ /* ================= */
+
+ private String addTimeStr;
+
+ private String add_time_begin;
+
+ private String add_time_end;
+}
diff --git a/src/main/java/lingtao/net/config/ResourceServerConfig.java b/src/main/java/lingtao/net/config/ResourceServerConfig.java
new file mode 100644
index 0000000..8edea70
--- /dev/null
+++ b/src/main/java/lingtao/net/config/ResourceServerConfig.java
@@ -0,0 +1,21 @@
+package lingtao.net.config;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+
+@Configuration
+public abstract class ResourceServerConfig implements WebMvcConfigurer {
+
+ private String localPrefix = "abc";
+
+ private String localPath = "F:\\java_project\\bj\\upload";
+
+ @Override
+ public void addResourceHandlers(ResourceHandlerRegistry registry) {
+ registry.addResourceHandler("/" + localPrefix + "/**")
+ .addResourceLocations("file:" + localPath);
+ }
+
+}
diff --git a/src/main/java/lingtao/net/controller/AcountController.java b/src/main/java/lingtao/net/controller/AcountController.java
new file mode 100644
index 0000000..774ed99
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/AcountController.java
@@ -0,0 +1,197 @@
+package lingtao.net.controller;
+
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysRole;
+import lingtao.net.bean.SysUser;
+import lingtao.net.dao.SysUserMapper;
+import lingtao.net.service.SysRoleService;
+import lingtao.net.service.SysUserService;
+import lingtao.net.util.MD5Util;
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.apache.shiro.authc.*;
+import org.apache.shiro.subject.Subject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 用户登录注册、退出
+ *
+ * @author Administrator
+ */
+@Controller
+@RequestMapping("/SysUser")
+public class AcountController {
+
+ @Autowired
+ private SysUserService sysUserService;
+
+ @Autowired
+ private SysRoleService sysRoleService;
+
+ @Autowired
+ private SysUserMapper userMapper;
+
+ /**
+ * 获取客户端IP
+ *
+ * @param request 请求对象
+ * @return IP地址
+ */
+ public static String getIpAddr(HttpServletRequest request) {
+ if (request == null) {
+ return "unknown";
+ }
+ String ip = request.getHeader("x-forwarded-for");
+ if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
+ ip = request.getHeader("Proxy-Client-IP");
+ }
+ if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
+ ip = request.getHeader("X-Forwarded-For");
+ }
+ if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
+ ip = request.getHeader("WL-Proxy-Client-IP");
+ }
+ if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
+ ip = request.getHeader("X-Real-IP");
+ }
+
+ if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
+ ip = request.getRemoteAddr();
+ }
+
+ return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip);
+ }
+
+ /**
+ * 从多级反向代理中获得第一个非unknown IP地址
+ *
+ * @param ip 获得的IP地址
+ * @return 第一个非unknown IP地址
+ */
+ public static String getMultistageReverseProxyIp(String ip) {
+ // 多级反向代理检测
+ if (ip != null && ip.indexOf(",") > 0) {
+ final String[] ips = ip.trim().split(",");
+ for (String subIp : ips) {
+ if (false == isUnknown(subIp)) {
+ ip = subIp;
+ break;
+ }
+ }
+ }
+ return StringUtils.substring(ip, 0, 255);
+ }
+
+ /**
+ * 检测给定字符串是否为未知,多用于检测HTTP请求相关
+ *
+ * @param checkString 被检测的字符串
+ * @return 是否未知
+ */
+ public static boolean isUnknown(String checkString) {
+ return StringUtils.isBlank(checkString) || "unknown".equalsIgnoreCase(checkString);
+ }
+
+ /**
+ * 登陆
+ */
+ @RequestMapping(value = "/login", method = RequestMethod.POST)
+ public ModelAndView login(@RequestParam("username") String username, @RequestParam("password") String password,
+ HttpServletRequest request, HttpServletResponse response) throws Exception {
+ password = new MD5Util().md5(password, "lingtao");
+ // 使用 shiro 登录验证
+ // 1 认证的核心组件:获取 Subject 对象
+ Subject subject = SecurityUtils.getSubject();
+ // 2 将登陆表单封装成 token 对象
+ UsernamePasswordToken token = new UsernamePasswordToken(username, password);
+ token.setHost(getIpAddr(request));
+ try {
+ // 3 让 shiro 框架进行登录验证:传递token给shiro的reaml
+ subject.login(token);
+ // return "redirect:/views/main.jsp";
+ // 此处并没有跳转页面-前端根据状态码跳转对应页面
+ return new ModelAndView("redirect:/views/main.jsp");
+ } catch (UnknownAccountException uae) {
+ // 状态码 200--成功 100--失败 300禁用
+ response.getWriter().print("100");
+ throw new UnknownAccountException("账户或密码有误!");
+ } catch (IncorrectCredentialsException ice) {
+ response.getWriter().print("100");
+ throw new IncorrectCredentialsException("账户或密码有误!");
+ } catch (LockedAccountException lae) {
+ response.getWriter().print("300");
+ throw new LockedAccountException("用户未激活!!!");
+ } catch (AuthenticationException re) {
+ response.getWriter().print("404");
+ throw new AuthenticationException("未知IP!!!");
+ }
+ /* catch (RuntimeException re) { response.getWriter().print("400"); throw new
+ * RuntimeException("用户已登录!!!"); }
+ */
+
+ }
+
+ /**
+ * 注册
+ */
+ @RequestMapping("/register")
+ @ResponseBody
+ public Msg register(SysUser user) {
+ SysUser username = userMapper.getUserByUsername(user.getUsername());
+ if (username != null) {
+ return Msg.fail("用户名已存在!");
+ }
+ return sysUserService.register(user);
+ }
+
+ /**
+ * 注销
+ */
+ @RequestMapping("/logout")
+ public String logout() {
+ Subject subject = SecurityUtils.getSubject();
+ subject.logout();
+ return "redirect:/login.jsp";
+ }
+
+ /**
+ * 获取可以被注册的角色名称
+ *
+ * @return
+ */
+ @RequestMapping("/getRoleName")
+ @ResponseBody
+ public Map roleNameList(@RequestParam(value = "isRegist") String isRegist) {
+ Map map = new HashMap();
+ List allRoleNames = sysRoleService.getAllRoleName(isRegist);
+
+ for (SysRole sysRole : allRoleNames) {
+ map.put(sysRole.getRoleId(), sysRole.getRoleName());
+ }
+
+ return map;
+ }
+
+ @ResponseBody
+ @RequestMapping("/getIp")
+ public Msg getIp(HttpServletRequest request) {
+ String ip = getIpAddr(request);
+// String ip = "120.38.127.157";
+ if (ip != null) {
+ return Msg.success().add("ip", ip);
+ }
+ return Msg.fail();
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/ArticleController.java b/src/main/java/lingtao/net/controller/ArticleController.java
new file mode 100644
index 0000000..f429fee
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/ArticleController.java
@@ -0,0 +1,137 @@
+package lingtao.net.controller;
+
+import java.io.File;
+import java.util.Calendar;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.UUID;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Article;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.ArticleService;
+
+@Controller
+public class ArticleController {
+
+ @Autowired
+ private ArticleService articleService;
+
+ /**
+ * 获取所有的文章
+ *
+ * @param article
+ * @return
+ */
+ @RequestMapping("/getArticle")
+ @ResponseBody
+ public Msg articleList(Article article) {
+ PageHelper.startPage(1, 10);
+ List articles = articleService.getArticle(article);
+ PageInfo pageInfo = new PageInfo(articles);
+ return Msg.success().add("articles", pageInfo);
+ }
+
+ /**
+ * 新增文章
+ */
+ @RequestMapping("/addArticle")
+ @ResponseBody
+ public Msg addArticle(Article article) {
+ return articleService.addArticle(article);
+ }
+
+ /**
+ * 文章中的图片
+ */
+ @RequestMapping(value = "/uploadconimage", method = RequestMethod.POST)
+ @ResponseBody
+ public Map uploadconimage(HttpServletRequest request, @RequestParam MultipartFile file) {
+ Map mv = new HashMap();
+ Map mvv = new HashMap();
+ try {
+ String rootPath = request.getSession().getServletContext().getRealPath("/image/");
+ String contextPath = request.getContextPath();
+ System.err.println(contextPath);
+ System.out.println(rootPath);
+ Calendar date = Calendar.getInstance(); // Calendar.getInstance()是获取一个Calendar对象并可以进行时间的计算,时区的指定
+ String originalFile = file.getOriginalFilename(); // 获得文件最初的路径
+ String uuid = UUID.randomUUID().toString(); // UUID转化为String对象
+ String newfilename = date.get(Calendar.YEAR) + "" + (date.get(Calendar.MONTH) + 1) + ""
+ + date.get(Calendar.DATE) + uuid.replace("-", "") + originalFile;
+ // 得到完整路径名
+ File newFile = new File(rootPath + newfilename);
+ /* 文件不存在就创建 */
+ if (!newFile.getParentFile().exists()) {
+ newFile.getParentFile().mkdirs();
+ }
+ String filename = originalFile.substring(0, originalFile.indexOf("."));
+ System.out.println(originalFile);
+ System.out.println(filename);
+ file.transferTo(newFile);
+ System.out.println("newFile : " + newFile);
+ String urlpat = contextPath + "/image/" + newfilename;
+ mvv.put("src", urlpat);
+ mvv.put("title", newfilename);
+ mv.put("code", 0);
+ mv.put("msg", "上传成功");
+ mv.put("data", mvv);
+ return mv;
+ } catch (Exception e) {
+ e.printStackTrace();
+ mv.put("success", 1);
+ return mv;
+ }
+ }
+
+ // 用户跳转页面
+ @RequestMapping("/toUpdateArticle")
+ public String index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ return "updateArticle";
+ //response.sendRedirect(request.getContextPath() + "/views/updateArticle.jsp");
+ }
+
+ /**
+ * 修改文章
+ *
+ */
+ @RequestMapping("/updateArticle")
+ @ResponseBody
+ public Msg updateArticle(Article article) {
+ return articleService.updateArticleById(article);
+ }
+
+ /**
+ * 文章详情
+ *
+ */
+ @RequestMapping("/articleInfo")
+ @ResponseBody
+ public Msg articleInfo(@RequestParam("id") Integer id) {
+ Article article = articleService.articleInfo(id);
+ return Msg.success().add("article", article);
+ }
+
+ /**
+ * 删除文章
+ */
+ @RequestMapping("/deleteArticle")
+ @ResponseBody
+ public Msg delArticle(@RequestParam("id") Integer id) {
+ return articleService.delArticleById(id);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/BugController.java b/src/main/java/lingtao/net/controller/BugController.java
new file mode 100644
index 0000000..d057ef3
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/BugController.java
@@ -0,0 +1,105 @@
+package lingtao.net.controller;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.util.Date;
+import java.util.List;
+
+import javax.management.RuntimeErrorException;
+import javax.servlet.http.HttpSession;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.http.client.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Bug;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.BugService;
+
+@RestController
+public class BugController {
+
+ @Autowired
+ private BugService bugService;
+
+ private String localPrefix = "abc\\bug";
+
+ private String localPath = "C:\\lingtao\\quote_price\\upload";
+
+ //private String localDomain = "http://47.114.150.226:8080/erp";
+
+ /**
+ * bug列表
+ *
+ * @param page
+ * @param limit
+ * @return
+ */
+ @RequestMapping("/getBugs")
+ public PageInfo getBugs(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Bug bug) {
+ PageHelper.startPage(page, limit);
+ List bugList = bugService.getBugs(bug);
+ PageInfo pageInfo = new PageInfo(bugList);
+ return pageInfo;
+ }
+
+ /**
+ * 添加角色
+ */
+ @RequestMapping("/addBug")
+ public Msg addBug(Bug bug, HttpSession session) {
+ return bugService.addBug(bug, session);
+ }
+
+ // 图片上传及新增
+ @RequestMapping("/bugUpload")
+ public Msg upload(@RequestParam("file") MultipartFile file) throws Exception {
+ if (file.isEmpty()) {
+ return Msg.fail("文件不能为空");
+ }
+ // 获取文件名后缀
+ String extension = FilenameUtils.getExtension(file.getOriginalFilename());
+ // 获取path
+ String path = getPath(extension, FilenameUtils.getBaseName(file.getOriginalFilename()));
+ // 保存文件信息
+ File newFile = new File(localPath + File.separator + path);
+ try {
+ FileUtils.copyInputStreamToFile(new ByteArrayInputStream(file.getBytes()), newFile);
+ } catch (IOException e) {
+ throw new RuntimeErrorException(null, "");
+ }
+ return Msg.success();
+ }
+
+ /**
+ *
+ * @param prefixSelf 根据上传的接口存入自己的文件夹
+ * @param suffix 文件的后缀
+ * @param fileName 文件名
+ * @return
+ */
+ public String getPath(String suffix, String fileName) {
+
+ // 生成uuid
+ // String uuid = UUID.randomUUID().toString().replaceAll("-", "");
+ String path = null;
+
+ // 文件路径
+ path = DateUtils.formatDate(new Date(), "yyyyMMdd") + File.separator + fileName;
+
+ path = localPrefix + File.separator + File.separator + path;
+
+ return path + "." + suffix;
+ }
+
+}
diff --git a/src/main/java/lingtao/net/controller/CustomerAwardController.java b/src/main/java/lingtao/net/controller/CustomerAwardController.java
new file mode 100644
index 0000000..a7d68ec
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/CustomerAwardController.java
@@ -0,0 +1,109 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.CustomerAward;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.CustomerAwardService;
+import lingtao.net.util.PublicMethods;
+
+@Controller
+public class CustomerAwardController {
+
+ @Autowired
+ private CustomerAwardService customerAwardService;
+
+ // 用户跳转页面
+ @RequestMapping("/customerAward/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/customerAward/customerAward.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getCustomerAward")
+ public PageInfo getCustomerAward(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, CustomerAward customerAward) {
+ PageHelper.startPage(page, limit);
+ List customerAwardList = customerAwardService.getCustomerAward(customerAward);
+ PageInfo pageInfo = new PageInfo(customerAwardList);
+ return pageInfo;
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDatas")
+ public Msg deleteBatch(@RequestParam(value = "ids") String ids, @RequestParam(value = "creators") String creators) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ String[] arrCreators = creators.split(",");
+ boolean selfFlag = true;
+ for (String creator : arrCreators) {
+ if (!user.getRealname().equals(creator)) {
+ selfFlag = false;
+ break;
+ }
+ }
+ // 超管身份
+ boolean flag = new PublicMethods().isSuper();
+ // 不是超管
+ if (!flag) {
+ // 判断是不是自己上传的数据
+ if (!selfFlag) {
+ return Msg.fail("禁止删除其他人数据!");
+ }
+ }
+ String[] arrIds = ids.split(",");
+ // String数组转为Integer数组
+ int[] ints = new int[arrIds.length];
+ for (int i = 0; i < arrIds.length; i++) {
+ ints[i] = Integer.parseInt(arrIds[i]);
+ }
+ return customerAwardService.deleteBatch(ints);
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_customerAward")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return customerAwardService.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 获取上传过的店铺
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getArardShopname")
+ public List getArardShopname() {
+ List FilenameList = customerAwardService.getArardShopname();
+ return FilenameList;
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/CustomerDataControlle.java b/src/main/java/lingtao/net/controller/CustomerDataControlle.java
new file mode 100644
index 0000000..969b483
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/CustomerDataControlle.java
@@ -0,0 +1,129 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.CustomerData;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.CustomerDataService;
+
+@RestController
+public class CustomerDataControlle {
+
+ @Autowired
+ private CustomerDataService customerDataService;
+
+ @RequestMapping("/getCustomerDatas")
+ public Msg getCustomerDatas(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, CustomerData customerData) {
+ PageHelper.startPage(page, limit);
+ List customerDatalist = customerDataService.getCustomerDatas(customerData);
+ PageInfo pageInfo = new PageInfo(customerDatalist);
+ return Msg.success().add("list", pageInfo);
+ }
+
+ /**
+ * 添加数据
+ *
+ * @throws Exception
+ */
+ @RequestMapping("/addCustomerData")
+ public Msg addCustomerData(CustomerData customerData) throws Exception {
+ // 把字符串转为日期格式
+ customerDataService.addCustomerData(customerData);
+ return Msg.success();
+ }
+
+ /**
+ * 修改数据
+ */
+ @RequestMapping("/updateCustomerData")
+ public Msg updateCustomerData(CustomerData customerData) {
+ customerDataService.updateCustomerDataById(customerData);
+ return Msg.success();
+ }
+
+ /**
+ * 删除数据
+ */
+ @RequestMapping("/deleteCustomerData")
+ public Msg deleteCustomerData(@RequestParam("id") Integer id) {
+ customerDataService.deleteCustomerDataById(id);
+ return Msg.success();
+ }
+
+ /**
+ * 店长修改说明数据
+ *
+ * @param customerData
+ */
+ @RequestMapping("/updateRemarkById")
+ public Msg updateRemarkById(@RequestParam(value = "id") int id, @RequestParam(value = "field") String field,
+ @RequestParam(value = "value") String value) {
+ // 超管、组长身份才允许修改comment
+ boolean flag = isSuperOrManager();
+ if (!flag) {
+ return Msg.fail();
+ }
+ customerDataService.updateRemarkById(id, field, value);
+ return Msg.success();
+ }
+
+ /**
+ * 修改完成状态
+ *
+ * @param id
+ * @return
+ */
+ @RequestMapping("/changeIsBuy")
+ public Msg changeIsBuy(@RequestParam(value = "id") Integer id, @RequestParam(value = "username") String username) {
+ // 超管、组长身份才允许修改【成交状态】
+ boolean flag = isSuperOrManager();
+ if (!flag) {
+ return Msg.fail();
+ }
+ return customerDataService.changeIsBuy(id);
+ // 只有自己创建的数据才能更改【完成状态】
+ /*
+ * if (username.equals(user.getUsername())) { }
+ */
+ // return Msg.fail();
+ }
+
+ // 是否有超管或者组长身份
+ public boolean isSuperOrManager() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ String role = user.getRole();
+ boolean flag = false;
+ if (role.contains(",")) {
+ String[] split = role.split(",");
+ for (int i = 0; i < split.length; i++) {
+ if ("1011".equals(split[i]) || "1".equals(split[i])) {
+ flag = true;
+ break;
+ }
+ }
+ } else {
+ if ("1011".equals(role) || "1".equals(role)) {
+ flag = true;
+ }
+ }
+ return flag;
+ }
+
+ // 获取摘要
+ @RequestMapping("/getProductExplain")
+ public List getProductExplain(@RequestParam("productExplain") String productExplain) {
+ List name = customerDataService.getProductExplain(productExplain);
+ return name;
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/CustomerTrainController.java b/src/main/java/lingtao/net/controller/CustomerTrainController.java
new file mode 100644
index 0000000..3d5285b
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/CustomerTrainController.java
@@ -0,0 +1,243 @@
+package lingtao.net.controller;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.management.RuntimeErrorException;
+import javax.servlet.http.HttpSession;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.http.client.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.CustomerTrainContent;
+import lingtao.net.bean.CustomerTrainKindLabel;
+import lingtao.net.bean.CustomerTrainProType;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.CustomerTrainService;
+
+@RestController
+public class CustomerTrainController {
+
+ @Autowired
+ private CustomerTrainService customerTrainService;
+
+ private String localPrefix = "abc\\train";
+
+ private String localPath = "C:\\lingtao\\upload";
+
+ private String localDomain = "http://47.114.150.226:80/erp";
+
+ // 图片上传及新增
+ @RequestMapping("/imgUpload")
+ public Object upload(@RequestParam("file") MultipartFile file) throws Exception {
+ if (file.isEmpty()) {
+ return Msg.fail("文件不能为空");
+ }
+ // 获取文件名后缀
+ String extension = FilenameUtils.getExtension(file.getOriginalFilename());
+ // 获取path
+ String path = getPath(extension, FilenameUtils.getBaseName(file.getOriginalFilename()));
+ // 保存文件信息
+ File newFile = new File(localPath + File.separator + path);
+ try {
+ FileUtils.copyInputStreamToFile(new ByteArrayInputStream(file.getBytes()), newFile);
+ } catch (IOException e) {
+ throw new RuntimeErrorException(null, "");
+ }
+ String serverPath = localDomain + "/" + path;
+ Map map = new HashMap();
+ Map map2 = new HashMap();
+ map.put("code", 0); // 0表示上传成功
+ map.put("msg", "上传成功"); // 提示消息
+ // src返回图片上传成功后的下载路径,这里直接给绝对路径
+ map2.put("src", serverPath);
+ map.put("data", map2);
+ return map;
+ }
+
+ /**
+ *
+ * @param prefixSelf 根据上传的接口存入自己的文件夹
+ * @param suffix 文件的后缀
+ * @param fileName 文件名
+ * @return
+ */
+ public String getPath(String suffix, String fileName) {
+
+ // 生成uuid
+ // String uuid = UUID.randomUUID().toString().replaceAll("-", "");
+ String path = null;
+
+ // 文件路径
+ path = DateUtils.formatDate(new Date(), "yyyyMMdd") + File.separator + fileName;
+
+ path = localPrefix + File.separator + File.separator + path;
+
+ return path + "." + suffix;
+ }
+
+ /* =============产品知识内容================ */
+ /**
+ * 查询
+ *
+ * @param page
+ * @param limit
+ * @param customerTrainContent
+ * @return
+ */
+ @RequestMapping("/getCustomerTrainContents")
+ public PageInfo getCustomerTrainContents(
+ @RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit,
+ CustomerTrainContent customerTrainContent) {
+ PageHelper.startPage(page, limit);
+ List customerTrainContentList = customerTrainService
+ .getCustomerTrainContents(customerTrainContent);
+ PageInfo pageInfo = new PageInfo(customerTrainContentList);
+ return pageInfo;
+ }
+
+ /**
+ * 添加
+ *
+ */
+ @RequestMapping("/addCustomerTrainContent")
+ public Msg addCustomerTrainContent(CustomerTrainContent customerTrainContent, HttpSession session) {
+
+ return customerTrainService.addCustomerTrainContent(customerTrainContent, session);
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/updateCustomerTrainContent")
+ public Msg updateCustomerTrainContent(CustomerTrainContent customerTrainContent, HttpSession session) {
+ return customerTrainService.updateCustomerTrainContentById(customerTrainContent, session);
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/updateCustomerTrainContentSort")
+ public Msg updateById(@RequestParam(value = "id") int id, @RequestParam(value = "value") String value) {
+ return customerTrainService.updateCustomerTrainContentSort(id, value);
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteCustomerTrainContent")
+ public Msg deleteCustomerTrainContent(@RequestParam("id") Integer id) {
+ return customerTrainService.deleteCustomerTrainContentById(id);
+ }
+
+ /* =============产品种类================ */
+ /**
+ * 查询
+ *
+ * @param page
+ * @param limit
+ * @param customerTrainProType
+ * @return
+ */
+ @RequestMapping("/getCustomerTrainProTypes")
+ public PageInfo getCustomerTrainProTypes(
+ @RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit,
+ CustomerTrainProType customerTrainProType) {
+ PageHelper.startPage(page, limit);
+ List customerTrainProTypeList = customerTrainService
+ .getCustomerTrainProTypes(customerTrainProType);
+ PageInfo pageInfo = new PageInfo(customerTrainProTypeList);
+ return pageInfo;
+ }
+
+ /**
+ * 添加
+ *
+ */
+ @RequestMapping("/addCustomerTrainProType")
+ public Msg addCustomerTrainProType(CustomerTrainProType customerTrainProType, HttpSession session) {
+
+ return customerTrainService.addCustomerTrainProType(customerTrainProType, session);
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/updateCustomerTrainProType")
+ public Msg updateCustomerTrainProType(CustomerTrainProType customerTrainProType, HttpSession session) {
+ return customerTrainService.updateCustomerTrainProTypeById(customerTrainProType, session);
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteCustomerTrainProType")
+ public Msg deleteCustomerTrainProType(@RequestParam("id") Integer id) {
+ return customerTrainService.deleteCustomerTrainProTypeById(id);
+ }
+
+ /* =============产品类型================ */
+ /**
+ * 查询
+ *
+ * @param page
+ * @param limit
+ * @param customerTrainKindLabel
+ * @return
+ */
+ @RequestMapping("/getCustomerTrainKindLabelsByProType")
+ public PageInfo getCustomerTrainKindLabelsByProType(
+ @RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit,
+ @RequestParam(value = "needPage") String needPage, CustomerTrainKindLabel customerTrainKindLabel) {
+ // 0:不要分页 1:要分页
+ if ("1".equals(needPage))
+ PageHelper.startPage(page, limit);
+ List customerTrainKindLabelList = customerTrainService
+ .getCustomerTrainKindLabelsByProType(customerTrainKindLabel);
+ PageInfo pageInfo = new PageInfo(customerTrainKindLabelList);
+ return pageInfo;
+ }
+
+ /**
+ * 添加
+ *
+ */
+ @RequestMapping("/addCustomerTrainKindLabel")
+ public Msg addCustomerTrainKindLabel(CustomerTrainKindLabel customerTrainKindLabel, HttpSession session) {
+
+ return customerTrainService.addCustomerTrainKindLabel(customerTrainKindLabel, session);
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/updateCustomerTrainKindLabel")
+ public Msg updateCustomerTrainKindLabel(CustomerTrainKindLabel customerTrainKindLabel, HttpSession session) {
+ return customerTrainService.updateCustomerTrainKindLabelById(customerTrainKindLabel, session);
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteCustomerTrainKindLabel")
+ public Msg deleteCustomerTrainKindLabel(@RequestParam("id") Integer id) {
+ return customerTrainService.deleteCustomerTrainKindLabelById(id);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/ExpressFeeController.java b/src/main/java/lingtao/net/controller/ExpressFeeController.java
new file mode 100644
index 0000000..eb4932b
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/ExpressFeeController.java
@@ -0,0 +1,75 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpSession;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.ExpressFee;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.ExpressFeeService;
+
+@RestController
+public class ExpressFeeController {
+
+ @Autowired
+ private ExpressFeeService expressFeeService;
+
+ /**
+ * 省份快递费列表
+ *
+ * @return
+ */
+ @RequestMapping("/getExpressFees")
+ public Msg getExpressFees(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, ExpressFee expressFee) {
+ PageHelper.startPage(page, limit);
+ // 带分页,用于列表展示
+ List expressFeeList = expressFeeService.getExpressFees(expressFee);
+ // 全国省份
+ List allProvinces = expressFeeService.getAllExpressFees(expressFee);
+ // 手提袋偏远地区运费
+ List handBagExpressFees = expressFeeService.getHandBagExpressFees(expressFee);
+ // 封套:6、房卡套:7、吊旗:13
+ List taoExpressFees = expressFeeService.getTaoExpressFees(expressFee);
+ // 其他产品偏远地区运费
+ List orherExpressFees = expressFeeService.getOtherExpressFees(expressFee);
+ PageInfo pageInfo = new PageInfo(expressFeeList);
+ return Msg.success().add("list", pageInfo).add("allProvinces", allProvinces).add("handBag", handBagExpressFees)
+ .add("tao", taoExpressFees).add("other", orherExpressFees);
+ }
+
+ /**
+ * 添加省份快递费
+ */
+ @RequestMapping("/addExpressFee")
+ public Msg addExpressFee(ExpressFee expressFee, HttpSession session) {
+ expressFeeService.addExpressFee(expressFee, session);
+ return Msg.success();
+ }
+
+ /**
+ * 修改省份快递费
+ */
+ @RequestMapping("/updateExpressFee")
+ public Msg updateExpressFee(HttpSession session, @RequestParam(value = "id") int id,
+ @RequestParam(value = "field") String field, @RequestParam(value = "value") String value) throws Exception {
+ return expressFeeService.updateExpressFeeById(session, id, field, value);
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteExpressFee")
+ public Msg deleteExpressFee(@RequestParam("id") Integer id) {
+ expressFeeService.deleteExpressFeeById(id);
+ return Msg.success();
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/FileController.java b/src/main/java/lingtao/net/controller/FileController.java
new file mode 100644
index 0000000..6ad3516
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/FileController.java
@@ -0,0 +1,90 @@
+package lingtao.net.controller;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.MyFile;
+import lingtao.net.service.MyFileService;
+
+@Controller
+public class FileController {
+
+ @Autowired
+ private MyFileService fileService;
+
+ /**
+ * 上传文件
+ *
+ * @throws IOException
+ */
+ @RequestMapping("/fileUpload")
+ @ResponseBody
+ public Msg uploadFile(@RequestParam("file") MultipartFile file, HttpServletRequest request) {
+ return fileService.fileUpload(file, request);
+ }
+
+ /**
+ * 查询文件列表
+ * @param page
+ * @param limit
+ * @param myFile
+ * @param session
+ * @return
+ */
+ @RequestMapping("getAllFiles")
+ @ResponseBody
+ public Msg FileList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, MyFile myFile, HttpSession session) {
+ PageHelper.startPage(page, limit);
+ List fileList = fileService.getFileList(myFile, session);
+ PageInfo filesInfo = new PageInfo(fileList);
+ return Msg.success().add("fileList", filesInfo);
+ }
+
+ /**
+ * 根据id删除文件
+ *
+ */
+ @RequestMapping("/deleteFile")
+ @ResponseBody
+ public Msg deleteFile(@Param("fileId") Integer fileId) {
+ return fileService.deleteFile(fileId);
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ */
+ @ResponseBody
+ @RequestMapping("/deleteFiles")
+ public Msg deleteBatch(@RequestParam(value = "ids") String ids, @RequestParam(value = "fileNames") String fileNames,
+ HttpServletRequest request) {
+ String[] arrIds = ids.split(",");
+ String[] fileNameArr = fileNames.split(";");
+ List del_ids = new ArrayList();
+ String hasFileload = request.getSession().getServletContext().getRealPath("/") + "/deptFile/";
+ for (int i = 0; i < fileNameArr.length; i++) {
+ del_ids.add(Integer.parseInt(arrIds[i]));
+ fileService.deleteBatch(del_ids);
+ fileService.deleteFile(hasFileload + fileNameArr[i]);
+ }
+ return Msg.success();
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance2Controller.java b/src/main/java/lingtao/net/controller/Finance2Controller.java
new file mode 100644
index 0000000..6924082
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance2Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance2Service;
+
+@Controller
+public class Finance2Controller {
+
+ @Autowired
+ private Finance2Service finance2Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_2/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance2.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_2")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance2Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_2")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance2Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_2")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance2Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f2")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance2Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_2")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance2Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance3Controller.java b/src/main/java/lingtao/net/controller/Finance3Controller.java
new file mode 100644
index 0000000..018c07c
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance3Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance3Service;
+
+@Controller
+public class Finance3Controller {
+
+ @Autowired
+ private Finance3Service finance3Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_3/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance3.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_3")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance3Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_3")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance3Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_3")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance3Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f3")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance3Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_3")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance3Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance4Controller.java b/src/main/java/lingtao/net/controller/Finance4Controller.java
new file mode 100644
index 0000000..c5eff45
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance4Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance4Service;
+
+@Controller
+public class Finance4Controller {
+
+ @Autowired
+ private Finance4Service finance4Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_4/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance4.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_4")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance4Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_4")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance4Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_4")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance4Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f4")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance4Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_4")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance4Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance5Controller.java b/src/main/java/lingtao/net/controller/Finance5Controller.java
new file mode 100644
index 0000000..2b090e6
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance5Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance5Service;
+
+@Controller
+public class Finance5Controller {
+
+ @Autowired
+ private Finance5Service finance5Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_5/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance5.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_5")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance5Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_5")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance5Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_5")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance5Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f5")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance5Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_5")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance5Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance6Controller.java b/src/main/java/lingtao/net/controller/Finance6Controller.java
new file mode 100644
index 0000000..78cd6ca
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance6Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance6Service;
+
+@Controller
+public class Finance6Controller {
+
+ @Autowired
+ private Finance6Service finance6Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_6/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance6.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_6")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance6Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_6")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance6Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_6")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance6Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f6")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance6Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_6")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance6Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/Finance7Controller.java b/src/main/java/lingtao/net/controller/Finance7Controller.java
new file mode 100644
index 0000000..f29cb7d
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/Finance7Controller.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.Finance7Service;
+
+@Controller
+public class Finance7Controller {
+
+ @Autowired
+ private Finance7Service finance7Service;
+
+ // 用户跳转页面
+ @RequestMapping("/finance_7/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance7.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_7")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = finance7Service.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename_7")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = finance7Service.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename_7")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return finance7Service.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_f7")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return finance7Service.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_7")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ finance7Service.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/FinanceController.java b/src/main/java/lingtao/net/controller/FinanceController.java
new file mode 100644
index 0000000..fc879c2
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/FinanceController.java
@@ -0,0 +1,104 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Finance;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.FinanceService;
+
+@Controller
+public class FinanceController {
+
+ @Autowired
+ private FinanceService financeService;
+
+ // 用户跳转页面
+ @RequestMapping("/finance/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/finance/finance";
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/finance.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Finance finance) {
+ PageHelper.startPage(page, limit);
+ List financeList = financeService.getFinance(finance);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getAllFilename")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = financeService.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return financeService.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_1")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return financeService.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel")
+ public void excel(HttpServletResponse response, Finance finance) throws Exception {
+ if (StringUtils.isEmpty(finance.getFilename())) {
+ return;
+ }
+ financeService.excel(response, finance);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/FinanceDifferenceController.java b/src/main/java/lingtao/net/controller/FinanceDifferenceController.java
new file mode 100644
index 0000000..e186ac1
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/FinanceDifferenceController.java
@@ -0,0 +1,87 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.FinanceDifference;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.FinanceDifferenceService;
+
+@Controller
+public class FinanceDifferenceController {
+
+ @Autowired
+ private FinanceDifferenceService differenceService;
+
+ // 用户跳转页面
+ @RequestMapping("/finance/difference/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ // return "/difference/difference";
+ response.sendRedirect(request.getContextPath() + "/views/system/financeDifference/difference.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getDifference")
+ public PageInfo getFinance(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, FinanceDifference difference) {
+ PageHelper.startPage(page, limit);
+ List differenceList = differenceService.get(difference);
+ PageInfo pageInfo = new PageInfo(differenceList);
+ return pageInfo;
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return differenceService.ajaxUploadExcel(file);
+ }
+ }
+
+ @ResponseBody
+ @RequestMapping("/getFilename")
+ public List getAllFilename() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = differenceService.getAllFilename(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param difference
+ * @throws Exception
+ */
+ @RequestMapping("/excel_difference")
+ public void excel(HttpServletResponse response, FinanceDifference difference) throws Exception {
+ if (StringUtils.isEmpty(difference.getFilename())) {
+ return;
+ }
+ differenceService.excel(response, difference);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/FinanceExtractController.java b/src/main/java/lingtao/net/controller/FinanceExtractController.java
new file mode 100644
index 0000000..f5e2fcb
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/FinanceExtractController.java
@@ -0,0 +1,103 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.FinanceExtract;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.FinanceExtractService;
+
+@Controller
+public class FinanceExtractController {
+
+ @Autowired
+ private FinanceExtractService financeExtractService;
+
+ // 用户跳转页面
+ @RequestMapping("/finance/extract/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/finance/extract/extract.jsp");
+ }
+
+ /**
+ * 根据条件查询数据
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/getFinance_extract")
+ public PageInfo getFinanceExtract(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, FinanceExtract financeExtract) {
+ PageHelper.startPage(page, limit);
+ List financeList = financeExtractService.getFinanceExtract(financeExtract);
+ PageInfo pageInfo = new PageInfo(financeList);
+ return pageInfo;
+ }
+
+ /**
+ * 获取自己上传过的文件名(用于导出文件)
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/getFilename_extract")
+ public List getFilename_extract() {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ List FilenameList = financeExtractService.getFilename_extract(user.getRealname());
+ return FilenameList;
+ }
+
+ /**
+ * 根据文件名删除自己导入过的文件
+ *
+ * @return
+ */
+ @ResponseBody
+ @RequestMapping("/deleteDataByFilename2")
+ public Msg deleteDataByFilename(@RequestParam(value = "filename") String filename) {
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ return financeExtractService.deleteDataByFilename(filename, user.getRealname());
+ }
+
+ /**
+ *
+ * 文件上传
+ */
+ @ResponseBody
+ @RequestMapping(value = "/ajaxUpload_2")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ synchronized (this) {
+ return financeExtractService.ajaxUploadExcel(file);
+ }
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param finance
+ * @throws Exception
+ */
+ @RequestMapping("/excel_extract")
+ public void excel(HttpServletResponse response, FinanceExtract financeExtract) throws Exception {
+ if (StringUtils.isEmpty(financeExtract.getFilename())) {
+ return;
+ }
+ financeExtractService.excel(response, financeExtract);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/InformationController.java b/src/main/java/lingtao/net/controller/InformationController.java
new file mode 100644
index 0000000..73ee59f
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/InformationController.java
@@ -0,0 +1,65 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpSession;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Information;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.InformationService;
+
+@RestController
+public class InformationController {
+
+ @Autowired
+ private InformationService informationService;
+
+ /**
+ * 产品知识列表
+ *
+ * @return
+ */
+ @RequestMapping("/getInformations")
+ public Msg getInformations(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Information information) {
+ PageHelper.startPage(page, limit);
+ List informationList = informationService.getInformations(information);
+ PageInfo pageInfo = new PageInfo(informationList);
+ return Msg.success().add("list", pageInfo);
+ }
+
+ /**
+ * 添加产品知识
+ */
+ @RequestMapping("/addInformation")
+ public Msg addInformation(Information information, HttpSession session) {
+ informationService.addInformation(information, session);
+ return Msg.success();
+ }
+
+ /**
+ * 修改产品知识
+ */
+ @RequestMapping("/updateInformation")
+ public Msg updateInformation(Information information, HttpSession session) {
+ informationService.updateInformationById(information, session);
+ return Msg.success();
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteInformation")
+ public Msg deleteInformation(@RequestParam("id") Integer id) {
+ informationService.deleteInformationById(id);
+ return Msg.success();
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/LoginIpController.java b/src/main/java/lingtao/net/controller/LoginIpController.java
new file mode 100644
index 0000000..b6f80bc
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/LoginIpController.java
@@ -0,0 +1,101 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.LoginIp;
+import lingtao.net.bean.Msg;
+import lingtao.net.service.LoginIpService;
+
+@Controller
+public class LoginIpController {
+
+ @Autowired
+ private LoginIpService loginIpService;
+
+ // IP跳转页面
+ @RequestMapping("/loginIp/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/loginIp/loginIp.jsp");
+ }
+
+ /**
+ * 查询所有IP
+ */
+ @RequestMapping("/getLoginIpList")
+ @ResponseBody
+ private Msg IPList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, LoginIp loginIp) {
+ PageHelper.startPage(page, limit);
+ List list = loginIpService.getLoginIpList(loginIp);
+ PageInfo pageInfo = new PageInfo(list);
+ return Msg.success().add("ipList", pageInfo);
+ }
+
+ /**
+ * 添加IP
+ */
+ @ResponseBody
+ @RequestMapping("/addIp")
+ public Msg addIp(LoginIp loginIp) {
+ loginIpService.addIp(loginIp);
+ return Msg.success();
+ }
+
+ /**
+ * 修改IP
+ */
+ @ResponseBody
+ @RequestMapping("/updateIp")
+ public Msg updateIp(LoginIp loginIp) {
+ loginIpService.updateIp(loginIp);
+ return Msg.success();
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteIp")
+ @ResponseBody
+ public Msg deleteIp(@RequestParam("id") Integer id) {
+ loginIpService.deleteIpById(id);
+ return Msg.success();
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ */
+ @ResponseBody
+ @RequestMapping("/deleteIps")
+ public Msg deleteBatch(@RequestParam(value = "ids") String ids) {
+ String[] arrIds = ids.split(",");
+ // String数组转为Integer数组
+ int[] ints = new int[arrIds.length];
+ for (int i = 0; i < arrIds.length; i++) {
+ ints[i] = Integer.parseInt(arrIds[i]);
+ }
+ return loginIpService.deleteBatch(ints);
+ }
+
+ /**
+ * 检查授权IP是否存在
+ */
+ @ResponseBody
+ @RequestMapping("/checkIP")
+ public Msg checkIP(@RequestParam(value = "agreeIp") String agreeIp) {
+ return loginIpService.checkIP(agreeIp);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/LoginLogController.java b/src/main/java/lingtao/net/controller/LoginLogController.java
new file mode 100644
index 0000000..2c59ea3
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/LoginLogController.java
@@ -0,0 +1,45 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.LoginLog;
+import lingtao.net.service.LoginLogService;
+
+@Controller
+public class LoginLogController {
+
+ @Autowired
+ private LoginLogService loginLogService;
+
+ // 登录情况跳转页面
+ @RequestMapping("/loginLog/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/loginLog/loginLog.jsp");
+ }
+
+ /**
+ * 查询所有登录情况
+ */
+ @RequestMapping("/getLoginLogList")
+ @ResponseBody
+ private PageInfo IPList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, LoginLog loginLog) {
+ PageHelper.startPage(page, limit);
+ List list = loginLogService.getLoginLogList(loginLog);
+ PageInfo pageInfo = new PageInfo(list);
+ return pageInfo;
+ }
+
+}
diff --git a/src/main/java/lingtao/net/controller/ProductController.java b/src/main/java/lingtao/net/controller/ProductController.java
new file mode 100644
index 0000000..dc6611e
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/ProductController.java
@@ -0,0 +1,397 @@
+package lingtao.net.controller;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.Product;
+import lingtao.net.bean.SysDictSearchPro;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.ProductService;
+import lingtao.net.service.QuoteLogService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+public class ProductController {
+
+ @Autowired
+ private ProductService productService;
+
+ @Autowired
+ private QuoteLogService quoteLogService;
+
+ // 价格跳转页面
+ @RequestMapping("/product/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/product/product.jsp");
+ }
+
+ /**
+ * 查询所有价格
+ */
+ @RequestMapping("/getProductList")
+ @ResponseBody
+ private Msg IPList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Product product) {
+ PageHelper.startPage(page, limit);
+ List list = productService.getProductList(product);
+ PageInfo pageInfo = new PageInfo(list);
+ return Msg.success().add("list", pageInfo);
+ }
+
+ /**
+ * 修改价格
+ *
+ * @param customerData
+ */
+ @RequestMapping("/updatePriceById")
+ public Msg updatePriceById(@RequestParam(value = "proId") int proId, @RequestParam(value = "field") String field,
+ @RequestParam(value = "value") String value) {
+ return productService.updatePriceById(proId, field, value);
+ }
+
+ /**
+ * 计算价格
+ *
+ * @param product
+ * @return
+ */
+ @RequestMapping("/getThanSum")
+ public Msg thanPrice(Product product, HttpServletRequest request) {
+ SysUser user = (SysUser) request.getSession().getAttribute("USER_SESSION");
+ /*if (StringUtils.isEmpty(product.getWangwang().trim()) && user.getRole().contains("999")
+ && !user.getRole().contains("1049")) {
+ return Msg.fail("请填写客户旺旺!");
+ }*/
+ if ("帆布".equals(product.getProTypeValue())) {
+ if ("套餐".equals(product.getStickerKind())) {
+ product.setCount(1);
+ }
+ } else {
+ if (StringUtils.isEmpty(product.getCount()) || product.getCount() <= 0) {
+ return Msg.fail("数量必须大于0");
+ }
+ }
+ // 透明不干胶进去后kindValue 会为1,记录起来,查询日志
+ String toumingKind = "";
+ if ("0".equals(product.getProTypeValue()) && "2".equals(product.getKindValue())) {
+ toumingKind = product.getKindValue();
+ }
+ if ("18".equals(product.getProTypeValue()) && "4".equals(product.getKindValue())) {
+ product.setCount(Integer.valueOf(request.getParameter("count1")));
+ }
+ product.setRole(user.getRole());
+
+ if ("菜单".equals(product.getProTypeLabel())) {
+ product.setSize(product.getSize1().replace(",", ""));
+ String s = request.getParameter("kindValue5");
+ product.setKind1Value(s);
+ product.setSize(request.getParameter("ui_menu_size"));
+ } else if ("4".equals(product.getProTypeValue()) && "9".equals(product.getKind())) {
+ product.setSize(request.getParameter("ui_shk_size"));
+ }
+
+ if (user.getRole().indexOf("1010") > -1) {
+ if ("0".equals(product.getKindValue()) && "专版打印".equals(product.getStickerKind())) {
+ double len = Double.valueOf(product.getSize().substring(0, product.getSize().indexOf("*")));
+ double wid = Double.valueOf(product.getSize().substring(product.getSize().indexOf("*") + 1));
+ if ((len <= 5 && wid < 4) || (len < 4 && wid <= 5)) {
+ product.setSize("5*4");
+ }
+ }
+ } else {
+ if (product.getNumber() != null && product.getNumber() > 1) {
+ if ("专版打印".equals(product.getStickerKind()) || "少数量".equals(product.getCouponKind())) {
+ if (request.getParameter("desType") != null && !"".equals(request.getParameter("desType"))) {
+ product.setP(Integer.valueOf(request.getParameter("desType")));
+ }
+ }
+ }
+ }
+ List proList = productService.getThanPrice(product, user.getRole());
+
+ if (proList == null) {
+ return Msg.fail("暂无报价");
+ }
+ //银瑾单独报价
+ if (user.getRole().indexOf("1010") > -1) {
+ double otherPrice = 0;
+ /*if("5".equals(product.getKind())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 30);
+ }
+ }else if("帆布".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ otherPrice = Math.floor(list.getPrice() + 5);
+ list.setPrice(otherPrice > 40 ? otherPrice : 40);
+ if(product.getNumber() > 1) {
+ list.setPrice(Math.floor(list.getPrice() + 2 * (product.getNumber()-1)));
+ }
+ }
+ }else */
+ if ("22".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 50);
+ }
+ } else if ("桌布".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 30);
+ }
+ } else if ("13".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 80);
+ }
+ } else if ("亚克力".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 40);
+ }
+ } else if ("11".equals(product.getProTypeValue())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 50);
+ }
+ } else if ("0".equals(product.getProTypeValue())) {
+ if ("0".equals(product.getKindValue()) && "常用种类".equals(product.getStickerKind())) {
+ double len = Double.valueOf(product.getSize().substring(0, product.getSize().indexOf("*")));
+ ;
+ double wid = Double.valueOf(product.getSize().substring(product.getSize().indexOf("*") + 1));
+ if ((len <= 5 && wid < 4) || (len < 4 && wid <= 5)) {
+ double priceArr[] = {45, 50, 75, 90, 170, 260, 440, 620, 810, 1000};
+ double countArr[] = {500, 1000, 2000, 3000, 5000, 10000, 20000, 30000, 40000, 50000};
+ for (Product list : proList) {
+ for (int i = 0; i < countArr.length; i++) {
+ if (countArr[i] < list.getCount()) {
+ continue;
+ }
+ list.setPrice(priceArr[i]);
+ break;
+ }
+
+ }
+ }
+ } else if ("11".equals(product.getKindValue()) || "布纹纸超白".equals(product.getKindValue())) {
+ for (Product list : proList) {
+ list.setPrice(Math.floor(list.getPrice() * 1.5));
+ }
+ } else if ("拉丝金".equals(product.getKindValue()) || "拉丝银".equals(product.getKindValue())) {
+ for (Product list : proList) {
+ list.setPrice(Math.floor(list.getPrice() + 60));
+ }
+ }
+ } else if ("金属标".equals(product.getProTypeValue()) && "UV转印贴".equals(product.getKind())) {
+ for (Product list : proList) {
+ if (list.getCount() > 500) {
+ list.setPrice(Math.floor(list.getPrice() * 0.95));
+ } else {
+ list.setPrice(Math.floor(list.getPrice() * 0.9));
+ }
+ }
+ } else if ("服装吊牌".equals(product.getProTypeValue()) && "异形模切".equals(product.getCraftQie())) {
+ for (Product list : proList) {
+ list.setPrice(list.getPrice() + 50);
+ }
+ }
+ }
+
+ if ("0".equals(product.getProTypeValue())) {
+ if ("5".equals(product.getKindValue()) && proList == null) {
+ if (StringUtils.isEmpty(product.getAotu())) {
+ return Msg.fail("哑金不干胶该尺寸无法制作,最大做到 39*27 cm");
+ } /*else {
+ return Msg.fail("哑金不干胶带凹凸工艺该尺寸无法制作 (1*1CM至11*11CM;10*6至12*8CM;20*4以内)");
+ }*/
+ } else if ("易碎纸不干胶".equals(product.getKindValue()) && proList == null) {
+ return Msg.fail("易碎纸不干胶该尺寸无法制作,最大做到 42*38 cm");
+ } else if (("拉丝金".equals(product.getKindValue()) || "拉丝银".equals(product.getKindValue()))
+ && proList == null) {
+ return Msg.fail("拉丝金/银该尺寸无法制作,最大做到 42*38 cm");
+ } else if ("格底珠光膜".equals(product.getKindValue()) && proList == null) {
+ return Msg.fail("格底珠光膜该尺寸无法制作,最大做到 42*38 cm");
+ }
+ if (proList == null) {
+ if ("少数量".contentEquals(product.getStickerKind())) {
+ return Msg.fail("少数量最大做到 42*28.5 cm");
+ }
+ /*return Msg.fail("该工艺、该尺寸无法制作,请单独报价");*/
+ }
+ } else if ("20".equals(product.getProTypeValue())) {
+ if (proList == null && "0".equals(product.getKindValue())) {
+ return Msg.fail("双插盒该尺寸展开超过650*500MM,请另行报价");
+ } else if (proList == null && "1".equals(product.getKindValue())) {
+ return Msg.fail("飞机盒该尺寸展开超过900*600MM,请另行报价");
+ }
+ }
+
+ if (!StringUtils.isEmpty(toumingKind)) {
+ product.setKindValue(toumingKind);
+ }
+ // 插入操作日志
+ String log = quoteLogService.log(product, request, proList);
+ if ("登陆失效".equals(log)) {
+ return Msg.fail("登录信息失效~请刷新页面!");
+ }
+
+ // 把角色存入,前台判断,区分不同价格
+ for (Product p : proList) {
+// p.setPrice(Math.ceil(p.getPrice() * 1.3));
+ p.setRole(user.getRole());
+ }
+
+ if (product.getKindValue() != null) {//判断是否大店报不干胶价格
+ /*if(product.getKindValue().equals("0")) {
+ double width = 0, length = 0;
+ if(product.getWidth() != null) {
+ width = product.getWidth();
+ }
+ if(product.getLength() != null) {
+ length = product.getLength();
+ }
+ String role = user.getRole();
+ if(length < width) {
+ length = product.getWidth();
+ width = product.getLength();
+ }
+ if(width == 0 && length == 0) {
+ }else if((length <= 5 && width <= 4)) {
+ String tang = product.getCraftTang();
+ if(AStickersPrice.f_getRole(role) == 1 && tang == null) {
+ List price = new ArrayList();
+ if(length == 1 && width == 1) {
+ int priceArr[] = {30, 35, 50, 55, 65, 90, 135, 185, 235, 285};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 2 && width == 1) {
+ int priceArr[] = {35, 40, 55, 60, 70, 95, 140, 190, 240, 290};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 3 && width == 1) {
+ int priceArr[] = {35, 40, 55, 70, 80, 125, 205, 290, 370, 455};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 4 && width == 1) {
+ int priceArr[] = {35, 40, 55, 70, 80, 125, 205, 290, 370, 455};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 5 && width == 1) {
+ int priceArr[] = {35, 40, 55, 70, 80, 125, 205, 290, 370, 455};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 2 && width == 2) {
+ int priceArr[] = {35, 40, 55, 70, 80, 125, 205, 290, 370, 455};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 3 && width == 2) {
+ int priceArr[] = {35, 40, 55, 70, 80, 125, 205, 290, 370, 455};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 4 && width == 2) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 5 && width == 2) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 3 && width == 3) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 4 && width == 3) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 5 && width == 3) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 4 && width == 4) {
+ int priceArr[] = {35, 40, 55, 70, 110, 170, 290, 410, 535, 665};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }else if(length == 5 && width == 4) {
+ int priceArr[] = {35, 40, 55, 70, 150, 240, 420, 600, 790, 980};
+ price = f_getPrice( priceArr, product.getCount(), product.getCraftMo());
+ }
+
+ if (proList.size() >= 4) {
+ proList = proList.subList(0, 4);
+ }
+
+ for(int i = 0; i < price.size(); i ++){
+ if(product.getNumber() > 1) {
+ proList.get(i).setPrice(price.get(i).getPrice() * product.getNumber());
+ }else {
+ proList.get(i).setPrice(price.get(i).getPrice());
+ }
+ }
+ }
+ }
+ }elseif(user.getRole().indexOf("1033") > 0 && product.getProTypeValue().equals("17")) {
+ if(product.getKindValue().equals("6")) {
+ for (Product products : proList) {
+ products.setPrice(Math.floor(products.getPrice() * 0.88));
+ }
+ }
+ } */
+ }
+
+
+ return Msg.success().add("proList", proList);
+ }
+
+ /*public List f_getPrice( int priceArr[], int count, String craftMo) {
+ List list = new ArrayList();
+ Product p = new Product();
+ int countArr[] = { 500, 1000, 2000, 3000, 5000, 10000, 20000, 30000, 40000, 50000 };
+ for(int i = 0; i < countArr.length; i++) {
+ if(countArr[i] < count || list.size() > 3) {
+ continue;
+ }
+ p = new Product();
+ p.setCount(countArr[i]);
+ if(craftMo.equals("覆哑膜")) {
+ p.setPrice(Math.ceil(Double.valueOf(priceArr[i]) * 1.2));
+ }else {
+ p.setPrice(Double.valueOf(priceArr[i]));
+ }
+
+ list.add(p);
+ }
+
+ return list;
+ }*/
+
+ /**
+ * 根据产品种类获取材质
+ *
+ * @param proTypeValue
+ * @return
+ */
+ @RequestMapping(value = "/getKindsByPro")
+ public Map kindList(@RequestParam("proTypeValue") String proTypeValue) {
+ Map map = new HashMap();
+ List proList = productService.getKindsByPro(proTypeValue);
+ for (Product product : proList) {
+ map.put(product.getKindValue(), product.getKindLabel());
+ }
+ return map;
+ }
+
+ /**
+ * 根据用户搜索的产品名称获取产品
+ */
+ @RequestMapping(value = "/getSearchPro")
+ public List searchPro(@RequestParam("likeProTypeLabel") String likeProTypeLabel)
+ throws Exception {
+ List proList = productService.searchPro(likeProTypeLabel);
+ return proList;
+ }
+
+ /**
+ * 价格文件上传
+ */
+ @RequestMapping(value = "/priceUpload")
+ public Msg uploadExcel(@RequestParam("file") MultipartFile file) throws Exception {
+ System.out.println("进来了");
+ productService.ajaxUploadExcel(file);
+ return Msg.success();
+ }
+
+}
diff --git a/src/main/java/lingtao/net/controller/ProductImgController.java b/src/main/java/lingtao/net/controller/ProductImgController.java
new file mode 100644
index 0000000..a2a0755
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/ProductImgController.java
@@ -0,0 +1,214 @@
+package lingtao.net.controller;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.ProductImg;
+import lingtao.net.bean.SysDictProduct;
+import lingtao.net.service.ProductImgService;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.commons.lang.StringUtils;
+import org.apache.http.client.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.management.RuntimeErrorException;
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+public class ProductImgController {
+
+ private String localPrefix = "abc\\product";
+
+ private String localPath = "C:\\lingtao\\upload";
+
+ private String localDomain = "http://47.114.150.226:80/erp";
+
+ @Autowired
+ private ProductImgService productImgService;
+
+ /**
+ * 根据条件查询
+ */
+ @RequestMapping("/getImgList")
+ private Msg imgList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, ProductImg productImg) {
+ PageHelper.startPage(page, limit);
+ List list = productImgService.getProKindList(productImg);
+ PageInfo pageInfo = new PageInfo(list);
+ return Msg.success().add("list", pageInfo);
+ }
+
+ /**
+ * 获取所有产品
+ *
+ * @return
+ */
+ @RequestMapping("/productList")
+ public Msg productList() {
+ Map map = new HashMap();
+ List proList = productImgService.findAllPro();
+ for (SysDictProduct entity : proList) {
+ map.put(entity.getProTypeValue(), entity.getProTypeLabel());
+ }
+ return Msg.success().add("proMap", map);
+ }
+
+ /**
+ * 根据产品种类获取材质
+ *
+ * @param proTypeValue
+ * @return
+ */
+ /*
+ * @RequestMapping("/getKindsByPro") public Msg
+ * kindList(@RequestParam("proTypeValue") String proTypeValue) { Map map = new HashMap(); List kindList =
+ * productImgService.getKindsByPro(proTypeValue); if (kindList.size() > 0) { for
+ * (SysDictProduct entity : kindList) { map.put(entity.getKindValue(),
+ * entity.getKindLabel()); } } return Msg.success().add("proMap", map); }
+ */
+
+ /**
+ * 根据材质获取规格
+ *
+ * @param dto
+ * @return
+ */
+ @RequestMapping(value = "/getKind2sByKind")
+ public Map kind2List(@RequestParam("proTypeValue") String proTypeValue,
+ @RequestParam("kindValue") String kindValue) {
+ Map map = new HashMap();
+ List kind2List = productImgService.getKind2sByKind(proTypeValue, kindValue);
+ if (kind2List.size() > 0) {
+ for (SysDictProduct entity : kind2List) {
+ map.put(entity.getKind2Value(), entity.getKind2Label());
+ }
+ }
+ return map;
+ }
+
+ // 图片上传及新增
+ @RequestMapping("/productUpload")
+ public Msg upload(@RequestParam("file") MultipartFile file,
+ @RequestParam(value = "proTypeValue", required = false) String proTypeValue,
+ @RequestParam(value = "kindValue", required = false) String kindValue,
+ @RequestParam(value = "kind2Value", required = false) String kind2Value,
+ @RequestParam(value = "remark", required = false) String remark) throws Exception {
+ if (file.isEmpty()) {
+ return Msg.fail("文件不能为空");
+ }
+ // 获取文件名后缀
+ String extension = FilenameUtils.getExtension(file.getOriginalFilename());
+ // 获取path
+ String path = getPath(extension, FilenameUtils.getBaseName(file.getOriginalFilename()));
+ // 保存文件信息
+ File newFile = new File(localPath + File.separator + path);
+ try {
+ FileUtils.copyInputStreamToFile(new ByteArrayInputStream(file.getBytes()), newFile);
+ } catch (IOException e) {
+ throw new RuntimeErrorException(null, "");
+ }
+
+ System.out.println("kind2Value=" + "null".equals(kind2Value));
+ // 文件信息
+ ProductImg productImg = new ProductImg();
+ // productImg.setImgUrl(localPath + "/" + path);
+ productImg.setImgUrl(localDomain + "/" + path);
+
+ // 保存图片信息
+ productImg.setProTypeValue(proTypeValue);
+ if (StringUtils.isNotEmpty(kindValue)) {
+ productImg.setKindValue(kindValue);
+ }
+ if (StringUtils.isNotEmpty(kind2Value) && !"null".equals(kind2Value)) {
+ productImg.setKind2Value(kind2Value);
+ }
+ if (StringUtils.isNotEmpty(remark)) {
+ productImg.setRemark(remark);
+ }
+ // 根据value查询label
+ SysDictProduct label = productImgService.getLabel(productImg);
+ productImg.setProTypeLabel(label.getProTypeLabel());
+ productImg.setKindLabel(label.getKindLabel());
+ productImg.setKind2Label(label.getKind2Label());
+
+ // productImg.setImgUrl(productImg.getImgUrl());
+ productImgService.addImgUrl(productImg);
+
+ return Msg.success().add("imgList", productImg);
+ }
+
+ /**
+ * 修改备注说明
+ *
+ * @param id
+ * @param remark
+ * @return
+ */
+ @RequestMapping("/updateImgUploadRemark")
+ public Msg updateImgUploadRemark(@RequestParam("id") Long id, @RequestParam("remark") String remark) {
+ ProductImg img = new ProductImg();
+ img.setId(id);
+ img.setRemark(remark);
+ productImgService.updateImgUploadRemark(img);
+ return Msg.success();
+ }
+
+ /**
+ * @param prefixSelf 根据上传的接口存入自己的文件夹
+ * @param suffix 文件的后缀
+ * @param fileName 文件名
+ * @return
+ */
+ public String getPath(String suffix, String fileName) {
+
+ // 生成uuid
+ // String uuid = UUID.randomUUID().toString().replaceAll("-", "");
+ String path = null;
+
+ // 文件路径
+ path = DateUtils.formatDate(new Date(), "yyyyMMdd") + File.separator + fileName;
+
+ path = localPrefix + File.separator + File.separator + path;
+
+ return path + "." + suffix;
+ }
+
+ /**
+ * 根据条件获取产品图片
+ *
+ * @param dto
+ * @return
+ */
+ @RequestMapping("/getImgs")
+ public List imgList(@RequestParam("proTypeValue") String proTypeValue,
+ @RequestParam(value = "kindValue", required = false) String kindValue,
+ @RequestParam(value = "craftValue", required = false) String craftValue,
+ @RequestParam(value = "kind2Value", required = false) String kind2Value) {
+ List imgList = productImgService.getImgsByProKind(proTypeValue, kindValue, kind2Value, craftValue);
+ return imgList;
+ }
+
+ /**
+ * 获取视频地址
+ *
+ * @param dto
+ * @return
+ */
+ @RequestMapping("/getVideos")
+ public List videos() {
+ List videoUrls = productImgService.getVideos();
+ return videoUrls;
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/QuestionController.java b/src/main/java/lingtao/net/controller/QuestionController.java
new file mode 100644
index 0000000..d043f64
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/QuestionController.java
@@ -0,0 +1,122 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpSession;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Information;
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.Question;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.InformationService;
+import lingtao.net.service.QuestionService;
+import lingtao.net.service.SysUserService;
+
+@RestController
+public class QuestionController {
+
+ @Autowired
+ private QuestionService questionService;
+
+ @Autowired
+ private InformationService informationService;
+
+ @Autowired
+ private SysUserService sysUserService;
+
+ /**
+ * 问题列表
+ *
+ * @return
+ */
+ @RequestMapping("/questions")
+ public Msg questions(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, Question question) {
+ PageHelper.startPage(page, limit);
+ List questionList = questionService.questions(question);
+ PageInfo pageInfo = new PageInfo(questionList);
+ return Msg.success().add("list", pageInfo);
+ }
+
+ @RequestMapping("/getQuestions")
+ public Msg getQuestions(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit) {
+ PageHelper.startPage(page, limit);
+ // 单选题
+ List singleQuestionList = questionService.getSingleQuestions();
+ // 多选题
+ List multipleQuestionList = questionService.getMultipleQuestions();
+ // 填空题
+ List fillQuestionList = questionService.getFillQuestions();
+ // 简答题
+ List shortAnswerList = informationService.getShortAnswers();
+
+ PageInfo single = new PageInfo(singleQuestionList);
+ PageInfo multiple = new PageInfo(multipleQuestionList);
+ PageInfo fill = new PageInfo(fillQuestionList);
+ PageInfo shortAnswer = new PageInfo(shortAnswerList);
+ // 转成json返回JSONArray.fromObject(questionList)
+ return Msg.success().add("single", single).add("multiple", multiple).add("fill", fill).add("shortAnswer",
+ shortAnswer);
+ }
+
+ /**
+ * 添加问题
+ */
+ @RequestMapping("/addQuestion")
+ public Msg addQuestion(Question question, HttpSession session) {
+ questionService.addQuestion(question, session);
+ return Msg.success();
+ }
+
+ /**
+ * 修改问题
+ */
+ @RequestMapping("/updateQuestion")
+ public Msg updateQuestion(Question question, HttpSession session) {
+ questionService.updateQuestionById(question, session);
+ return Msg.success();
+ }
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/deleteQuestion")
+ public Msg deleteQuestion(@RequestParam("id") Integer id) {
+ questionService.deleteQuestionById(id);
+ return Msg.success();
+ }
+
+ /**
+ * 答对80%后,改变系统状态
+ *
+ * @return
+ */
+ @RequestMapping("/videoOverToChangeSysStatus")
+ public Msg videoOverToChangeSysStatus(HttpSession session) {
+ SysUser user = (SysUser) session.getAttribute("USER_SESSION");
+ return sysUserService.videoOverToChangeSysStatus(user.getUserId());
+ }
+ @RequestMapping("/examOverToChangeSysStatus")
+ public Msg examOverToChangeSysStatus(HttpSession session) {
+ SysUser user = (SysUser) session.getAttribute("USER_SESSION");
+ return sysUserService.examOverToChangeSysStatus(user.getUserId());
+ }
+ /*
+ * @RequestMapping("/changeSysStatus") public Msg changeSysStatus(HttpSession
+ * session, @RequestBody Map map) { System.out.println(map);
+ * Set> entrySet = map.entrySet(); for (Entry key : entrySet) { System.out.println(key); } SysUser user = (SysUser)
+ * session.getAttribute("USER_SESSION"); return
+ * sysUserService.changeSysStatus(user.getUserId()); }
+ */
+
+}
diff --git a/src/main/java/lingtao/net/controller/QuoteDataController.java b/src/main/java/lingtao/net/controller/QuoteDataController.java
new file mode 100644
index 0000000..914eddf
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/QuoteDataController.java
@@ -0,0 +1,165 @@
+package lingtao.net.controller;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.QuoteData;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.QuoteDataService;
+
+@RestController
+public class QuoteDataController {
+
+ @Autowired
+ private QuoteDataService quoteDataService;
+
+ /**
+ * 获取操作日志列表
+ *
+ * @param page
+ * @param limit
+ * @param quoteLog
+ * @return
+ */
+ @RequestMapping("/getQuoteData")
+ public PageInfo logList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, QuoteData quoteData) {
+ PageHelper.startPage(page, limit);
+ List logList = quoteDataService.quoteDatas(quoteData);
+ PageInfo pageInfo = new PageInfo(logList);
+ return pageInfo;
+ }
+
+ /**
+ * 修改数据
+ *
+ */
+ @RequestMapping("/updateById")
+ public Msg updateById(@RequestParam(value = "id") int id, @RequestParam(value = "field") String field,
+ @RequestParam(value = "value") String value, @RequestParam(value = "username") String username) {
+ return quoteDataService.updateById(id, field, value, username);
+ }
+
+ /**
+ * 获取报过的产品
+ *
+ */
+ @RequestMapping("/getProTypeLabel")
+ public List getProType() {
+ return quoteDataService.getProType();
+ }
+
+ /**
+ * 修改【是否当天成交】状态(自己修改)
+ *
+ * @param id
+ * @return
+ */
+ @RequestMapping("/changeIsBuyToDayStatus")
+ public Msg changeIsBuyToDay(@RequestParam(value = "id") Integer id,
+ @RequestParam(value = "username") String username) {
+ // 只有自己的数据才能更改【是否当天成交】状态
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ // 超管、组长身份也能更改【是否当天成交】状态
+ boolean flag = new CustomerDataControlle().isSuperOrManager();
+ if (!username.equals(user.getUsername()) && !flag) {
+ return Msg.fail("只允许修改自己的数据!");
+ }
+ return quoteDataService.changeIsBuyToDay(id);
+ }
+
+ /**
+ * 修改【是否成交】状态(店长修改)
+ *
+ * @param id
+ * @return
+ */
+ @RequestMapping("/changeIsBuyStatus")
+ public Msg changeIsBuy(@RequestParam(value = "id") Integer id) {
+ // 超管、组长身份才允许修改【成交状态】
+ boolean flag = new CustomerDataControlle().isSuperOrManager();
+ if (!flag) {
+ return Msg.fail();
+ }
+ return quoteDataService.changeIsBuy(id);
+ }
+
+ /**
+ * 修改所属店铺以及选择状态
+ *
+ * @param id
+ * @return
+ */
+ @RequestMapping("/updateShopname")
+ public Msg updateShopname(@RequestParam(value = "id") Integer id, @RequestParam(value = "shopname") String shopname,
+ @RequestParam(value = "username") String username) {
+ if (StringUtils.isEmpty(shopname)) {
+ return Msg.fail("请选择有效店铺!");
+ }
+ // 只有自己的数据才能更改【所属店铺】
+ SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();
+ if (!username.equals(user.getUsername())) {
+ return Msg.fail("只允许修改自己的数据!");
+ }
+ return quoteDataService.updateShopnameSelect(shopname, id);
+ }
+
+ @RequestMapping("/addOrderNumber")
+ public Msg addOrderNumber(@RequestParam(value = "id") Integer id,
+ @RequestParam(value = "orderNumber") String orderNumber) {
+ if (StringUtils.isEmpty(orderNumber)) {
+ return Msg.fail("请填写订单号");
+ }
+ if (orderNumber.length() < 10 || orderNumber.length() > 25) {
+ return Msg.fail("请填写正确的订单号");
+ }
+ return quoteDataService.addOrderNumber(id, orderNumber);
+ }
+
+ /**
+ * 柱状图
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/echartZhuSummary")
+ public Map echartZhuList(QuoteData quoteData) {
+ return quoteDataService.echartZhuList(quoteData, 0);
+ }
+
+ /**
+ * 客服大单统计图
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/echartKefuSummary")
+ public Map echartKefuList(QuoteData quoteData) {
+ return quoteDataService.echartZhuList(quoteData, 1);
+ }
+
+ /**
+ * 导出
+ *
+ * @param response
+ * @param request
+ * @param difference
+ * @throws Exception
+ */
+ @RequestMapping("/excel_quoteData")
+ public void excel(HttpServletResponse response, QuoteData quoteData) throws Exception {
+ quoteDataService.excel(response, quoteData);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/QuoteLogController.java b/src/main/java/lingtao/net/controller/QuoteLogController.java
new file mode 100644
index 0000000..e3f6b26
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/QuoteLogController.java
@@ -0,0 +1,39 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.QuoteLog;
+import lingtao.net.service.QuoteLogService;
+
+@RestController
+public class QuoteLogController {
+
+ @Autowired
+ private QuoteLogService quoteLogService;
+
+ /**
+ * 获取操作日志列表
+ *
+ * @param page
+ * @param limit
+ * @param quoteLog
+ * @return
+ */
+ @RequestMapping("/getQuoteLog")
+ public PageInfo logList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, QuoteLog quoteLog) {
+ PageHelper.startPage(page, limit);
+ List logList = quoteLogService.quoteLogs(quoteLog);
+ PageInfo pageInfo = new PageInfo(logList);
+ return pageInfo;
+ }
+
+}
diff --git a/src/main/java/lingtao/net/controller/SysDictSearchProController.java b/src/main/java/lingtao/net/controller/SysDictSearchProController.java
new file mode 100644
index 0000000..e2a293a
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/SysDictSearchProController.java
@@ -0,0 +1,67 @@
+package lingtao.net.controller;
+
+import java.util.List;
+
+import javax.servlet.http.HttpSession;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysDictSearchPro;
+import lingtao.net.service.SysDictSearchProService;
+
+@RestController
+public class SysDictSearchProController {
+
+ @Autowired
+ private SysDictSearchProService searchProService;
+
+ /**
+ * 查询关键字
+ *
+ * @param searchPro
+ * @return
+ */
+ @RequestMapping("/getKeyWordsList")
+ public PageInfo keyWordsList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, SysDictSearchPro searchPro) {
+ PageHelper.startPage(page, limit);
+ List keyWordsList = searchProService.keyWordsList(searchPro);
+ PageInfo pageInfo = new PageInfo(keyWordsList);
+ return pageInfo;
+ }
+
+ /**
+ * 添加关键字
+ */
+ @RequestMapping("/addSearchPro")
+ public Msg addSearchPro(SysDictSearchPro searchPro, HttpSession session) {
+ return searchProService.addSearchPro(searchPro, session);
+ }
+
+ /**
+ * 根据id修改关键字
+ *
+ */
+ @ResponseBody
+ @RequestMapping("/updateKeyWord")
+ public Msg updateKeyWordById(HttpSession session, @RequestParam(value = "id") int id,
+ @RequestParam(value = "value") String value, @RequestParam(value = "field") String field) throws Exception {
+ return searchProService.updateKeyWordById(session, id, value, field);
+ }
+
+ /**
+ * 改变用户状态
+ */
+ @RequestMapping("/changeKeyWordsStatus")
+ public Msg changeKeyWordStatus(@RequestParam(value = "id") Integer id) {
+ return searchProService.changeKeyWordStatus(id);
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/SysPermissionController.java b/src/main/java/lingtao/net/controller/SysPermissionController.java
new file mode 100644
index 0000000..e794b7a
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/SysPermissionController.java
@@ -0,0 +1,42 @@
+package lingtao.net.controller;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import lingtao.net.bean.SysPermission;
+import lingtao.net.service.SysPermissionService;
+
+@RequestMapping("/sysPermission")
+@Controller
+public class SysPermissionController {
+
+ @Autowired
+ private SysPermissionService sysPermissionService;
+
+ @RequestMapping("/index")
+ public String index() throws Exception {
+ return "system/permission/index";
+ }
+
+ @RequestMapping("/parentList")
+ @ResponseBody
+ public List parentList() {
+ return sysPermissionService.getParentPers();
+ }
+
+ @RequestMapping("/list")
+ @ResponseBody
+ public Map list() throws Exception {
+ Map map = new HashMap<>();
+ map.put("code", 0);
+ map.put("msg", null);
+ map.put("data", sysPermissionService.getAll());
+ return map;
+ }
+}
diff --git a/src/main/java/lingtao/net/controller/SysRoleController.java b/src/main/java/lingtao/net/controller/SysRoleController.java
new file mode 100644
index 0000000..fcf1754
--- /dev/null
+++ b/src/main/java/lingtao/net/controller/SysRoleController.java
@@ -0,0 +1,172 @@
+package lingtao.net.controller;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+
+import lingtao.net.bean.Msg;
+import lingtao.net.bean.SysRole;
+import lingtao.net.bean.SysUser;
+import lingtao.net.service.SysRoleService;
+
+/**
+ * 角色权限
+ */
+@Controller
+public class SysRoleController {
+
+ @Autowired
+ private SysRoleService sysRoleService;
+
+ // 用户跳转页面
+ @RequestMapping("/role/index")
+ public void index(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ response.sendRedirect(request.getContextPath() + "/views/system/role/role.jsp");
+ }
+
+ /**
+ * 根据条件查询角色
+ */
+ @RequestMapping("/getRoleList")
+ @ResponseBody
+ private Msg roleList(@RequestParam(value = "page", defaultValue = "1") Integer page,
+ @RequestParam(value = "limit", defaultValue = "10") Integer limit, SysRole role) {
+ PageHelper.startPage(page, limit);
+ List list = sysRoleService.getRoles(role);
+ // 查询所有的角色,不分页:用于查询
+ List allRoleList = sysRoleService.getRoles(role);
+ PageInfo pageInfo = new PageInfo(list);
+ return Msg.success().add("roleList", pageInfo).add("allRoleList", allRoleList);
+ }
+
+ /**
+ * 添加角色
+ */
+ @ResponseBody
+ @RequestMapping("/addRole")
+ public Msg addRole(SysRole role, HttpSession session) {
+ return sysRoleService.addRole(role, session);
+ }
+
+ /**
+ * 修改角色
+ */
+ @ResponseBody
+ @RequestMapping("/updateRole")
+ public Msg updateRoleById(SysRole role) {
+ return sysRoleService.updateRoleById(role);
+ }
+
+ /**
+ * 改变角色状态
+ */
+ @ResponseBody
+ @RequestMapping("/changeRoleStatus")
+ public Msg changeRoleStatus(@RequestParam(value = "roleId") String roleId) {
+ return sysRoleService.changeRoleStatus(roleId);
+ }
+
+ /**
+ * 根据角色id查询角色拥有的权限
+ *
+ * @param roleId
+ * @return List
+ */
+ @RequestMapping("/rolePers")
+ @ResponseBody
+ public List rolePers(Integer roleId) throws Exception {
+ return sysRoleService.getPerIdsByRoleId(roleId);
+ }
+
+ /**
+ * 根据角色id授权(先删除已有的权限,再插入新的权限集合)
+ */
+ @RequestMapping("/assignPers")
+ @ResponseBody
+ public Map assignPers(Integer roleId, String persIds) throws Exception {
+ Map map = new HashMap<>();
+ sysRoleService.deleteRolePermissions(roleId);
+ sysRoleService.addRolePermissions(roleId, persIds.split(","));
+ return map;
+ }
+
+ /**
+ * 角色名称字段转换
+ *
+ * @return
+ */
+ @RequestMapping("/changeRoleName")
+ @ResponseBody
+ public Map