├── README.md
├── src
├── main
│ ├── resources
│ │ ├── config.properties
│ │ ├── rebel-remote.xml
│ │ ├── wx.properties
│ │ ├── jdbc.properties
│ │ ├── rebel.xml
│ │ ├── spring-tx.xml
│ │ ├── log4j.properties
│ │ ├── spring-dao.xml
│ │ ├── spring-db.xml
│ │ ├── spring-mvc.xml
│ │ └── applicationContext.xml
│ ├── webapp
│ │ ├── img
│ │ │ ├── logo.png
│ │ │ ├── test.jpg
│ │ │ ├── logo2.png
│ │ │ ├── logobg.png
│ │ │ ├── logowx.png
│ │ │ ├── topimg.png
│ │ │ ├── bg-login.png
│ │ │ ├── logo123.png
│ │ │ └── repairman.png
│ │ ├── css
│ │ │ ├── style.css
│ │ │ ├── main.css
│ │ │ ├── bootstrap-multiselect.css
│ │ │ └── messenger.css
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ ├── fontawesome-webfont.woff2
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ └── glyphicons-halflings-regular.woff2
│ │ ├── music
│ │ │ └── notifymusic.wav
│ │ ├── layui
│ │ │ ├── font
│ │ │ │ ├── iconfont.eot
│ │ │ │ ├── iconfont.ttf
│ │ │ │ └── iconfont.woff
│ │ │ ├── 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
│ │ │ ├── css
│ │ │ │ └── modules
│ │ │ │ │ ├── layer
│ │ │ │ │ └── default
│ │ │ │ │ │ ├── icon.png
│ │ │ │ │ │ ├── icon-ext.png
│ │ │ │ │ │ ├── loading-0.gif
│ │ │ │ │ │ ├── loading-1.gif
│ │ │ │ │ │ └── loading-2.gif
│ │ │ │ │ └── code.css
│ │ │ └── lay
│ │ │ │ └── modules
│ │ │ │ ├── code.js
│ │ │ │ ├── laytpl.js
│ │ │ │ ├── flow.js
│ │ │ │ ├── util.js
│ │ │ │ ├── tree.js
│ │ │ │ ├── carousel.js
│ │ │ │ └── laypage.js
│ │ ├── WEB-INF
│ │ │ ├── lib
│ │ │ │ ├── wx-tools-2.1.3.jar
│ │ │ │ ├── aliyun-java-sdk-core-3.3.1.jar
│ │ │ │ └── aliyun-java-sdk-dysmsapi-1.0.0.jar
│ │ │ ├── error
│ │ │ │ ├── error.html
│ │ │ │ └── errorLogin.jsp
│ │ │ ├── authentication.jsp
│ │ │ ├── web.xml
│ │ │ └── jsp
│ │ │ │ ├── admin
│ │ │ │ ├── WxOnlineRepairMsgManager.jsp
│ │ │ │ ├── AdminMsgManager.jsp
│ │ │ │ └── flatMsgManager.jsp
│ │ │ │ ├── wx
│ │ │ │ ├── repair_progress.jsp
│ │ │ │ └── bindWxSystem.jsp
│ │ │ │ └── repairman
│ │ │ │ └── repairmanAcceptance.jsp
│ │ ├── common
│ │ │ ├── head.jsp
│ │ │ ├── foot.jsp
│ │ │ ├── menu.jsp
│ │ │ └── css.jsp
│ │ ├── js
│ │ │ ├── flatMsgManager.js
│ │ │ ├── repair_msg_detail.js
│ │ │ ├── base.js
│ │ │ ├── bindWxSystem.js
│ │ │ ├── stuMsgManager.js
│ │ │ ├── adminMsgManager.js
│ │ │ └── app.js
│ │ └── static
│ │ │ ├── acceptanceSuccess.html
│ │ │ ├── submitSuccess.html
│ │ │ ├── success.html
│ │ │ └── wxbinderror.html
│ └── java
│ │ └── org
│ │ └── tysf
│ │ └── gt
│ │ ├── service
│ │ ├── ISimageService.java
│ │ ├── IFlatService.java
│ │ ├── IRepairLogService.java
│ │ ├── IRepairAreaService.java
│ │ ├── IRepairProjectService.java
│ │ ├── impl
│ │ │ ├── SimageServiceImpl.java
│ │ │ ├── FlatServiceImpl.java
│ │ │ ├── RepairLogServiceImpl.java
│ │ │ ├── RepairAreaServiceImpl.java
│ │ │ ├── RepairProjectServiceImpl.java
│ │ │ ├── AdministratorServiceImpl.java
│ │ │ ├── StuMsgServiceImpl.java
│ │ │ ├── RepairmanServiceImpl.java
│ │ │ ├── WxOnlineRepairMsgServiceImpl.java
│ │ │ └── WebSocketTest.java
│ │ ├── IAdministratoraService.java
│ │ ├── IStuMsgService.java
│ │ ├── IRepairmanService.java
│ │ └── IWxOnlineRepairMsgService.java
│ │ ├── dao
│ │ ├── ISimageDao.java
│ │ ├── IRepairLogDao.java
│ │ ├── IRepairAreaDao.java
│ │ ├── IFlatDao.java
│ │ ├── IAdministratorDao.java
│ │ ├── IRepairProjectDao.java
│ │ ├── IStudentMsgDao.java
│ │ ├── IRepairmanDao.java
│ │ └── IWxOnlineRepairMsgDao.java
│ │ ├── utils
│ │ ├── UUIDUtils.java
│ │ ├── GsonUtils.java
│ │ ├── AdminIdentifyUtils.java
│ │ ├── RepairmanIdentityUtils.java
│ │ ├── MD5Utils.java
│ │ └── SmsUtils.java
│ │ ├── pojo
│ │ ├── Greeting.java
│ │ ├── Page.java
│ │ ├── HelloMessage.java
│ │ ├── TemplateContent.java
│ │ ├── RepairArea.java
│ │ ├── Flat.java
│ │ ├── RepairLog.java
│ │ ├── RepairProject.java
│ │ ├── TemplateData.java
│ │ ├── Administrator.java
│ │ ├── Repairman.java
│ │ ├── SImage.java
│ │ └── StudentMsg.java
│ │ ├── api
│ │ ├── AddressApi.java
│ │ └── WxRepairMsgApi.java
│ │ ├── mapper
│ │ ├── FlatMsgMapper.xml
│ │ ├── SImageMapper.xml
│ │ ├── RepairAreaMapper.xml
│ │ ├── RepairLogMapper.xml
│ │ ├── AdministratorMapper.xml
│ │ ├── RepairProjectMapper.xml
│ │ ├── ReparimanMapper.xml
│ │ └── StudentMsgMapper.xml
│ │ ├── interceptor
│ │ └── LoginInterceptor.java
│ │ ├── wechat
│ │ ├── hanlder
│ │ │ ├── SubscribeHanlder.java
│ │ │ └── ClickHanlder.java
│ │ └── controller
│ │ │ └── WxInitContoller.java
│ │ └── admin
│ │ └── controller
│ │ ├── ShowImageController.java
│ │ ├── FlatController.java
│ │ ├── RepariAreaManagerContoller.java
│ │ ├── UploadController.java
│ │ ├── StuMsgManagerController.java
│ │ └── RepairProjectManagerController.java
└── test
│ └── java
│ └── org
│ └── tysf
│ └── gt
│ └── junit
│ └── RepairManJunit.java
├── .mvn
└── wrapper
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # repair
2 | 太原师范学院报修系统
3 |
--------------------------------------------------------------------------------
/src/main/resources/config.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/logo.png
--------------------------------------------------------------------------------
/src/main/webapp/img/test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/test.jpg
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/src/main/webapp/css/style.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/css/style.css
--------------------------------------------------------------------------------
/src/main/webapp/img/logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/logo2.png
--------------------------------------------------------------------------------
/src/main/webapp/img/logobg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/logobg.png
--------------------------------------------------------------------------------
/src/main/webapp/img/logowx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/logowx.png
--------------------------------------------------------------------------------
/src/main/webapp/img/topimg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/topimg.png
--------------------------------------------------------------------------------
/src/main/webapp/img/bg-login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/bg-login.png
--------------------------------------------------------------------------------
/src/main/webapp/img/logo123.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/logo123.png
--------------------------------------------------------------------------------
/src/main/webapp/img/repairman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/img/repairman.png
--------------------------------------------------------------------------------
/src/main/webapp/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/src/main/webapp/music/notifymusic.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/music/notifymusic.wav
--------------------------------------------------------------------------------
/src/main/webapp/layui/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/font/iconfont.eot
--------------------------------------------------------------------------------
/src/main/webapp/layui/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/font/iconfont.ttf
--------------------------------------------------------------------------------
/src/main/webapp/layui/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/font/iconfont.woff
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/0.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/1.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/10.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/11.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/11.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/12.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/13.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/13.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/14.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/14.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/15.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/15.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/16.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/17.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/17.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/18.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/18.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/19.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/19.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/2.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/20.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/20.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/21.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/21.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/22.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/22.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/23.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/23.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/24.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/24.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/25.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/25.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/26.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/26.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/27.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/27.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/28.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/28.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/29.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/29.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/3.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/30.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/30.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/31.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/31.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/32.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/33.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/33.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/34.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/34.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/35.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/35.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/36.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/36.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/37.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/37.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/38.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/38.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/39.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/39.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/4.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/40.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/40.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/41.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/41.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/42.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/42.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/43.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/43.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/44.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/44.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/45.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/45.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/46.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/46.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/47.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/47.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/48.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/49.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/49.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/5.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/50.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/51.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/51.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/52.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/52.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/53.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/54.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/54.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/55.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/55.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/56.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/56.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/57.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/58.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/58.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/59.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/59.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/6.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/60.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/60.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/61.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/61.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/62.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/62.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/63.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/63.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/64.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/64.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/65.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/65.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/66.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/66.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/67.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/67.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/68.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/68.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/69.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/69.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/7.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/7.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/70.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/70.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/71.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/71.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/8.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/8.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/images/face/9.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/images/face/9.gif
--------------------------------------------------------------------------------
/src/main/webapp/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/src/main/webapp/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/src/main/resources/rebel-remote.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | repairManager
4 |
5 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/wx-tools-2.1.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/WEB-INF/lib/wx-tools-2.1.3.jar
--------------------------------------------------------------------------------
/src/main/webapp/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/src/main/webapp/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip
2 |
--------------------------------------------------------------------------------
/src/main/webapp/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/aliyun-java-sdk-core-3.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/WEB-INF/lib/aliyun-java-sdk-core-3.3.1.jar
--------------------------------------------------------------------------------
/src/main/webapp/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/layer/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/css/modules/layer/default/icon.png
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/layer/default/icon-ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/css/modules/layer/default/icon-ext.png
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/lib/aliyun-java-sdk-dysmsapi-1.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/WEB-INF/lib/aliyun-java-sdk-dysmsapi-1.0.0.jar
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/layer/default/loading-0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/css/modules/layer/default/loading-0.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/layer/default/loading-1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/css/modules/layer/default/loading-1.gif
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/layer/default/loading-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/warrenwuz/repair/HEAD/src/main/webapp/layui/css/modules/layer/default/loading-2.gif
--------------------------------------------------------------------------------
/src/main/resources/wx.properties:
--------------------------------------------------------------------------------
1 | wx.appId=wx569821408b1f3a92
2 | wx.appSecret=254a891bf31b357ab51844bcde630f7a
3 | wx.token=gt
4 | wx.aesKey=
5 | wx.mchId=
6 | wx.address=http://gongting.tunnel.qydev.com
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/ISimageService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import org.tysf.gt.pojo.SImage;
4 |
5 | public interface ISimageService {
6 | public void addSImage(SImage sImage);//添加图片
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/resources/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://39.106.165.177:3306/repairmanager?useUnicode=true&characterEncoding=UTF-8&useSSL=false
3 | jdbc.username=root
4 | jdbc.password=Wuzhe1206.
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/error/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Insert title here
6 |
7 |
8 | 会话已失效,点击重新登陆
9 |
10 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/ISimageDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import org.tysf.gt.pojo.SImage;
4 |
5 | /**
6 | * 报修上传图片
7 | * @author wuzhe
8 | *
9 | */
10 | public interface ISimageDao {
11 | public void addSImage(SImage sImage);//添加图片
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IFlatService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.Flat;
6 |
7 | public interface IFlatService {
8 | public List queryFlatAll();//查询所有公寓
9 | public void addFlat(Flat flat);//添加公寓
10 | public void modifyFlat(Flat flat);//修改公寓信息
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/authentication.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 |
7 | Insert title here
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/utils/UUIDUtils.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.utils;
2 |
3 | import java.util.UUID;
4 | /**
5 | * 生成UUID的工具类
6 | * @author wuzhe
7 | *
8 | */
9 | public class UUIDUtils {
10 | public static String getUUID(){
11 | String uuid=UUID.randomUUID().toString().replaceAll("-", "");
12 | return uuid;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/webapp/css/main.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: #f5f5f5;
3 | }
4 |
5 | #main-content {
6 | max-width: 940px;
7 | padding: 2em 3em;
8 | margin: 0 auto 20px;
9 | background-color: #fff;
10 | border: 1px solid #e5e5e5;
11 | -webkit-border-radius: 5px;
12 | -moz-border-radius: 5px;
13 | border-radius: 5px;
14 | }
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/Greeting.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | public class Greeting {
4 | private String content;
5 |
6 | public Greeting() {
7 | }
8 |
9 | public Greeting(String content) {
10 | this.content = content;
11 | }
12 |
13 | public String getContent() {
14 | return content;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IRepairLogDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairLog;
6 |
7 | public interface IRepairLogDao {
8 | //通过维修ID查找维修日志
9 | public List queryRepairLogByWpid(String wpid);
10 | //添加维修日志
11 | public void addRepairLog(RepairLog repairLog);
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IRepairLogService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairLog;
6 |
7 | public interface IRepairLogService {
8 | //通过维修ID查找维修日志
9 | public List queryRepairLogByWpid(String wpid);
10 | //添加维修日志
11 | public void addRepairLog(RepairLog repairLog);
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | !.mvn/wrapper/maven-wrapper.jar
3 |
4 | ### STS ###
5 | .apt_generated
6 | .classpath
7 | .factorypath
8 | .project
9 | .settings
10 | .springBeans
11 | .sts4-cache
12 |
13 | ### IntelliJ IDEA ###
14 | .idea
15 | *.iws
16 | *.iml
17 | *.ipr
18 |
19 | ### NetBeans ###
20 | /nbproject/private/
21 | /build/
22 | /nbbuild/
23 | /dist/
24 | /nbdist/
25 | /.nb-gradle/
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IRepairAreaDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairArea;
6 |
7 | public interface IRepairAreaDao {
8 |
9 | public List queryRepairArea();
10 |
11 | public int addRepairAreaGetRaid(String raname);
12 |
13 | public void modifyRepairArea(RepairArea repairArea);
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IFlatDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.Flat;
6 |
7 | /**
8 | * 公寓
9 | *
10 | * @author wuzhe
11 | *
12 | */
13 | public interface IFlatDao {
14 | public List queryFlatAll();// 查询所有公寓
15 |
16 | public void addFlat(Flat flat);//添加公寓
17 |
18 | public void modifyFlat(Flat flat);//修改公寓信息
19 | }
20 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IRepairAreaService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairArea;
6 |
7 | public interface IRepairAreaService {
8 |
9 | public List queryRepairArea();
10 |
11 | public int addRepairAreaGetRaid(String raname);
12 |
13 | public void modifyRepairArea(RepairArea repairArea);
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/utils/GsonUtils.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.utils;
2 |
3 | import com.google.gson.Gson;
4 | //JSON格式化工具类
5 | public class GsonUtils {
6 | private static final Gson gson=new Gson();
7 | public static E getObject(String json,Class e){
8 | return gson.fromJson(json, e);
9 | }
10 | public static String getJsonStr(Object object){
11 | return gson.toJson(object);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/utils/AdminIdentifyUtils.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.utils;
2 |
3 | import org.tysf.gt.api.AddressApi;
4 |
5 | public class AdminIdentifyUtils {
6 | //编写员工的工号
7 | public static String getAdminIdentify(int count){
8 | String identify="0000"+(count+1);
9 | System.out.println(identify);
10 | return AddressApi.SCHOOLCODE+identify.substring(identify.length()-4);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/Page.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | import java.io.Serializable;
4 |
5 | /**
6 | * 分页实体类
7 | * @author wuzhe
8 | *
9 | */
10 | public class Page implements Serializable{
11 |
12 | /**
13 | *
14 | */
15 | private static final long serialVersionUID = 1L;
16 | /* private int currentPage=1;//当前页
17 | private int pageSize;//每页大小
18 | private int pageTotal;//总页数
19 | */
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/HelloMessage.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | public class HelloMessage {
4 | private String name;
5 |
6 | public HelloMessage() {
7 | }
8 |
9 | public HelloMessage(String name) {
10 | this.name = name;
11 | }
12 |
13 | public String getName() {
14 | return name;
15 | }
16 |
17 | public void setName(String name) {
18 | this.name = name;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IRepairProjectService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairProject;
6 |
7 | public interface IRepairProjectService {
8 |
9 | public List queryRepairProject();
10 |
11 | public List queryRepairProjectByRaid(int raid);
12 |
13 | public int repairProjectAddGetRpid(RepairProject repairProject);
14 |
15 | public void repairProjectModify(RepairProject repairProject);
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/utils/RepairmanIdentityUtils.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.utils;
2 |
3 | import org.tysf.gt.api.AddressApi;
4 |
5 | public class RepairmanIdentityUtils {
6 | //编写员工的工号
7 | public static String getRepairmaIdentify(int count){
8 | String identify="00000"+(count+1);
9 | System.out.println(identify);
10 | return AddressApi.SCHOOLCODE+identify.substring(identify.length()-5);
11 | }
12 | public static void main(String[] args) {
13 |
14 | System.out.println( getRepairmaIdentify(5));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/impl/SimageServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service.impl;
2 |
3 | import javax.annotation.Resource;
4 |
5 | import org.springframework.stereotype.Service;
6 | import org.tysf.gt.dao.ISimageDao;
7 | import org.tysf.gt.pojo.SImage;
8 | import org.tysf.gt.service.ISimageService;
9 |
10 | @Service
11 | public class SimageServiceImpl implements ISimageService {
12 | @Resource
13 | private ISimageDao simageDao;
14 |
15 | @Override
16 | public void addSImage(SImage sImage) {
17 | simageDao.addSImage(sImage);
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IAdministratoraService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.Administrator;
6 |
7 | public interface IAdministratoraService {
8 |
9 | public List queryAdmin();
10 |
11 | public Administrator queryAdminByIdAndPassword(Administrator administrator);
12 |
13 | public void addAdministrator(Administrator administrator);
14 |
15 | public void modifyAdministratorNameAndPassword(Administrator administrator);
16 |
17 | public void modifyAdministratorTel(Administrator administrator);
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/main/webapp/common/head.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IAdministratorDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 | import java.util.List;
3 |
4 | import org.tysf.gt.pojo.Administrator;
5 | public interface IAdministratorDao {
6 | //查找全部的管理人员
7 | public List queryAdmin();
8 | //通过管理员ID和密码查找管理员
9 | public Administrator queryAdminByIdAndPassword(Administrator administrator);
10 | //添加管理人员信息
11 | public void addAdministrator(Administrator administrator);
12 | //更新管理员名字并更新密码(因为密码是由管理员的工号和名字得来的,更新了管理名字密码必须更新)
13 | public void modifyAdministratorNameAndPassword(Administrator administrator);
14 | //更新管理员电话
15 | public void modifyAdministratorTel(Administrator administrator);
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IRepairProjectDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.RepairProject;
6 |
7 | public interface IRepairProjectDao {
8 |
9 | public List queryRepairProject();
10 |
11 | public List queryRepairProjectByRaid(int raid);
12 |
13 | public int repairProjectAddGetRpid(RepairProject repairProject);
14 |
15 | public void repairProjectModify(RepairProject repairProject);
16 | //通过维修工人工号查找维修范围
17 | public List queryProjectByRmid(String rmid);
18 | //查找维修工人还有选择的维修范围
19 | public List queryUnSelectRepairProject(String rmid);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/error/errorLogin.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 |
9 |
10 | Insert title here
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/resources/rebel.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/impl/FlatServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service.impl;
2 |
3 |
4 | import java.util.List;
5 |
6 | import javax.annotation.Resource;
7 |
8 | import org.springframework.stereotype.Service;
9 | import org.tysf.gt.dao.IFlatDao;
10 | import org.tysf.gt.pojo.Flat;
11 | import org.tysf.gt.service.IFlatService;
12 | @Service
13 | public class FlatServiceImpl implements IFlatService{
14 | @Resource
15 | IFlatDao flatDao;
16 | @Override
17 | public List queryFlatAll() {
18 | return flatDao.queryFlatAll();
19 | }
20 | @Override
21 | public void addFlat(Flat flat) {
22 | flatDao.addFlat(flat);
23 | }
24 | @Override
25 | public void modifyFlat(Flat flat) {
26 | flatDao.modifyFlat(flat);
27 |
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IStuMsgService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.StudentMsg;
6 |
7 | /**
8 | * 学生信息逻辑接口
9 | * @author wuzhe
10 | *
11 | */
12 | public interface IStuMsgService {
13 | public List queryStudentMsg();//查询学生信息
14 | public void modifyStuMsg(StudentMsg studentMsg);//修改学生信息
15 | public void addstuMsgManager(StudentMsg studentMsg);//添加学生信息
16 | public String queryStuidByopenid(String openid);//查询学生是否绑定了公众号
17 | public StudentMsg bindWxSystem(StudentMsg studentMsg);//绑定系统
18 | public void updateOpenidByStuid(StudentMsg studentMsg);//添加openid值
19 | public StudentMsg queryStudentMsgByOpenid(String openid);//通过微信公众号唯一标识查找学生信息
20 | public void unbindByOpenid(String openid);//解除绑定
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/api/AddressApi.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.api;
2 |
3 | import java.io.FileNotFoundException;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.util.Properties;
7 |
8 | /**
9 | * 外网地址
10 | * @author wuzhe
11 | *
12 | */
13 | public class AddressApi {
14 | public static String Address=null;
15 | public static final String SCHOOLCODE="10119";//学校代码
16 | static{
17 | Properties p = new Properties();
18 | try {
19 | InputStream in=AddressApi.class.getResourceAsStream("/wx.properties");
20 | p.load(in);
21 | Address=p.getProperty("wx.address");
22 | } catch (FileNotFoundException e) {
23 | System.out.println(e.getMessage());
24 | } catch (IOException e) {
25 | System.out.println(e.getMessage());
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IStudentMsgDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.tysf.gt.pojo.StudentMsg;
6 |
7 | public interface IStudentMsgDao {
8 | public List queryStudentMsg();// 查询学生信息
9 |
10 | public void modifyStuMsg(StudentMsg studentMsg);// 修改学生信息
11 |
12 | public void addstuMsgManager(StudentMsg studentMsg);// 添加学生信息
13 |
14 | public String queryStuidByopenid(String openid);// 查询学生是否绑定了公众号
15 |
16 | public StudentMsg queryStudentMsgByStuidAndPassword(StudentMsg studentMsg);// 密码和学号进行匹配验证用户
17 |
18 | public void updateOpenidByStuid(StudentMsg studentMsg);// 添加openid值
19 |
20 | public StudentMsg queryStudentMsgByOpenid(String openid);// 通过微信公众号唯一标识查找学生信息
21 |
22 | public void unbindByOpenid(String openid);//解除绑定
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/TemplateContent.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | public class TemplateContent {
4 | private String value;
5 | private String color;
6 | public TemplateContent() {
7 | super();
8 | // TODO Auto-generated constructor stub
9 | }
10 |
11 | public TemplateContent(String value) {
12 | super();
13 | this.value = value;
14 | }
15 |
16 | public TemplateContent(String value, String color) {
17 | super();
18 | this.value = value;
19 | this.color = color;
20 | }
21 | public String getValue() {
22 | return value;
23 | }
24 | public void setValue(String value) {
25 | this.value = value;
26 | }
27 | public String getColor() {
28 | return color;
29 | }
30 | public void setColor(String color) {
31 | this.color = color;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/dao/IRepairmanDao.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.dao;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import org.tysf.gt.pojo.Repairman;
7 |
8 | public interface IRepairmanDao {
9 | public void addRepairman(Repairman repairman);
10 |
11 | public List queryRepariman();
12 |
13 | public void addRepairProjectByRmid(Map params);
14 |
15 | public void modifyRepairmanNameAndPassword(Repairman repairman);
16 |
17 | public void modifyRepairmanTel(Repairman repairman);
18 | //查找用户是否绑定了该系统
19 | public String queryRmidByopenid(String openid);
20 | //工号和密码登录系统
21 | public Repairman bindWxRepairmanSystem(Repairman repairman);
22 | //添加/更新openid
23 | public void updateOpenidByRmid(Repairman repairman);
24 | //解除绑定
25 | public void unbindByOpenid(String openid);
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/RepairArea.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | /**
4 | * 保修区域实体类
5 | *
6 | * @author wuzhe
7 | *
8 | */
9 | public class RepairArea {
10 | private int raid;
11 | private String raname;
12 |
13 | public RepairArea() {
14 | super();
15 | }
16 |
17 | public RepairArea(int raid, String raname) {
18 | super();
19 | this.raid = raid;
20 | this.raname = raname;
21 | }
22 |
23 | public int getRaid() {
24 | return raid;
25 | }
26 |
27 | public void setRaid(int raid) {
28 | this.raid = raid;
29 | }
30 |
31 | public String getRaname() {
32 | return raname;
33 | }
34 |
35 | public void setRaname(String raname) {
36 | this.raname = raname;
37 | }
38 |
39 | @Override
40 | public String toString() {
41 | return "RepairArea [raid=" + raid + ", raname=" + raname + "]";
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/mapper/FlatMsgMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 | insert into flat(fid,fname)values(#{fid},#{fname})
13 |
14 |
15 | update flat set fname=#{fname} where fid=#{fid}
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/impl/RepairLogServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service.impl;
2 |
3 | import java.util.List;
4 |
5 | import javax.annotation.Resource;
6 |
7 | import org.springframework.stereotype.Service;
8 | import org.tysf.gt.dao.IRepairLogDao;
9 | import org.tysf.gt.dao.IStudentMsgDao;
10 | import org.tysf.gt.pojo.RepairLog;
11 | import org.tysf.gt.service.IRepairLogService;
12 | @Service
13 | public class RepairLogServiceImpl implements IRepairLogService {
14 | @Resource
15 | private IRepairLogDao repairLogDao;
16 | @Resource
17 | private IStudentMsgDao studentMSgDao;
18 |
19 | @Override
20 | public List queryRepairLogByWpid(String wpid) {
21 | return repairLogDao.queryRepairLogByWpid(wpid);
22 | }
23 |
24 | @Override
25 | public void addRepairLog(RepairLog repairLog) {
26 | repairLogDao.addRepairLog(repairLog);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/impl/RepairAreaServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service.impl;
2 |
3 | import java.util.List;
4 |
5 | import javax.annotation.Resource;
6 |
7 | import org.springframework.stereotype.Service;
8 | import org.tysf.gt.dao.IRepairAreaDao;
9 | import org.tysf.gt.pojo.RepairArea;
10 | import org.tysf.gt.service.IRepairAreaService;
11 | @Service
12 | public class RepairAreaServiceImpl implements IRepairAreaService {
13 | @Resource
14 | private IRepairAreaDao repairAreaDao;
15 | @Override
16 | public List queryRepairArea() {
17 | return repairAreaDao.queryRepairArea();
18 | }
19 | @Override
20 | public int addRepairAreaGetRaid(String raname) {
21 | return repairAreaDao.addRepairAreaGetRaid(raname);
22 | }
23 | @Override
24 | public void modifyRepairArea(RepairArea repairArea) {
25 | repairAreaDao.modifyRepairArea(repairArea);
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/Flat.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | /**
4 | * 公寓实体类
5 | *
6 | * @author wuzhe
7 | *
8 | */
9 | public class Flat {
10 | private int fid;
11 | private String fname;
12 |
13 | public Flat() {
14 | super();
15 | // TODO Auto-generated constructor stub
16 | }
17 | public Flat(int fid) {
18 | super();
19 | this.fid = fid;
20 |
21 | }
22 | public Flat(int fid, String fname) {
23 | super();
24 | this.fid = fid;
25 | this.fname = fname;
26 | }
27 |
28 | public int getFid() {
29 | return fid;
30 | }
31 |
32 | public void setFid(int fid) {
33 | this.fid = fid;
34 | }
35 |
36 | public String getFname() {
37 | return fname;
38 | }
39 |
40 | public void setFname(String fname) {
41 | this.fname = fname;
42 | }
43 |
44 | @Override
45 | public String toString() {
46 | return "Flat [fid=" + fid + ", fname=" + fname + "]";
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/mapper/SImageMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | insert into simage(simageid,simagepath,timestamp,imagetype) values(#{simageid},#{simagepath},#{timestamp},#{imagetype})
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/mapper/RepairAreaMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 | insert into repairarea(raname) values(#{raname})
13 |
14 |
15 | update repairarea set raname=#{raname} where raid=#{raid}
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/mapper/RepairLogMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 | insert into repair_log(repair_log,wpid) values(#{repairLog},#{wpid})
18 |
19 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IRepairmanService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import org.tysf.gt.pojo.RepairProject;
7 | import org.tysf.gt.pojo.Repairman;
8 |
9 | public interface IRepairmanService {
10 | public void addRepairman(Repairman repairman);
11 | public List queryRepariman();
12 | //通过维修工人的工号设置维修范围
13 | public void addRepairProjectByRmid(Map params);
14 | public List queryProjectByRmid(String rmid);
15 | public List queryUnSelectRepairProject(String rmid);
16 | public void modifyRepairmanNameAndPassword(Repairman repairman);
17 | public void modifyRepairmanTel(Repairman repairman);
18 | public String queryRmidByopenid(String openid);//查找用户是否绑定了系统
19 | public Repairman bindWxRepairmanSystem(Repairman repairman);//工号和密码登录系统
20 | public void updateOpenidByRmid(Repairman repairman);//添加openid
21 | public void unbindByOpenid(String openid);//解除绑定
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/webapp/layui/css/modules/code.css:
--------------------------------------------------------------------------------
1 | /** layui-v2.2.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/webapp/js/flatMsgManager.js:
--------------------------------------------------------------------------------
1 | $().ready(function() {
2 | $("#Addflat").click(function(){
3 | $("#fid").val("");
4 | $("#fname").val("");
5 | $("#submit").val("");
6 | $("#fid").removeAttr("disabled");
7 | $("#myModal").modal('show');
8 |
9 | })
10 | $(".modifyFlat").click(function(){
11 | //首先找到点击按钮的父辈tbody 再查询其下的子辈元素类名为raname的td 获取他的文本值
12 | var tbody=$(this).parents(".FlatItem");
13 | var fid=tbody.children(".fid").html();
14 | var fname=tbody.children(".fname").html();
15 | $("#fid").val(fid).attr("disabled","disabled");
16 | $("#fname").val(fname);
17 | $("#submit").val("modify");
18 | $("#myModal").modal('show');
19 | })
20 | $("#submit").click(function(){
21 | if($(this).val()=="modify"){
22 | $("#fid").removeAttr("disabled");
23 | $("#FlatMsg").attr("action","/repairManager/admin/modifyFlat.do");
24 | $("#FlatMsg").submit();
25 | }
26 | else{
27 | $("#FlatMsg").attr("action","/repairManager/admin/addFlat.do");
28 | $("#FlatMsg").submit();
29 | }
30 |
31 | })
32 |
33 | })
--------------------------------------------------------------------------------
/src/main/webapp/common/foot.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
7 |
10 |
11 |
12 |
14 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/impl/RepairProjectServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service.impl;
2 |
3 | import java.util.List;
4 |
5 | import javax.annotation.Resource;
6 |
7 | import org.springframework.stereotype.Service;
8 | import org.tysf.gt.dao.IRepairProjectDao;
9 | import org.tysf.gt.pojo.RepairProject;
10 | import org.tysf.gt.service.IRepairProjectService;
11 | @Service
12 | public class RepairProjectServiceImpl implements IRepairProjectService {
13 | @Resource
14 | private IRepairProjectDao repairProjectDao;
15 | @Override
16 | public List queryRepairProject() {
17 | return repairProjectDao.queryRepairProject();
18 | }
19 | @Override
20 | public List queryRepairProjectByRaid(int raid) {
21 | return repairProjectDao.queryRepairProjectByRaid(raid);
22 | }
23 | @Override
24 | public int repairProjectAddGetRpid(RepairProject repairProject) {
25 | return repairProjectDao.repairProjectAddGetRpid(repairProject);
26 | }
27 | @Override
28 | public void repairProjectModify(RepairProject repairProject) {
29 | repairProjectDao.repairProjectModify(repairProject);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/pojo/RepairLog.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.pojo;
2 |
3 | import java.sql.Timestamp;
4 |
5 | /**
6 | * 维修日志
7 | * @author wuzhe
8 | *
9 | */
10 | public class RepairLog {
11 | private int id;//自动增长ID
12 | private String repairLog;//日志记录
13 | private Timestamp logDate;//日志日期
14 | private String wpid;//产生日志的维修订单
15 |
16 | public RepairLog() {
17 | super();
18 | // TODO Auto-generated constructor stub
19 | }
20 | public RepairLog(String repairLog, String wpid) {
21 | super();
22 | this.repairLog = repairLog;
23 | this.wpid = wpid;
24 | }
25 | public int getId() {
26 | return id;
27 | }
28 | public void setId(int id) {
29 | this.id = id;
30 | }
31 | public String getRepairLog() {
32 | return repairLog;
33 | }
34 | public void setRepairLog(String repairLog) {
35 | this.repairLog = repairLog;
36 | }
37 | public Timestamp getLogDate() {
38 | return logDate;
39 | }
40 | public void setLogDate(Timestamp logDate) {
41 | this.logDate = logDate;
42 | }
43 | public String getWpid() {
44 | return wpid;
45 | }
46 | public void setWpid(String wpid) {
47 | this.wpid = wpid;
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/webapp/layui/lay/modules/code.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.2.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/test/java/org/tysf/gt/junit/RepairManJunit.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.junit;
2 |
3 | import java.util.List;
4 |
5 | import javax.annotation.Resource;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 | import org.springframework.test.context.ContextConfiguration;
10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
11 | import org.tysf.gt.pojo.RepairProject;
12 | import org.tysf.gt.pojo.Repairman;
13 | import org.tysf.gt.service.IRepairmanService;
14 |
15 | @RunWith(SpringJUnit4ClassRunner.class)
16 | @ContextConfiguration(locations = { "classpath:applicationContext.xml" })
17 | public class RepairManJunit {
18 | @Resource
19 | private IRepairmanService repairmanServie;
20 | @Test
21 | public void queryRepairmanService(){
22 | /* List queryRepariman = repairmanServie.queryRepariman();
23 | System.out.println(queryRepariman.size());
24 | for(Repairman repairman:queryRepariman){
25 | System.out.println(repairman);
26 | }*/
27 | List queryProjectByRmid = repairmanServie.queryProjectByRmid("231311");
28 | System.out.println(queryProjectByRmid.size());
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/utils/MD5Utils.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.utils;
2 |
3 | import java.security.MessageDigest;
4 | import java.security.NoSuchAlgorithmException;
5 |
6 | public class MD5Utils {
7 | public static String md5Password(String password) {
8 |
9 | try {
10 | // 得到一个信息摘要器
11 | MessageDigest digest = MessageDigest.getInstance("md5");
12 | byte[] result = digest.digest(password.getBytes());
13 | StringBuffer buffer = new StringBuffer();
14 | // 把没一个byte 做一个与运算 0xff;
15 | for (byte b : result) {
16 | // 与运算
17 | int number = b & 0xff;// 加盐
18 | String str = Integer.toHexString(number);
19 | if (str.length() == 1) {
20 | buffer.append("0");
21 | }
22 | buffer.append(str);
23 | }
24 |
25 | // 标准的md5加密后的结果
26 | return buffer.toString();
27 | } catch (NoSuchAlgorithmException e) {
28 | e.printStackTrace();
29 | return "";
30 | }
31 |
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/interceptor/LoginInterceptor.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.interceptor;
2 |
3 | import javax.annotation.Resource;
4 | import javax.servlet.http.HttpServletRequest;
5 | import javax.servlet.http.HttpServletResponse;
6 | import javax.servlet.http.HttpSession;
7 |
8 | import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
9 | import org.tysf.gt.service.IWxOnlineRepairMsgService;
10 | /**
11 | * 登陆拦截器
12 | * @author wuzhe
13 | *
14 | */
15 | public class LoginInterceptor extends HandlerInterceptorAdapter {
16 | @Resource
17 | private IWxOnlineRepairMsgService wxOnlineRepairMsgService;
18 | @Override
19 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
20 | throws Exception {
21 | HttpSession session=request.getSession();
22 | String admin = (String)session.getAttribute("admin");
23 | if(admin==null||"".equals(admin)){
24 | request.getRequestDispatcher("/index.jsp").forward(request, response);
25 | return false;
26 | }
27 | /**
28 | * 利用拦截每次对未读消息进行渲染
29 | */
30 | int count=wxOnlineRepairMsgService.queryCountUnCheck();
31 | session.setAttribute("unCheckcount", count);
32 | return true;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/org/tysf/gt/service/IWxOnlineRepairMsgService.java:
--------------------------------------------------------------------------------
1 | package org.tysf.gt.service;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import org.tysf.gt.pojo.WxOnlineRepairMsg;
7 |
8 | public interface IWxOnlineRepairMsgService {
9 | public void addWxOnlineRepairMsg(WxOnlineRepairMsg wxOnlineRepairMsg);
10 | public void addSImagesByWpid(Mapparams);
11 | public List queryWxOnlineRepairMsg(int status);
12 | public int queryCountUnCheck();//查询没有审核的数量
13 | public WxOnlineRepairMsg queryrepairMsgDetailByWpid(String wpid);//查询报修细节
14 | public void dispatchWxOnlineRepairMsg(WxOnlineRepairMsg wxOnlineRepairMsg);//派工详情
15 | public int queryWxOnlineRepairMsgStatus(String wpid);//查询保修单的状态
16 | public String queryRepairmanForFree();//查找空闲的维修工人
17 | public WxOnlineRepairMsg queryrepairmanAcceptanceByWpid(String wpid);//查找维修工人受理的信息
18 | public void updateStatusByWpid(String wpid);//更新报修单的状态
19 | public List queryrepairmanRecode(String rmid);//查找维修记录
20 | public void addCompleteRemarkAndStatusByWpid(WxOnlineRepairMsg wxOnlineRepairMsg);//提交完工(完工备注和更新保修单状态)
21 | public void checkAndAcceptance(String wpid);//验收报修单
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/resources/spring-tx.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/main/webapp/common/menu.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
16 |