开源一个基于SSM物业疫情系统

简介: 今天给大家开源一个基于SSM疫情期间的物业管理系统。系统的功能非常的nice。

今天给大家开源一个基于SSM疫情期间的物业管理系统。

系统的功能非常的nice。


一,系统功能展示:


系统的功能框架图如下所示:


微信图片_20221009210650.png


微信图片_20221009210706.png

微信图片_20221009210717.png


二,系统的界面展示:


微信图片_20221009210722.png


微信图片_20221009210726.png


微信图片_20221009210730.png

微信图片_20221009210734.png


微信图片_20221009210738.png


微信图片_20221009210741.png


三,系统的核心代码展示:

@RestController
@RequestMapping("/baogaoxinxi")
public class BaogaoxinxiController {
    @Autowired
    private BaogaoxinxiService baogaoxinxiService;
    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,BaogaoxinxiEntity baogaoxinxi, HttpServletRequest request){
  String tableName = request.getSession().getAttribute("tableName").toString();
  if(tableName.equals("yezhu")) {
   baogaoxinxi.setYonghuming((String)request.getSession().getAttribute("username"));
  }
        EntityWrapper<BaogaoxinxiEntity> ew = new EntityWrapper<BaogaoxinxiEntity>();
  PageUtils page = baogaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baogaoxinxi), params), params));
        return R.ok().put("data", page);
    }
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,BaogaoxinxiEntity baogaoxinxi, HttpServletRequest request){
        EntityWrapper<BaogaoxinxiEntity> ew = new EntityWrapper<BaogaoxinxiEntity>();
  PageUtils page = baogaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baogaoxinxi), params), params));
        return R.ok().put("data", page);
    }
 /**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( BaogaoxinxiEntity baogaoxinxi){
        EntityWrapper<BaogaoxinxiEntity> ew = new EntityWrapper<BaogaoxinxiEntity>();
       ew.allEq(MPUtil.allEQMapPre( baogaoxinxi, "baogaoxinxi")); 
        return R.ok().put("data", baogaoxinxiService.selectListView(ew));
    }
  /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(BaogaoxinxiEntity baogaoxinxi){
        EntityWrapper< BaogaoxinxiEntity> ew = new EntityWrapper< BaogaoxinxiEntity>();
   ew.allEq(MPUtil.allEQMapPre( baogaoxinxi, "baogaoxinxi")); 
  BaogaoxinxiView baogaoxinxiView =  baogaoxinxiService.selectView(ew);
  return R.ok("查询报告信息成功").put("data", baogaoxinxiView);
    }
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id){
        BaogaoxinxiEntity baogaoxinxi = baogaoxinxiService.selectById(id);
        return R.ok().put("data", baogaoxinxi);
    }
    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") String id){
        BaogaoxinxiEntity baogaoxinxi = baogaoxinxiService.selectById(id);
        return R.ok().put("data", baogaoxinxi);
    }
@RestController
@RequestMapping("/cheweixinxi")
public class CheweixinxiController {
    @Autowired
    private CheweixinxiService cheweixinxiService;
    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi, HttpServletRequest request){
  String tableName = request.getSession().getAttribute("tableName").toString();
  if(tableName.equals("yezhu")) {
   cheweixinxi.setYonghuming((String)request.getSession().getAttribute("username"));
  }
        EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
  PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
        return R.ok().put("data", page);
    }
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi, HttpServletRequest request){
        EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
  PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
        return R.ok().put("data", page);
    }
 /**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( CheweixinxiEntity cheweixinxi){
        EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
       ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi")); 
        return R.ok().put("data", cheweixinxiService.selectListView(ew));
    }
  /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(CheweixinxiEntity cheweixinxi){
        EntityWrapper< CheweixinxiEntity> ew = new EntityWrapper< CheweixinxiEntity>();
   ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi")); 
  CheweixinxiView cheweixinxiView =  cheweixinxiService.selectView(ew);
  return R.ok("查询车位信息成功").put("data", cheweixinxiView);
    }


/**


* 通用接口
 */
@RestController
public class CommonController{
 @Autowired
 private CommonService commonService;
 @Autowired
 private ConfigService configService;
 private static AipFace client = null;
 private static String BAIDU_DITU_AK = null;
 @RequestMapping("/location")
 public R location(String lng,String lat) {
  if(BAIDU_DITU_AK==null) {
   BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue();
   if(BAIDU_DITU_AK==null) {
    return R.error("请在配置管理中正确配置baidu_ditu_ak");
   }
  }
  Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
  return R.ok().put("data", map);
 }
 /**
  * 人脸比对
  * 
  * @param face1 人脸1
  * @param face2 人脸2
  * @return
  */
 @RequestMapping("/matchFace")
 public R matchFace(String face1, String face2,HttpServletRequest request) {
  if(client==null) {
   /*String AppID = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "AppID")).getValue();*/
   String APIKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "APIKey")).getValue();
   String SecretKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "SecretKey")).getValue();
   String token = BaiduUtil.getAuth(APIKey, SecretKey);
   if(token==null) {
    return R.error("请在配置管理中正确配置APIKey和SecretKey");
   }
   client = new AipFace(null, APIKey, SecretKey);
   client.setConnectionTimeoutInMillis(2000);
   client.setSocketTimeoutInMillis(60000);
  }
  JSONObject res = null;
  try {
   File file1 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face1);
   File file2 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face2);
   String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
   String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
   MatchRequest req1 = new MatchRequest(img1, "BASE64");
   MatchRequest req2 = new MatchRequest(img2, "BASE64");
   ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
   requests.add(req1);
   requests.add(req2);
   res = client.match(requests);
   System.out.println(res.get("result"));
  } catch (FileNotFoundException e) {
   e.printStackTrace();
   return R.error("文件不存在");
  } catch (IOException e) {
   e.printStackTrace();
  } 
  return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
 }
目录
相关文章
|
9月前
|
存储 Java 关系型数据库
ssm026校园美食交流系统(文档+源码)_kaic
本文介绍了基于Java语言和MySQL数据库的校园美食交流系统的设计与实现。该系统采用B/S架构和SSM框架,旨在提高校园美食信息管理的效率与便捷性。主要内容包括:系统的开发背景、目的及内容;对Java技术、MySQL数据库、B/S结构和SSM框架的介绍;系统分析部分涵盖可行性分析、性能分析和功能需求分析;最后详细描述了系统各功能模块的具体实现,如登录、管理员功能(美食分类管理、用户管理等)和前台首页功能。通过此系统,管理员可以高效管理美食信息,用户也能方便地获取和分享美食资讯,从而提升校园美食交流的管理水平和用户体验。
|
8月前
|
Java 关系型数据库 MySQL
weixin050高校体育场管理系统+ssm(文档+源码)_kaic
本文针对高校体育场管理系统的开发与实现进行详细介绍。随着经济快速发展,人们对手机软件需求增加,高校体育场管理系统应运而生。系统采用JAVA技术、Mysql数据库和SSM框架等成熟技术,通过分析功能需求、可行性及性能,设计出包含管理员、用户和学生角色的功能模块。系统实现用户注册登录、信息管理等功能,简化传统手工统计模式,提高管理效率,满足用户对信息获取的及时性与准确性需求。
weixin050高校体育场管理系统+ssm(文档+源码)_kaic
|
8月前
|
前端开发 Java 关系型数据库
基于ssm的社区物业管理系统,附源码+数据库+论文+任务书
社区物业管理系统采用B/S架构,基于Java语言开发,使用MySQL数据库。系统涵盖个人中心、用户管理、楼盘管理、收费管理、停车登记、报修与投诉管理等功能模块,方便管理员及用户操作。前端采用Vue、HTML、JavaScript等技术,后端使用SSM框架。系统支持远程安装调试,确保顺利运行。提供演示视频和详细文档截图,帮助用户快速上手。
341 17
|
8月前
|
前端开发 Java 关系型数据库
基于ssm的超市会员(积分)管理系统,附源码+数据库+论文,包安装调试
本项目为简单内容浏览和信息处理系统,具备管理员和员工权限。管理员可管理会员、员工、商品及积分记录,员工则负责积分、商品信息和兑换管理。技术框架采用Java编程语言,B/S架构,前端使用Vue+JSP+JavaScript+Css+LayUI,后端为SSM框架,数据库为MySQL。运行环境为Windows,JDK8+Tomcat8.5,非前后端分离的Maven项目。提供演示视频和详细文档,购买后支持免费远程安装调试。
366 19
|
8月前
|
前端开发 JavaScript Java
[Java计算机毕设]基于ssm的OA办公管理系统的设计与实现,附源码+数据库+论文+开题,包安装调试
OA办公管理系统是一款基于Java和SSM框架开发的B/S架构应用,适用于Windows系统。项目包含管理员、项目管理人员和普通用户三种角色,分别负责系统管理、请假审批、图书借阅等日常办公事务。系统使用Vue、HTML、JavaScript、CSS和LayUI构建前端,后端采用SSM框架,数据库为MySQL,共24张表。提供完整演示视频和详细文档截图,支持远程安装调试,确保顺利运行。
358 17
|
8月前
|
前端开发 Java 关系型数据库
基于ssm的网络直播带货管理系统,附源码+数据库+论文
该项目为网络直播带货网站,包含管理员和用户两个角色。管理员可进行主页、个人中心、用户管理、商品分类与信息管理、系统及订单管理;用户可浏览主页、管理个人中心、收藏和订单。系统基于Java开发,采用B/S架构,前端使用Vue、JSP等技术,后端为SSM框架,数据库为MySQL。项目运行环境为Windows,支持JDK8、Tomcat8.5。提供演示视频和详细文档截图。
259 10
|
8月前
|
前端开发 Java 关系型数据库
基于ssm的台球厅管理系统,附源码+数据库+论文
本项目为新锐台球厅管理系统,支持管理员和会员两种角色。管理员可进行会员管理、台球桌管理、订单管理等;会员可查看台球桌、预约、购买商品等。技术框架基于Java,采用B/S架构,前端使用Vue+HTML+JavaScript+CSS+LayUI,后端使用SSM框架,数据库为MySQL。运行环境为Windows,JDK8+MySQL5.7+Tomcat8.5。提供演示视频及详细文档截图。
|
9月前
|
存储 Java 关系型数据库
ssm064农产品仓库管理系统系统(文档+源码)_kaic
农产品仓库管理系统基于现代经济快速发展和信息化技术的升级,采用SSM框架、Java语言及Mysql数据库开发。系统旨在帮助管理者高效处理大量数据信息,提升事务处理效率,实现数据管理的科学化与规范化。该系统涵盖物资基础数据管理、出入库订单管理等功能,界面简洁美观,符合用户操作习惯,并提供数据安全解决方案,确保信息的安全性和可靠性。通过自动化和集中处理,系统显著提高了仓库管理的效率和准确性。
|
Java 应用服务中间件 数据库连接
ssm项目整合,简单的用户管理系统
文章介绍了一个使用SSM框架(Spring、SpringMVC、MyBatis)构建的简单用户管理系统的整合过程,包括项目搭建、数据库配置、各层代码实现以及视图展示。
ssm项目整合,简单的用户管理系统
|
XML Java 数据库连接
如何搭建SSM框架、图书商城系统
这是一份详尽的《Spring + SpringMVC + Mybatis 整合指南》,作者耗时良久整理出约五万字的内容,现已经全部笔记公开。此文档详细地介绍了如何搭建与整合SSM框架,具体步骤包括创建Maven项目、添加web骨架、配置pom文件以及整合Spring、SpringMVC和Mybatis等。无论是对初学者还是有一定基础的开发者来说,都是很好的学习资源。此外,作者还提供了项目源码的GitHub链接,方便读者实践。虽然当前主流推荐学习SpringBoot,但了解SSM框架仍然是不可或缺的基础。
184 0

热门文章

最新文章