基于SSM+vue社区物业管理系统源码和论文223
开发工具:idea 或eclipse
数据库mysql5.7+
数据库链接工具:navcat,小海豚等
技术:ssm
主要内容:
1、系统管理模块:
在系统管理中,用户可以对使用该系统用户进行用户添加、删除、查询以及修改密码等操作,方便了管理员对使用该软件人员的管理。
2、楼盘管理模块:
楼盘管理提供了对楼房的添加、删除及查询等管理。可以方便的对楼盘的租、售及剩余楼盘资料的管理查询。
3、收费管理模块:
收费管理功能解决了长期困扰物业管理公司的一大难题, 物业公 司不用再为繁杂的计算工作发愁。用户对每一项收费项目设定计算方法、收费时间后,系统能够自动按设定的方法计算收费金额,并按定义的格式批量打印收费通知单;对于欠款住户,系统自动计算滞纳金。
4、停车管理模块:
停车管理模块可以对业主的车辆进行集中管理,物业提供了一个专门的车位,对出库、入库的车辆进行登记,以保证业主车辆的安全。
5、业主管理模块:
系统对业主姓名、地址、联系方式进行全面的登记管理。
6、报修管理模块:
报修管理包括维修小区的公共设施以及各位业主需要物业帮忙维修的设施。
7、投诉管理模块:
投诉管理是对于一些保安或是设施维修时间拖太久而设定的,在业主的监督
下,把物业管理的更好,更棒!
数据库用MySQL,后台用ssm框架,前端用js html jsp
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.LoupanEntity;
import com.entity.view.LoupanView;
import com.service.LoupanService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 楼盘
* 后端接口
* @author
* @email
* @date 2021-04-17 21:23:57
*/
@RestController
@RequestMapping("/loupan")
public class LoupanController {
@Autowired
private LoupanService loupanService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,LoupanEntity loupan,
HttpServletRequest request){
EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,LoupanEntity loupan, HttpServletRequest request){
EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( LoupanEntity loupan){
EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
ew.allEq(MPUtil.allEQMapPre( loupan, "loupan"));
return R.ok().put("data", loupanService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(LoupanEntity loupan){
EntityWrapper< LoupanEntity> ew = new EntityWrapper< LoupanEntity>();
ew.allEq(MPUtil.allEQMapPre( loupan, "loupan"));
LoupanView loupanView = loupanService.selectView(ew);
return R.ok("查询楼盘成功").put("data", loupanView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
LoupanEntity loupan = loupanService.selectById(id);
loupan.setClicktime(new Date());
loupanService.updateById(loupan);
return R.ok().put("data", loupan);
}
/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
LoupanEntity loupan = loupanService.selectById(id);
loupan.setClicktime(new Date());
loupanService.updateById(loupan);
return R.ok().put("data", loupan);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody LoupanEntity loupan, HttpServletRequest request){
loupan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(loupan);
loupanService.insert(loupan);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody LoupanEntity loupan, HttpServletRequest request){
loupan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(loupan);
loupanService.insert(loupan);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody LoupanEntity loupan, HttpServletRequest request){
//ValidatorUtils.validateEntity(loupan);
loupanService.updateById(loupan);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
loupanService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<LoupanEntity> wrapper = new EntityWrapper<LoupanEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = loupanService.selectCount(wrapper);
return R.ok().put("count", count);
}
/**
* 前端智能排序
*/
@IgnoreAuth
@RequestMapping("/autoSort")
public R autoSort(@RequestParam Map<String, Object> params,LoupanEntity loupan, HttpServletRequest request,String pre){
EntityWrapper<LoupanEntity> ew = new EntityWrapper<LoupanEntity>();
Map<String, Object> newMap = new HashMap<String, Object>();
Map<String, Object> param = new HashMap<String, Object>();
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
String newKey = entry.getKey();
if (pre.endsWith(".")) {
newMap.put(pre + newKey, entry.getValue());
} else if (StringUtils.isEmpty(pre)) {
newMap.put(newKey, entry.getValue());
} else {
newMap.put(pre + "." + newKey, entry.getValue());
}
}
params.put("sort", "clicktime");
params.put("order", "desc");
PageUtils page = loupanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, loupan), params), params));
return R.ok().put("data", page);
}
}