├── .gitignore
├── .mvn
└── wrapper
│ ├── MavenWrapperDownloader.java
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── MustRead.txt
├── README.md
├── images
├── 1.jpg
├── 10.jpg
├── 2.jpg
├── 3.jpg
├── 4.jpg
├── 5.jpg
├── 6.jpg
├── 7.jpg
├── 8.jpg
└── 9.jpg
├── mvnw
├── mvnw.cmd
├── pom.xml
├── sql
└── ERP.sql
└── src
├── main
├── java
│ └── com
│ │ └── SpringBoot
│ │ ├── ServletInitializer.java
│ │ ├── SpringBootErpApplication.java
│ │ ├── bean
│ │ ├── Customer.java
│ │ ├── Dept.java
│ │ ├── Goods.java
│ │ ├── Inport.java
│ │ ├── Loginfo.java
│ │ ├── Notice.java
│ │ ├── Outport.java
│ │ ├── Permission.java
│ │ ├── Provider.java
│ │ ├── Role.java
│ │ ├── Sales.java
│ │ ├── Salesback.java
│ │ └── User.java
│ │ ├── common
│ │ ├── ActiverUser.java
│ │ ├── Constast.java
│ │ ├── DataGridView.java
│ │ ├── LayuiJson.java
│ │ ├── LayuiJsonTree.java
│ │ ├── ResultObj.java
│ │ ├── TreeNode.java
│ │ ├── TreeNodeBuilder.java
│ │ └── WebUtils.java
│ │ ├── config
│ │ ├── KaptchaConfig.java
│ │ ├── ShiroConfig.java
│ │ └── UserRealm.java
│ │ ├── controller
│ │ ├── BusController.java
│ │ ├── CustomerController.java
│ │ ├── DeptController.java
│ │ ├── GoodsController.java
│ │ ├── InportController.java
│ │ ├── KaptchaController.java
│ │ ├── LoginController.java
│ │ ├── LoginfoController.java
│ │ ├── MenuController.java
│ │ ├── NoticeController.java
│ │ ├── OutportController.java
│ │ ├── PermissionController.java
│ │ ├── ProviderController.java
│ │ ├── RoleController.java
│ │ ├── SalesController.java
│ │ ├── SalesbackController.java
│ │ ├── SystemController.java
│ │ └── UserController.java
│ │ ├── dao
│ │ ├── CustomerImp.java
│ │ ├── DeptImp.java
│ │ ├── GoodsImp.java
│ │ ├── InportImp.java
│ │ ├── LoginfoImp.java
│ │ ├── NoticeImp.java
│ │ ├── OutportImp.java
│ │ ├── PermissionImp.java
│ │ ├── ProviderImp.java
│ │ ├── RoleImp.java
│ │ ├── SalesImp.java
│ │ ├── SalesbackImp.java
│ │ └── UserImp.java
│ │ ├── service
│ │ ├── CustomerService.java
│ │ ├── DeptService.java
│ │ ├── GoodsService.java
│ │ ├── InportService.java
│ │ ├── LoginfoService.java
│ │ ├── NoticeService.java
│ │ ├── OutportService.java
│ │ ├── PermissionService.java
│ │ ├── ProviderService.java
│ │ ├── RoleService.java
│ │ ├── SalesService.java
│ │ ├── SalesbackService.java
│ │ └── UserService.java
│ │ └── vo
│ │ ├── DeptVo.java
│ │ ├── LoginfoVo.java
│ │ ├── NoticeVo.java
│ │ ├── PermissionVo.java
│ │ └── UserVo.java
└── resources
│ ├── application.properties
│ ├── application.yml
│ ├── mybatis
│ ├── MybatisConfig.xml
│ └── mapper
│ │ ├── CustomerMapper.xml
│ │ ├── DeptMapper.xml
│ │ ├── GoodsMapper.xml
│ │ ├── InportMapper.xml
│ │ ├── LoginfoMapper.xml
│ │ ├── NoticeMapper.xml
│ │ ├── OutportMapper.xml
│ │ ├── PermissionMapper.xml
│ │ ├── ProviderMapper.xml
│ │ ├── RoleMapper.xml
│ │ ├── SalesMapper.xml
│ │ ├── SalesbackMapper.xml
│ │ └── UserMapper.xml
│ ├── static
│ ├── error
│ │ ├── 4xx.html
│ │ └── 5xx.html
│ ├── favicon.ico
│ ├── index.html
│ └── resources
│ │ ├── css
│ │ ├── index.css
│ │ └── public.css
│ │ ├── images
│ │ ├── alipay.jpg
│ │ ├── close.png
│ │ ├── code.jpg
│ │ ├── face.jpg
│ │ ├── fly.png
│ │ ├── git.png
│ │ ├── layui.png
│ │ ├── login_bg.jpg
│ │ ├── mayun.png
│ │ ├── userface1.jpg
│ │ ├── userface2.jpg
│ │ ├── userface3.jpg
│ │ ├── userface4.jpg
│ │ ├── userface5.jpg
│ │ └── wechat.jpg
│ │ ├── js
│ │ ├── address.js
│ │ ├── bodyTab.js
│ │ ├── cache.js
│ │ ├── cacheUserInfo.js
│ │ ├── index.js
│ │ └── main.js
│ │ ├── json
│ │ ├── address.json
│ │ ├── demoJson.json
│ │ ├── images.json
│ │ ├── linkList.json
│ │ ├── linkLogo.json
│ │ ├── logs.json
│ │ ├── navs.json
│ │ ├── newsImg.json
│ │ ├── newsList.json
│ │ ├── systemParameter.json
│ │ ├── userGrade.json
│ │ ├── userList.json
│ │ └── userface.json
│ │ ├── layui
│ │ ├── css
│ │ │ ├── layui.css
│ │ │ ├── layui.mobile.css
│ │ │ └── modules
│ │ │ │ ├── code.css
│ │ │ │ ├── laydate
│ │ │ │ └── default
│ │ │ │ │ └── laydate.css
│ │ │ │ └── layer
│ │ │ │ └── default
│ │ │ │ ├── icon-ext.png
│ │ │ │ ├── icon.png
│ │ │ │ ├── layer.css
│ │ │ │ ├── loading-0.gif
│ │ │ │ ├── loading-1.gif
│ │ │ │ └── loading-2.gif
│ │ ├── font
│ │ │ ├── iconfont.eot
│ │ │ ├── iconfont.svg
│ │ │ ├── iconfont.ttf
│ │ │ ├── iconfont.woff
│ │ │ └── iconfont.woff2
│ │ ├── images
│ │ │ └── face
│ │ │ │ ├── 0.gif
│ │ │ │ ├── 1.gif
│ │ │ │ ├── 10.gif
│ │ │ │ ├── 11.gif
│ │ │ │ ├── 12.gif
│ │ │ │ ├── 13.gif
│ │ │ │ ├── 14.gif
│ │ │ │ ├── 15.gif
│ │ │ │ ├── 16.gif
│ │ │ │ ├── 17.gif
│ │ │ │ ├── 18.gif
│ │ │ │ ├── 19.gif
│ │ │ │ ├── 2.gif
│ │ │ │ ├── 20.gif
│ │ │ │ ├── 21.gif
│ │ │ │ ├── 22.gif
│ │ │ │ ├── 23.gif
│ │ │ │ ├── 24.gif
│ │ │ │ ├── 25.gif
│ │ │ │ ├── 26.gif
│ │ │ │ ├── 27.gif
│ │ │ │ ├── 28.gif
│ │ │ │ ├── 29.gif
│ │ │ │ ├── 3.gif
│ │ │ │ ├── 30.gif
│ │ │ │ ├── 31.gif
│ │ │ │ ├── 32.gif
│ │ │ │ ├── 33.gif
│ │ │ │ ├── 34.gif
│ │ │ │ ├── 35.gif
│ │ │ │ ├── 36.gif
│ │ │ │ ├── 37.gif
│ │ │ │ ├── 38.gif
│ │ │ │ ├── 39.gif
│ │ │ │ ├── 4.gif
│ │ │ │ ├── 40.gif
│ │ │ │ ├── 41.gif
│ │ │ │ ├── 42.gif
│ │ │ │ ├── 43.gif
│ │ │ │ ├── 44.gif
│ │ │ │ ├── 45.gif
│ │ │ │ ├── 46.gif
│ │ │ │ ├── 47.gif
│ │ │ │ ├── 48.gif
│ │ │ │ ├── 49.gif
│ │ │ │ ├── 5.gif
│ │ │ │ ├── 50.gif
│ │ │ │ ├── 51.gif
│ │ │ │ ├── 52.gif
│ │ │ │ ├── 53.gif
│ │ │ │ ├── 54.gif
│ │ │ │ ├── 55.gif
│ │ │ │ ├── 56.gif
│ │ │ │ ├── 57.gif
│ │ │ │ ├── 58.gif
│ │ │ │ ├── 59.gif
│ │ │ │ ├── 6.gif
│ │ │ │ ├── 60.gif
│ │ │ │ ├── 61.gif
│ │ │ │ ├── 62.gif
│ │ │ │ ├── 63.gif
│ │ │ │ ├── 64.gif
│ │ │ │ ├── 65.gif
│ │ │ │ ├── 66.gif
│ │ │ │ ├── 67.gif
│ │ │ │ ├── 68.gif
│ │ │ │ ├── 69.gif
│ │ │ │ ├── 7.gif
│ │ │ │ ├── 70.gif
│ │ │ │ ├── 71.gif
│ │ │ │ ├── 8.gif
│ │ │ │ └── 9.gif
│ │ ├── lay
│ │ │ └── modules
│ │ │ │ ├── carousel.js
│ │ │ │ ├── code.js
│ │ │ │ ├── colorpicker.js
│ │ │ │ ├── element.js
│ │ │ │ ├── flow.js
│ │ │ │ ├── form.js
│ │ │ │ ├── jquery.js
│ │ │ │ ├── laydate.js
│ │ │ │ ├── layedit.js
│ │ │ │ ├── layer.js
│ │ │ │ ├── laypage.js
│ │ │ │ ├── laytpl.js
│ │ │ │ ├── mobile.js
│ │ │ │ ├── rate.js
│ │ │ │ ├── slider.js
│ │ │ │ ├── table.js
│ │ │ │ ├── transfer.js
│ │ │ │ ├── tree.js
│ │ │ │ ├── upload.js
│ │ │ │ └── util.js
│ │ ├── layui.all.js
│ │ └── layui.js
│ │ ├── layui_ext
│ │ ├── dist
│ │ │ └── dtree.js
│ │ ├── dtree
│ │ │ ├── dtree.css
│ │ │ ├── dtree.js
│ │ │ ├── dtree1.json
│ │ │ └── font
│ │ │ │ ├── dtreefont.css
│ │ │ │ ├── dtreefont.eot
│ │ │ │ ├── dtreefont.svg
│ │ │ │ ├── dtreefont.ttf
│ │ │ │ ├── dtreefont.woff
│ │ │ │ └── icons.json
│ │ └── strpy.js
│ │ ├── page
│ │ ├── doc
│ │ │ ├── addressDoc.html
│ │ │ ├── bodyTabDoc.html
│ │ │ └── navDoc.html
│ │ ├── img
│ │ │ ├── images.html
│ │ │ └── images.js
│ │ ├── login
│ │ │ └── login.js
│ │ ├── main.html
│ │ ├── news
│ │ │ ├── newsAdd.html
│ │ │ ├── newsAdd.js
│ │ │ ├── newsList.html
│ │ │ └── newsList.js
│ │ ├── systemSetting
│ │ │ ├── basicParameter.html
│ │ │ ├── basicParameter.js
│ │ │ ├── icons.html
│ │ │ ├── icons.js
│ │ │ ├── linkList.html
│ │ │ ├── linkList.js
│ │ │ ├── linksAdd.html
│ │ │ ├── logs.html
│ │ │ └── logs.js
│ │ └── user
│ │ │ ├── changePwd.html
│ │ │ ├── user.js
│ │ │ ├── userAdd.html
│ │ │ ├── userAdd.js
│ │ │ ├── userGrade.html
│ │ │ ├── userInfo.html
│ │ │ ├── userInfo.js
│ │ │ ├── userList.html
│ │ │ └── userList.js
│ │ └── tinymce
│ │ ├── jquery.tinymce.min.js
│ │ ├── langs
│ │ └── zh_CN.js
│ │ ├── plugins
│ │ ├── advlist
│ │ │ └── plugin.min.js
│ │ ├── anchor
│ │ │ └── plugin.min.js
│ │ ├── autolink
│ │ │ └── plugin.min.js
│ │ ├── autoresize
│ │ │ └── plugin.min.js
│ │ ├── autosave
│ │ │ └── plugin.min.js
│ │ ├── bbcode
│ │ │ └── plugin.min.js
│ │ ├── charmap
│ │ │ └── plugin.min.js
│ │ ├── code
│ │ │ └── plugin.min.js
│ │ ├── codesample
│ │ │ └── plugin.min.js
│ │ ├── colorpicker
│ │ │ └── plugin.min.js
│ │ ├── contextmenu
│ │ │ └── plugin.min.js
│ │ ├── directionality
│ │ │ └── plugin.min.js
│ │ ├── emoticons
│ │ │ ├── js
│ │ │ │ ├── emojis.js
│ │ │ │ └── emojis.min.js
│ │ │ └── plugin.min.js
│ │ ├── fullpage
│ │ │ └── plugin.min.js
│ │ ├── fullscreen
│ │ │ └── plugin.min.js
│ │ ├── help
│ │ │ └── plugin.min.js
│ │ ├── hr
│ │ │ └── plugin.min.js
│ │ ├── image
│ │ │ └── plugin.min.js
│ │ ├── imagetools
│ │ │ └── plugin.min.js
│ │ ├── importcss
│ │ │ └── plugin.min.js
│ │ ├── insertdatetime
│ │ │ └── plugin.min.js
│ │ ├── legacyoutput
│ │ │ └── plugin.min.js
│ │ ├── link
│ │ │ └── plugin.min.js
│ │ ├── lists
│ │ │ └── plugin.min.js
│ │ ├── media
│ │ │ └── plugin.min.js
│ │ ├── nonbreaking
│ │ │ └── plugin.min.js
│ │ ├── noneditable
│ │ │ └── plugin.min.js
│ │ ├── pagebreak
│ │ │ └── plugin.min.js
│ │ ├── paste
│ │ │ └── plugin.min.js
│ │ ├── preview
│ │ │ └── plugin.min.js
│ │ ├── print
│ │ │ └── plugin.min.js
│ │ ├── quickbars
│ │ │ └── plugin.min.js
│ │ ├── save
│ │ │ └── plugin.min.js
│ │ ├── searchreplace
│ │ │ └── plugin.min.js
│ │ ├── spellchecker
│ │ │ └── plugin.min.js
│ │ ├── tabfocus
│ │ │ └── plugin.min.js
│ │ ├── table
│ │ │ └── plugin.min.js
│ │ ├── template
│ │ │ └── plugin.min.js
│ │ ├── textcolor
│ │ │ └── plugin.min.js
│ │ ├── textpattern
│ │ │ └── plugin.min.js
│ │ ├── toc
│ │ │ └── plugin.min.js
│ │ ├── visualblocks
│ │ │ └── plugin.min.js
│ │ ├── visualchars
│ │ │ └── plugin.min.js
│ │ └── wordcount
│ │ │ └── plugin.min.js
│ │ ├── skins
│ │ ├── content
│ │ │ ├── dark
│ │ │ │ └── content.min.css
│ │ │ ├── default
│ │ │ │ └── content.min.css
│ │ │ ├── document
│ │ │ │ └── content.min.css
│ │ │ └── writer
│ │ │ │ └── content.min.css
│ │ └── ui
│ │ │ ├── oxide-dark
│ │ │ ├── content.inline.min.css
│ │ │ ├── content.min.css
│ │ │ ├── content.mobile.min.css
│ │ │ ├── fonts
│ │ │ │ └── tinymce-mobile.woff
│ │ │ ├── skin.min.css
│ │ │ └── skin.mobile.min.css
│ │ │ └── oxide
│ │ │ ├── content.inline.min.css
│ │ │ ├── content.min.css
│ │ │ ├── content.mobile.min.css
│ │ │ ├── fonts
│ │ │ └── tinymce-mobile.woff
│ │ │ ├── skin.min.css
│ │ │ └── skin.mobile.min.css
│ │ ├── themes
│ │ ├── mobile
│ │ │ └── theme.min.js
│ │ └── silver
│ │ │ └── theme.min.js
│ │ └── tinymce.min.js
│ └── templates
│ ├── business
│ ├── customer
│ │ └── customerManager.html
│ ├── goods
│ │ └── goodsManager.html
│ ├── inport
│ │ └── inportManager.html
│ ├── outport
│ │ └── outportManager.html
│ ├── provider
│ │ └── providerManager.html
│ ├── sales
│ │ └── salesManager.html
│ └── salesback
│ │ └── salesbackManager.html
│ └── system
│ ├── dept
│ ├── deptLeft.html
│ ├── deptManager.html
│ └── deptRight.html
│ ├── index
│ ├── deskManager.html
│ ├── index.html
│ └── login.html
│ ├── loginfo
│ └── loginfoManager.html
│ ├── menu
│ ├── menuLeft.html
│ ├── menuManager.html
│ └── menuRight.html
│ ├── notice
│ ├── addOrUpdate.html
│ └── noticeManager.html
│ ├── permission
│ ├── permissionLeft.html
│ ├── permissionManager.html
│ └── permissionRight.html
│ ├── role
│ └── roleManager.html
│ └── user
│ ├── changePassword.html
│ ├── userInfo.html
│ └── userManager.html
└── test
└── java
└── com
└── SpringBoot
└── SpringBootErpApplicationTests.java
/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**
5 | !**/src/test/**
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 |
30 | ### VS Code ###
31 | .vscode/
32 |
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/MustRead.txt:
--------------------------------------------------------------------------------
1 | 后端框架:SpringBoot
2 | MyBatis
3 | Mysql(估计只能使用Mysql,因为sql语句运用了limit)
4 |
5 | 中间件:lombok
6 | shiro
7 | thymeleaf
8 | druid
9 | kaptcha
10 |
11 | 前端框架 Layui
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SpringBoot-ERP
2 | SpringBoot框架的仓库管理ERP系统,此项目个人完全开源
3 |
4 | 后端框架:SpringBoot
5 | MyBatis
6 | Mysql(估计只能使用Mysql,因为sql语句运用了limit)
7 |
8 | 中间件:lombok
9 | shiro
10 | thymeleaf
11 | druid
12 | kaptcha
13 |
14 | 前端框架 Layui
15 |
16 | 图片展示地址
17 | https://www.bilibili.com/read/cv9756493
18 |
--------------------------------------------------------------------------------
/images/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/1.jpg
--------------------------------------------------------------------------------
/images/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/10.jpg
--------------------------------------------------------------------------------
/images/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/2.jpg
--------------------------------------------------------------------------------
/images/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/3.jpg
--------------------------------------------------------------------------------
/images/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/4.jpg
--------------------------------------------------------------------------------
/images/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/5.jpg
--------------------------------------------------------------------------------
/images/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/6.jpg
--------------------------------------------------------------------------------
/images/7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/7.jpg
--------------------------------------------------------------------------------
/images/8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/8.jpg
--------------------------------------------------------------------------------
/images/9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/images/9.jpg
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/ServletInitializer.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot;
2 |
3 | import org.springframework.boot.builder.SpringApplicationBuilder;
4 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
5 |
6 | public class ServletInitializer extends SpringBootServletInitializer {
7 |
8 | @Override
9 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
10 | return application.sources(SpringBootErpApplication.class);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/SpringBootErpApplication.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.boot.builder.SpringApplicationBuilder;
6 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
7 |
8 | @SpringBootApplication
9 | public class SpringBootErpApplication extends SpringBootServletInitializer{
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(SpringBootErpApplication.class, args);
13 | }
14 |
15 | @Override
16 |
17 | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
18 |
19 | return builder.sources(SpringBootErpApplication.class);
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Customer.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.stereotype.Component;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.NoArgsConstructor;
10 |
11 | @Data
12 | @AllArgsConstructor
13 | @NoArgsConstructor
14 | @Component
15 | public class Customer {
16 |
17 | private Integer id;
18 |
19 | private String customername;
20 |
21 | private String zip;
22 |
23 | private String address;
24 |
25 | private String telephone;
26 |
27 | private String connectionpersion;
28 |
29 | private String phone;
30 |
31 | private String bank;
32 |
33 | private String account;
34 |
35 | private String email;
36 |
37 | private String fax;
38 |
39 | private Integer available;
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Dept.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | import org.springframework.stereotype.Component;
7 |
8 | import lombok.AllArgsConstructor;
9 | import lombok.Data;
10 | import lombok.NoArgsConstructor;
11 |
12 | @Data
13 | @AllArgsConstructor
14 | @NoArgsConstructor
15 | @Component
16 | public class Dept {
17 |
18 | private Integer id;
19 |
20 | private Integer pid;
21 |
22 | private String name;
23 |
24 | /**
25 | * 是否展开,0不展开,1展开
26 | */
27 | private Integer open;
28 |
29 | private String remark;
30 |
31 | private String address;
32 |
33 | /**
34 | * 是否可用,0不可用,1可用
35 | */
36 | private Integer available;
37 |
38 | /**
39 | * 排序码
40 | */
41 | private Integer ordernum;
42 |
43 | private Date createtime;
44 |
45 | private String pname;
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Goods.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.stereotype.Component;
8 |
9 | import lombok.AllArgsConstructor;
10 | import lombok.Data;
11 | import lombok.NoArgsConstructor;
12 |
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | @Component
17 | public class Goods {
18 |
19 | private Integer id;
20 |
21 | private String goodsname;
22 |
23 | private String produceplace;
24 |
25 | private String size;
26 |
27 | private String goodspackage;
28 |
29 | private String productcode;
30 |
31 | private String promitcode;
32 |
33 | private String description;
34 |
35 | private Double price;
36 |
37 | private Integer number;
38 |
39 | private Integer dangernum;
40 |
41 | private String goodsimg;
42 |
43 | private Integer available;
44 |
45 | private Integer providerid;
46 |
47 | private String providername;
48 |
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Inport.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.stereotype.Component;
8 |
9 | import lombok.AllArgsConstructor;
10 | import lombok.Data;
11 | import lombok.NoArgsConstructor;
12 |
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | @Component
17 | public class Inport {
18 |
19 | private Integer id;
20 |
21 | private String paytype;
22 |
23 | private Date inporttime;
24 |
25 | private String operateperson;
26 |
27 | private Integer number;
28 |
29 | private String remark;
30 |
31 | private Double inportprice;
32 |
33 | private Integer providerid;
34 |
35 | private Integer goodsid;
36 |
37 | /**
38 | * 供应商姓名
39 | */
40 | private String providername;
41 |
42 | /**
43 | * 商品名称
44 | */
45 | private String goodsname;
46 |
47 | /**
48 | * 商品规格
49 | */
50 | private String size;
51 |
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Loginfo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.stereotype.Component;
8 |
9 | import lombok.AllArgsConstructor;
10 | import lombok.Data;
11 | import lombok.NoArgsConstructor;
12 |
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | @Component
17 | public class Loginfo {
18 |
19 | private Integer id;
20 |
21 | private String loginname;
22 |
23 | private String loginip;
24 |
25 | private Date logintime;
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Notice.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.stereotype.Component;
8 |
9 | import lombok.AllArgsConstructor;
10 | import lombok.Data;
11 | import lombok.NoArgsConstructor;
12 |
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | @Component
17 | public class Notice {
18 |
19 | private Integer id;
20 |
21 | private String title;
22 |
23 | private String content;
24 |
25 | private Date createtime;
26 |
27 | private String opername;
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Outport.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.stereotype.Component;
8 |
9 | import lombok.AllArgsConstructor;
10 | import lombok.Data;
11 | import lombok.NoArgsConstructor;
12 |
13 | @Data
14 | @AllArgsConstructor
15 | @NoArgsConstructor
16 | @Component
17 | public class Outport {
18 |
19 | private Integer id;
20 |
21 | private Integer providerid;
22 |
23 | private String paytype;
24 |
25 | private Date outputtime;
26 |
27 | private String operateperson;
28 |
29 | private Double outportprice;
30 |
31 | private Integer number;
32 |
33 | private String remark;
34 |
35 | private Integer goodsid;
36 |
37 | /**
38 | * 供应商姓名
39 | */
40 | private String providername;
41 |
42 | /**
43 | * 商品名称
44 | */
45 | private String goodsname;
46 |
47 | /**
48 | * 商品规格
49 | */
50 | private String size;
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Permission.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 |
5 | import org.springframework.stereotype.Component;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.EqualsAndHashCode;
10 | import lombok.NoArgsConstructor;
11 | import lombok.experimental.Accessors;
12 |
13 | /**
14 | *
15 | * InnoDB free: 9216 kB
16 | *
17 | *
18 | * @author luoyi-
19 | * @since 2019-11-22
20 | */
21 |
22 | @Data
23 | @AllArgsConstructor
24 | @NoArgsConstructor
25 | @Component
26 | public class Permission {
27 |
28 | private Integer id;
29 |
30 | private Integer pid;
31 |
32 | private String type;
33 |
34 | private String title;
35 |
36 | /**
37 | * 权限编码[只有type=permission才有 user:view]
38 | */
39 | private String percode;
40 |
41 | private String icon;
42 |
43 | private String href;
44 |
45 | private String target;
46 |
47 | private Integer open;
48 |
49 | private Integer ordernum;
50 |
51 | /**
52 | * 是否可用[0不可用,1可用]
53 | */
54 | private Integer available;
55 |
56 | private String ptitle;
57 | }
58 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Provider.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | import org.springframework.stereotype.Component;
7 |
8 | import lombok.AllArgsConstructor;
9 | import lombok.Data;
10 | import lombok.NoArgsConstructor;
11 |
12 | @Data
13 | @AllArgsConstructor
14 | @NoArgsConstructor
15 | @Component
16 | public class Provider {
17 |
18 | private Integer id;
19 |
20 | private String providername;
21 |
22 | private String zip;
23 |
24 | private String address;
25 |
26 | private String telephone;
27 |
28 | private String connectionperson;
29 |
30 | private String phone;
31 |
32 | private String bank;
33 |
34 | private String account;
35 |
36 | private String email;
37 |
38 | private String fax;
39 |
40 | private Integer available;
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Role.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.stereotype.Component;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.NoArgsConstructor;
10 |
11 | /**
12 | *
13 | * InnoDB free: 9216 kB
14 | *
15 | *
16 | * @author luoyi-
17 | * @since 2019-11-28
18 | */
19 | @Data
20 | @AllArgsConstructor
21 | @NoArgsConstructor
22 | @Component
23 | public class Role {
24 |
25 | private Integer id;
26 |
27 | private String name;
28 |
29 | private String remark;
30 |
31 | /**
32 | * 0不可用,1可用
33 | */
34 | private Integer available;
35 |
36 | private Date createtime;
37 |
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Sales.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.stereotype.Component;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.NoArgsConstructor;
10 |
11 | @Data
12 | @AllArgsConstructor
13 | @NoArgsConstructor
14 | @Component
15 | public class Sales {
16 |
17 | private Integer id;
18 |
19 | private Integer customerid;
20 |
21 | private String paytype;
22 |
23 | private Date salestime;
24 |
25 | private String operateperson;
26 |
27 | private Integer number;
28 |
29 | private String remark;
30 |
31 | private Double saleprice;
32 |
33 | private Integer goodsid;
34 |
35 | /**
36 | * 客户名称
37 | */
38 | private String customername;
39 |
40 | /**
41 | * 商品名称
42 | */
43 | private String goodsname;
44 |
45 | /**
46 | * 商品规格
47 | */
48 | private String size;
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/Salesback.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.stereotype.Component;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.NoArgsConstructor;
10 |
11 | @Data
12 | @AllArgsConstructor
13 | @NoArgsConstructor
14 | @Component
15 | public class Salesback {
16 |
17 | private Integer id;
18 |
19 | private Integer customerid;
20 |
21 | private String paytype;
22 |
23 | private Date salesbacktime;
24 |
25 | private Double salebackprice;
26 |
27 | private String operateperson;
28 |
29 | private Integer number;
30 |
31 | private String remark;
32 |
33 | private Integer goodsid;
34 |
35 | /**
36 | * 客户姓名
37 | */
38 | private String customername;
39 |
40 | /**
41 | * 商品名称
42 | */
43 | private String goodsname;
44 |
45 | /**
46 | * 商品规格
47 | */
48 | private String size;
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/bean/User.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.bean;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.format.annotation.DateTimeFormat;
8 | import org.springframework.stereotype.Component;
9 |
10 | import com.fasterxml.jackson.annotation.JsonFormat;
11 |
12 | import lombok.AllArgsConstructor;
13 | import lombok.Data;
14 | import lombok.NoArgsConstructor;
15 |
16 | @Data
17 | @AllArgsConstructor
18 | @NoArgsConstructor
19 | @Component
20 | public class User {
21 |
22 | private Integer id;
23 |
24 | private String name;
25 |
26 | private String loginname;
27 |
28 | private String pwd;
29 |
30 | private String address;
31 |
32 | private Integer sex;
33 |
34 | private String remark;
35 |
36 | private Integer deptid;
37 |
38 | @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
39 | private Date hiredate;
40 |
41 | /**
42 | * 上级领导id
43 | */
44 | private Integer mgr;
45 |
46 | /**
47 | * 是否可用,0不可用,1可用
48 | */
49 | private Integer available;
50 |
51 | /**
52 | * 排序码
53 | */
54 | private Integer ordernum;
55 |
56 | /**
57 | * 用户类型[0超级管理员,1管理员,2普通用户]
58 | */
59 | private Integer type;
60 |
61 | /**
62 | * 用户头像地址
63 | */
64 | private String imgpath;
65 |
66 | /**
67 | * 盐
68 | */
69 | private String salt;
70 |
71 | /**
72 | * 领导名称
73 | */
74 | private String leadername;
75 |
76 | /**
77 | * 部门名称
78 | */
79 | private String deptname;
80 |
81 | }
82 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/ActiverUser.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import com.SpringBoot.bean.User;
4 | import lombok.AllArgsConstructor;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.util.List;
9 |
10 | import org.springframework.stereotype.Component;
11 |
12 | /**
13 | * @author LJH
14 | */
15 | @Data
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class ActiverUser {
19 |
20 | private User user;
21 |
22 | private List roles;
23 |
24 | private List permissions;
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/Constast.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | public class Constast {
6 |
7 | /**
8 | * 状态码 正常 200 错误 -1
9 | */
10 | public static final Integer OK=200;
11 | public static final Integer ERROR=-1;
12 |
13 | /**
14 | * 用户默认密码
15 | */
16 | public static final String USER_DEFAULT_PWD="123456";
17 |
18 | /**
19 | * 菜单可用状态 0不可用 1可用
20 | */
21 | public static final Object AVAILABLE_TRUE = 1;
22 | public static final Object AVAILABLE_FALSE = 0;
23 |
24 | /**
25 | * 菜单和权限类型 menu 菜单 permission 权限
26 | */
27 | public static final String TYPE_MENU = "menu";
28 | public static final String TYPE_PERMISSION = "permission";
29 |
30 | /**
31 | * 用户类型 0 超级管理员 1 系统用户
32 | */
33 | public static final Integer USER_TYPE_SUPER = 0;
34 | public static final Integer USER_TYPE_NORMAL = 1;
35 |
36 | /**
37 | * 菜单是否展开 0不展开 1展开
38 | */
39 | public static final Integer OPEN_TRUE = 1;
40 | public static final Integer OPEN_FALSE = 0;
41 |
42 | /**
43 | * 商品默认图片
44 | */
45 | public static final String DEFAULT_IMG_GOODS = "/images/noDefaultImage.jpg";
46 |
47 | /**
48 | * hash散列次数
49 | */
50 | public static final Integer HASHITERATIONS = 2;
51 |
52 | /**
53 | * 用户默认图片
54 | */
55 | public static final String DEFAULT_IMG_USER="/images/defaultUserTitle.jpg";
56 | }
57 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/DataGridView.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * json数据实体
9 | * @Author: 落亦-
10 | * @Date: 2019/11/22 15:17
11 | */
12 | @Data
13 | @AllArgsConstructor
14 | @NoArgsConstructor
15 | public class DataGridView {
16 |
17 | private Integer code=0;
18 | private String msg="";
19 | //返回的记录总条数
20 | private Long count=0L;
21 | //返回的记录
22 | private Object data;
23 |
24 | public DataGridView(Long count, Object data) {
25 | this.count = count;
26 | this.data = data;
27 | }
28 |
29 | public DataGridView(Object data) {
30 | this.data = data;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/LayuiJson.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | import org.springframework.stereotype.Component;
7 |
8 | import com.SpringBoot.bean.Loginfo;
9 |
10 | import lombok.AllArgsConstructor;
11 | import lombok.Data;
12 | import lombok.NoArgsConstructor;
13 |
14 | @Data
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | @Component
18 | public class LayuiJson implements Serializable{
19 |
20 | Integer code ;
21 |
22 | String msg;
23 |
24 | Integer count;
25 |
26 | List data;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/LayuiJsonTree.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | import org.springframework.stereotype.Component;
7 |
8 | import com.SpringBoot.bean.Loginfo;
9 |
10 | import lombok.AllArgsConstructor;
11 | import lombok.Data;
12 | import lombok.NoArgsConstructor;
13 |
14 | @Data
15 | @AllArgsConstructor
16 | @NoArgsConstructor
17 | @Component
18 | public class LayuiJsonTree implements Serializable{
19 |
20 | Integer code ;
21 |
22 | String msg;
23 |
24 | Integer count;
25 |
26 | List data;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/ResultObj.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | /**
8 | * @Author: 落亦-
9 | * @Date: 2019/11/21 21:35
10 | */
11 | @Data
12 | @AllArgsConstructor
13 | @NoArgsConstructor
14 | public class ResultObj {
15 |
16 | private Integer code;
17 | private String msg;
18 |
19 | public static final ResultObj LOGIN_SUCCESS=new ResultObj(Constast.OK,"登陆成功");
20 | public static final ResultObj LOGIN_ERROR_PASS=new ResultObj(Constast.ERROR,"用户名或密码错误");
21 | public static final ResultObj LOGIN_ERROR_CODE=new ResultObj(Constast.ERROR,"验证码错误");
22 |
23 | public static final ResultObj ADD_SUCCESS = new ResultObj(Constast.OK,"添加成功");
24 | public static final ResultObj ADD_ERROR = new ResultObj(Constast.ERROR,"添加失败");
25 |
26 | public static final ResultObj DELETE_SUCCESS = new ResultObj(Constast.OK,"删除成功");
27 | public static final ResultObj DELETE_ERROR = new ResultObj(Constast.ERROR,"删除失败");
28 |
29 | public static final ResultObj UPDATE_SUCCESS = new ResultObj(Constast.OK,"修改成功");
30 | public static final ResultObj UPDATE_ERROR = new ResultObj(Constast.ERROR,"修改失败");
31 |
32 | public static final ResultObj RESET_SUCCESS = new ResultObj(Constast.OK,"重置成功");
33 | public static final ResultObj RESET_ERROR = new ResultObj(Constast.ERROR,"重置失败");
34 |
35 | public static final ResultObj DISPATCH_SUCCESS = new ResultObj(Constast.OK,"分配成功");
36 | public static final ResultObj DISPATCH_ERROR = new ResultObj(Constast.ERROR,"分配失败");
37 |
38 | public static final ResultObj BACKINPORT_SUCCESS = new ResultObj(Constast.OK,"退货成功");
39 | public static final ResultObj BACKINPORT_ERROR = new ResultObj(Constast.ERROR,"退货失败");
40 |
41 | public static final ResultObj RUN_SUCCESS = new ResultObj(Constast.OK,"进货成功");
42 | public static final ResultObj RUN_ERROR = new ResultObj(Constast.ERROR,"进货失败");
43 |
44 | public static final ResultObj SYNCCACHE_SUCCESS = new ResultObj(Constast.OK,"同步缓存成功");
45 |
46 | public static final ResultObj DELETE_ERROR_NEWS = new ResultObj(Constast.ERROR,"删除用户失败,该用户是其他用户的直属领导,请先修改该用户的下属的直属领导,再进行删除操作");
47 | public static final ResultObj DELETE_QUERY = new ResultObj();
48 |
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/TreeNode.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | import org.springframework.stereotype.Component;
11 |
12 | import com.fasterxml.jackson.annotation.JsonProperty;
13 |
14 | /**
15 | * @Author: 落亦-
16 | * @Date: 2019/11/22 15:25
17 | */
18 | @Data
19 | public class TreeNode {
20 |
21 | private Integer id;
22 | @JsonProperty("parentId")
23 | private Integer pid;
24 | private String title;
25 | private String icon;
26 | private String href;
27 | private Boolean spread;
28 |
29 | private List children = new ArrayList();
30 |
31 | /**
32 | * 0为不选中 1为选中
33 | */
34 | private String checkArr="0";
35 |
36 | /**
37 | * 首页左边导航菜单的构造器
38 | * @param id
39 | * @param pid
40 | * @param title
41 | * @param icon
42 | * @param href
43 | * @param spread
44 | */
45 | public TreeNode(Integer id, Integer pid, String title, String icon, String href, Boolean spread) {
46 | this.id = id;
47 | this.pid = pid;
48 | this.title = title;
49 | this.icon = icon;
50 | this.href = href;
51 | this.spread = spread;
52 | }
53 |
54 | /**
55 | * 部门 dtree的构造器
56 | * @param id
57 | * @param pid
58 | * @param title
59 | * @param spread
60 | */
61 | public TreeNode(Integer id, Integer pid, String title, Boolean spread) {
62 | this.id = id;
63 | this.pid = pid;
64 | this.title = title;
65 | this.spread = spread;
66 | }
67 |
68 | /**
69 | * 给角色分配权限的构造器
70 | * @param id
71 | * @param pid
72 | * @param title
73 | * @param spread
74 | * @param checkArr
75 | */
76 | public TreeNode(Integer id, Integer pid, String title, Boolean spread, String checkArr) {
77 | this.id = id;
78 | this.pid = pid;
79 | this.title = title;
80 | this.spread = spread;
81 | this.checkArr = checkArr;
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/TreeNodeBuilder.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 | /**
6 | * 把没有层级关系的集合变成有层级关系的集合
7 | * @Author: 落亦-
8 | * @Date: 2019/11/22 16:31
9 | */
10 | public class TreeNodeBuilder {
11 | public static List build(List treeNodes, Integer topPid) {
12 | List nodes = new ArrayList();
13 | for (TreeNode n1 : treeNodes) {
14 | if (n1.getPid()==topPid){
15 | nodes.add(n1);
16 | }
17 | for (TreeNode n2 : treeNodes) {
18 | if (n1.getId()==n2.getPid()){
19 | n1.getChildren().add(n2);
20 | }
21 | }
22 | }
23 | return nodes;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/common/WebUtils.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.common;
2 |
3 | import org.springframework.web.context.request.RequestContextHolder;
4 | import org.springframework.web.context.request.ServletRequestAttributes;
5 |
6 | import javax.servlet.http.HttpServletRequest;
7 | import javax.servlet.http.HttpSession;
8 |
9 |
10 | public class WebUtils {
11 |
12 | /**
13 | * 得到request
14 | * @return
15 | */
16 | public static HttpServletRequest getRequest(){
17 | ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
18 | HttpServletRequest request = requestAttributes.getRequest();
19 | return request;
20 | }
21 |
22 | /**
23 | * 得到session
24 | * @return
25 | */
26 | public static HttpSession getSession(){
27 | return getRequest().getSession();
28 | }
29 |
30 | public static ServletRequestAttributes getServletRequestAttributes() {
31 | return (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
32 | }
33 |
34 | /**
35 | * 得到当前线程的请求对象
36 | * @return
37 | */
38 | public static HttpServletRequest getHttpServletRequest() {
39 | return getServletRequestAttributes().getRequest();
40 | }
41 |
42 | /**
43 | * 得到session对象
44 | */
45 | public static HttpSession getHttpSession() {
46 | return getHttpServletRequest().getSession();
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/config/KaptchaConfig.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.config;
2 |
3 | import java.util.Properties;
4 |
5 | import org.springframework.context.annotation.Bean;
6 | import org.springframework.stereotype.Component;
7 |
8 | import com.google.code.kaptcha.impl.DefaultKaptcha;
9 | import com.google.code.kaptcha.util.Config;
10 |
11 | @Component
12 | public class KaptchaConfig {
13 | @Bean
14 | public DefaultKaptcha getDDefaultKaptcha() {
15 |
16 | //DefaultKaptcha最关键的核心,图片实现类
17 | DefaultKaptcha dk = new DefaultKaptcha();
18 |
19 | /*
20 | * properties文件配置参数
21 | * 也可以自己创建一个properties文件读取
22 | */
23 |
24 | Properties properties = new Properties();
25 | // 图片边框
26 | properties.setProperty("kaptcha.border", "yes");
27 | // 边框颜色
28 | properties.setProperty("kaptcha.border.color", "105,179,90");
29 | // 字体颜色
30 | properties.setProperty("kaptcha.textproducer.font.color", "red");
31 | // 图片宽
32 | properties.setProperty("kaptcha.image.width", "110");
33 | // 图片高
34 | properties.setProperty("kaptcha.image.height", "40");
35 | // 字体大小
36 | properties.setProperty("kaptcha.textproducer.font.size", "30");
37 | // session key
38 | properties.setProperty("kaptcha.session.key", "code");
39 | // 验证码长度
40 | properties.setProperty("kaptcha.textproducer.char.length", "6");
41 | // 字体
42 | properties.setProperty("kaptcha.textproducer.font.names", "Arial, Courier");
43 |
44 | //配置参数修改
45 | Config config = new Config(properties);
46 | dk.setConfig(config);
47 |
48 | return dk;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/config/UserRealm.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.config;
2 |
3 | import javax.servlet.http.HttpSession;
4 |
5 | import org.apache.shiro.SecurityUtils;
6 | import org.apache.shiro.authc.AuthenticationException;
7 | import org.apache.shiro.authc.AuthenticationInfo;
8 | import org.apache.shiro.authc.AuthenticationToken;
9 | import org.apache.shiro.authc.SimpleAuthenticationInfo;
10 | import org.apache.shiro.authc.UsernamePasswordToken;
11 | import org.apache.shiro.authz.AuthorizationInfo;
12 | import org.apache.shiro.authz.SimpleAuthorizationInfo;
13 | import org.apache.shiro.realm.AuthorizingRealm;
14 | import org.apache.shiro.session.Session;
15 | import org.apache.shiro.subject.PrincipalCollection;
16 | import org.apache.shiro.subject.Subject;
17 | import org.apache.shiro.util.ByteSource;
18 | import org.springframework.beans.factory.annotation.Autowired;
19 |
20 | import com.SpringBoot.bean.User;
21 | import com.SpringBoot.service.UserService;
22 |
23 | //自定义realm
24 | public class UserRealm extends AuthorizingRealm {
25 |
26 | @Autowired
27 | HttpSession session;
28 |
29 | @Autowired
30 | UserService userService;
31 |
32 | //授权
33 | @Override
34 | protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
35 |
36 | SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
37 |
38 | Subject subject = SecurityUtils.getSubject();
39 | User user = (User) subject.getPrincipal();
40 |
41 | if(user.getType()==0) {
42 | info.addRole("root");
43 | }
44 |
45 | return info;
46 | }
47 |
48 | //认证
49 | @Override
50 | protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
51 |
52 | UsernamePasswordToken userToken =(UsernamePasswordToken) token;
53 | User user = userService.select(userToken.getUsername());
54 |
55 | if(user==null) {
56 | return null;
57 | }else {
58 | session.setAttribute("username",user.getName());
59 | session.setAttribute("type",user.getType());
60 | session.setAttribute("user", user);
61 | return new SimpleAuthenticationInfo(user,user.getPwd(),this.getName());
62 | }
63 |
64 | }
65 |
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/controller/BusController.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.controller;
2 |
3 | import org.springframework.stereotype.Controller;
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 |
6 | /**
7 | * @author admin
8 | *
9 | */
10 | @Controller
11 | @RequestMapping("bus")
12 | public class BusController {
13 |
14 | /**
15 | * customer
16 | * @return
17 | */
18 | @RequestMapping("toCustomerManager")
19 | public String toCustomerManager() {
20 | return "business/customer/customerManager";
21 | }
22 |
23 | /**
24 | * provider
25 | * @author admin
26 | *
27 | */
28 |
29 | @RequestMapping("toProviderManager")
30 | public String toProviderManager() {
31 | return "business/provider/providerManager";
32 | }
33 |
34 | /**
35 | * Goods
36 | * @author admin
37 | *
38 | */
39 |
40 | @RequestMapping("toGoodsManager")
41 | public String toGoodsManager() {
42 | return "business/goods/goodsManager";
43 | }
44 |
45 | /**
46 | * Inport
47 | * @author admin
48 | *
49 | */
50 | @RequestMapping("toInportManager")
51 | public String toInportManager() {
52 | return "business/inport/inportManager";
53 | }
54 |
55 | /**
56 | * Outport
57 | * @author admin
58 | *
59 | */
60 | @RequestMapping("toOutportManager")
61 | public String toOutportManager() {
62 | return "business/outport/outportManager";
63 | }
64 |
65 | /**
66 | * Sales
67 | * @author admin
68 | *
69 | */
70 | @RequestMapping("toSalesManager")
71 | public String toSalesManager() {
72 | return "business/sales/salesManager";
73 | }
74 |
75 | /**
76 | * Salesback
77 | * @author admin
78 | *
79 | */
80 | @RequestMapping("toSalesbackManager")
81 | public String toSalesbackManager() {
82 | return "business/salesback/salesbackManager";
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/controller/RoleController.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.controller;
2 |
3 | import java.time.LocalDateTime;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RestController;
9 |
10 | import com.SpringBoot.bean.Role;
11 | import com.SpringBoot.common.LayuiJson;
12 | import com.SpringBoot.common.ResultObj;
13 | import com.SpringBoot.service.RoleService;
14 |
15 | @RestController
16 | @RequestMapping("role")
17 | public class RoleController {
18 |
19 | @Autowired
20 | RoleService roleService;
21 |
22 | @Autowired
23 | LayuiJson layuiJson;
24 |
25 | @RequestMapping("loadAllRole")
26 | public LayuiJson loadAllRole(String name,String remark,Integer available,Integer page,Integer limit){
27 | int index=(page-1)*limit;
28 | List data = roleService.select(name, remark, available, index, limit);
29 | layuiJson.setCode(0);
30 | layuiJson.setCount(1000);
31 | layuiJson.setData(data);
32 | return layuiJson;
33 |
34 | }
35 |
36 | @RequestMapping("addRole")
37 | public ResultObj addRole(String name, String remark, Integer available) {
38 | try {
39 | LocalDateTime createtime = LocalDateTime.now();
40 | roleService.insertRole(name, remark, available, createtime);
41 | return ResultObj.ADD_SUCCESS;
42 | } catch (Exception e) {
43 | e.printStackTrace();
44 | return ResultObj.ADD_ERROR;
45 | }
46 | }
47 |
48 | @RequestMapping("deleteRole")
49 | public ResultObj deleteRole(Integer id) {
50 | try {
51 | roleService.delete(id);
52 | return ResultObj.DELETE_SUCCESS;
53 | } catch (Exception e) {
54 | e.printStackTrace();
55 | return ResultObj.DELETE_ERROR;
56 | }
57 | }
58 |
59 | @RequestMapping("updateRole")
60 | public ResultObj updateRole(Integer id,String name, String remark, Integer available) {
61 | try {
62 | LocalDateTime createtime = LocalDateTime.now();
63 | roleService.updateRole(id, name, remark, available, createtime);
64 | return ResultObj.DELETE_SUCCESS;
65 | } catch (Exception e) {
66 | e.printStackTrace();
67 | return ResultObj.DELETE_ERROR;
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/CustomerImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.apache.ibatis.annotations.Mapper;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | import com.SpringBoot.bean.Customer;
9 |
10 | @Mapper
11 | public interface CustomerImp {
12 |
13 | public List select(@Param("customername")String customername,@Param("connectionpersion")String connectionpersion,@Param("phone")String phone,
14 | @Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public List selectName();
17 |
18 | public void insert(@Param("customername")String customername,@Param("zip")String zip,@Param("address")String address,@Param("telephone")String telephone,@Param("connectionpersion")String connectionpersion
19 | ,@Param("phone")String phone,@Param("bank")String bank,@Param("account")String account
20 | ,@Param("email")String email,@Param("fax")String fax,@Param("available")Integer available);
21 |
22 | public void update(@Param("id")Integer id,@Param("customername")String customername,@Param("zip")String zip,@Param("address")String address,@Param("telephone")String telephone,@Param("connectionpersion")String connectionpersion
23 | ,@Param("phone")String phone,@Param("bank")String bank,@Param("account")String account
24 | ,@Param("email")String email,@Param("fax")String fax,@Param("available")Integer available);
25 |
26 | public void delete(Integer id);
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/DeptImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Dept;
10 |
11 |
12 | @Mapper
13 | public interface DeptImp {
14 |
15 | public List selectAll();
16 |
17 | public List select(@Param("name")String name,@Param("address")String address
18 | ,@Param("remark")String remark,@Param("index")Integer index,@Param("limit")Integer limit);
19 |
20 | public void insert(@Param("pid")Integer pid,@Param("name")String name,@Param("open")Integer open,@Param("remark")String remark,@Param("address")String address,@Param("available")Integer available,@Param("ordernum")Integer ordernum,@Param("createtime")Date createtime);
21 |
22 | public void update(@Param("id")Integer id,@Param("pid")Integer pid,@Param("name")String name,@Param("open")Integer open,@Param("remark")String remark,@Param("address")String address,@Param("available")Integer available,@Param("ordernum")Integer ordernum);
23 |
24 | public void delete(Integer id);
25 |
26 | public Dept selectById(Integer id);
27 |
28 | public List selectByPid(Integer pid);
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/GoodsImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.apache.ibatis.annotations.Mapper;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | import com.SpringBoot.bean.Goods;
9 |
10 | @Mapper
11 | public interface GoodsImp {
12 |
13 | public List select(@Param("providerid")Integer providerid,@Param("goodsname")String goodsname,@Param("productcode")String productcode,
14 | @Param("promitcode")String promitcode,@Param("description")String description,@Param("size")String size,@Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public void insert(@Param("providerid")Integer providerid,@Param("goodsname")String goodsname,@Param("productcode")String productcode,
17 | @Param("promitcode")String promitcode,@Param("description")String description,@Param("size")String size,@Param("produceplace")String produceplace,
18 | @Param("goodspackage")String goodspackage,@Param("price")Double price,@Param("number")Integer number,@Param("dangernum")Integer dangernum,@Param("available")Integer available);
19 |
20 | public void delete(Integer id);
21 |
22 | public void update(@Param("id")Integer id,@Param("providerid")Integer providerid,@Param("goodsname")String goodsname,@Param("productcode")String productcode,
23 | @Param("promitcode")String promitcode,@Param("description")String description,@Param("size")String size,@Param("produceplace")String produceplace,
24 | @Param("goodspackage")String goodspackage,@Param("price")Double price,@Param("number")Integer number,@Param("dangernum")Integer dangernum,@Param("available")Integer available);
25 |
26 | public List selectGoodsName();
27 |
28 | public void updateNumber(@Param("id")Integer id,@Param("number")Integer number);
29 |
30 | public List selectByProviderid(Integer providerid);
31 |
32 | public Goods selectById(Integer id);
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/InportImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Inport;
10 |
11 | @Mapper
12 | public interface InportImp {
13 |
14 | public List select(@Param("providerid")Integer providerid,@Param("goodsid")Integer goodsid,@Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public void insert(@Param("paytype")String paytype,@Param("inporttime")Date inporttime,@Param("operateperson")String operateperson,@Param("number")Integer number,@Param("remark")String remark
17 | ,@Param("inportprice")Double inportprice,@Param("providerid")Integer providerid,@Param("goodsid")Integer goodsid);
18 |
19 | public void update (@Param("id")Integer id,@Param("paytype")String paytype,@Param("inporttime")Date inporttime,@Param("number")Integer number,@Param("remark")String remark
20 | ,@Param("inportprice")Double inportprice,@Param("providerid")Integer providerid,@Param("goodsid")Integer goodsid,@Param("operateperson")String operateperson);
21 |
22 | public void delete(Integer id);
23 |
24 | public Inport selectById(Integer id);
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/LoginfoImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Loginfo;
10 |
11 | @Mapper
12 | public interface LoginfoImp {
13 |
14 | public List select(@Param("loginname")String loginname,@Param("loginip")String loginip
15 | ,@Param("index")Integer index,@Param("limit")Integer limit);
16 |
17 | public void insert(@Param("loginname")String loginname,@Param("loginip")String loginip,@Param("logintime")Date logintime);
18 |
19 | public void delete(Integer id);
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/NoticeImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Notice;
10 |
11 | @Mapper
12 | public interface NoticeImp {
13 |
14 | public List select(@Param("title")String title,@Param("opername")String opername
15 | ,@Param("index")Integer index,@Param("limit")Integer limit);
16 |
17 | public void delect(Integer id);
18 |
19 | public void insert(@Param("title")String title,@Param("content")String content,@Param("createtime")Date createtime,@Param("opername")String opername);
20 |
21 | public void update(@Param("id")Integer id,@Param("content")String content);
22 |
23 | public Notice selectById(Integer id);
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/OutportImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Outport;
10 |
11 | @Mapper
12 | public interface OutportImp {
13 |
14 | public List select(@Param("providerid")Integer providerid,@Param("goodsid")Integer goodsid,@Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public void insert(@Param("paytype")String paytype,@Param("outputtime")Date outputtime,@Param("operateperson")String operateperson,@Param("number")Integer number,@Param("remark")String remark
17 | ,@Param("outportprice")Double outportprice,@Param("providerid")Integer providerid,@Param("goodsid")Integer goodsid);
18 |
19 | public void delete(Integer id);
20 |
21 | public Outport selectID(Integer id);
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/PermissionImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 | import org.springframework.web.bind.annotation.RequestParam;
9 |
10 | import com.SpringBoot.bean.Permission;
11 |
12 | @Mapper
13 | public interface PermissionImp {
14 |
15 | public List selectAll();
16 |
17 | public List selectPid(Integer pid);
18 |
19 | public List selectmenu();
20 |
21 | public List selectPermission();
22 |
23 | public List select(@Param("title")String title,@Param("index")Integer index,@Param("limit")Integer limit);
24 |
25 | public List select2(@Param("percode")String percode,@Param("title")String title,@Param("index")Integer index,@Param("limit")Integer limit);
26 |
27 | public void insert(@Param("pid")Integer pid,@Param("title")String title,@Param("icon")String icon,@Param("href")String href
28 | ,@Param("target")String target,@Param("open")Integer open,@Param("ordernum")Integer ordernum,@Param("available")Integer available);
29 |
30 | public void delete(Integer id);
31 |
32 | public void update(@Param("id")Integer id,@Param("pid")Integer pid,@Param("title")String title,@Param("icon")String icon,@Param("href")String href
33 | ,@Param("target")String target,@Param("open")Integer open,@Param("ordernum")Integer ordernum,@Param("available")Integer available);
34 |
35 | public void insert2(@Param("pid")Integer pid,@Param("title")String title, @Param("percode")String percode, @Param("open")Integer open,
36 | @Param("ordernum")Integer ordernum, @Param("available")Integer available);
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/ProviderImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.apache.ibatis.annotations.Mapper;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | import com.SpringBoot.bean.Provider;
9 |
10 | @Mapper
11 | public interface ProviderImp {
12 |
13 | public List select(@Param("providername")String providername,@Param("connectionperson")String connectionperson,@Param("phone")String phone,@Param("index")Integer index,@Param("limit")Integer limit);
14 |
15 | public void insert(@Param("providername")String providername,@Param("zip")String zip,@Param("address")String address,@Param("telephone")String telephone,@Param("connectionperson")String connectionperson,
16 | @Param("phone")String phone,@Param("bank")String bank,@Param("account")String account,@Param("email")String email,@Param("fax")String fax,@Param("available")Integer available);
17 |
18 | public void update(@Param("id")Integer id,@Param("providername")String providername,@Param("zip")String zip,@Param("address")String address,@Param("telephone")String telephone,@Param("connectionperson")String connectionperson,
19 | @Param("phone")String phone,@Param("bank")String bank,@Param("account")String account,@Param("email")String email,@Param("fax")String fax,@Param("available")Integer available);
20 |
21 | public void delete(Integer id);
22 |
23 | public List selectAvailable();
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/RoleImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.time.LocalDateTime;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.apache.ibatis.annotations.Mapper;
8 | import org.apache.ibatis.annotations.Param;
9 |
10 | import com.SpringBoot.bean.Role;
11 |
12 | @Mapper
13 | public interface RoleImp {
14 |
15 | public List select(@Param("name")String name,@Param("remark")String remark,@Param("available")Integer available,
16 | @Param("index")Integer index,@Param("limit")Integer limit);
17 |
18 | public void insertRole(@Param("name")String name ,@Param("remark")String remark,@Param("available")Integer available,
19 | @Param("createtime")LocalDateTime createtime);
20 |
21 | public void updateRole(@Param("id")Integer id,@Param("name")String name ,@Param("remark")String remark,@Param("available")Integer available,
22 | @Param("createtime")LocalDateTime createtime);
23 |
24 | public void delete(Integer id);
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/SalesImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Sales;
10 |
11 | @Mapper
12 | public interface SalesImp {
13 |
14 | public List select(@Param("customerid")Integer customerid,@Param("goodsid")Integer goodsid,@Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public void insert(@Param("customerid")Integer customerid,@Param("paytype")String paytype,@Param("salestime")Date salestime,@Param("operateperson")String operateperson,
17 | @Param("number")Integer number,@Param("remark")String remark,@Param("saleprice")Double saleprice,@Param("goodsid")Integer goodsid);
18 |
19 | public void update(@Param("id")Integer id,@Param("customerid")Integer customerid,@Param("paytype")String paytype,@Param("salestime")Date salestime,@Param("operateperson")String operateperson,
20 | @Param("number")Integer number,@Param("remark")String remark,@Param("saleprice")Double saleprice,@Param("goodsid")Integer goodsid);
21 |
22 | public void delete(Integer id);
23 |
24 | public Sales selectById(Integer id);
25 |
26 | public void updateNumber(@Param("id")Integer id,@Param("number")Integer number);
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/SalesbackImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.Salesback;
10 |
11 | @Mapper
12 | public interface SalesbackImp {
13 |
14 | public List select(@Param("customerid")Integer customerid,@Param("goodsid")Integer goodsid,@Param("index")Integer index,@Param("limit")Integer limit);
15 |
16 | public void delete(Integer id);
17 |
18 | public void insert(@Param("customerid")Integer customerid,@Param("paytype")String paytype,@Param("salesbacktime")Date salesbacktime,
19 | @Param("salebackprice")Double salebackprice,@Param("operateperson")String operateperson,
20 | @Param("number")Integer number,@Param("remark")String remark,@Param("goodsid")Integer goodsid);
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/dao/UserImp.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.dao;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Mapper;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | import com.SpringBoot.bean.User;
10 |
11 | @Mapper
12 | public interface UserImp {
13 |
14 | public User select(String loginname);
15 |
16 | public List selectAll(@Param("deptid")Integer deptid,@Param("deptname")String deptname,@Param("name")String name,@Param("address")String address
17 | ,@Param("index")Integer index,@Param("limit")Integer limit);
18 |
19 | public void insert(@Param("loginname")String loginname,@Param("ordernum")Integer ordernum,@Param("available")Integer available,@Param("mgr")Integer mgr
20 | ,@Param("hiredate")Date hiredate,@Param("remark")String remark,@Param("sex")Integer sex,
21 | @Param("deptid")Integer deptid,@Param("name")String name,@Param("address")String address);
22 |
23 | public void update(@Param("id")Integer id,@Param("loginname")String loginname,@Param("ordernum")Integer ordernum,@Param("available")Integer available,@Param("mgr")Integer mgr
24 | ,@Param("hiredate")Date hiredate,@Param("remark")String remark,@Param("sex")Integer sex,
25 | @Param("deptid")Integer deptid,@Param("name")String name,@Param("address")String address);
26 |
27 | public void delete(Integer id);
28 |
29 | public void resetPwd(Integer id);
30 |
31 | public List selectByDeptId(Integer deptId);
32 |
33 | public List selectByMgr(Integer mgr);
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/CustomerService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import com.SpringBoot.bean.Customer;
9 | import com.SpringBoot.dao.CustomerImp;
10 |
11 |
12 | @Service
13 | public class CustomerService implements CustomerImp{
14 |
15 | @Autowired
16 | CustomerImp customerImp;
17 |
18 | @Override
19 | public List select(String customername,String connectionpersion,String phone,Integer index, Integer limit) {
20 | List select = customerImp.select(customername, connectionpersion, phone, index, limit);
21 | return select;
22 | }
23 |
24 | @Override
25 | public List selectName() {
26 | // TODO 自动生成的方法存根
27 | List selectName = customerImp.selectName();
28 | return selectName;
29 | }
30 |
31 | @Override
32 | public void insert(String customername, String zip, String address, String telephone, String connectionpersion,
33 | String phone, String bank, String account, String email, String fax, Integer available) {
34 | // TODO 自动生成的方法存根
35 | customerImp.insert(customername, zip, address, telephone, connectionpersion, phone, bank, account, email, fax, available);
36 | }
37 |
38 | @Override
39 | public void update(Integer id, String customername, String zip, String address, String telephone,
40 | String connectionpersion, String phone, String bank, String account, String email, String fax,
41 | Integer available) {
42 | // TODO 自动生成的方法存根
43 | customerImp.update(id, customername, zip, address, telephone, connectionpersion, phone, bank, account, email, fax, available);
44 |
45 | }
46 |
47 | @Override
48 | public void delete(Integer id) {
49 | // TODO 自动生成的方法存根
50 | customerImp.delete(id);
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/DeptService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.Dept;
10 | import com.SpringBoot.dao.DeptImp;
11 |
12 | @Service
13 | public class DeptService implements DeptImp {
14 |
15 | @Autowired
16 | DeptImp deptImp;
17 |
18 | @Override
19 | public List select(String name, String address, String remark,Integer index,Integer limit) {
20 | List Dept = deptImp.select(name, address, remark, index, limit);
21 | return Dept;
22 | }
23 |
24 | @Override
25 | public void insert(Integer pid, String name, Integer open, String remark, String address, Integer available,
26 | Integer ordernum, Date createtime) {
27 | deptImp.insert(pid, name, open, remark, address, available, ordernum, createtime);
28 | }
29 |
30 | @Override
31 | public void update(Integer id, Integer pid, String name, Integer open, String remark, String address,
32 | Integer available, Integer ordernum) {
33 | deptImp.update(id, pid, name, open, remark, address, available, ordernum);
34 |
35 | }
36 |
37 | @Override
38 | public void delete(Integer id) {
39 | // TODO 自动生成的方法存根
40 | deptImp.delete(id);
41 | }
42 |
43 | @Override
44 | public List selectAll() {
45 | List selectAll = deptImp.selectAll();
46 | return selectAll;
47 | }
48 |
49 | @Override
50 | public Dept selectById(Integer id) {
51 | Dept selectById = deptImp.selectById(id);
52 | return selectById;
53 | }
54 |
55 | @Override
56 | public List selectByPid(Integer pid) {
57 | // TODO 自动生成的方法存根
58 | List selectByPid = deptImp.selectByPid(pid);
59 | return selectByPid;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/GoodsService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import com.SpringBoot.bean.Goods;
9 | import com.SpringBoot.dao.GoodsImp;
10 |
11 | @Service
12 | public class GoodsService implements GoodsImp {
13 |
14 | @Autowired
15 | GoodsImp goodsImp;
16 |
17 |
18 | @Override
19 | public void insert(Integer providerid, String goodsname, String productcode, String promitcode, String description,
20 | String size, String produceplace, String goodspackage, Double price, Integer number, Integer dangernum,
21 | Integer available) {
22 | goodsImp.insert(providerid, goodsname, productcode, promitcode, description, size, produceplace, goodspackage, price, number, dangernum, available);
23 | }
24 |
25 | @Override
26 | public void delete(Integer id) {
27 | goodsImp.delete(id);
28 | }
29 |
30 | @Override
31 | public void update(Integer id, Integer providerid, String goodsname, String productcode, String promitcode,
32 | String description, String size, String produceplace, String goodspackage, Double price, Integer number,
33 | Integer dangernum, Integer available) {
34 | goodsImp.update(id, providerid, goodsname, productcode, promitcode, description, size, produceplace, goodspackage, price, number, dangernum, available);
35 | }
36 |
37 |
38 | @Override
39 | public void updateNumber(Integer id, Integer number) {
40 | goodsImp.updateNumber(id, number);
41 |
42 | }
43 |
44 | @Override
45 | public List select(Integer providerid, String goodsname, String productcode, String promitcode,
46 | String description, String size, Integer index, Integer limit) {
47 | // TODO 自动生成的方法存根
48 | List select = goodsImp.select(providerid, goodsname, productcode, promitcode, description, size, index, limit);
49 | return select;
50 | }
51 |
52 | @Override
53 | public List selectGoodsName() {
54 | // TODO 自动生成的方法存根
55 | List selectGoodsName = goodsImp.selectGoodsName();
56 | return selectGoodsName;
57 | }
58 |
59 | @Override
60 | public List selectByProviderid(Integer providerid) {
61 | // TODO 自动生成的方法存根
62 | return goodsImp.selectByProviderid(providerid);
63 | }
64 |
65 | @Override
66 | public Goods selectById(Integer id) {
67 | // TODO 自动生成的方法存根
68 | return goodsImp.selectById(id);
69 | }
70 |
71 |
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/InportService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.Inport;
10 | import com.SpringBoot.dao.InportImp;
11 |
12 | @Service
13 | public class InportService implements InportImp {
14 |
15 | @Autowired
16 | InportImp inportImp;
17 |
18 |
19 | public InportImp getInportImp() {
20 | return inportImp;
21 | }
22 |
23 | public void setInportImp(InportImp inportImp) {
24 | this.inportImp = inportImp;
25 | }
26 |
27 |
28 | @Override
29 | public void insert(String paytype, Date inporttime, String operateperson, Integer number, String remark,
30 | Double inportprice, Integer providerid, Integer goodsid) {
31 | inportImp.insert(paytype, inporttime, operateperson, number, remark, inportprice, providerid, goodsid);
32 | }
33 |
34 | @Override
35 | public void update(Integer id, String paytype, Date inporttime, Integer number, String remark, Double inportprice,
36 | Integer providerid, Integer goodsid, String operateperson) {
37 |
38 | inportImp.update(id, paytype, inporttime, number, remark, inportprice, providerid, goodsid,operateperson);
39 |
40 | }
41 |
42 | @Override
43 | public void delete(Integer id) {
44 | inportImp.delete(id);
45 | }
46 |
47 | @Override
48 | public List select(Integer providerid, Integer goodsid, Integer index, Integer limit) {
49 | // TODO 自动生成的方法存根
50 | List select = inportImp.select(providerid, goodsid, index, limit);
51 | return select;
52 | }
53 |
54 | @Override
55 | public Inport selectById(Integer id) {
56 | // TODO 自动生成的方法存根
57 | return inportImp.selectById(id);
58 | }
59 |
60 |
61 |
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/LoginfoService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.stereotype.Service;
9 |
10 | import com.SpringBoot.bean.Loginfo;
11 | import com.SpringBoot.dao.LoginfoImp;
12 |
13 | @Service
14 | public class LoginfoService {
15 |
16 | @Autowired
17 | LoginfoImp loginfoImp;
18 |
19 | public List select(String loginname, String loginip
20 | ,Integer index,Integer limit) {
21 |
22 | List select = loginfoImp.select(loginname, loginip, index, limit);
23 | return select;
24 | }
25 |
26 | public void insert(String loginname, String loginip, Date logintime) {
27 | loginfoImp.insert(loginname, loginip, logintime);
28 | }
29 |
30 | public void delete(Integer id) {
31 |
32 | loginfoImp.delete(id);
33 | }
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/NoticeService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.Notice;
10 | import com.SpringBoot.dao.NoticeImp;
11 |
12 | @Service
13 | public class NoticeService implements NoticeImp {
14 |
15 | @Autowired
16 | NoticeImp noticeImp;
17 |
18 | @Override
19 | public List select(String title, String opername,Integer index,Integer limit) {
20 | List notice = noticeImp.select(title, opername, index, limit);
21 | return notice;
22 | }
23 |
24 | @Override
25 | public void delect(Integer id) {
26 | noticeImp.delect(id);
27 | }
28 |
29 | @Override
30 | public Notice selectById(Integer id) {
31 | Notice notice = noticeImp.selectById(id);
32 | return notice;
33 | }
34 |
35 | @Override
36 | public void update(Integer id, String content) {
37 | // TODO 自动生成的方法存根
38 | noticeImp.update(id, content);
39 | }
40 |
41 | @Override
42 | public void insert(String title, String content, Date createtime, String opername) {
43 | // TODO 自动生成的方法存根
44 | noticeImp.insert(title, content, createtime, opername);
45 | }
46 |
47 |
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/OutportService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Param;
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.stereotype.Service;
9 |
10 | import com.SpringBoot.bean.Inport;
11 | import com.SpringBoot.bean.Outport;
12 | import com.SpringBoot.dao.OutportImp;
13 |
14 | @Service
15 | public class OutportService implements OutportImp {
16 |
17 | @Autowired
18 | OutportImp outportImp;
19 |
20 | @Override
21 | public void delete(Integer id) {
22 | outportImp.delete(id);
23 | }
24 |
25 | @Override
26 | public Outport selectID(Integer id) {
27 | Outport outport = outportImp.selectID(id);
28 | return outport;
29 | }
30 |
31 | @Override
32 | public List select(Integer providerid, Integer goodsid, Integer index, Integer limit) {
33 | // TODO 自动生成的方法存根
34 | List select = outportImp.select(providerid, goodsid, index, limit);
35 | return select;
36 | }
37 |
38 | @Override
39 | public void insert(String paytype, Date outputtime, String operateperson, Integer number, String remark,
40 | Double outportprice, Integer providerid, Integer goodsid) {
41 | // TODO 自动生成的方法存根
42 | outportImp.insert(paytype, outputtime, operateperson, number, remark, outportprice, providerid, goodsid);
43 | }
44 |
45 |
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/ProviderService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import com.SpringBoot.bean.Provider;
9 | import com.SpringBoot.dao.ProviderImp;
10 |
11 | @Service
12 | public class ProviderService implements ProviderImp {
13 |
14 | @Autowired
15 | ProviderImp providerImp;
16 |
17 | @Override
18 | public void insert(String providername, String zip, String address, String telephone, String connectionperson,
19 | String phone, String bank, String account, String email, String fax, Integer available) {
20 | providerImp.insert(providername, zip, address, telephone, connectionperson, phone, bank, account, email, fax, available);
21 | }
22 |
23 | @Override
24 | public void update(Integer id, String providername, String zip, String address, String telephone,
25 | String connectionperson, String phone, String bank, String account, String email, String fax,
26 | Integer available) {
27 | providerImp.update(id, providername, zip, address, telephone, connectionperson, phone, bank, account, email, fax, available);
28 | }
29 |
30 | @Override
31 | public void delete(Integer id) {
32 | providerImp.delete(id);
33 | }
34 |
35 | @Override
36 | public List select(String providername, String connectionperson, String phone, Integer index,
37 | Integer limit) {
38 | List select = providerImp.select(providername, connectionperson, phone, index, limit);
39 | return select;
40 | }
41 |
42 | @Override
43 | public List selectAvailable() {
44 | // TODO 自动生成的方法存根
45 | List selectAvailable = providerImp.selectAvailable();
46 | return selectAvailable;
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/RoleService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.time.LocalDateTime;
4 | import java.util.Date;
5 | import java.util.List;
6 |
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.stereotype.Service;
9 |
10 | import com.SpringBoot.bean.Role;
11 | import com.SpringBoot.dao.RoleImp;
12 |
13 | @Service
14 | public class RoleService implements RoleImp{
15 |
16 | @Autowired
17 | RoleImp roleImp;
18 |
19 | @Override
20 | public List select(String name, String remark, Integer available, Integer index, Integer limit) {
21 | // TODO 自动生成的方法存根
22 | List select = roleImp.select(name, remark, available, index, limit);
23 | return select;
24 | }
25 |
26 | @Override
27 | public void insertRole(String name, String remark, Integer available, LocalDateTime createtime) {
28 | // TODO 自动生成的方法存根
29 | roleImp.insertRole(name, remark, available, createtime);
30 | }
31 |
32 | @Override
33 | public void updateRole(Integer id, String name, String remark, Integer available, LocalDateTime createtime) {
34 | // TODO 自动生成的方法存根
35 | roleImp.updateRole(id, name, remark, available, createtime);
36 | }
37 |
38 | @Override
39 | public void delete(Integer id) {
40 | // TODO 自动生成的方法存根
41 | roleImp.delete(id);
42 | }
43 |
44 |
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/SalesService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.Sales;
10 | import com.SpringBoot.dao.SalesImp;
11 |
12 | @Service
13 | public class SalesService implements SalesImp {
14 |
15 | @Autowired
16 | SalesImp salesImp;
17 |
18 | @Override
19 | public List select(Integer customerid, Integer goodsid, Integer index, Integer limit) {
20 | // TODO 自动生成的方法存根
21 | List select = salesImp.select(customerid, goodsid, index, limit);
22 | return select;
23 | }
24 |
25 | @Override
26 | public void insert(Integer customerid, String paytype, Date salestime, String operateperson, Integer number,
27 | String remark, Double saleprice, Integer goodsid) {
28 | // TODO 自动生成的方法存根
29 | salesImp.insert(customerid, paytype, salestime, operateperson, number, remark, saleprice, goodsid);
30 | }
31 |
32 | @Override
33 | public void update(Integer id, Integer customerid, String paytype, Date salestime, String operateperson,
34 | Integer number, String remark, Double saleprice, Integer goodsid) {
35 | // TODO 自动生成的方法存根
36 | salesImp.update(id, customerid, paytype, salestime, operateperson, number, remark, saleprice, goodsid);
37 | }
38 |
39 | @Override
40 | public void delete(Integer id) {
41 | // TODO 自动生成的方法存根
42 | salesImp.delete(id);
43 | }
44 |
45 | @Override
46 | public Sales selectById(Integer id) {
47 | // TODO 自动生成的方法存根
48 | return salesImp.selectById(id);
49 | }
50 |
51 | @Override
52 | public void updateNumber(Integer id, Integer number) {
53 | // TODO 自动生成的方法存根
54 | salesImp.updateNumber(id, number);
55 | }
56 |
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/SalesbackService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.Salesback;
10 | import com.SpringBoot.dao.SalesbackImp;
11 |
12 | @Service
13 | public class SalesbackService implements SalesbackImp{
14 |
15 | @Autowired
16 | SalesbackImp salesbackImp;
17 |
18 | @Override
19 | public List select(Integer customerid, Integer goodsid, Integer index, Integer limit) {
20 | // TODO 自动生成的方法存根
21 | List select = salesbackImp.select(customerid, goodsid, index, limit);
22 | return select;
23 | }
24 |
25 | @Override
26 | public void delete(Integer id) {
27 | // TODO 自动生成的方法存根
28 | salesbackImp.delete(id);
29 | }
30 |
31 | @Override
32 | public void insert(Integer customerid, String paytype, Date salesbacktime, Double salebackprice,
33 | String operateperson, Integer number, String remark, Integer goodsid) {
34 | // TODO 自动生成的方法存根
35 | salesbackImp.insert(customerid, paytype, salesbacktime, salebackprice, operateperson, number, remark, goodsid);
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/service/UserService.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.service;
2 |
3 | import java.util.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.SpringBoot.bean.User;
10 | import com.SpringBoot.dao.UserImp;
11 |
12 | @Service
13 | public class UserService implements UserImp {
14 |
15 | @Autowired
16 | UserImp userImp;
17 |
18 | public User select(String loginname) {
19 | User user = userImp.select(loginname);
20 | return user;
21 | }
22 |
23 | @Override
24 | public List selectAll(Integer deptid,String deptname, String name, String address,Integer index,Integer limit) {
25 | List selectAll = userImp.selectAll(deptid,deptname, name, address, index, limit);
26 | return selectAll;
27 | }
28 |
29 | @Override
30 | public void insert(String loginname,Integer ordernum, Integer available, Integer mgr, Date hiredate, String remark, Integer sex
31 | , Integer deptid, String name, String address) {
32 | userImp.insert(loginname,ordernum, available, mgr, hiredate, remark, sex, deptid, name, address);
33 | }
34 |
35 | @Override
36 | public void update(Integer id, String loginname, Integer ordernum, Integer available, Integer mgr, Date hiredate,
37 | String remark, Integer sex, Integer deptid, String name, String address) {
38 | userImp.update(id, loginname, ordernum, available, mgr, hiredate, remark, sex, deptid, name, address);
39 |
40 | }
41 |
42 | @Override
43 | public void delete(Integer id) {
44 | userImp.delete(id);
45 | }
46 |
47 | @Override
48 | public void resetPwd(Integer id) {
49 | userImp.resetPwd(id);
50 |
51 | }
52 |
53 | @Override
54 | public List selectByDeptId(Integer deptId) {
55 | // TODO 自动生成的方法存根
56 | List selectByDeptId = userImp.selectByDeptId(deptId);
57 | return selectByDeptId;
58 | }
59 |
60 | @Override
61 | public List selectByMgr(Integer mgr) {
62 | // TODO 自动生成的方法存根
63 | List selectByMgr = userImp.selectByMgr(mgr);
64 | return selectByMgr;
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/vo/DeptVo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.vo;
2 |
3 | import java.util.Date;
4 |
5 | import com.SpringBoot.bean.Dept;
6 |
7 | import lombok.AllArgsConstructor;
8 | import lombok.Data;
9 | import lombok.NoArgsConstructor;
10 |
11 | /**
12 | * @Author: 落亦-
13 | * @Date: 2019/11/26 11:07
14 | */
15 | @Data
16 | @AllArgsConstructor
17 | @NoArgsConstructor
18 | public class DeptVo extends Dept {
19 |
20 | private Integer page=1;
21 | private Integer limit=10;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/vo/LoginfoVo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.vo;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 | import lombok.NoArgsConstructor;
7 |
8 | import org.springframework.format.annotation.DateTimeFormat;
9 |
10 | import com.SpringBoot.bean.Loginfo;
11 |
12 | import java.util.Date;
13 |
14 | /**
15 | * @Author: 落亦-
16 | * @Date: 2019/11/23 18:19
17 | */
18 | @Data
19 | @AllArgsConstructor
20 | @NoArgsConstructor
21 | public class LoginfoVo extends Loginfo {
22 |
23 | private Integer page=1;
24 | private Integer limit=10;
25 |
26 | //接收多个id
27 | private Integer[] ids;
28 |
29 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
30 | private Date startTime;
31 |
32 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
33 | private Date endTime;
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/vo/NoticeVo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.vo;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.format.annotation.DateTimeFormat;
6 |
7 | import com.SpringBoot.bean.Notice;
8 |
9 | import lombok.Data;
10 |
11 | /**
12 | * @Author: 落亦-
13 | * @Date: 2019/11/25 8:51
14 | */
15 | @Data
16 | public class NoticeVo extends Notice {
17 |
18 | //接受多个ID
19 | private Integer[] ids;
20 |
21 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
22 | private Date startTime;
23 |
24 | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
25 | private Date endTime;
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/vo/PermissionVo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.vo;
2 |
3 | import com.SpringBoot.bean.Permission;
4 |
5 | import lombok.Data;
6 | import lombok.EqualsAndHashCode;
7 |
8 | /**
9 | * @Author: 落亦-
10 | * @Date: 2019/11/22 15:30
11 | */
12 | @Data
13 | public class PermissionVo extends Permission {
14 |
15 | private Integer page=1;
16 | private Integer limit=10;
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/com/SpringBoot/vo/UserVo.java:
--------------------------------------------------------------------------------
1 | package com.SpringBoot.vo;
2 |
3 | import com.SpringBoot.bean.User;
4 |
5 | import lombok.AllArgsConstructor;
6 | import lombok.Data;
7 | import lombok.EqualsAndHashCode;
8 | import lombok.NoArgsConstructor;
9 |
10 | @Data
11 | @AllArgsConstructor
12 | @NoArgsConstructor
13 | public class UserVo extends User {
14 |
15 |
16 | private Integer page = 1;
17 | private Integer limit = 10;
18 |
19 | }
--------------------------------------------------------------------------------
/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.thymeleaf.cache=false
2 | server.error.include-exception=true
--------------------------------------------------------------------------------
/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8080
3 |
4 | spring:
5 | datasource:
6 | username: root
7 | password: 123456
8 | url: jdbc:mysql://localhost/ERP?useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai
9 | driver-class-name: com.mysql.cj.jdbc.Driver
10 | type: com.alibaba.druid.pool.DruidDataSource
11 | druid:
12 | #初始化大小
13 | initialSize: 5
14 | #最小值
15 | minIdle: 5
16 | #最大值
17 | maxActive: 20
18 | #最大等待时间,配置获取连接等待超时,时间单位都是毫秒ms
19 | maxWait: 60000
20 | #配置间隔多久才进行一次检测,检测需要关闭的空闲连接
21 | timeBetweenEvictionRunsMillis: 60000
22 | #配置一个连接在池中最小生存的时间
23 | minEvictableIdleTimeMillis: 300000
24 | validationQuery: SELECT 1 FROM DUAL
25 | testWhileIdle: true
26 | testOnBorrow: false
27 | testOnReturn: false
28 | poolPreparedStatements: true
29 | # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,
30 | #'wall'用于防火墙,SpringBoot中没有log4j,我改成了log4j2
31 | filters: stat,wall,log4j2
32 | #最大PSCache连接
33 | maxPoolPreparedStatementPerConnectionSize: 20
34 | useGlobalDataSourceStat: true
35 | # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
36 | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
37 | # 配置StatFilter
38 | web-stat-filter:
39 | #默认为false,设置为true启动
40 | enabled: true
41 | url-pattern: "/*"
42 | exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
43 | #配置StatViewServlet
44 | stat-view-servlet:
45 | url-pattern: "/druid/*"
46 | login-username: root
47 | login-password: 123456
48 | #是否可以重置
49 | reset-enable: true
50 | #启用
51 | enabled: true
52 |
53 |
54 | #修改时区,json接收时间格式,发时间json格式
55 | jackson:
56 | time-zone: Asia/Shanghai
57 | date-format: yyyy-MM-dd HH:mm:ss
58 |
59 | mvc:
60 | date-format: yyyy-MM-dd HH:mm:ss
61 |
62 |
63 | thymeleaf:
64 | cache: false
65 | enabled: true
66 |
67 |
68 | http:
69 | encoding:
70 | force: true
71 | charset: utf-8
72 | enabled: true
73 |
74 | mybatis:
75 | config-location: classpath:/mybatis/MybatisConfig.xml
76 | mapper-locations: classpath:/mybatis/mapper/*.xml
77 | type-aliases-package: com.SpringBoot.bean
78 |
79 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/MybatisConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/CustomerMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
24 |
25 |
28 |
29 |
30 | insert into bus_customer (customername,zip,address,telephone,connectionpersion,phone,bank,account,email,fax,available)
31 | values
32 | (#{customername},#{zip},#{address},#{telephone},#{connectionpersion},#{phone},#{bank},#{account},#{email},#{fax},#{available})
33 |
34 |
35 |
36 | update bus_customer set customername=#{customername},zip=#{zip},address=#{address},telephone=#{telephone},
37 | connectionpersion=#{connectionpersion},phone=#{phone},bank=#{bank},account=#{account},email=#{email},
38 | fax=#{fax},available=#{available}
39 | where id=#{id}
40 |
41 |
42 |
43 | delete from bus_customer where id=#{id}
44 |
45 |
46 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/DeptMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
22 |
23 |
24 | insert into sys_dept (pid,name,open, remark,address,available,ordernum,createtime) values (#{pid},#{name},#{open},#{remark},#{address},#{available},#{ordernum},#{createtime});
25 |
26 |
27 |
28 | update sys_dept set pid=#{pid},name=#{name} ,open=#{open},
29 | remark=#{remark},address=#{address},available=#{available},ordernum=#{ordernum}
30 | where id=#{id}
31 |
32 |
33 |
34 | delete from sys_dept where id = #{id}
35 |
36 |
37 |
40 |
41 |
44 |
45 |
48 |
49 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/InportMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
20 |
21 |
22 | insert into bus_inport (paytype,inporttime, operateperson, number, remark, inportprice, providerid, goodsid)
23 | values
24 | (#{paytype},#{inporttime},#{operateperson},#{number},#{remark},#{inportprice},#{providerid},#{goodsid});
25 |
26 |
27 |
28 |
29 | update bus_inport set paytype=#{paytype},inporttime=#{inporttime},number=#{number},remark=#{remark},inportprice=#{inportprice}, providerid=#{providerid},
30 | goodsid=#{goodsid},operateperson=#{operateperson}
31 | where id=#{id}
32 |
33 |
34 |
35 | delete from bus_inport where id = #{id}
36 |
37 |
38 |
41 |
42 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/LoginfoMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
19 |
20 |
21 | insert into sys_loginfo (loginname,loginip,logintime) values (#{loginname},#{loginip},#{logintime});
22 |
23 |
24 |
25 | delete from sys_loginfo where id = #{id}
26 |
27 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/NoticeMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
19 |
20 |
21 | delete from sys_notice where id = #{id}
22 |
23 |
24 |
25 | insert into sys_notice (title,content,createtime,opername) values (#{title},#{content},#{createtime},#{opername})
26 |
27 |
28 |
29 | update sys_notice set content=#{content} where id = #{id}
30 |
31 |
32 |
35 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/OutportMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
21 |
22 |
23 | insert into bus_outport (paytype,outputtime, operateperson, number, remark, outportprice, providerid, goodsid)
24 | values
25 | (#{paytype},#{outputtime},#{operateperson},#{number},#{remark},#{outportprice},#{providerid},#{goodsid});
26 |
27 |
28 |
29 |
30 | delete from bus_outport where id = #{id}
31 |
32 |
33 |
36 |
37 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/PermissionMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
11 |
12 |
15 |
16 |
19 |
20 |
23 |
24 |
33 |
34 |
46 |
47 |
48 | insert into sys_permission (pid,title,icon,href,target,open,ordernum,available,type)
49 | values
50 | (#{pid},#{title},#{icon},#{href},#{target},#{open},#{ordernum},#{available},'menu');
51 |
52 |
53 |
54 | delete from sys_permission where id=#{id}
55 |
56 |
57 |
58 | update sys_permission set pid=#{pid},title=#{title} ,icon=#{icon},
59 | href=#{href},target=#{target},open=#{open},ordernum=#{ordernum},available=#{available}
60 | where id=#{id}
61 |
62 |
63 |
64 | insert into sys_permission (pid,title,percode,open,ordernum,available,type)
65 | values
66 | (#{pid},#{title},#{percode},#{open},#{ordernum},#{available},'permission');
67 |
68 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/ProviderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
23 |
24 |
27 |
28 |
29 |
30 | insert into bus_provider (providername,zip,address,telephone,connectionperson,phone,bank,account,email,fax,available)
31 | values
32 | (#{providername},#{zip},#{address},#{telephone},#{connectionperson},#{phone},#{bank},#{account},#{email},#{fax},#{available});
33 |
34 |
35 |
36 |
37 | update bus_provider set providername=#{providername},zip=#{zip} ,address=#{address},
38 | telephone=#{telephone},connectionperson=#{connectionperson},phone=#{phone},bank=#{bank}
39 | ,account=#{account},email=#{email},fax=#{fax},available=#{available}
40 | where id=#{id}
41 |
42 |
43 |
44 | delete from bus_provider where id=#{id}
45 |
46 |
47 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/RoleMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
23 |
24 |
25 | insert into sys_role(name,remark,available,createtime)
26 | values
27 | (#{name},#{remark},#{available},#{createtime})
28 |
29 |
30 |
31 | update sys_role set name=#{name},remark=#{remark},available=#{available},createtime=#{createtime}
32 | where id=#{id}
33 |
34 |
35 |
36 | delete from sys_role where id=#{id}
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/SalesMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
20 |
21 |
22 | insert into bus_sales(customerid,paytype,salestime,operateperson,number,remark,saleprice,goodsid)
23 | values
24 | (#{customerid},#{paytype},#{salestime},#{operateperson},#{number},#{remark},#{saleprice},#{goodsid})
25 |
26 |
27 |
28 | update bus_sales set customerid=#{customerid},paytype=#{paytype},salestime=#{salestime},operateperson=#{operateperson}
29 | ,number=#{number},remark=#{remark},saleprice=#{saleprice},goodsid=#{goodsid}
30 | where id=#{id}
31 |
32 |
33 |
34 | delete from bus_sales where id=#{id}
35 |
36 |
37 |
40 |
41 |
42 | update bus_sales set number=#{number} where id=#{id}
43 |
44 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/SalesbackMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
20 |
21 |
22 | delete from bus_salesback where id=#{id}
23 |
24 |
25 |
26 | insert into bus_salesback(customerid,paytype,salesbacktime,salebackprice,operateperson,number,remark,goodsid)
27 | values
28 | (#{customerid},#{paytype},#{salesbacktime},#{salebackprice},#{operateperson},#{number},#{remark},#{goodsid})
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
11 |
12 |
27 |
28 |
29 | insert into sys_user ( loginname,ordernum, available, mgr, hiredate, remark, sex,deptid, name, address)
30 | values
31 | (#{loginname},#{ordernum},#{available},#{mgr},#{hiredate},#{remark},#{ sex},#{deptid},#{name},#{address});
32 |
33 |
34 |
35 | update sys_user set loginname=#{loginname},ordernum=#{ordernum},available=#{available},mgr=#{mgr},hiredate=#{hiredate}, remark=#{ remark},
36 | sex=#{sex},deptid=#{deptid},name=#{name}, address=#{ address}
37 | where id=#{id}
38 |
39 |
40 |
41 | update sys_user set pwd=null where id=#{id}
42 |
43 |
44 |
45 | delete from sys_user where id=#{id}
46 |
47 |
48 |
51 |
52 |
55 |
56 |
--------------------------------------------------------------------------------
/src/main/resources/static/error/4xx.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 404--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
我勒个去,页面被外星人挟持了!
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/resources/static/error/5xx.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 404--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
我勒个去,页面被外星人挟持了!
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/resources/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/favicon.ico
--------------------------------------------------------------------------------
/src/main/resources/static/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/alipay.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/alipay.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/close.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/code.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/code.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/face.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/face.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/fly.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/fly.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/git.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/git.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/layui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/layui.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/login_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/login_bg.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/mayun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/mayun.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/userface1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/userface1.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/userface2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/userface2.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/userface3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/userface3.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/userface4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/userface4.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/userface5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/userface5.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/images/wechat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/images/wechat.jpg
--------------------------------------------------------------------------------
/src/main/resources/static/resources/js/address.js:
--------------------------------------------------------------------------------
1 | layui.define(["form","jquery"],function(exports){
2 | var form = layui.form,
3 | $ = layui.jquery,
4 | Address = {
5 | provinces : function() {
6 | //加载省数据
7 | var proHtml = '',that = this;
8 | $.get("../../json/address.json", function (data) {
9 | for (var i = 0; i < data.length; i++) {
10 | proHtml += '';
11 | }
12 | //初始化省数据
13 | $("select[name=province]").append(proHtml);
14 | form.render();
15 | form.on('select(province)', function (proData) {
16 | $("select[name=area]").html('');
17 | var value = proData.value;
18 | if (value > 0) {
19 | that.citys(data[$(this).index() - 1].childs);
20 | } else {
21 | $("select[name=city]").attr("disabled", "disabled");
22 | }
23 | });
24 | })
25 | },
26 | //加载市数据
27 | citys : function(citys) {
28 | var cityHtml = '',that = this;
29 | for (var i = 0; i < citys.length; i++) {
30 | cityHtml += '';
31 | }
32 | $("select[name=city]").html(cityHtml).removeAttr("disabled");
33 | form.render();
34 | form.on('select(city)', function (cityData) {
35 | var value = cityData.value;
36 | if (value > 0) {
37 | that.areas(citys[$(this).index() - 1].childs);
38 | } else {
39 | $("select[name=area]").attr("disabled", "disabled");
40 | }
41 | });
42 | },
43 | //加载县/区数据
44 | areas : function(areas) {
45 | var areaHtml = '';
46 | for (var i = 0; i < areas.length; i++) {
47 | areaHtml += '';
48 | }
49 | $("select[name=area]").html(areaHtml).removeAttr("disabled");
50 | form.render();
51 | }
52 | };
53 | exports("address",Address);
54 | });
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/demoJson.json:
--------------------------------------------------------------------------------
1 | {
2 | "status":{"code":200,"message":"操作成功"},
3 | "data": [
4 | {"id":"001","title": "湖南省","checkArr": "0","parentId": "0"},
5 | {"id":"002","title": "湖北省","checkArr": "0","parentId": "0"},
6 | {"id":"003","title": "广东省","checkArr": "0","parentId": "0"},
7 | {"id":"004","title": "浙江省","checkArr": "0","parentId": "0"},
8 | {"id":"005","title": "福建省","checkArr": "0","parentId": "0"},
9 | {"id":"001001","title": "长沙市","checkArr": "0","parentId": "001"},
10 | {"id":"001002","title": "株洲市","checkArr": "0","parentId": "001"},
11 | {"id":"001003","title": "湘潭市","checkArr": "0","parentId": "001"},
12 | {"id":"001004","title": "衡阳市","checkArr": "0","parentId": "001"},
13 | {"id":"001005","title": "郴州市","checkArr": "0","iconClass": "dtree-icon-caidan_xunzhang","parentId": "001"}
14 | ]
15 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/linkList.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "count": 4,
5 | "data": [
6 | {
7 | "linkId": "1",
8 | "logo": "../../images/layui.png",
9 | "websiteName": "layui - 经典模块化前端框架",
10 | "websiteUrl": "http://www.layui.com",
11 | "masterEmail": "xianxin@layui.com",
12 | "addTime": "2017-05-14",
13 | "showAddress": "checked"
14 | },{
15 | "linkId": "2",
16 | "logo": "../../images/fly.png",
17 | "websiteName": "fly - 前端框架官方社区",
18 | "websiteUrl": "http://fly.layui.com",
19 | "masterEmail": "xianxin@layui.com",
20 | "addTime": "2017-05-14",
21 | "showAddress": ""
22 | },{
23 | "linkId": "3",
24 | "logo": "../../images/mayun.png",
25 | "websiteName": "layuicms2.0 - 码云 - 开源中国",
26 | "websiteUrl": "https://gitee.com/layuicms/layuicms2.0",
27 | "masterEmail": "git@oschina.cn",
28 | "addTime": "2017-05-14",
29 | "showAddress": ""
30 | },{
31 | "linkId": "4",
32 | "logo": "../../images/git.png",
33 | "websiteName": "layuicms2.0 - Github",
34 | "websiteUrl": "https://github.com/BrotherMa/layuiCMS2.0",
35 | "masterEmail": "github@github.cn",
36 | "addTime": "2017-05-14",
37 | "showAddress": ""
38 | }
39 | ]
40 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/linkLogo.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "data": [
5 | {
6 | "src": "../../images/fly.png"
7 | },{
8 | "src": "../../images/git.png"
9 | },{
10 | "src": "../../images/layui.png"
11 | },{
12 | "src": "../../images/mayun.png"
13 | }
14 | ]
15 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/navs.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "文章列表",
4 | "icon": "icon-text",
5 | "href": "page/news/newsList.html",
6 | "spread": false
7 | },
8 | {
9 | "title": "图片管理",
10 | "icon": "",
11 | "href": "page/img/images.html",
12 | "spread": false
13 | },
14 | {
15 | "title": "其他页面",
16 | "icon": "",
17 | "href": "",
18 | "spread": false,
19 | "children": [
20 | {
21 | "title": "404页面",
22 | "icon": "",
23 | "href": "page/404.html",
24 | "spread": false
25 | },
26 | {
27 | "title": "登录",
28 | "icon": "",
29 | "href": "page/login/login.html",
30 | "spread": false,
31 | "target": "_blank"
32 | }
33 | ]
34 | }
35 | ]
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/newsImg.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "data":{
5 | "src": "../../images/userface1.jpg",
6 | "title" : "文章内容图片"
7 | }
8 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/systemParameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "cmsName": "layuiCMS后台管理模版",
3 | "version": "v2.0",
4 | "author": "驊驊龔頾",
5 | "homePage": "index.html",
6 | "server": "windows",
7 | "dataBase": "8.00.2039",
8 | "maxUpload": "2M",
9 | "userRights": "超级管理员",
10 | "description": "这是马哥闲来无事做的一套基于layui的cms模版,纯静态页面,不包含数据库",
11 | "powerby": "copyright @2017 驊驊龔頾",
12 | "record": "京ICP备14040xxx号-1",
13 | "keywords": "layuicms,马哥,layuicms2.0,后台模版,请叫我马哥,驊驊龔頾"
14 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/userGrade.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "count": 1000,
5 | "data": [
6 | {
7 | "id": 1,
8 | "gradeIcon": "icon-vip1",
9 | "gradeName": "倔强青铜",
10 | "gradePoint": "0",
11 | "gradeGold": "0",
12 | "gradeValue": "0"
13 | },
14 | {
15 | "id": 2,
16 | "gradeIcon": "icon-vip2",
17 | "gradeName": "秩序白银",
18 | "gradePoint": "100",
19 | "gradeGold": "200",
20 | "gradeValue": "500"
21 | },
22 | {
23 | "id": 3,
24 | "gradeIcon": "icon-vip3",
25 | "gradeName": "荣耀黄金",
26 | "gradePoint": "300",
27 | "gradeGold": "300",
28 | "gradeValue": "1000"
29 | },
30 | {
31 | "id": 4,
32 | "gradeIcon": "icon-vip4",
33 | "gradeName": "尊贵铂金",
34 | "gradePoint": "800",
35 | "gradeGold": "400",
36 | "gradeValue": "2000"
37 | },
38 | {
39 | "id": 5,
40 | "gradeIcon": "icon-vip5",
41 | "gradeName": "永恒钻石",
42 | "gradePoint": "1500",
43 | "gradeGold": "500",
44 | "gradeValue": "5000"
45 | },
46 | {
47 | "id": 6,
48 | "gradeIcon": "icon-vip6",
49 | "gradeName": "至尊星耀",
50 | "gradePoint": "3000",
51 | "gradeGold": "600",
52 | "gradeValue": "10000"
53 | },
54 | {
55 | "id": 7,
56 | "gradeIcon": "icon-vip7",
57 | "gradeName": "最强王者",
58 | "gradePoint": "5000",
59 | "gradeGold": "700",
60 | "gradeValue": "35000"
61 | }
62 | ]
63 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/userList.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "count": 3,
5 | "data": [
6 | {
7 | "usersId": "1",
8 | "userName": "驊驊龔頾",
9 | "userEmail": "mage@layui.com",
10 | "userSex": "男",
11 | "userStatus": "0",
12 | "userGrade": "4",
13 | "userEndTime": "2018-01-31 10:00",
14 | "userDesc" : "layuiCMS作者,原名‘请叫我马哥’"
15 | },{
16 | "usersId": "2",
17 | "userName": "贤心",
18 | "userEmail": "xianxin@layui.com",
19 | "userSex": "保密",
20 | "userStatus": "0",
21 | "userGrade": "3",
22 | "userEndTime": "2018-01-14 15:35",
23 | "userDesc" : "layui框架作者,性别至今是个谜。。。"
24 | },
25 | {
26 | "usersId": "3",
27 | "userName": "纸飞机",
28 | "userEmail": "fly@layui.com",
29 | "userSex": "男",
30 | "userStatus": "1",
31 | "userGrade": "2",
32 | "userEndTime": "2018-01-25 16:25",
33 | "userDesc" : "fly社区管理员,据传与layui作者有奸情,故帐号被封。"
34 | }
35 | ]
36 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/json/userface.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 0,
3 | "msg": "",
4 | "data": [
5 | {
6 | "src": "../../images/userface1.jpg"
7 | },{
8 | "src": "../../images/userface2.jpg"
9 | },{
10 | "src": "../../images/userface3.jpg"
11 | },{
12 | "src": "../../images/userface4.jpg"
13 | },{
14 | "src": "../../images/userface5.jpg"
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/code.css:
--------------------------------------------------------------------------------
1 | /** layui-v2.5.6 MIT License By https://www.layui.com */
2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/layer/default/icon-ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/css/modules/layer/default/icon-ext.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/layer/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/css/modules/layer/default/icon.png
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/layer/default/loading-0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/css/modules/layer/default/loading-0.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/layer/default/loading-1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/css/modules/layer/default/loading-1.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/css/modules/layer/default/loading-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/css/modules/layer/default/loading-2.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/font/iconfont.eot
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/font/iconfont.ttf
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/font/iconfont.woff
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/font/iconfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/font/iconfont.woff2
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/0.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/1.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/10.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/11.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/11.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/12.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/13.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/13.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/14.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/14.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/15.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/15.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/16.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/17.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/17.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/18.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/18.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/19.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/19.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/2.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/20.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/20.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/21.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/21.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/22.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/22.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/23.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/23.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/24.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/24.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/25.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/25.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/26.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/26.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/27.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/27.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/28.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/28.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/29.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/29.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/3.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/30.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/30.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/31.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/31.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/32.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/33.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/33.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/34.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/34.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/35.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/35.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/36.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/36.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/37.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/37.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/38.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/38.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/39.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/39.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/4.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/40.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/40.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/41.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/41.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/42.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/42.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/43.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/43.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/44.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/44.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/45.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/45.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/46.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/46.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/47.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/47.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/48.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/49.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/49.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/5.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/50.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/51.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/51.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/52.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/52.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/53.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/54.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/54.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/55.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/55.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/56.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/56.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/57.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/58.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/58.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/59.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/59.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/6.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/60.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/60.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/61.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/61.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/62.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/62.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/63.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/63.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/64.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/64.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/65.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/65.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/66.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/66.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/67.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/67.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/68.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/68.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/69.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/69.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/7.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/7.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/70.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/70.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/71.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/71.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/8.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/8.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/images/face/9.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui/images/face/9.gif
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/lay/modules/code.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.5.6 MIT License By https://www.layui.com */
2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('- '+o.replace(/[\r\t\n]+/g,"
- ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend(''+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"
");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/lay/modules/flow.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.5.6 MIT License By https://www.layui.com */
2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),!i&&f.width()&&(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui/lay/modules/laytpl.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.5.6 MIT License By https://www.layui.com */
2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui_ext/dtree/dtree1.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "status":{"code":200,"message":"操作成功"},
4 | "data": [
5 | {"id":"001","title": "湖南省","checkArr": "0","parentId": "0"},
6 | {"id":"002","title": "湖北省","checkArr": "0","parentId": "0"},
7 | {"id":"003","title": "广东省","checkArr": "0","parentId": "0"},
8 | {"id":"004","title": "浙江省","checkArr": "0","parentId": "0"},
9 | {"id":"005","title": "福建省","checkArr": "0","parentId": "0"},
10 | {"id":"001001","title": "长沙市","checkArr": "0","parentId": "001"},
11 | {"id":"001002","title": "株洲市","checkArr": "0","parentId": "001"},
12 | {"id":"001003","title": "湘潭市","checkArr": "0","parentId": "001"},
13 | {"id":"001004","title": "衡阳市","checkArr": "0","parentId": "001"},
14 | {"id":"001005","title": "郴州市","checkArr": "0","iconClass": "dtree-icon-caidan_xunzhang","parentId": "001"}
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.eot
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.ttf
--------------------------------------------------------------------------------
/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dayinyin/SpringBoot-ERP/96f0c76b576c4f9d84d2eace9c90520a44b02a80/src/main/resources/static/resources/layui_ext/dtree/font/dtreefont.woff
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/img/images.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 图片总数--layui后台管理模板
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/login/login.js:
--------------------------------------------------------------------------------
1 | layui.use(['form','layer','jquery'],function(){
2 | var form = layui.form,
3 | layer = parent.layer === undefined ? layui.layer : top.layer;
4 | $ = layui.jquery;
5 |
6 | $(".loginBody .seraph").click(function(){
7 | layer.msg("这只是做个样式,至于功能,你见过哪个后台能这样登录的?还是老老实实的找管理员去注册吧",{
8 | time:5000
9 | });
10 | });
11 |
12 | //登录按钮
13 | form.on("submit(login)",function(data){
14 | var btn = $(this);
15 | //设置登录按钮 为不可点击
16 | btn.text("登录中...").attr("disabled","disabled").addClass("layui-disabled");
17 | $.post("/login/login",data.field,function(rs){
18 | //设置登录按钮 恢复可点击 在前端防止 重复点击
19 | btn.text("登录").attr("disabled",false).removeClass("layui-disabled");
20 | layer.msg(rs.msg);
21 | if(rs.code != 200){
22 | layer.msg(rs.msg);
23 | }else{
24 | //跳转到templates/system/index/index.html页面
25 | layer.msg(rs.msg);
26 | location.href="/sys/index";
27 | }
28 | });
29 | return false;
30 | });
31 |
32 | //表单输入效果
33 | $(".loginBody .input-item").click(function(e){
34 | e.stopPropagation();
35 | $(this).addClass("layui-input-focus").find(".layui-input").focus();
36 | });
37 | $(".loginBody .layui-form-item .layui-input").focus(function(){
38 | $(this).parent().addClass("layui-input-focus");
39 | });
40 | $(".loginBody .layui-form-item .layui-input").blur(function(){
41 | $(this).parent().removeClass("layui-input-focus");
42 | if($(this).val() != ''){
43 | $(this).parent().addClass("layui-input-active");
44 | }else{
45 | $(this).parent().removeClass("layui-input-active");
46 | }
47 | })
48 | });
49 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 首页
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
最新文章
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/news/newsList.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 文章列表--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/icons.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 图标管理--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | layuiCMS 2.0当前共引入个外部图标。【点击可复制】此页面并非后台模版需要的,只是为了让大家了解都引入了哪些外部图标,实际应用中可删除。
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/icons.js:
--------------------------------------------------------------------------------
1 | layui.use(['form','layer','jquery'],function(){
2 | var form = layui.form,
3 | layer = parent.layer === undefined ? layui.layer : top.layer,
4 | element = layui.element;
5 | $ = layui.jquery;
6 |
7 | $.get(iconUrl,function(data){
8 | var iconHtml = '';
9 | for(var i=1;i"+
11 | "" +
12 | "icon-" + data.split('.icon-')[i].split(':before')[0] +
13 | "";
14 | }
15 | $(".icons").html(iconHtml);
16 | $(".iconsLength").text(data.split(".icon-").length-1);
17 | });
18 |
19 | $("body").on("click",".icons li",function(){
20 | var copyText = document.getElementById("copyText");
21 | copyText.innerText = $(this).text();
22 | copyText.select();
23 | document.execCommand("copy");
24 | layer.msg("复制成功",{anim: 2});
25 | })
26 | });
27 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/linkList.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 友情链接--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/linksAdd.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 文章列表--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/logs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 系统日志--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/systemSetting/logs.js:
--------------------------------------------------------------------------------
1 | layui.use(['table'],function(){
2 | var table = layui.table;
3 |
4 | //系统日志
5 | table.render({
6 | elem: '#logs',
7 | url : '../../json/logs.json',
8 | cellMinWidth : 95,
9 | page : true,
10 | height : "full-20",
11 | limit : 20,
12 | limits : [10,15,20,25],
13 | id : "systemLog",
14 | cols : [[
15 | {type: "checkbox", fixed:"left", width:50},
16 | {field: 'logId', title: '序号', width:60, align:"center"},
17 | {field: 'url', title: '请求地址', width:350},
18 | {field: 'method', title: '操作方式', align:'center',templet:function(d){
19 | if(d.method.toUpperCase() == "GET"){
20 | return ''+d.method+''
21 | }else{
22 | return ''+d.method+''
23 | }
24 | }},
25 | {field: 'ip', title: '操作IP', align:'center',minWidth:130},
26 | {field: 'timeConsuming', title: '耗时', align:'center',templet:function(d){
27 | return ''+d.timeConsuming+''
28 | }},
29 | {field: 'isAbnormal', title: '是否异常', align:'center',templet:function(d){
30 | if(d.isAbnormal == "正常"){
31 | return ''+d.isAbnormal+''
32 | }else{
33 | return ''+d.isAbnormal+''
34 | }
35 | }},
36 | {field: 'operator',title: '操作人', minWidth:100, templet:'#newsListBar',align:"center"},
37 | {field: 'operatingTime', title: '操作时间', align:'center', width:170}
38 | ]]
39 | });
40 |
41 | });
42 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/user/changePwd.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 修改密码--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/user/userAdd.js:
--------------------------------------------------------------------------------
1 | layui.use(['form','layer'],function(){
2 | var form = layui.form;
3 | layer = parent.layer === undefined ? layui.layer : top.layer,
4 | $ = layui.jquery;
5 |
6 | form.on("submit(addUser)",function(data){
7 | //弹出loading
8 | var index = top.layer.msg('数据提交中,请稍候',{icon: 16,time:false,shade:0.8});
9 | // 实际使用时的提交信息
10 | // $.post("上传路径",{
11 | // userName : $(".userName").val(), //登录名
12 | // userEmail : $(".userEmail").val(), //邮箱
13 | // userSex : data.field.sex, //性别
14 | // userGrade : data.field.userGrade, //会员等级
15 | // userStatus : data.field.userStatus, //用户状态
16 | // newsTime : submitTime, //添加时间
17 | // userDesc : $(".userDesc").text(), //用户简介
18 | // },function(res){
19 | //
20 | // })
21 | setTimeout(function(){
22 | top.layer.close(index);
23 | top.layer.msg("用户添加成功!");
24 | layer.closeAll("iframe");
25 | //刷新父页面
26 | parent.location.reload();
27 | },2000);
28 | return false;
29 | });
30 |
31 | //格式化时间
32 | function filterTime(val){
33 | if(val < 10){
34 | return "0" + val;
35 | }else{
36 | return val;
37 | }
38 | }
39 | //定时发布
40 | var time = new Date();
41 | var submitTime = time.getFullYear()+'-'+filterTime(time.getMonth()+1)+'-'+filterTime(time.getDate())+' '+filterTime(time.getHours())+':'+filterTime(time.getMinutes())+':'+filterTime(time.getSeconds());
42 |
43 | });
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/user/userGrade.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 会员等级--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/page/user/userList.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 用户中心--layui后台管理模板 2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/src/main/resources/static/resources/tinymce/plugins/anchor/plugin.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3 | * Licensed under the LGPL or a commercial license.
4 | * For LGPL see License.txt in the project root for license information.
5 | * For commercial licenses see https://www.tiny.cloud/
6 | *
7 | * Version: 5.1.6 (2020-01-28)
8 | */
9 | !function(){"use strict";function e(o){return function(t){for(var e=0;ey(e)&&(i=o+g);var l=z(e);if(l&&l")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};!function e(){n.add("hr",function(n){o(n),t(n)})}()}();
--------------------------------------------------------------------------------
/src/main/resources/static/resources/tinymce/plugins/nonbreaking/plugin.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3 | * Licensed under the LGPL or a commercial license.
4 | * For LGPL see License.txt in the project root for license information.
5 | * For commercial licenses see https://www.tiny.cloud/
6 | *
7 | * Version: 5.1.6 (2020-01-28)
8 | */
9 | !function(){"use strict";function o(n,e){for(var t="",o=0;o'+o(" ",e)+"":o(" ",e);n.undoManager.transact(function(){return n.insertContent(t)})},e=function(n){n.addCommand("mceNonBreaking",function(){r(n,1)})},c=tinymce.util.Tools.resolve("tinymce.util.VK"),t=function(e){var t=i(e);0"===r){var a=o.lastIndexOf("<",e);if(-1!==a)if(-1!==o.substring(a,e).indexOf('contenteditable="false"'))return t}return''+i.dom.encode("string"==typeof n[1]?n[1]:n[0])+""}}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.util.Tools"),f=function(t){return t.getParam("noneditable_noneditable_class","mceNonEditable")},s=function(t){return t.getParam("noneditable_editable_class","mceEditable")},d=function(t){var n=t.getParam("noneditable_regexp",[]);return n&&n.constructor===RegExp?[n]:n},n=function(n){var t,e,r="contenteditable";t=" "+u.trim(s(n))+" ",e=" "+u.trim(f(n))+" ";var a=c(t),i=c(e),o=d(n);n.on("PreInit",function(){0'}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),r=function(e){return e.getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e")},i=function(e){return e.getParam("pagebreak_split_block",!1)},o=function(o){var c=r(o),n=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");o.on("BeforeSetContent",function(e){e.content=e.content.replace(n,a())}),o.on("PreInit",function(){o.serializer.addNodeFilter("img",function(e){for(var n,a,t=e.length;t--;)if((a=(n=e[t]).attr("class"))&&-1!==a.indexOf("mce-pagebreak")){var r=n.parent;if(o.schema.getBlockElements()[r.name]&&i(o)){r.type=3,r.value=c,r.raw=!0,n.remove();continue}n.type=3,n.value=c,n.raw=!0}})})},c=a,u=e,g=function(e){e.addCommand("mcePageBreak",function(){e.settings.pagebreak_split_block?e.insertContent(""+c()+"
"):e.insertContent(c())})},m=function(n){n.on("ResolveName",function(e){"IMG"===e.target.nodeName&&n.dom.hasClass(e.target,u())&&(e.name="pagebreak")})},s=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})};!function l(){n.add("pagebreak",function(e){g(e),s(e),o(e),m(e)})}()}();
--------------------------------------------------------------------------------
/src/main/resources/static/resources/tinymce/plugins/preview/plugin.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3 | * Licensed under the LGPL or a commercial license.
4 | * For LGPL see License.txt in the project root for license information.
5 | * For commercial licenses see https://www.tiny.cloud/
6 | *
7 | * Version: 5.1.6 (2020-01-28)
8 | */
9 | !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=function(e){return e.getParam("content_style","")},u=function(e){return e.getParam("content_css_cors",!1,"boolean")},y=tinymce.util.Tools.resolve("tinymce.Env"),n=function(t){var n="",i=t.dom.encode,e=m(t);n+='',e&&(n+='");var o=u(t)?' crossorigin="anonymous"':"";l.each(t.contentCSS,function(e){n+='"});var r=t.settings.body_id||"tinymce";-1!==r.indexOf("=")&&(r=(r=t.getParam("body_id","","hash"))[t.id]||r);var a=t.settings.body_class||"";-1!==a.indexOf("=")&&(a=(a=t.getParam("body_class","","hash"))[t.id]||"");var c='
18 |
19 |
20 |
21 |
44 |
45 |
46 |