From 468a1406df91cef8ddb784d48d3bc7ac36f37af2 Mon Sep 17 00:00:00 2001
From: caozhaoxin <987927464@qq.con>
Date: Wed, 12 May 2021 09:08:10 +0800
Subject: [PATCH] first commit
---
.classpath | 33 +
.gitignore | 1 +
.idea/$PRODUCT_WORKSPACE_FILE$ | 19 +
.idea/compiler.xml | 13 +
.idea/encodings.xml | 8 +
.idea/inspectionProfiles/Project_Default.xml | 6 +
.idea/misc.xml | 20 +
.idea/ssm74edv.iml | 2 +
.idea/vcs.xml | 6 +
.idea/workspace.xml | 282 +
.project | 46 +
.settings/.jsdtscope | 13 +
.settings/org.eclipse.core.resources.prefs | 5 +
.settings/org.eclipse.jdt.core.prefs | 9 +
.settings/org.eclipse.m2e.core.prefs | 4 +
.settings/org.eclipse.wst.common.component | 10 +
....eclipse.wst.common.project.facet.core.xml | 7 +
...rg.eclipse.wst.jsdt.ui.superType.container | 1 +
.../org.eclipse.wst.jsdt.ui.superType.name | 1 +
.settings/org.eclipse.wst.validation.prefs | 2 +
db/ssm74edv.sql | 352 +
pom.xml | 264 +
.../java/com/annotation/APPLoginUser.java | 15 +
src/main/java/com/annotation/IgnoreAuth.java | 13 +
src/main/java/com/annotation/LoginUser.java | 15 +
.../java/com/config/MyMetaObjectHandler.java | 28 +
.../com/controller/CangkuxinxiController.java | 208 +
.../controller/ChanpinchukuController.java | 208 +
.../ChanpinkucunguanliController.java | 208 +
.../com/controller/ChanpinrukuController.java | 208 +
.../java/com/controller/CommonController.java | 258 +
.../java/com/controller/ConfigController.java | 111 +
.../java/com/controller/FileController.java | 83 +
.../java/com/controller/UserController.java | 175 +
.../java/com/controller/YonghuController.java | 285 +
.../YuancailiaochukuController.java | 208 +
.../YuancailiaokucunguanliController.java | 208 +
.../controller/YuancailiaorukuController.java | 208 +
src/main/java/com/dao/CangkuxinxiDao.java | 33 +
src/main/java/com/dao/ChanpinchukuDao.java | 33 +
.../java/com/dao/ChanpinkucunguanliDao.java | 33 +
src/main/java/com/dao/ChanpinrukuDao.java | 33 +
src/main/java/com/dao/CommonDao.java | 26 +
src/main/java/com/dao/ConfigDao.java | 12 +
src/main/java/com/dao/TokenDao.java | 22 +
src/main/java/com/dao/UserDao.java | 22 +
src/main/java/com/dao/YonghuDao.java | 33 +
.../java/com/dao/YuancailiaochukuDao.java | 33 +
.../com/dao/YuancailiaokucunguanliDao.java | 33 +
src/main/java/com/dao/YuancailiaorukuDao.java | 33 +
.../java/com/entity/CangkuxinxiEntity.java | 200 +
.../java/com/entity/ChanpinchukuEntity.java | 202 +
.../com/entity/ChanpinkucunguanliEntity.java | 166 +
.../java/com/entity/ChanpinrukuEntity.java | 202 +
src/main/java/com/entity/ConfigEntity.java | 53 +
src/main/java/com/entity/EIException.java | 52 +
src/main/java/com/entity/TokenEntity.java | 132 +
src/main/java/com/entity/UserEntity.java | 77 +
src/main/java/com/entity/YonghuEntity.java | 200 +
.../com/entity/YuancailiaochukuEntity.java | 184 +
.../entity/YuancailiaokucunguanliEntity.java | 166 +
.../com/entity/YuancailiaorukuEntity.java | 184 +
.../com/entity/model/CangkuxinxiModel.java | 157 +
.../com/entity/model/ChanpinchukuModel.java | 159 +
.../entity/model/ChanpinkucunguanliModel.java | 115 +
.../com/entity/model/ChanpinrukuModel.java | 159 +
.../java/com/entity/model/YonghuModel.java | 157 +
.../entity/model/YuancailiaochukuModel.java | 137 +
.../model/YuancailiaokucunguanliModel.java | 115 +
.../entity/model/YuancailiaorukuModel.java | 137 +
.../java/com/entity/view/CangkuxinxiView.java | 36 +
.../com/entity/view/ChanpinchukuView.java | 36 +
.../entity/view/ChanpinkucunguanliView.java | 36 +
.../java/com/entity/view/ChanpinrukuView.java | 36 +
src/main/java/com/entity/view/YonghuView.java | 36 +
.../com/entity/view/YuancailiaochukuView.java | 36 +
.../view/YuancailiaokucunguanliView.java | 36 +
.../com/entity/view/YuancailiaorukuView.java | 36 +
.../java/com/entity/vo/CangkuxinxiVO.java | 157 +
.../java/com/entity/vo/ChanpinchukuVO.java | 159 +
.../com/entity/vo/ChanpinkucunguanliVO.java | 115 +
.../java/com/entity/vo/ChanpinrukuVO.java | 159 +
src/main/java/com/entity/vo/YonghuVO.java | 157 +
.../com/entity/vo/YuancailiaochukuVO.java | 137 +
.../entity/vo/YuancailiaokucunguanliVO.java | 115 +
.../java/com/entity/vo/YuancailiaorukuVO.java | 137 +
.../interceptor/AuthorizationInterceptor.java | 88 +
src/main/java/com/model/enums/TypeEnum.java | 31 +
.../java/com/service/CangkuxinxiService.java | 36 +
.../java/com/service/ChanpinchukuService.java | 36 +
.../service/ChanpinkucunguanliService.java | 36 +
.../java/com/service/ChanpinrukuService.java | 36 +
src/main/java/com/service/CommonService.java | 20 +
src/main/java/com/service/ConfigService.java | 16 +
src/main/java/com/service/TokenService.java | 26 +
src/main/java/com/service/UserService.java | 25 +
src/main/java/com/service/YonghuService.java | 36 +
.../com/service/YuancailiaochukuService.java | 36 +
.../YuancailiaokucunguanliService.java | 36 +
.../com/service/YuancailiaorukuService.java | 36 +
.../service/impl/CangkuxinxiServiceImpl.java | 62 +
.../service/impl/ChanpinchukuServiceImpl.java | 62 +
.../impl/ChanpinkucunguanliServiceImpl.java | 62 +
.../service/impl/ChanpinrukuServiceImpl.java | 62 +
.../com/service/impl/CommonServiceImpl.java | 59 +
.../com/service/impl/ConfigServiceImpl.java | 33 +
.../com/service/impl/TokenServiceImpl.java | 79 +
.../com/service/impl/UserServiceImpl.java | 49 +
.../com/service/impl/YonghuServiceImpl.java | 62 +
.../impl/YuancailiaochukuServiceImpl.java | 62 +
.../YuancailiaokucunguanliServiceImpl.java | 62 +
.../impl/YuancailiaorukuServiceImpl.java | 62 +
src/main/java/com/utils/BaiduUtil.java | 96 +
src/main/java/com/utils/CommonUtil.java | 22 +
src/main/java/com/utils/FileUtil.java | 27 +
src/main/java/com/utils/HttpClientUtils.java | 42 +
src/main/java/com/utils/JQPageInfo.java | 54 +
src/main/java/com/utils/MD5Util.java | 19 +
src/main/java/com/utils/MPUtil.java | 184 +
src/main/java/com/utils/PageUtils.java | 101 +
src/main/java/com/utils/Query.java | 98 +
src/main/java/com/utils/R.java | 51 +
src/main/java/com/utils/SQLFilter.java | 42 +
.../java/com/utils/SpringContextUtils.java | 43 +
src/main/java/com/utils/ValidatorUtils.java | 39 +
src/main/resources/config.properties | 10 +
src/main/resources/doc/sys_user.sql | 41 +
src/main/resources/log4j.properties | 19 +
src/main/resources/mapper/CangkuxinxiDao.xml | 42 +
src/main/resources/mapper/ChanpinchukuDao.xml | 42 +
.../mapper/ChanpinkucunguanliDao.xml | 40 +
src/main/resources/mapper/ChanpinrukuDao.xml | 42 +
src/main/resources/mapper/CommonDao.xml | 56 +
src/main/resources/mapper/ConfigDao.xml | 5 +
src/main/resources/mapper/TokenDao.xml | 13 +
src/main/resources/mapper/UserDao.xml | 13 +
src/main/resources/mapper/YonghuDao.xml | 42 +
.../resources/mapper/YuancailiaochukuDao.xml | 41 +
.../mapper/YuancailiaokucunguanliDao.xml | 40 +
.../resources/mapper/YuancailiaorukuDao.xml | 41 +
src/main/resources/mybatis/mybatis-config.xml | 38 +
src/main/resources/spring/spring-mvc.xml | 68 +
src/main/resources/spring/spring-mybatis.xml | 137 +
src/main/resources/spring/spring.xml | 14 +
src/main/webapp/WEB-INF/web.xml | 68 +
src/main/webapp/admin | 1 +
.../resources/bootstrap/css/bootstrap.css | 6760 +++++++++++++++++
.../resources/bootstrap/css/bootstrap.css.map | 1 +
.../resources/bootstrap/css/bootstrap.min.css | 6 +
.../bootstrap/css/bootstrap.min.css.map | 1 +
.../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20127 bytes
.../fonts/glyphicons-halflings-regular.svg | 288 +
.../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 45404 bytes
.../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23424 bytes
.../fonts/glyphicons-halflings-regular.woff2 | Bin 0 -> 18028 bytes
.../resources/bootstrap/js/bootstrap.js | 2363 ++++++
.../resources/bootstrap/js/bootstrap.min.js | 7 +
.../resources/jquery/jquery-2.2.3.min.js | 4 +
src/main/webapp/upload/test.txt | 0
159 files changed, 20538 insertions(+)
create mode 100644 .classpath
create mode 100644 .gitignore
create mode 100644 .idea/$PRODUCT_WORKSPACE_FILE$
create mode 100644 .idea/compiler.xml
create mode 100644 .idea/encodings.xml
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/ssm74edv.iml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 .project
create mode 100644 .settings/.jsdtscope
create mode 100644 .settings/org.eclipse.core.resources.prefs
create mode 100644 .settings/org.eclipse.jdt.core.prefs
create mode 100644 .settings/org.eclipse.m2e.core.prefs
create mode 100644 .settings/org.eclipse.wst.common.component
create mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml
create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container
create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name
create mode 100644 .settings/org.eclipse.wst.validation.prefs
create mode 100644 db/ssm74edv.sql
create mode 100644 pom.xml
create mode 100644 src/main/java/com/annotation/APPLoginUser.java
create mode 100644 src/main/java/com/annotation/IgnoreAuth.java
create mode 100644 src/main/java/com/annotation/LoginUser.java
create mode 100644 src/main/java/com/config/MyMetaObjectHandler.java
create mode 100644 src/main/java/com/controller/CangkuxinxiController.java
create mode 100644 src/main/java/com/controller/ChanpinchukuController.java
create mode 100644 src/main/java/com/controller/ChanpinkucunguanliController.java
create mode 100644 src/main/java/com/controller/ChanpinrukuController.java
create mode 100644 src/main/java/com/controller/CommonController.java
create mode 100644 src/main/java/com/controller/ConfigController.java
create mode 100644 src/main/java/com/controller/FileController.java
create mode 100644 src/main/java/com/controller/UserController.java
create mode 100644 src/main/java/com/controller/YonghuController.java
create mode 100644 src/main/java/com/controller/YuancailiaochukuController.java
create mode 100644 src/main/java/com/controller/YuancailiaokucunguanliController.java
create mode 100644 src/main/java/com/controller/YuancailiaorukuController.java
create mode 100644 src/main/java/com/dao/CangkuxinxiDao.java
create mode 100644 src/main/java/com/dao/ChanpinchukuDao.java
create mode 100644 src/main/java/com/dao/ChanpinkucunguanliDao.java
create mode 100644 src/main/java/com/dao/ChanpinrukuDao.java
create mode 100644 src/main/java/com/dao/CommonDao.java
create mode 100644 src/main/java/com/dao/ConfigDao.java
create mode 100644 src/main/java/com/dao/TokenDao.java
create mode 100644 src/main/java/com/dao/UserDao.java
create mode 100644 src/main/java/com/dao/YonghuDao.java
create mode 100644 src/main/java/com/dao/YuancailiaochukuDao.java
create mode 100644 src/main/java/com/dao/YuancailiaokucunguanliDao.java
create mode 100644 src/main/java/com/dao/YuancailiaorukuDao.java
create mode 100644 src/main/java/com/entity/CangkuxinxiEntity.java
create mode 100644 src/main/java/com/entity/ChanpinchukuEntity.java
create mode 100644 src/main/java/com/entity/ChanpinkucunguanliEntity.java
create mode 100644 src/main/java/com/entity/ChanpinrukuEntity.java
create mode 100644 src/main/java/com/entity/ConfigEntity.java
create mode 100644 src/main/java/com/entity/EIException.java
create mode 100644 src/main/java/com/entity/TokenEntity.java
create mode 100644 src/main/java/com/entity/UserEntity.java
create mode 100644 src/main/java/com/entity/YonghuEntity.java
create mode 100644 src/main/java/com/entity/YuancailiaochukuEntity.java
create mode 100644 src/main/java/com/entity/YuancailiaokucunguanliEntity.java
create mode 100644 src/main/java/com/entity/YuancailiaorukuEntity.java
create mode 100644 src/main/java/com/entity/model/CangkuxinxiModel.java
create mode 100644 src/main/java/com/entity/model/ChanpinchukuModel.java
create mode 100644 src/main/java/com/entity/model/ChanpinkucunguanliModel.java
create mode 100644 src/main/java/com/entity/model/ChanpinrukuModel.java
create mode 100644 src/main/java/com/entity/model/YonghuModel.java
create mode 100644 src/main/java/com/entity/model/YuancailiaochukuModel.java
create mode 100644 src/main/java/com/entity/model/YuancailiaokucunguanliModel.java
create mode 100644 src/main/java/com/entity/model/YuancailiaorukuModel.java
create mode 100644 src/main/java/com/entity/view/CangkuxinxiView.java
create mode 100644 src/main/java/com/entity/view/ChanpinchukuView.java
create mode 100644 src/main/java/com/entity/view/ChanpinkucunguanliView.java
create mode 100644 src/main/java/com/entity/view/ChanpinrukuView.java
create mode 100644 src/main/java/com/entity/view/YonghuView.java
create mode 100644 src/main/java/com/entity/view/YuancailiaochukuView.java
create mode 100644 src/main/java/com/entity/view/YuancailiaokucunguanliView.java
create mode 100644 src/main/java/com/entity/view/YuancailiaorukuView.java
create mode 100644 src/main/java/com/entity/vo/CangkuxinxiVO.java
create mode 100644 src/main/java/com/entity/vo/ChanpinchukuVO.java
create mode 100644 src/main/java/com/entity/vo/ChanpinkucunguanliVO.java
create mode 100644 src/main/java/com/entity/vo/ChanpinrukuVO.java
create mode 100644 src/main/java/com/entity/vo/YonghuVO.java
create mode 100644 src/main/java/com/entity/vo/YuancailiaochukuVO.java
create mode 100644 src/main/java/com/entity/vo/YuancailiaokucunguanliVO.java
create mode 100644 src/main/java/com/entity/vo/YuancailiaorukuVO.java
create mode 100644 src/main/java/com/interceptor/AuthorizationInterceptor.java
create mode 100644 src/main/java/com/model/enums/TypeEnum.java
create mode 100644 src/main/java/com/service/CangkuxinxiService.java
create mode 100644 src/main/java/com/service/ChanpinchukuService.java
create mode 100644 src/main/java/com/service/ChanpinkucunguanliService.java
create mode 100644 src/main/java/com/service/ChanpinrukuService.java
create mode 100644 src/main/java/com/service/CommonService.java
create mode 100644 src/main/java/com/service/ConfigService.java
create mode 100644 src/main/java/com/service/TokenService.java
create mode 100644 src/main/java/com/service/UserService.java
create mode 100644 src/main/java/com/service/YonghuService.java
create mode 100644 src/main/java/com/service/YuancailiaochukuService.java
create mode 100644 src/main/java/com/service/YuancailiaokucunguanliService.java
create mode 100644 src/main/java/com/service/YuancailiaorukuService.java
create mode 100644 src/main/java/com/service/impl/CangkuxinxiServiceImpl.java
create mode 100644 src/main/java/com/service/impl/ChanpinchukuServiceImpl.java
create mode 100644 src/main/java/com/service/impl/ChanpinkucunguanliServiceImpl.java
create mode 100644 src/main/java/com/service/impl/ChanpinrukuServiceImpl.java
create mode 100644 src/main/java/com/service/impl/CommonServiceImpl.java
create mode 100644 src/main/java/com/service/impl/ConfigServiceImpl.java
create mode 100644 src/main/java/com/service/impl/TokenServiceImpl.java
create mode 100644 src/main/java/com/service/impl/UserServiceImpl.java
create mode 100644 src/main/java/com/service/impl/YonghuServiceImpl.java
create mode 100644 src/main/java/com/service/impl/YuancailiaochukuServiceImpl.java
create mode 100644 src/main/java/com/service/impl/YuancailiaokucunguanliServiceImpl.java
create mode 100644 src/main/java/com/service/impl/YuancailiaorukuServiceImpl.java
create mode 100644 src/main/java/com/utils/BaiduUtil.java
create mode 100644 src/main/java/com/utils/CommonUtil.java
create mode 100644 src/main/java/com/utils/FileUtil.java
create mode 100644 src/main/java/com/utils/HttpClientUtils.java
create mode 100644 src/main/java/com/utils/JQPageInfo.java
create mode 100644 src/main/java/com/utils/MD5Util.java
create mode 100644 src/main/java/com/utils/MPUtil.java
create mode 100644 src/main/java/com/utils/PageUtils.java
create mode 100644 src/main/java/com/utils/Query.java
create mode 100644 src/main/java/com/utils/R.java
create mode 100644 src/main/java/com/utils/SQLFilter.java
create mode 100644 src/main/java/com/utils/SpringContextUtils.java
create mode 100644 src/main/java/com/utils/ValidatorUtils.java
create mode 100644 src/main/resources/config.properties
create mode 100644 src/main/resources/doc/sys_user.sql
create mode 100644 src/main/resources/log4j.properties
create mode 100644 src/main/resources/mapper/CangkuxinxiDao.xml
create mode 100644 src/main/resources/mapper/ChanpinchukuDao.xml
create mode 100644 src/main/resources/mapper/ChanpinkucunguanliDao.xml
create mode 100644 src/main/resources/mapper/ChanpinrukuDao.xml
create mode 100644 src/main/resources/mapper/CommonDao.xml
create mode 100644 src/main/resources/mapper/ConfigDao.xml
create mode 100644 src/main/resources/mapper/TokenDao.xml
create mode 100644 src/main/resources/mapper/UserDao.xml
create mode 100644 src/main/resources/mapper/YonghuDao.xml
create mode 100644 src/main/resources/mapper/YuancailiaochukuDao.xml
create mode 100644 src/main/resources/mapper/YuancailiaokucunguanliDao.xml
create mode 100644 src/main/resources/mapper/YuancailiaorukuDao.xml
create mode 100644 src/main/resources/mybatis/mybatis-config.xml
create mode 100644 src/main/resources/spring/spring-mvc.xml
create mode 100644 src/main/resources/spring/spring-mybatis.xml
create mode 100644 src/main/resources/spring/spring.xml
create mode 100644 src/main/webapp/WEB-INF/web.xml
create mode 160000 src/main/webapp/admin
create mode 100644 src/main/webapp/resources/bootstrap/css/bootstrap.css
create mode 100644 src/main/webapp/resources/bootstrap/css/bootstrap.css.map
create mode 100644 src/main/webapp/resources/bootstrap/css/bootstrap.min.css
create mode 100644 src/main/webapp/resources/bootstrap/css/bootstrap.min.css.map
create mode 100644 src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.eot
create mode 100644 src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.svg
create mode 100644 src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.ttf
create mode 100644 src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff
create mode 100644 src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff2
create mode 100644 src/main/webapp/resources/bootstrap/js/bootstrap.js
create mode 100644 src/main/webapp/resources/bootstrap/js/bootstrap.min.js
create mode 100644 src/main/webapp/resources/jquery/jquery-2.2.3.min.js
create mode 100644 src/main/webapp/upload/test.txt
diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..43b5a89
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/.idea/$PRODUCT_WORKSPACE_FILE$ b/.idea/$PRODUCT_WORKSPACE_FILE$
new file mode 100644
index 0000000..3733e0d
--- /dev/null
+++ b/.idea/$PRODUCT_WORKSPACE_FILE$
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..26648d9
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..af673e7
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..03d9549
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..1035788
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/ssm74edv.iml b/.idea/ssm74edv.iml
new file mode 100644
index 0000000..78b2cc5
--- /dev/null
+++ b/.idea/ssm74edv.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..2ada99b
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..a30e9f2
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,282 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1620285936228
+
+
+ 1620285936228
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.project b/.project
new file mode 100644
index 0000000..93acd5e
--- /dev/null
+++ b/.project
@@ -0,0 +1,46 @@
+
+
+ spring
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+ org.springframework.ide.eclipse.core.springbuilder
+
+
+
+
+ org.springframework.ide.eclipse.boot.validation.springbootbuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.springframework.ide.eclipse.core.springnature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+
+
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
new file mode 100644
index 0000000..f179e11
--- /dev/null
+++ b/.settings/.jsdtscope
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..839d647
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/main/resources=UTF-8
+encoding//src/test/java=UTF-8
+encoding/=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..8db228c
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..f98907b
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..c6144e8
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 0000000..3bd5d0a
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 0000000..05bd71b
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000..04cad8c
--- /dev/null
+++ b/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1
diff --git a/db/ssm74edv.sql b/db/ssm74edv.sql
new file mode 100644
index 0000000..3c562ac
--- /dev/null
+++ b/db/ssm74edv.sql
@@ -0,0 +1,352 @@
+-- MySQL dump 10.13 Distrib 5.7.31, for Linux (x86_64)
+--
+-- Host: localhost Database: ssm74edv
+-- ------------------------------------------------------
+-- Server version 5.7.31
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `cangkuxinxi`
+--
+
+DROP TABLE IF EXISTS `cangkuxinxi`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `cangkuxinxi` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `cangkubianhao` varchar(200) DEFAULT NULL COMMENT '仓库编号',
+ `cangkumingcheng` varchar(200) DEFAULT NULL COMMENT '仓库名称',
+ `cangkuweizhi` varchar(200) DEFAULT NULL COMMENT '仓库位置',
+ `fuzeren` varchar(200) DEFAULT NULL COMMENT '负责人',
+ `weizhi` varchar(200) DEFAULT NULL COMMENT '位置',
+ `beizhu` longtext COMMENT '备注',
+ `cangkuzhaopian` varchar(200) DEFAULT NULL COMMENT '仓库照片',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='仓库信息';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `cangkuxinxi`
+--
+
+LOCK TABLES `cangkuxinxi` WRITE;
+/*!40000 ALTER TABLE `cangkuxinxi` DISABLE KEYS */;
+INSERT INTO `cangkuxinxi` VALUES (61,'2021-05-04 09:08:49','仓库编号1','仓库名称1','仓库位置1','负责人1','位置1','备注1','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian1.jpg'),(62,'2021-05-04 09:08:49','仓库编号2','仓库名称2','仓库位置2','负责人2','位置2','备注2','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian2.jpg'),(63,'2021-05-04 09:08:49','仓库编号3','仓库名称3','仓库位置3','负责人3','位置3','备注3','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian3.jpg'),(64,'2021-05-04 09:08:49','仓库编号4','仓库名称4','仓库位置4','负责人4','位置4','备注4','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian4.jpg'),(65,'2021-05-04 09:08:49','仓库编号5','仓库名称5','仓库位置5','负责人5','位置5','备注5','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian5.jpg'),(66,'2021-05-04 09:08:49','仓库编号6','仓库名称6','仓库位置6','负责人6','位置6','备注6','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian6.jpg');
+/*!40000 ALTER TABLE `cangkuxinxi` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `chanpinchuku`
+--
+
+DROP TABLE IF EXISTS `chanpinchuku`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `chanpinchuku` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `chanpinchukubianhao` varchar(200) DEFAULT NULL COMMENT '产品出库编号',
+ `chanpinmingcheng` varchar(200) DEFAULT NULL COMMENT '产品名称',
+ `chanpinpinpai` varchar(200) DEFAULT NULL COMMENT '产品品牌',
+ `chanpinchukujiage` varchar(200) DEFAULT NULL COMMENT '产品出库价格',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `chanpinchukushijian` datetime DEFAULT NULL COMMENT '产品出库时间',
+ `beizhu` longtext COMMENT '备注',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COMMENT='产品出库';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `chanpinchuku`
+--
+
+LOCK TABLES `chanpinchuku` WRITE;
+/*!40000 ALTER TABLE `chanpinchuku` DISABLE KEYS */;
+INSERT INTO `chanpinchuku` VALUES (51,'2021-05-04 09:08:49','产品出库编号1','产品名称1','产品品牌1','产品出库价格1',1,'2021-05-04 17:08:49','备注1'),(52,'2021-05-04 09:08:49','产品出库编号2','产品名称2','产品品牌2','产品出库价格2',2,'2021-05-04 17:08:49','备注2'),(53,'2021-05-04 09:08:49','产品出库编号3','产品名称3','产品品牌3','产品出库价格3',3,'2021-05-04 17:08:49','备注3'),(54,'2021-05-04 09:08:49','产品出库编号4','产品名称4','产品品牌4','产品出库价格4',4,'2021-05-04 17:08:49','备注4'),(55,'2021-05-04 09:08:49','产品出库编号5','产品名称5','产品品牌5','产品出库价格5',5,'2021-05-04 17:08:49','备注5'),(56,'2021-05-04 09:08:49','产品出库编号6','产品名称6','产品品牌6','产品出库价格6',6,'2021-05-04 17:08:49','备注6');
+/*!40000 ALTER TABLE `chanpinchuku` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `chanpinkucunguanli`
+--
+
+DROP TABLE IF EXISTS `chanpinkucunguanli`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `chanpinkucunguanli` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `chanpinbianhao` varchar(200) DEFAULT NULL COMMENT '产品编号',
+ `pinpai` varchar(200) DEFAULT NULL COMMENT '品牌',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `beizhu` longtext COMMENT '备注',
+ `gengxinshijian` datetime DEFAULT NULL COMMENT '更新时间',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8 COMMENT='产品库存管理';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `chanpinkucunguanli`
+--
+
+LOCK TABLES `chanpinkucunguanli` WRITE;
+/*!40000 ALTER TABLE `chanpinkucunguanli` DISABLE KEYS */;
+INSERT INTO `chanpinkucunguanli` VALUES (81,'2021-05-04 09:08:49','产品编号1','品牌1',11,'备注1','2021-05-04 17:08:49'),(82,'2021-05-04 09:08:49','产品编号2','品牌2',2,'备注2','2021-05-04 17:08:49'),(83,'2021-05-04 09:08:49','产品编号3','品牌3',3,'备注3','2021-05-04 17:08:49'),(84,'2021-05-04 09:08:49','产品编号4','品牌4',4,'备注4','2021-05-04 17:08:49'),(85,'2021-05-04 09:08:49','产品编号5','品牌5',5,'备注5','2021-05-04 17:08:49'),(86,'2021-05-04 09:08:49','产品编号6','品牌6',6,'备注6','2021-05-04 17:08:49');
+/*!40000 ALTER TABLE `chanpinkucunguanli` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `chanpinruku`
+--
+
+DROP TABLE IF EXISTS `chanpinruku`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `chanpinruku` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `chanpinrukubianhao` varchar(200) DEFAULT NULL COMMENT '产品入库编号',
+ `chanpinmingcheng` varchar(200) DEFAULT NULL COMMENT '产品名称',
+ `chanpinpinpai` varchar(200) DEFAULT NULL COMMENT '产品品牌',
+ `chanpinrukujiage` varchar(200) DEFAULT NULL COMMENT '产品入库价格',
+ `chanpinrukushijian` datetime DEFAULT NULL COMMENT '产品入库时间',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=1620119596733 DEFAULT CHARSET=utf8 COMMENT='产品入库';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `chanpinruku`
+--
+
+LOCK TABLES `chanpinruku` WRITE;
+/*!40000 ALTER TABLE `chanpinruku` DISABLE KEYS */;
+INSERT INTO `chanpinruku` VALUES (41,'2021-05-04 09:08:49','产品入库编号1','产品名称1','产品品牌1','产品入库价格1','2021-05-04 17:08:49',1,'备注1'),(42,'2021-05-04 09:08:49','产品入库编号2','产品名称2','产品品牌2','产品入库价格2','2021-05-04 17:08:49',2,'备注2'),(43,'2021-05-04 09:08:49','产品入库编号3','产品名称3','产品品牌3','产品入库价格3','2021-05-04 17:08:49',3,'备注3'),(44,'2021-05-04 09:08:49','产品入库编号4','产品名称4','产品品牌4','产品入库价格4','2021-05-04 17:08:49',4,'备注4'),(45,'2021-05-04 09:08:49','产品入库编号5','产品名称5','产品品牌5','产品入库价格5','2021-05-04 17:08:49',5,'备注5'),(46,'2021-05-04 09:08:49','产品入库编号6','产品名称6','产品品牌6','产品入库价格6','2021-05-04 17:08:49',6,'备注6'),(1620119596732,'2021-05-04 09:13:15','1','1','1','1','2021-05-04 17:13:10',10,'备注1');
+/*!40000 ALTER TABLE `chanpinruku` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `config`
+--
+
+DROP TABLE IF EXISTS `config`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `config` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `name` varchar(100) NOT NULL COMMENT '配置参数名称',
+ `value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `config`
+--
+
+LOCK TABLES `config` WRITE;
+/*!40000 ALTER TABLE `config` DISABLE KEYS */;
+INSERT INTO `config` VALUES (1,'picture1','http://localhost:8080/ssm74edv/upload/picture1.jpg'),(2,'picture2','http://localhost:8080/ssm74edv/upload/picture2.jpg'),(3,'picture3','http://localhost:8080/ssm74edv/upload/picture3.jpg'),(6,'homepage',NULL);
+/*!40000 ALTER TABLE `config` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `token`
+--
+
+DROP TABLE IF EXISTS `token`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `token` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `userid` bigint(20) NOT NULL COMMENT '用户id',
+ `username` varchar(100) NOT NULL COMMENT '用户名',
+ `tablename` varchar(100) DEFAULT NULL COMMENT '表名',
+ `role` varchar(100) DEFAULT NULL COMMENT '角色',
+ `token` varchar(200) NOT NULL COMMENT '密码',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
+ `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='token表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `token`
+--
+
+LOCK TABLES `token` WRITE;
+/*!40000 ALTER TABLE `token` DISABLE KEYS */;
+INSERT INTO `token` VALUES (1,1,'abo','users','管理员','z3cv0ow6nuu4xl1k2ff7niqxkjmsr6oc','2021-05-04 09:11:21','2021-05-04 10:12:33');
+/*!40000 ALTER TABLE `token` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `users`
+--
+
+DROP TABLE IF EXISTS `users`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `users` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `username` varchar(100) NOT NULL COMMENT '用户名',
+ `password` varchar(100) NOT NULL COMMENT '密码',
+ `role` varchar(100) DEFAULT '管理员' COMMENT '角色',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `users`
+--
+
+LOCK TABLES `users` WRITE;
+/*!40000 ALTER TABLE `users` DISABLE KEYS */;
+INSERT INTO `users` VALUES (1,'abo','abo','管理员','2021-05-04 09:08:49');
+/*!40000 ALTER TABLE `users` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `yonghu`
+--
+
+DROP TABLE IF EXISTS `yonghu`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `yonghu` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `zhanghao` varchar(200) NOT NULL COMMENT '账号',
+ `mima` varchar(200) NOT NULL COMMENT '密码',
+ `xingming` varchar(200) NOT NULL COMMENT '姓名',
+ `xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
+ `shouji` varchar(200) DEFAULT NULL COMMENT '手机',
+ `youxiang` varchar(200) DEFAULT NULL COMMENT '邮箱',
+ `zhaopian` varchar(200) DEFAULT NULL COMMENT '照片',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `zhanghao` (`zhanghao`)
+) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='用户';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `yonghu`
+--
+
+LOCK TABLES `yonghu` WRITE;
+/*!40000 ALTER TABLE `yonghu` DISABLE KEYS */;
+INSERT INTO `yonghu` VALUES (11,'2021-05-04 09:08:49','用户1','123456','姓名1','男','13823888881','773890001@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian1.jpg'),(12,'2021-05-04 09:08:49','用户2','123456','姓名2','男','13823888882','773890002@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian2.jpg'),(13,'2021-05-04 09:08:49','用户3','123456','姓名3','男','13823888883','773890003@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian3.jpg'),(14,'2021-05-04 09:08:49','用户4','123456','姓名4','男','13823888884','773890004@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian4.jpg'),(15,'2021-05-04 09:08:49','用户5','123456','姓名5','男','13823888885','773890005@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian5.jpg'),(16,'2021-05-04 09:08:49','用户6','123456','姓名6','男','13823888886','773890006@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian6.jpg');
+/*!40000 ALTER TABLE `yonghu` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `yuancailiaochuku`
+--
+
+DROP TABLE IF EXISTS `yuancailiaochuku`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `yuancailiaochuku` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `chukubianhao` varchar(200) DEFAULT NULL COMMENT '出库编号',
+ `chukupinpai` varchar(200) DEFAULT NULL COMMENT '出库品牌',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `chukujiage` varchar(200) DEFAULT NULL COMMENT '出库价格',
+ `chukushijian` datetime DEFAULT NULL COMMENT '出库时间',
+ `beizhu` longtext COMMENT '备注',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='原材料出库';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `yuancailiaochuku`
+--
+
+LOCK TABLES `yuancailiaochuku` WRITE;
+/*!40000 ALTER TABLE `yuancailiaochuku` DISABLE KEYS */;
+INSERT INTO `yuancailiaochuku` VALUES (31,'2021-05-04 09:08:49','出库编号1','出库品牌1',1,'出库价格1','2021-05-04 17:08:49','备注1'),(32,'2021-05-04 09:08:49','出库编号2','出库品牌2',2,'出库价格2','2021-05-04 17:08:49','备注2'),(33,'2021-05-04 09:08:49','出库编号3','出库品牌3',3,'出库价格3','2021-05-04 17:08:49','备注3'),(34,'2021-05-04 09:08:49','出库编号4','出库品牌4',4,'出库价格4','2021-05-04 17:08:49','备注4'),(35,'2021-05-04 09:08:49','出库编号5','出库品牌5',5,'出库价格5','2021-05-04 17:08:49','备注5'),(36,'2021-05-04 09:08:49','出库编号6','出库品牌6',6,'出库价格6','2021-05-04 17:08:49','备注6');
+/*!40000 ALTER TABLE `yuancailiaochuku` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `yuancailiaokucunguanli`
+--
+
+DROP TABLE IF EXISTS `yuancailiaokucunguanli`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `yuancailiaokucunguanli` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `cailiaobianhao` varchar(200) DEFAULT NULL COMMENT '材料编号',
+ `chucuncangkuming` varchar(200) DEFAULT NULL COMMENT '储存仓库名',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `gengxinshijian` datetime DEFAULT NULL COMMENT '更新时间',
+ `beizhu` longtext COMMENT '备注',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8 COMMENT='原材料库存管理';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `yuancailiaokucunguanli`
+--
+
+LOCK TABLES `yuancailiaokucunguanli` WRITE;
+/*!40000 ALTER TABLE `yuancailiaokucunguanli` DISABLE KEYS */;
+INSERT INTO `yuancailiaokucunguanli` VALUES (71,'2021-05-04 09:08:49','材料编号1','储存仓库名1',1,'2021-05-04 17:08:49','备注1'),(72,'2021-05-04 09:08:49','材料编号2','储存仓库名2',2,'2021-05-04 17:08:49','备注2'),(73,'2021-05-04 09:08:49','材料编号3','储存仓库名3',3,'2021-05-04 17:08:49','备注3'),(74,'2021-05-04 09:08:49','材料编号4','储存仓库名4',4,'2021-05-04 17:08:49','备注4'),(75,'2021-05-04 09:08:49','材料编号5','储存仓库名5',5,'2021-05-04 17:08:49','备注5'),(76,'2021-05-04 09:08:49','材料编号6','储存仓库名6',6,'2021-05-04 17:08:49','备注6');
+/*!40000 ALTER TABLE `yuancailiaokucunguanli` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `yuancailiaoruku`
+--
+
+DROP TABLE IF EXISTS `yuancailiaoruku`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `yuancailiaoruku` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
+ `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `rukubianhao` varchar(200) DEFAULT NULL COMMENT '入库编号',
+ `rukupinpai` varchar(200) DEFAULT NULL COMMENT '入库品牌',
+ `kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
+ `rukujiage` varchar(200) DEFAULT NULL COMMENT '入库价格',
+ `rukushijian` datetime DEFAULT NULL COMMENT '入库时间',
+ `beizhu` longtext COMMENT '备注',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='原材料入库';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `yuancailiaoruku`
+--
+
+LOCK TABLES `yuancailiaoruku` WRITE;
+/*!40000 ALTER TABLE `yuancailiaoruku` DISABLE KEYS */;
+INSERT INTO `yuancailiaoruku` VALUES (21,'2021-05-04 09:08:49','入库编号1','入库品牌1',1,'入库价格1','2021-05-04 17:08:49','备注1'),(22,'2021-05-04 09:08:49','入库编号2','入库品牌2',2,'入库价格2','2021-05-04 17:08:49','备注2'),(23,'2021-05-04 09:08:49','入库编号3','入库品牌3',3,'入库价格3','2021-05-04 17:08:49','备注3'),(24,'2021-05-04 09:08:49','入库编号4','入库品牌4',4,'入库价格4','2021-05-04 17:08:49','备注4'),(25,'2021-05-04 09:08:49','入库编号5','入库品牌5',5,'入库价格5','2021-05-04 17:08:49','备注5'),(26,'2021-05-04 09:08:49','入库编号6','入库品牌6',6,'入库价格6','2021-05-04 17:08:49','备注6');
+/*!40000 ALTER TABLE `yuancailiaoruku` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2021-05-05 14:51:48
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6a85839
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,264 @@
+
+ 4.0.0
+ com.jlwl
+ ssm74edv
+ war
+ 1.0-SNAPSHOT
+
+
+ UTF-8
+ 5.0.0.RELEASE
+ 4.12
+ 1.1.0
+ 1.2.8
+ 2.3
+ 5.1.38
+ 1.2.17
+ 1.7.19
+ 1.8.8
+ 1.3.1
+ 1.2
+
+
+
+
+
+ junit
+ junit
+ ${junit.version}
+ test
+
+
+
+
+ org.springframework
+ spring-core
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-context
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-context-support
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-tx
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-aop
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-beans
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-jdbc
+ ${spring.version}
+ jar
+ compile
+
+
+
+
+ org.springframework
+ spring-web
+ ${spring.version}
+ jar
+ compile
+
+
+ org.springframework
+ spring-webmvc
+ ${spring.version}
+ jar
+ compile
+
+
+
+
+ org.aspectj
+ aspectjweaver
+ ${aspectjweaver.version}
+
+
+
+
+ commons-fileupload
+ commons-fileupload
+ ${fileupload.version}
+
+
+
+ javax.servlet
+ jstl
+ ${jstl.version}
+
+
+
+
+ com.baomidou
+ mybatis-plus
+ ${mybaitsplus.version}
+
+
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.version}
+
+
+
+ com.microsoft.sqlserver
+ sqljdbc4
+ 4.0
+ 4.0
+
+
+
+ com.microsoft.sqlserver
+ mssql-jdbc
+ 6.2.0.jre8
+ runtime
+
+
+
+
+ com.alibaba
+ druid
+ ${druid.version}
+
+
+
+
+ com.alibaba
+ fastjson
+ ${fastjson.version}
+
+
+
+
+ log4j
+ log4j
+ ${log4j.version}
+
+
+ org.slf4j
+ slf4j-api
+ ${slf4j.version}
+
+
+ org.slf4j
+ slf4j-log4j12
+ ${slf4j.version}
+
+
+
+ org.springframework
+ spring-test
+ ${spring.version}
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.0
+
+
+
+ javax.validation
+ validation-api
+ 2.0.1.Final
+
+
+
+ commons-io
+ commons-io
+ 2.5
+
+
+
+ cn.hutool
+ hutool-all
+ 4.0.12
+
+
+
+ org.apache.tomcat.embed
+ tomcat-embed-core
+ 9.0.29
+
+
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.8.0
+
+
+
+
+ com.baidu.aip
+ java-sdk
+ 4.4.1
+
+
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.10.1
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.10.1
+
+
+
+ org.codehaus.jackson
+ jackson-mapper-asl
+ 1.9.13
+
+
+
+
+
+
+ ssm74edv
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ 1.7
+
+
+
+
+
diff --git a/src/main/java/com/annotation/APPLoginUser.java b/src/main/java/com/annotation/APPLoginUser.java
new file mode 100644
index 0000000..21d41b9
--- /dev/null
+++ b/src/main/java/com/annotation/APPLoginUser.java
@@ -0,0 +1,15 @@
+package com.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 登录用户信息
+ */
+@Target(ElementType.PARAMETER)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface APPLoginUser {
+
+}
diff --git a/src/main/java/com/annotation/IgnoreAuth.java b/src/main/java/com/annotation/IgnoreAuth.java
new file mode 100644
index 0000000..7c3cc55
--- /dev/null
+++ b/src/main/java/com/annotation/IgnoreAuth.java
@@ -0,0 +1,13 @@
+package com.annotation;
+
+import java.lang.annotation.*;
+
+/**
+ * 忽略Token验证
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface IgnoreAuth {
+
+}
diff --git a/src/main/java/com/annotation/LoginUser.java b/src/main/java/com/annotation/LoginUser.java
new file mode 100644
index 0000000..3d808d3
--- /dev/null
+++ b/src/main/java/com/annotation/LoginUser.java
@@ -0,0 +1,15 @@
+package com.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 登录用户信息
+ */
+@Target(ElementType.PARAMETER)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LoginUser {
+
+}
diff --git a/src/main/java/com/config/MyMetaObjectHandler.java b/src/main/java/com/config/MyMetaObjectHandler.java
new file mode 100644
index 0000000..2f9e793
--- /dev/null
+++ b/src/main/java/com/config/MyMetaObjectHandler.java
@@ -0,0 +1,28 @@
+package com.config;
+
+import java.util.Date;
+
+import org.apache.ibatis.reflection.MetaObject;
+
+import com.baomidou.mybatisplus.mapper.MetaObjectHandler;
+
+/**
+ * 自定义填充处理器
+ */
+public class MyMetaObjectHandler extends MetaObjectHandler {
+
+ @Override
+ public void insertFill(MetaObject metaObject) {
+ this.setFieldValByName("ctime", new Date(), metaObject);
+ }
+
+ @Override
+ public boolean openUpdateFill() {
+ return false;
+ }
+
+ @Override
+ public void updateFill(MetaObject metaObject) {
+ // 关闭更新填充、这里不执行
+ }
+}
diff --git a/src/main/java/com/controller/CangkuxinxiController.java b/src/main/java/com/controller/CangkuxinxiController.java
new file mode 100644
index 0000000..f4dc24c
--- /dev/null
+++ b/src/main/java/com/controller/CangkuxinxiController.java
@@ -0,0 +1,208 @@
+package com.controller;
+
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Date;
+import java.util.List;
+import javax.servlet.http.HttpServletRequest;
+
+import com.utils.ValidatorUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.annotation.IgnoreAuth;
+
+import com.entity.CangkuxinxiEntity;
+import com.entity.view.CangkuxinxiView;
+
+import com.service.CangkuxinxiService;
+import com.service.TokenService;
+import com.utils.PageUtils;
+import com.utils.R;
+import com.utils.MD5Util;
+import com.utils.MPUtil;
+import com.utils.CommonUtil;
+
+
+/**
+ * 仓库信息
+ * 后端接口
+ * @author
+ * @email
+ * @date 2021-05-04 17:08:36
+ */
+@RestController
+@RequestMapping("/cangkuxinxi")
+public class CangkuxinxiController {
+ @Autowired
+ private CangkuxinxiService cangkuxinxiService;
+
+
+
+ /**
+ * 后端列表
+ */
+ @RequestMapping("/page")
+ public R page(@RequestParam Map params,CangkuxinxiEntity cangkuxinxi,
+ HttpServletRequest request){
+
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = cangkuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cangkuxinxi), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 前端列表
+ */
+ @RequestMapping("/list")
+ public R list(@RequestParam Map params,CangkuxinxiEntity cangkuxinxi,
+ HttpServletRequest request){
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = cangkuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cangkuxinxi), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 列表
+ */
+ @RequestMapping("/lists")
+ public R list( CangkuxinxiEntity cangkuxinxi){
+ EntityWrapper ew = new EntityWrapper();
+ ew.allEq(MPUtil.allEQMapPre( cangkuxinxi, "cangkuxinxi"));
+ return R.ok().put("data", cangkuxinxiService.selectListView(ew));
+ }
+
+ /**
+ * 查询
+ */
+ @RequestMapping("/query")
+ public R query(CangkuxinxiEntity cangkuxinxi){
+ EntityWrapper< CangkuxinxiEntity> ew = new EntityWrapper< CangkuxinxiEntity>();
+ ew.allEq(MPUtil.allEQMapPre( cangkuxinxi, "cangkuxinxi"));
+ CangkuxinxiView cangkuxinxiView = cangkuxinxiService.selectView(ew);
+ return R.ok("查询仓库信息成功").put("data", cangkuxinxiView);
+ }
+
+ /**
+ * 后端详情
+ */
+ @RequestMapping("/info/{id}")
+ public R info(@PathVariable("id") Long id){
+ CangkuxinxiEntity cangkuxinxi = cangkuxinxiService.selectById(id);
+ return R.ok().put("data", cangkuxinxi);
+ }
+
+ /**
+ * 前端详情
+ */
+ @RequestMapping("/detail/{id}")
+ public R detail(@PathVariable("id") Long id){
+ CangkuxinxiEntity cangkuxinxi = cangkuxinxiService.selectById(id);
+ return R.ok().put("data", cangkuxinxi);
+ }
+
+
+
+
+ /**
+ * 后端保存
+ */
+ @RequestMapping("/save")
+ public R save(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
+ cangkuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(cangkuxinxi);
+
+ cangkuxinxiService.insert(cangkuxinxi);
+ return R.ok();
+ }
+
+ /**
+ * 前端保存
+ */
+ @RequestMapping("/add")
+ public R add(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
+ cangkuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(cangkuxinxi);
+
+ cangkuxinxiService.insert(cangkuxinxi);
+ return R.ok();
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/update")
+ public R update(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
+ //ValidatorUtils.validateEntity(cangkuxinxi);
+ cangkuxinxiService.updateById(cangkuxinxi);//全部更新
+ return R.ok();
+ }
+
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/delete")
+ public R delete(@RequestBody Long[] ids){
+ cangkuxinxiService.deleteBatchIds(Arrays.asList(ids));
+ return R.ok();
+ }
+
+ /**
+ * 提醒接口
+ */
+ @RequestMapping("/remind/{columnName}/{type}")
+ public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
+ @PathVariable("type") String type,@RequestParam Map map) {
+ map.put("column", columnName);
+ map.put("type", type);
+
+ if(type.equals("2")) {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ Date remindStartDate = null;
+ Date remindEndDate = null;
+ if(map.get("remindstart")!=null) {
+ Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindStart);
+ remindStartDate = c.getTime();
+ map.put("remindstart", sdf.format(remindStartDate));
+ }
+ if(map.get("remindend")!=null) {
+ Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindEnd);
+ remindEndDate = c.getTime();
+ map.put("remindend", sdf.format(remindEndDate));
+ }
+ }
+
+ Wrapper wrapper = new EntityWrapper();
+ if(map.get("remindstart")!=null) {
+ wrapper.ge(columnName, map.get("remindstart"));
+ }
+ if(map.get("remindend")!=null) {
+ wrapper.le(columnName, map.get("remindend"));
+ }
+
+
+ int count = cangkuxinxiService.selectCount(wrapper);
+ return R.ok().put("count", count);
+ }
+
+
+
+}
diff --git a/src/main/java/com/controller/ChanpinchukuController.java b/src/main/java/com/controller/ChanpinchukuController.java
new file mode 100644
index 0000000..aa1a03d
--- /dev/null
+++ b/src/main/java/com/controller/ChanpinchukuController.java
@@ -0,0 +1,208 @@
+package com.controller;
+
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Date;
+import java.util.List;
+import javax.servlet.http.HttpServletRequest;
+
+import com.utils.ValidatorUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.annotation.IgnoreAuth;
+
+import com.entity.ChanpinchukuEntity;
+import com.entity.view.ChanpinchukuView;
+
+import com.service.ChanpinchukuService;
+import com.service.TokenService;
+import com.utils.PageUtils;
+import com.utils.R;
+import com.utils.MD5Util;
+import com.utils.MPUtil;
+import com.utils.CommonUtil;
+
+
+/**
+ * 产品出库
+ * 后端接口
+ * @author
+ * @email
+ * @date 2021-05-04 17:08:36
+ */
+@RestController
+@RequestMapping("/chanpinchuku")
+public class ChanpinchukuController {
+ @Autowired
+ private ChanpinchukuService chanpinchukuService;
+
+
+
+ /**
+ * 后端列表
+ */
+ @RequestMapping("/page")
+ public R page(@RequestParam Map params,ChanpinchukuEntity chanpinchuku,
+ HttpServletRequest request){
+
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinchukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinchuku), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 前端列表
+ */
+ @RequestMapping("/list")
+ public R list(@RequestParam Map params,ChanpinchukuEntity chanpinchuku,
+ HttpServletRequest request){
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinchukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinchuku), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 列表
+ */
+ @RequestMapping("/lists")
+ public R list( ChanpinchukuEntity chanpinchuku){
+ EntityWrapper ew = new EntityWrapper();
+ ew.allEq(MPUtil.allEQMapPre( chanpinchuku, "chanpinchuku"));
+ return R.ok().put("data", chanpinchukuService.selectListView(ew));
+ }
+
+ /**
+ * 查询
+ */
+ @RequestMapping("/query")
+ public R query(ChanpinchukuEntity chanpinchuku){
+ EntityWrapper< ChanpinchukuEntity> ew = new EntityWrapper< ChanpinchukuEntity>();
+ ew.allEq(MPUtil.allEQMapPre( chanpinchuku, "chanpinchuku"));
+ ChanpinchukuView chanpinchukuView = chanpinchukuService.selectView(ew);
+ return R.ok("查询产品出库成功").put("data", chanpinchukuView);
+ }
+
+ /**
+ * 后端详情
+ */
+ @RequestMapping("/info/{id}")
+ public R info(@PathVariable("id") Long id){
+ ChanpinchukuEntity chanpinchuku = chanpinchukuService.selectById(id);
+ return R.ok().put("data", chanpinchuku);
+ }
+
+ /**
+ * 前端详情
+ */
+ @RequestMapping("/detail/{id}")
+ public R detail(@PathVariable("id") Long id){
+ ChanpinchukuEntity chanpinchuku = chanpinchukuService.selectById(id);
+ return R.ok().put("data", chanpinchuku);
+ }
+
+
+
+
+ /**
+ * 后端保存
+ */
+ @RequestMapping("/save")
+ public R save(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
+ chanpinchuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinchuku);
+
+ chanpinchukuService.insert(chanpinchuku);
+ return R.ok();
+ }
+
+ /**
+ * 前端保存
+ */
+ @RequestMapping("/add")
+ public R add(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
+ chanpinchuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinchuku);
+
+ chanpinchukuService.insert(chanpinchuku);
+ return R.ok();
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/update")
+ public R update(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
+ //ValidatorUtils.validateEntity(chanpinchuku);
+ chanpinchukuService.updateById(chanpinchuku);//全部更新
+ return R.ok();
+ }
+
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/delete")
+ public R delete(@RequestBody Long[] ids){
+ chanpinchukuService.deleteBatchIds(Arrays.asList(ids));
+ return R.ok();
+ }
+
+ /**
+ * 提醒接口
+ */
+ @RequestMapping("/remind/{columnName}/{type}")
+ public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
+ @PathVariable("type") String type,@RequestParam Map map) {
+ map.put("column", columnName);
+ map.put("type", type);
+
+ if(type.equals("2")) {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ Date remindStartDate = null;
+ Date remindEndDate = null;
+ if(map.get("remindstart")!=null) {
+ Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindStart);
+ remindStartDate = c.getTime();
+ map.put("remindstart", sdf.format(remindStartDate));
+ }
+ if(map.get("remindend")!=null) {
+ Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindEnd);
+ remindEndDate = c.getTime();
+ map.put("remindend", sdf.format(remindEndDate));
+ }
+ }
+
+ Wrapper wrapper = new EntityWrapper();
+ if(map.get("remindstart")!=null) {
+ wrapper.ge(columnName, map.get("remindstart"));
+ }
+ if(map.get("remindend")!=null) {
+ wrapper.le(columnName, map.get("remindend"));
+ }
+
+
+ int count = chanpinchukuService.selectCount(wrapper);
+ return R.ok().put("count", count);
+ }
+
+
+
+}
diff --git a/src/main/java/com/controller/ChanpinkucunguanliController.java b/src/main/java/com/controller/ChanpinkucunguanliController.java
new file mode 100644
index 0000000..d4169b3
--- /dev/null
+++ b/src/main/java/com/controller/ChanpinkucunguanliController.java
@@ -0,0 +1,208 @@
+package com.controller;
+
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Date;
+import java.util.List;
+import javax.servlet.http.HttpServletRequest;
+
+import com.utils.ValidatorUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.annotation.IgnoreAuth;
+
+import com.entity.ChanpinkucunguanliEntity;
+import com.entity.view.ChanpinkucunguanliView;
+
+import com.service.ChanpinkucunguanliService;
+import com.service.TokenService;
+import com.utils.PageUtils;
+import com.utils.R;
+import com.utils.MD5Util;
+import com.utils.MPUtil;
+import com.utils.CommonUtil;
+
+
+/**
+ * 产品库存管理
+ * 后端接口
+ * @author
+ * @email
+ * @date 2021-05-04 17:08:36
+ */
+@RestController
+@RequestMapping("/chanpinkucunguanli")
+public class ChanpinkucunguanliController {
+ @Autowired
+ private ChanpinkucunguanliService chanpinkucunguanliService;
+
+
+
+ /**
+ * 后端列表
+ */
+ @RequestMapping("/page")
+ public R page(@RequestParam Map params,ChanpinkucunguanliEntity chanpinkucunguanli,
+ HttpServletRequest request){
+
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinkucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinkucunguanli), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 前端列表
+ */
+ @RequestMapping("/list")
+ public R list(@RequestParam Map params,ChanpinkucunguanliEntity chanpinkucunguanli,
+ HttpServletRequest request){
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinkucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinkucunguanli), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 列表
+ */
+ @RequestMapping("/lists")
+ public R list( ChanpinkucunguanliEntity chanpinkucunguanli){
+ EntityWrapper ew = new EntityWrapper();
+ ew.allEq(MPUtil.allEQMapPre( chanpinkucunguanli, "chanpinkucunguanli"));
+ return R.ok().put("data", chanpinkucunguanliService.selectListView(ew));
+ }
+
+ /**
+ * 查询
+ */
+ @RequestMapping("/query")
+ public R query(ChanpinkucunguanliEntity chanpinkucunguanli){
+ EntityWrapper< ChanpinkucunguanliEntity> ew = new EntityWrapper< ChanpinkucunguanliEntity>();
+ ew.allEq(MPUtil.allEQMapPre( chanpinkucunguanli, "chanpinkucunguanli"));
+ ChanpinkucunguanliView chanpinkucunguanliView = chanpinkucunguanliService.selectView(ew);
+ return R.ok("查询产品库存管理成功").put("data", chanpinkucunguanliView);
+ }
+
+ /**
+ * 后端详情
+ */
+ @RequestMapping("/info/{id}")
+ public R info(@PathVariable("id") Long id){
+ ChanpinkucunguanliEntity chanpinkucunguanli = chanpinkucunguanliService.selectById(id);
+ return R.ok().put("data", chanpinkucunguanli);
+ }
+
+ /**
+ * 前端详情
+ */
+ @RequestMapping("/detail/{id}")
+ public R detail(@PathVariable("id") Long id){
+ ChanpinkucunguanliEntity chanpinkucunguanli = chanpinkucunguanliService.selectById(id);
+ return R.ok().put("data", chanpinkucunguanli);
+ }
+
+
+
+
+ /**
+ * 后端保存
+ */
+ @RequestMapping("/save")
+ public R save(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
+ chanpinkucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinkucunguanli);
+
+ chanpinkucunguanliService.insert(chanpinkucunguanli);
+ return R.ok();
+ }
+
+ /**
+ * 前端保存
+ */
+ @RequestMapping("/add")
+ public R add(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
+ chanpinkucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinkucunguanli);
+
+ chanpinkucunguanliService.insert(chanpinkucunguanli);
+ return R.ok();
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/update")
+ public R update(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
+ //ValidatorUtils.validateEntity(chanpinkucunguanli);
+ chanpinkucunguanliService.updateById(chanpinkucunguanli);//全部更新
+ return R.ok();
+ }
+
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/delete")
+ public R delete(@RequestBody Long[] ids){
+ chanpinkucunguanliService.deleteBatchIds(Arrays.asList(ids));
+ return R.ok();
+ }
+
+ /**
+ * 提醒接口
+ */
+ @RequestMapping("/remind/{columnName}/{type}")
+ public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
+ @PathVariable("type") String type,@RequestParam Map map) {
+ map.put("column", columnName);
+ map.put("type", type);
+
+ if(type.equals("2")) {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ Date remindStartDate = null;
+ Date remindEndDate = null;
+ if(map.get("remindstart")!=null) {
+ Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindStart);
+ remindStartDate = c.getTime();
+ map.put("remindstart", sdf.format(remindStartDate));
+ }
+ if(map.get("remindend")!=null) {
+ Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindEnd);
+ remindEndDate = c.getTime();
+ map.put("remindend", sdf.format(remindEndDate));
+ }
+ }
+
+ Wrapper wrapper = new EntityWrapper();
+ if(map.get("remindstart")!=null) {
+ wrapper.ge(columnName, map.get("remindstart"));
+ }
+ if(map.get("remindend")!=null) {
+ wrapper.le(columnName, map.get("remindend"));
+ }
+
+
+ int count = chanpinkucunguanliService.selectCount(wrapper);
+ return R.ok().put("count", count);
+ }
+
+
+
+}
diff --git a/src/main/java/com/controller/ChanpinrukuController.java b/src/main/java/com/controller/ChanpinrukuController.java
new file mode 100644
index 0000000..e23e07d
--- /dev/null
+++ b/src/main/java/com/controller/ChanpinrukuController.java
@@ -0,0 +1,208 @@
+package com.controller;
+
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Date;
+import java.util.List;
+import javax.servlet.http.HttpServletRequest;
+
+import com.utils.ValidatorUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.annotation.IgnoreAuth;
+
+import com.entity.ChanpinrukuEntity;
+import com.entity.view.ChanpinrukuView;
+
+import com.service.ChanpinrukuService;
+import com.service.TokenService;
+import com.utils.PageUtils;
+import com.utils.R;
+import com.utils.MD5Util;
+import com.utils.MPUtil;
+import com.utils.CommonUtil;
+
+
+/**
+ * 产品入库
+ * 后端接口
+ * @author
+ * @email
+ * @date 2021-05-04 17:08:36
+ */
+@RestController
+@RequestMapping("/chanpinruku")
+public class ChanpinrukuController {
+ @Autowired
+ private ChanpinrukuService chanpinrukuService;
+
+
+
+ /**
+ * 后端列表
+ */
+ @RequestMapping("/page")
+ public R page(@RequestParam Map params,ChanpinrukuEntity chanpinruku,
+ HttpServletRequest request){
+
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinrukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinruku), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 前端列表
+ */
+ @RequestMapping("/list")
+ public R list(@RequestParam Map params,ChanpinrukuEntity chanpinruku,
+ HttpServletRequest request){
+ EntityWrapper ew = new EntityWrapper();
+ PageUtils page = chanpinrukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinruku), params), params));
+ return R.ok().put("data", page);
+ }
+
+ /**
+ * 列表
+ */
+ @RequestMapping("/lists")
+ public R list( ChanpinrukuEntity chanpinruku){
+ EntityWrapper ew = new EntityWrapper();
+ ew.allEq(MPUtil.allEQMapPre( chanpinruku, "chanpinruku"));
+ return R.ok().put("data", chanpinrukuService.selectListView(ew));
+ }
+
+ /**
+ * 查询
+ */
+ @RequestMapping("/query")
+ public R query(ChanpinrukuEntity chanpinruku){
+ EntityWrapper< ChanpinrukuEntity> ew = new EntityWrapper< ChanpinrukuEntity>();
+ ew.allEq(MPUtil.allEQMapPre( chanpinruku, "chanpinruku"));
+ ChanpinrukuView chanpinrukuView = chanpinrukuService.selectView(ew);
+ return R.ok("查询产品入库成功").put("data", chanpinrukuView);
+ }
+
+ /**
+ * 后端详情
+ */
+ @RequestMapping("/info/{id}")
+ public R info(@PathVariable("id") Long id){
+ ChanpinrukuEntity chanpinruku = chanpinrukuService.selectById(id);
+ return R.ok().put("data", chanpinruku);
+ }
+
+ /**
+ * 前端详情
+ */
+ @RequestMapping("/detail/{id}")
+ public R detail(@PathVariable("id") Long id){
+ ChanpinrukuEntity chanpinruku = chanpinrukuService.selectById(id);
+ return R.ok().put("data", chanpinruku);
+ }
+
+
+
+
+ /**
+ * 后端保存
+ */
+ @RequestMapping("/save")
+ public R save(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
+ chanpinruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinruku);
+
+ chanpinrukuService.insert(chanpinruku);
+ return R.ok();
+ }
+
+ /**
+ * 前端保存
+ */
+ @RequestMapping("/add")
+ public R add(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
+ chanpinruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
+ //ValidatorUtils.validateEntity(chanpinruku);
+
+ chanpinrukuService.insert(chanpinruku);
+ return R.ok();
+ }
+
+ /**
+ * 修改
+ */
+ @RequestMapping("/update")
+ public R update(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
+ //ValidatorUtils.validateEntity(chanpinruku);
+ chanpinrukuService.updateById(chanpinruku);//全部更新
+ return R.ok();
+ }
+
+
+ /**
+ * 删除
+ */
+ @RequestMapping("/delete")
+ public R delete(@RequestBody Long[] ids){
+ chanpinrukuService.deleteBatchIds(Arrays.asList(ids));
+ return R.ok();
+ }
+
+ /**
+ * 提醒接口
+ */
+ @RequestMapping("/remind/{columnName}/{type}")
+ public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
+ @PathVariable("type") String type,@RequestParam Map map) {
+ map.put("column", columnName);
+ map.put("type", type);
+
+ if(type.equals("2")) {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ Date remindStartDate = null;
+ Date remindEndDate = null;
+ if(map.get("remindstart")!=null) {
+ Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindStart);
+ remindStartDate = c.getTime();
+ map.put("remindstart", sdf.format(remindStartDate));
+ }
+ if(map.get("remindend")!=null) {
+ Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindEnd);
+ remindEndDate = c.getTime();
+ map.put("remindend", sdf.format(remindEndDate));
+ }
+ }
+
+ Wrapper wrapper = new EntityWrapper();
+ if(map.get("remindstart")!=null) {
+ wrapper.ge(columnName, map.get("remindstart"));
+ }
+ if(map.get("remindend")!=null) {
+ wrapper.le(columnName, map.get("remindend"));
+ }
+
+
+ int count = chanpinrukuService.selectCount(wrapper);
+ return R.ok().put("count", count);
+ }
+
+
+
+}
diff --git a/src/main/java/com/controller/CommonController.java b/src/main/java/com/controller/CommonController.java
new file mode 100644
index 0000000..d237d77
--- /dev/null
+++ b/src/main/java/com/controller/CommonController.java
@@ -0,0 +1,258 @@
+package com.controller;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.commons.lang3.StringUtils;
+import org.json.JSONObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.ResourceUtils;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.annotation.IgnoreAuth;
+import com.baidu.aip.face.AipFace;
+import com.baidu.aip.face.MatchRequest;
+import com.baidu.aip.util.Base64Util;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.entity.ConfigEntity;
+import com.service.CommonService;
+import com.service.ConfigService;
+import com.utils.BaiduUtil;
+import com.utils.FileUtil;
+import com.utils.R;
+
+/**
+ * 通用接口
+ */
+@RestController
+public class CommonController{
+ @Autowired
+ private CommonService commonService;
+
+ @Autowired
+ private ConfigService configService;
+
+ private static AipFace client = null;
+
+ private static String BAIDU_DITU_AK = null;
+
+ @RequestMapping("/location")
+ public R location(String lng,String lat) {
+ if(BAIDU_DITU_AK==null) {
+ BAIDU_DITU_AK = configService.selectOne(new EntityWrapper().eq("name", "baidu_ditu_ak")).getValue();
+ if(BAIDU_DITU_AK==null) {
+ return R.error("请在配置管理中正确配置baidu_ditu_ak");
+ }
+ }
+ Map map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
+ return R.ok().put("data", map);
+ }
+
+ /**
+ * 人脸比对
+ *
+ * @param face1 人脸1
+ * @param face2 人脸2
+ * @return
+ */
+ @RequestMapping("/matchFace")
+ public R matchFace(String face1, String face2,HttpServletRequest request) {
+ if(client==null) {
+ /*String AppID = configService.selectOne(new EntityWrapper().eq("name", "AppID")).getValue();*/
+ String APIKey = configService.selectOne(new EntityWrapper().eq("name", "APIKey")).getValue();
+ String SecretKey = configService.selectOne(new EntityWrapper().eq("name", "SecretKey")).getValue();
+ String token = BaiduUtil.getAuth(APIKey, SecretKey);
+ if(token==null) {
+ return R.error("请在配置管理中正确配置APIKey和SecretKey");
+ }
+ client = new AipFace(null, APIKey, SecretKey);
+ client.setConnectionTimeoutInMillis(2000);
+ client.setSocketTimeoutInMillis(60000);
+ }
+ JSONObject res = null;
+ try {
+ File file1 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face1);
+ File file2 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face2);
+ String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
+ String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
+ MatchRequest req1 = new MatchRequest(img1, "BASE64");
+ MatchRequest req2 = new MatchRequest(img2, "BASE64");
+ ArrayList requests = new ArrayList();
+ requests.add(req1);
+ requests.add(req2);
+ res = client.match(requests);
+ System.out.println(res.get("result"));
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ return R.error("文件不存在");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
+ }
+
+ /**
+ * 获取table表中的column列表(联动接口)
+ * @param table
+ * @param column
+ * @return
+ */
+ @IgnoreAuth
+ @RequestMapping("/option/{tableName}/{columnName}")
+ public R getOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,String level,String parent) {
+ Map params = new HashMap();
+ params.put("table", tableName);
+ params.put("column", columnName);
+ if(StringUtils.isNotBlank(level)) {
+ params.put("level", level);
+ }
+ if(StringUtils.isNotBlank(parent)) {
+ params.put("parent", parent);
+ }
+ List data = commonService.getOption(params);
+ return R.ok().put("data", data);
+ }
+
+ /**
+ * 根据table中的column获取单条记录
+ * @param table
+ * @param column
+ * @return
+ */
+ @IgnoreAuth
+ @RequestMapping("/follow/{tableName}/{columnName}")
+ public R getFollowByOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @RequestParam String columnValue) {
+ Map params = new HashMap();
+ params.put("table", tableName);
+ params.put("column", columnName);
+ params.put("columnValue", columnValue);
+ Map result = commonService.getFollowByOption(params);
+ return R.ok().put("data", result);
+ }
+
+ /**
+ * 修改table表的sfsh状态
+ * @param table
+ * @param map
+ * @return
+ */
+ @RequestMapping("/sh/{tableName}")
+ public R sh(@PathVariable("tableName") String tableName, @RequestBody Map map) {
+ map.put("table", tableName);
+ commonService.sh(map);
+ return R.ok();
+ }
+
+ /**
+ * 获取需要提醒的记录数
+ * @param tableName
+ * @param columnName
+ * @param type 1:数字 2:日期
+ * @param map
+ * @return
+ */
+ @IgnoreAuth
+ @RequestMapping("/remind/{tableName}/{columnName}/{type}")
+ public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,
+ @PathVariable("type") String type,@RequestParam Map map) {
+ map.put("table", tableName);
+ map.put("column", columnName);
+ map.put("type", type);
+
+ if(type.equals("2")) {
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ Calendar c = Calendar.getInstance();
+ Date remindStartDate = null;
+ Date remindEndDate = null;
+ if(map.get("remindstart")!=null) {
+ Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindStart);
+ remindStartDate = c.getTime();
+ map.put("remindstart", sdf.format(remindStartDate));
+ }
+ if(map.get("remindend")!=null) {
+ Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
+ c.setTime(new Date());
+ c.add(Calendar.DAY_OF_MONTH,remindEnd);
+ remindEndDate = c.getTime();
+ map.put("remindend", sdf.format(remindEndDate));
+ }
+ }
+
+ int count = commonService.remindCount(map);
+ return R.ok().put("count", count);
+ }
+
+ /**
+ * 单列求和
+ */
+ @IgnoreAuth
+ @RequestMapping("/cal/{tableName}/{columnName}")
+ public R cal(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
+ Map params = new HashMap();
+ params.put("table", tableName);
+ params.put("column", columnName);
+ Map result = commonService.selectCal(params);
+ return R.ok().put("data", result);
+ }
+
+ /**
+ * 分组统计
+ */
+ @IgnoreAuth
+ @RequestMapping("/group/{tableName}/{columnName}")
+ public R group(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
+ Map params = new HashMap();
+ params.put("table", tableName);
+ params.put("column", columnName);
+ List