<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
專案編號:BS-XCX-003
ssm微信小程式物業管理系統,有網站後臺管理系統
微信小程式物業管理系統,微信小程式端包括以下幾個模組:
社群公告、報修、資訊採集、生活繳費、二手置換
微信小程式後臺管理介面可以增刪改查社群公告、問卷、問卷問題、問題選項等
在微信小程式前端,使用者提交資訊後,可在我的介面檢視提交的資訊,管理員可以在微信小程式後臺管理介面檢視所有使用者提交的資訊。
jdk8+tomcat8+mysql5.7+IntelliJ IDEA+maven
專案技術(必填)
spring+spring mvc+mybatis+layui
下面展示一下系統的功能:
物業管理後臺地址
http://localhost:8080/SheQu/
登入賬號admin 123
社群公告管理
商品管理
線上調查問卷管理
題目管理
選項管理
小程式端產生的資料查詢
維修查詢
商品訂單查詢
小程式端頁面功能展示
公告管理
報修管理
調查問卷
生活繳費
線上購物
我的
專案核心程式碼:
package com.shequ.controller; import com.alibaba.fastjson.JSON; import com.shequ.pojo.Admin; import com.shequ.service.AdminService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.util.List; import java.util.Map; @Controller public class AdminController { @Autowired AdminService adminService; @ResponseBody @RequestMapping("/login") public String findOneAdmin(String account, String pwd, HttpServletRequest request ){ HttpSession session = request.getSession(true);//新建session物件 Admin admin = adminService.findOneAdmin(account,pwd); session.setAttribute("admin",admin); if(admin!=null){ return "success"; } return "failure"; } @RequestMapping(value = "/findAllAccount",produces="application/json;charset=UTF-8") public String findAllAccount(){ List<Admin> accounts = adminService.findAllAccount(); String result = JSON.toJSONString(accounts); System.out.println(result); return result; @RequestMapping(value = "/updateAdminPwd" ) public String updateAdminPwd(@RequestBody Map map, HttpServletRequest request){ Admin admin = (Admin) session.getAttribute("admin"); //將對應資料存入session中 String account = admin.getAccount(); System.out.println(map); String pwd = map.get("pwd").toString(); System.out.println("pwd:"+pwd); int n = adminService.updateAdminPwd(pwd,account); if(n>0){ }
package com.shequ.controller; import com.alibaba.fastjson.JSON; import com.shequ.mapper.ChoiceMapper; import com.shequ.pojo.Choice; import com.shequ.pojo.Pay; import com.shequ.pojo.Sur_Que; import com.shequ.service.ChoiceService; import com.shequ.service.Sur_QueService; import com.shequ.util.Layui; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.HashMap; import java.util.List; import java.util.Map; @Controller public class ChoiceController { @Autowired ChoiceService choiceService; @ResponseBody @RequestMapping(value = "/findAllChoiceByPage",produces="application/json;charset=UTF-8") public String findAllChoiceByPage(@RequestParam("limit") String limit, @RequestParam("page") String page) { int start = (Integer.parseInt(page) - 1)*Integer.parseInt(limit); int pageSize = Integer.parseInt(limit); List<Choice> choices = choiceService.findAllChoiceByPage(start,pageSize); List<Choice> choicesAll = choiceService.findAllChoice(); Layui l = Layui.data(choicesAll.size(), choices); String result = JSON.toJSONString(l); return result; } @RequestMapping(value = "/deleteChoiceById") public String deleteChoiceById(@RequestParam("id")String id) { int n = choiceService.deleteChoiceById(Integer.parseInt(id)); if(n>0){ return "success"; } return "failure"; @RequestMapping(value = "/insertChoice") public String insertChoice(@RequestBody Map map) { int n = choiceService.insertChoice(map); @RequestMapping(value = "/updateChoiceById") public String updateChoiceById(@RequestBody Map map) { int n = choiceService.updateChoiceById(map); @RequestMapping(value = "/findAllUserSurQueAndOptByPage",produces="application/json;charset=UTF-8") public String findAllUserSurQueAndOptByPage(@RequestParam("limit") String limit, @RequestParam("page") String page) { List<Choice> choices = choiceService.findAllUserSurQueAndOptByPage(start,pageSize); List<Choice> choiceAll = choiceService.findAllChoice(); Layui l = Layui.data(choiceAll.size(), choices); }
package com.shequ.controller; import com.shequ.util.MyTool; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.io.IOException; import java.util.HashMap; import java.util.Map; @Controller public class CommonController { private final Logger log = LoggerFactory.getLogger(CommonController.class); @RequestMapping("/{pageName}") public String pathAll(@PathVariable(value="pageName") String pageName){ return pageName; } @RequestMapping("/loginOut") public String loginOut(HttpSession httpSession) { httpSession.removeAttribute("user"); return "redirect:/"; @RequestMapping(value = "/uploadAvatar", method = RequestMethod.POST) public @ResponseBody Object uploadAvatar(@RequestParam("photo") MultipartFile file, HttpServletRequest request) throws IllegalStateException, IOException { Map<String, Object> map = new HashMap<String, Object>(); String name = file.getOriginalFilename(); String imgAbsolutePath = MyTool.SaveImg(file, MyTool.getImg(), name); map.put("code", 0); map.put("message", "上傳成功"); map.put("data", name); return map; @RequestMapping(value = "/uploadImg", method = RequestMethod.POST) public @ResponseBody Object uploadImg(@RequestParam("photo") MultipartFile file, HttpServletRequest request) @RequestMapping(value = "/uploadContent", method = RequestMethod.POST) public @ResponseBody Object uploadContent(@RequestParam("file") MultipartFile file, HttpServletRequest request) String imgAbsolutePath = MyTool.SaveImg(file, MyTool.getXmlFile(), name); }
package com.shequ.controller; import com.alibaba.fastjson.JSON; import com.shequ.pojo.Message; import com.shequ.service.MessageService; import com.shequ.util.Layui; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.Date; import java.util.List; import java.util.Map; @Controller public class MessageController { @Autowired MessageService messageService; @ResponseBody @RequestMapping(value = "/findAllMessageByPage",produces="application/json;charset=UTF-8") public String findAllMessageByPage(@RequestParam("limit") String limit, @RequestParam("page") String page){ int start = (Integer.parseInt(page) - 1)*Integer.parseInt(limit); int pageSize = Integer.parseInt(limit); List<Message> message = messageService.findAllMessageByPage(start,pageSize); List<Message> messageAll = messageService.findAllMessage(); Layui l = Layui.data(messageAll.size(), message); String result = JSON.toJSONString(l); return result; } @RequestMapping(value = "/insertMessage") public String insertMessage(@RequestBody Map map){ Date date = new Date(); map.put("time",date); System.out.println("map:"+map.toString()); int n = messageService.insertMessage(map); if(n>0){ return "success"; } return "failure"; @RequestMapping(value = "/deleteNotices") public String deleteNotices(@RequestParam("id") int id){ int n = messageService.deleteNotices(id); @RequestMapping(value = "/updateMessage") public String updateMessage(@RequestBody Map map){ int n = messageService.updateMessage(map); }
package com.shequ.controller; import com.alibaba.fastjson.JSON; import com.shequ.pojo.Message; import com.shequ.pojo.Survey; import com.shequ.service.SurveyService; import com.shequ.util.Layui; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; import java.util.Map; @Controller public class SurveyController { @Autowired SurveyService surveyService; @ResponseBody @RequestMapping(value = "/findAllSurveyByPage",produces="application/json;charset=UTF-8") public String findAllSurveyByPage(@RequestParam("limit") String limit, @RequestParam("page") String page) { int start = (Integer.parseInt(page) - 1)*Integer.parseInt(limit); int pageSize = Integer.parseInt(limit); List<Survey> surveys = surveyService.findAllSurveyByPage(start,pageSize); List<Survey> surveyAll = surveyService.findAllSurvey(); Layui l = Layui.data(surveyAll.size(), surveys); String result = JSON.toJSONString(l); return result; } @RequestMapping(value = "/findAllSurvey",produces="application/json;charset=UTF-8") public String findAllSurvey() { List<Survey> surveys = surveyService.findAllSurvey(); String result = JSON.toJSONString(surveys); @RequestMapping(value = "/insertSurvey") public String insertSurvey(@RequestBody Map map) { int n = surveyService.insertSurvey(map); if(n>0){ return "success"; } return "failure"; @RequestMapping(value = "/deleteSurveyById") public String deleteSurveyById(@RequestParam("id")String id) { int n = surveyService.deleteSurveyById(Integer.parseInt(id)); @RequestMapping(value = "/updateSurveyById") public String updateSurveyById(@RequestBody Map map) { int n = surveyService.updateSurveyById(map); }
到此這篇關於SSM+微信小程式實現物業管理系統的文章就介紹到這了,更多相關ssm小程式物業管理系統內容請搜尋it145.com以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援it145.com!
相關文章
<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
综合看Anker超能充系列的性价比很高,并且与不仅和iPhone12/苹果<em>Mac</em>Book很配,而且适合多设备充电需求的日常使用或差旅场景,不管是安卓还是Switch同样也能用得上它,希望这次分享能给准备购入充电器的小伙伴们有所
2021-06-01 09:31:42
除了L4WUDU与吴亦凡已经多次共事,成为了明面上的厂牌成员,吴亦凡还曾带领20XXCLUB全队参加2020年的一场音乐节,这也是20XXCLUB首次全员合照,王嗣尧Turbo、陈彦希Regi、<em>Mac</em> Ova Seas、林渝植等人全部出场。然而让
2021-06-01 09:31:34
目前应用IPFS的机构:1 谷歌<em>浏览器</em>支持IPFS分布式协议 2 万维网 (历史档案博物馆)数据库 3 火狐<em>浏览器</em>支持 IPFS分布式协议 4 EOS 等数字货币数据存储 5 美国国会图书馆,历史资料永久保存在 IPFS 6 加
2021-06-01 09:31:24
开拓者的车机是兼容苹果和<em>安卓</em>,虽然我不怎么用,但确实兼顾了我家人的很多需求:副驾的门板还配有解锁开关,有的时候老婆开车,下车的时候偶尔会忘记解锁,我在副驾驶可以自己开门:第二排设计很好,不仅配置了一个很大的
2021-06-01 09:30:48
不仅是<em>安卓</em>手机,苹果手机的降价力度也是前所未有了,iPhone12也“跳水价”了,发布价是6799元,如今已经跌至5308元,降价幅度超过1400元,最新定价确认了。iPhone12是苹果首款5G手机,同时也是全球首款5nm芯片的智能机,它
2021-06-01 09:30:45