当前位置: 首页 > news >正文

SSM+JSP洪涝灾情应急物资管理系统源码+论文

代码可以查看文章末尾⬇️联系方式获取,记得注明来意哦~🌹
分享万套开题报告+任务书+答辩PPT模板
作者完整代码目录供你选择:
《SpringBoot网站项目》1800套
《SSM网站项目》1500套
《小程序项目》1600套
《APP项目》1500套
《Python网站项目》1300套
⬇️文章末尾可以获取联系方式,需要源码或者演示视频可以联系⬇️
⚡感兴趣大家可以点点关注收藏,后续更新更多项目资料。⚡

采用技术:

编程语言:Java
后端框架:SSM
前端框架:JSP
数据库:MySQL
数据表数量:20张表
运行软件:IDEA、Eclipse、VS Code都可以

系统功能:


本系统实现管理员、用户、运输员模块。
管理员模块功能:用户管理、运输员管理、物资类别管理、物资信息管理、物资申请管理、物资求助管理、物资捐赠管理、灾后信息管理、申请物资运输管理、捐赠物资运输管理、系统简介、公告信息、关于我们、物资信息模块、物资求助模块、灾后信息模块等。
用户模块功能:物资信息管理、物资申请管理、物资求助管理、物资捐赠管理、灾后信息管理、物资信息模块、物资求助模块、灾后信息模块等。
运输员模块功能:物资申请管理、物资捐赠管理、申请物资运输管理、捐赠物资运输管理、物资信息模块、物资求助模块、灾后信息模块等。

运行截图:



















论文目录:



核心代码:

packagecom.controller;importjava.text.SimpleDateFormat;importcom.alibaba.fastjson.JSONObject;importjava.util.*;importorg.springframework.beans.BeanUtils;importjavax.servlet.http.HttpServletRequest;importorg.springframework.web.context.ContextLoader;importjavax.servlet.ServletContext;importcom.service.TokenService;importcom.utils.StringUtil;importjava.lang.reflect.InvocationTargetException;importcom.service.DictionaryService;importorg.apache.commons.lang3.StringUtils;importcom.annotation.IgnoreAuth;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Controller;importorg.springframework.web.bind.annotation.*;importcom.baomidou.mybatisplus.mapper.EntityWrapper;importcom.baomidou.mybatisplus.mapper.Wrapper;importcom.entity.YonghuEntity;importcom.service.YonghuService;importcom.entity.view.YonghuView;importcom.utils.PageUtils;importcom.utils.R;@RestController@Controller@RequestMapping("/yonghu")publicclassYonghuController{privatestaticfinalLoggerlogger=LoggerFactory.getLogger(YonghuController.class);@AutowiredprivateYonghuServiceyonghuService;@AutowiredprivateTokenServicetokenService;@AutowiredprivateDictionaryServicedictionaryService;//级联表service/** * 后端列表 */@RequestMapping("/page")publicRpage(@RequestParamMap<String,Object>params,HttpServletRequestrequest){logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));params.put("orderBy","id");PageUtilspage=yonghuService.queryPage(params);//字典表数据转换List<YonghuView>list=(List<YonghuView>)page.getList();for(YonghuViewc:list){//修改对应字典表字段dictionaryService.dictionaryConvert(c);}returnR.ok().put("data",page);}/** * 后端详情 */@RequestMapping("/info/{id}")publicRinfo(@PathVariable("id")Longid){logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);YonghuEntityyonghu=yonghuService.selectById(id);if(yonghu!=null){//entity转viewYonghuViewview=newYonghuView();BeanUtils.copyProperties(yonghu,view);//把实体数据重构到view中//修改对应字典表字段dictionaryService.dictionaryConvert(view);returnR.ok().put("data",view);}else{returnR.error(511,"查不到数据");}}/** * 后端保存 */@RequestMapping("/save")publicRsave(@RequestBodyYonghuEntityyonghu,HttpServletRequestrequest){logger.debug("save方法:,,Controller:{},,yonghu:{}",this.getClass().getName(),yonghu.toString());Wrapper<YonghuEntity>queryWrapper=newEntityWrapper<YonghuEntity>().eq("username",yonghu.getUsername()).or().eq("yonghu_phone",yonghu.getYonghuPhone()).or().eq("yonghu_id_number",yonghu.getYonghuIdNumber());;logger.info("sql语句:"+queryWrapper.getSqlSegment());YonghuEntityyonghuEntity=yonghuService.selectOne(queryWrapper);if(yonghuEntity==null){yonghu.setCreateTime(newDate());yonghu.setPassword("123456");// String role = String.valueOf(request.getSession().getAttribute("role"));// if("".equals(role)){// yonghu.set// }yonghuService.insert(yonghu);returnR.ok();}else{returnR.error(511,"账户或者身份证号或者手机号已经被使用");}}/** * 后端修改 */@RequestMapping("/update")publicRupdate(@RequestBodyYonghuEntityyonghu,HttpServletRequestrequest){logger.debug("update方法:,,Controller:{},,yonghu:{}",this.getClass().getName(),yonghu.toString());//根据字段查询是否有相同数据Wrapper<YonghuEntity>queryWrapper=newEntityWrapper<YonghuEntity>().notIn("id",yonghu.getId()).andNew().eq("username",yonghu.getUsername()).or().eq("yonghu_phone",yonghu.getYonghuPhone()).or().eq("yonghu_id_number",yonghu.getYonghuIdNumber());;logger.info("sql语句:"+queryWrapper.getSqlSegment());YonghuEntityyonghuEntity=yonghuService.selectOne(queryWrapper);if("".equals(yonghu.getYonghuPhoto())||"null".equals(yonghu.getYonghuPhoto())){yonghu.setYonghuPhoto(null);}if(yonghuEntity==null){// String role = String.valueOf(request.getSession().getAttribute("role"));// if("".equals(role)){// yonghu.set// }yonghuService.updateById(yonghu);//根据id更新returnR.ok();}else{returnR.error(511,"账户或者身份证号或者手机号已经被使用");}}/** * 删除 */@RequestMapping("/delete")publicRdelete(@RequestBodyInteger[]ids){logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());yonghuService.deleteBatchIds(Arrays.asList(ids));returnR.ok();}/** * 登录 */@IgnoreAuth@RequestMapping(value="/login")publicRlogin(Stringusername,Stringpassword,Stringcaptcha,HttpServletRequestrequest){YonghuEntityyonghu=yonghuService.selectOne(newEntityWrapper<YonghuEntity>().eq("username",username));if(yonghu==null||!yonghu.getPassword().equals(password)){returnR.error("账号或密码不正确");}Stringtoken=tokenService.generateToken(yonghu.getId(),username,"yonghu","用户");Rr=R.ok();r.put("token",token);r.put("role","用户");r.put("username",yonghu.getYonghuName());r.put("tableName","yonghu");r.put("userId",yonghu.getId());returnr;}/** * 注册 */@IgnoreAuth@PostMapping(value="/register")publicRregister(@RequestBodyYonghuEntityyonghu){// ValidatorUtils.validateEntity(user);if(yonghuService.selectOne(newEntityWrapper<YonghuEntity>().eq("username",yonghu.getUsername()).orNew().eq("yonghu_phone",yonghu.getYonghuPhone()).orNew().eq("yonghu_id_number",yonghu.getYonghuIdNumber()))!=null){returnR.error("账户已存在或手机号或身份证号已经被使用");}yonghuService.insert(yonghu);returnR.ok();}/** * 重置密码 */@GetMapping(value="/resetPassword")publicRresetPassword(Integerid){YonghuEntityyonghu=newYonghuEntity();yonghu.setPassword("123456");yonghu.setId(id);yonghuService.updateById(yonghu);returnR.ok();}/** * 获取用户的session用户信息 */@RequestMapping("/session")publicRgetCurrYonghu(HttpServletRequestrequest){Integerid=(Integer)request.getSession().getAttribute("userId");YonghuEntityyonghu=yonghuService.selectById(id);returnR.ok().put("data",yonghu);}/** * 退出 */@GetMapping(value="logout")publicRlogout(HttpServletRequestrequest){request.getSession().invalidate();returnR.ok("退出成功");}}t("data",yonghu);}/** * 退出 */@GetMapping(value="logout")publicRlogout(HttpServletRequestrequest){request.getSession().invalidate();returnR.ok("退出成功");}}sion().invalidate();returnR.ok("退出成功");}}t("data",yonghu);}/** * 退出 */@GetMapping(value="logout")publicRlogout(HttpServletRequestrequest){request.getSession().invalidate();returnR.ok("退出成功");}}
http://www.jsqmd.com/news/572580/

相关文章:

  • 当STM32遇上Flutter:如何为你的智慧农业项目设计一个低成本、跨平台的手机监控App?
  • 如何用Fiddler中文版轻松解决网络调试难题
  • 使用协议转换网关实现机器人EthernetIP转成西门子Profinet的项目案例
  • DeepSeek-Coder-V2-Lite-Instruct用户调研:开发者眼中的AI编程助手痛点与需求
  • Wireshark实战:用ICMP协议诊断网络问题(附Ping和Traceroute案例分析)
  • vue租号系统源码/租号玩平台源码/游戏账号出租系统/虚拟账号出租平台源码
  • 从零解析:揭秘MSF生成calc弹窗shellcode的底层实现
  • 高性能抖音内容解析工具:douyin-downloader架构深度解析
  • GitHub神级开源项目上线144个AI专家,7天狂揽2.3万Star,重新定义AI落地姿势!
  • 5大核心优势:让图表创作效率提升80%的开源编辑器深度测评
  • 保姆级教程:在ROS2 Humble下用Python搞定多个Intel RealSense D405相机(附完整launch.py配置)
  • 4.2 链特异性(Strand-specific)和非链特异性(Unstranded)
  • STM32实战:sprintf格式化字符串在嵌入式LCD显示中的高效应用
  • 2026年市场质量好的矿用瓦斯抽放管制造商哪个好,矿用瓦斯抽放管/生活饮用水防腐钢管,矿用瓦斯抽放管销售厂家口碑推荐 - 品牌推荐师
  • 3分钟快速诊断:NatTypeTester开源网络诊断工具让你的网络问题无处遁形
  • 如何从零打造一台六轴机械臂:Faze4开源机器人完整指南
  • 手把手教你玩转DDR5的隐藏功能:用WRP命令实现高速全零填充(含x4/x8/x16设备差异详解)
  • Qwen3.5-9B-AWQ-4bit图文理解应用:跨境电商多语言包装图信息提取
  • 使用OpenClaw多Agent打造AI UI设计师机器人:从0到1的完整实践
  • 坚定信心,顺势而为 ——中国企业出海与人工智能时代语言服务行业的新机遇
  • (全网最全)分享8款AI工具,毕业论文AIGC率速降至5%!
  • Kazumi:如何打造你的个性化动漫聚合中心 - 终极开源解决方案
  • 5分钟上手:星图平台零基础部署Qwen3-VL:30B,通过Clawdbot接入飞书办公助手
  • 快马平台五分钟搭建opencv人脸检测原型,零配置开启计算机视觉之旅
  • 打工人PPT神器大揭秘,效率飙升不是梦!
  • 3步解决IDM激活难题:开源脚本的技术实现与持久化方案
  • PHP vs C++:10倍性能差距的编程语言对决
  • Cursor AI编程工具区域限制实战:3种绕过方法+自动切换模型脚本(2024最新)
  • 别再用默认字典了!DVWA暴力破解实战:从Low到High,手把手教你配置Burp Suite的Pitchfork模式
  • #永磁同步电机双闭环控制模型(PLECS) PMSM永磁同步电机仿真三电平(NPC)的矢量控制...