当前位置:   article > 正文

基于SSM+vue社区物业管理系统源码和论文_ssm物业管理系统论文

ssm物业管理系统论文

基于SSM+vue社区物业管理系统源码和论文223

 开发工具:idea 或eclipse
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm

主要内容:

1、系统管理模块:

在系统管理中,用户可以对使用该系统用户进行用户添加、删除、查询以及修改密码等操作,方便了管理员对使用该软件人员的管理。

2、楼盘管理模块:

楼盘管理提供了对楼房的添加、删除及查询等管理。可以方便的对楼盘的租、售及剩余楼盘资料的管理查询。

3、收费管理模块:

收费管理功能解决了长期困扰物业管理公司的一大难题, 物业公 司不用再为繁杂的计算工作发愁。用户对每一项收费项目设定计算方法、收费时间后,系统能够自动按设定的方法计算收费金额,并按定义的格式批量打印收费通知单;对于欠款住户,系统自动计算滞纳金。

4、停车管理模块:

停车管理模块可以对业主的车辆进行集中管理,物业提供了一个专门的车位,对出库、入库的车辆进行登记,以保证业主车辆的安全。

5、业主管理模块:

系统对业主姓名、地址、联系方式进行全面的登记管理。

6、报修管理模块:

报修管理包括维修小区的公共设施以及各位业主需要物业帮忙维修的设施。

7、投诉管理模块:

投诉管理是对于一些保安或是设施维修时间拖太久而设定的,在业主的监督

下,把物业管理的更好,更棒!

数据库用MySQL,后台用ssm框架,前端用js html jsp

  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. import java.util.Calendar;
  6. import java.util.Map;
  7. import java.util.HashMap;
  8. import java.util.Iterator;
  9. import java.util.Date;
  10. import java.util.List;
  11. import javax.servlet.http.HttpServletRequest;
  12. import com.utils.ValidatorUtils;
  13. import org.apache.commons.lang3.StringUtils;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.format.annotation.DateTimeFormat;
  16. import org.springframework.web.bind.annotation.PathVariable;
  17. import org.springframework.web.bind.annotation.RequestBody;
  18. import org.springframework.web.bind.annotation.RequestMapping;
  19. import org.springframework.web.bind.annotation.RequestParam;
  20. import org.springframework.web.bind.annotation.RestController;
  21. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  22. import com.baomidou.mybatisplus.mapper.Wrapper;
  23. import com.annotation.IgnoreAuth;
  24. import com.entity.LoupanEntity;
  25. import com.entity.view.LoupanView;
  26. import com.service.LoupanService;
  27. import com.service.TokenService;
  28. import com.utils.PageUtils;
  29. import com.utils.R;
  30. import com.utils.MD5Util;
  31. import com.utils.MPUtil;
  32. import com.utils.CommonUtil;
  33. /**
  34. * 楼盘
  35. * 后端接口
  36. * @author
  37. * @email
  38. * @date 2021-04-17 21:23:57
  39. */
  40. @RestController
  41. @RequestMapping("/loupan")
  42. public class LoupanController {
  43. @Autowired
  44. private LoupanService loupanService;
  45. /**
  46. * 后端列表
  47. */
  48. @RequestMapping("/page")
  49. public R page(@RequestParam Map<String, Object> params,LoupanEntity loupan,
  50. HttpServletRequest request){
  51. EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
  52. PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
  53. return R.ok().put("data", page);
  54. }
  55. /**
  56. * 前端列表
  57. */
  58. @IgnoreAuth
  59. @RequestMapping("/list")
  60. public R list(@RequestParam Map<String, Object> params,LoupanEntity loupan, HttpServletRequest request){
  61. EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
  62. PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
  63. return R.ok().put("data", page);
  64. }
  65. /**
  66. * 列表
  67. */
  68. @RequestMapping("/lists")
  69. public R list( LoupanEntity loupan){
  70. EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
  71. ew.allEq(MPUtil.allEQMapPre( loupan, "loupan"));
  72. return R.ok().put("data", loupanService.selectListView(ew));
  73. }
  74. /**
  75. * 查询
  76. */
  77. @RequestMapping("/query")
  78. public R query(LoupanEntity loupan){
  79. EntityWrapper< LoupanEntity> ew = new EntityWrapper< LoupanEntity>();
  80. ew.allEq(MPUtil.allEQMapPre( loupan, "loupan"));
  81. LoupanView loupanView = loupanService.selectView(ew);
  82. return R.ok("查询楼盘成功").put("data", loupanView);
  83. }
  84. /**
  85. * 后端详情
  86. */
  87. @RequestMapping("/info/{id}")
  88. public R info(@PathVariable("id") Long id){
  89. LoupanEntity loupan = loupanService.selectById(id);
  90. loupan.setClicktime(new Date());
  91. loupanService.updateById(loupan);
  92. return R.ok().put("data", loupan);
  93. }
  94. /**
  95. * 前端详情
  96. */
  97. @IgnoreAuth
  98. @RequestMapping("/detail/{id}")
  99. public R detail(@PathVariable("id") Long id){
  100. LoupanEntity loupan = loupanService.selectById(id);
  101. loupan.setClicktime(new Date());
  102. loupanService.updateById(loupan);
  103. return R.ok().put("data", loupan);
  104. }
  105. /**
  106. * 后端保存
  107. */
  108. @RequestMapping("/save")
  109. public R save(@RequestBody LoupanEntity loupan, HttpServletRequest request){
  110. loupan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  111. //ValidatorUtils.validateEntity(loupan);
  112. loupanService.insert(loupan);
  113. return R.ok();
  114. }
  115. /**
  116. * 前端保存
  117. */
  118. @RequestMapping("/add")
  119. public R add(@RequestBody LoupanEntity loupan, HttpServletRequest request){
  120. loupan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  121. //ValidatorUtils.validateEntity(loupan);
  122. loupanService.insert(loupan);
  123. return R.ok();
  124. }
  125. /**
  126. * 修改
  127. */
  128. @RequestMapping("/update")
  129. public R update(@RequestBody LoupanEntity loupan, HttpServletRequest request){
  130. //ValidatorUtils.validateEntity(loupan);
  131. loupanService.updateById(loupan);//全部更新
  132. return R.ok();
  133. }
  134. /**
  135. * 删除
  136. */
  137. @RequestMapping("/delete")
  138. public R delete(@RequestBody Long[] ids){
  139. loupanService.deleteBatchIds(Arrays.asList(ids));
  140. return R.ok();
  141. }
  142. /**
  143. * 提醒接口
  144. */
  145. @RequestMapping("/remind/{columnName}/{type}")
  146. public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
  147. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
  148. map.put("column", columnName);
  149. map.put("type", type);
  150. if(type.equals("2")) {
  151. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  152. Calendar c = Calendar.getInstance();
  153. Date remindStartDate = null;
  154. Date remindEndDate = null;
  155. if(map.get("remindstart")!=null) {
  156. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
  157. c.setTime(new Date());
  158. c.add(Calendar.DAY_OF_MONTH,remindStart);
  159. remindStartDate = c.getTime();
  160. map.put("remindstart", sdf.format(remindStartDate));
  161. }
  162. if(map.get("remindend")!=null) {
  163. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
  164. c.setTime(new Date());
  165. c.add(Calendar.DAY_OF_MONTH,remindEnd);
  166. remindEndDate = c.getTime();
  167. map.put("remindend", sdf.format(remindEndDate));
  168. }
  169. }
  170. Wrapper<LoupanEntity> wrapper = new EntityWrapper<LoupanEntity>();
  171. if(map.get("remindstart")!=null) {
  172. wrapper.ge(columnName, map.get("remindstart"));
  173. }
  174. if(map.get("remindend")!=null) {
  175. wrapper.le(columnName, map.get("remindend"));
  176. }
  177. int count = loupanService.selectCount(wrapper);
  178. return R.ok().put("count", count);
  179. }
  180. /**
  181. * 前端智能排序
  182. */
  183. @IgnoreAuth
  184. @RequestMapping("/autoSort")
  185. public R autoSort(@RequestParam Map<String, Object> params,LoupanEntity loupan, HttpServletRequest request,String pre){
  186. EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
  187. Map<String, Object> newMap = new HashMap<String, Object>();
  188. Map<String, Object> param = new HashMap<String, Object>();
  189. Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
  190. while (it.hasNext()) {
  191. Map.Entry<String, Object> entry = it.next();
  192. String key = entry.getKey();
  193. String newKey = entry.getKey();
  194. if (pre.endsWith(".")) {
  195. newMap.put(pre + newKey, entry.getValue());
  196. } else if (StringUtils.isEmpty(pre)) {
  197. newMap.put(newKey, entry.getValue());
  198. } else {
  199. newMap.put(pre + "." + newKey, entry.getValue());
  200. }
  201. }
  202. params.put("sort", "clicktime");
  203. params.put("order", "desc");
  204. PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
  205. return R.ok().put("data", page);
  206. }
  207. }

 

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/834916
推荐阅读
相关标签
  

闽ICP备14008679号