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

网站推广免费渠道开封网站优化公司

网站推广免费渠道,开封网站优化公司,比较著名的seo网站,热点新闻ssm社区管理与服务的设计与实现031 开发工具:idea 数据库mysql5.7 数据库链接工具:navcat,小海豚等 技术:ssm 研究背景 当今时代是飞速发展的信息时代。在各行各业中离不开信息处理,这正是计算机被广泛应用于信息管理系统的…

ssm社区管理与服务的设计与实现031


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

研究背景

当今时代是飞速发展的信息时代。在各行各业中离不开信息处理,这正是计算机被广泛应用于信息管理系统的环境。计算机的最大好处在于利用它能够进行信息管理。使用计算机进行信息控制,不仅提高了工作效率,而且大大的提高了其安全性。尤其对于复杂的信息管理,计算机能够充分发挥它的优越性。

对于社区管理和服务方面,虽然现在已经有利用信息技术运作社区管理和服务的例子,但大都处于起步阶段,有的仅仅是一些静态的网页设计或单纯的搬一些必需的表格上电脑,缺乏互动性,这些并没有很好的利用信息技术实现真正的社区管理和服务的自动化。因此为了解决这一问题,更好的为社区居民服务,选择开发本社区管理与服务系统。

在互联网的迅速发展下,局域网的普及,为建立社区管理与服务系统的设计与实现提供了基础条件。社区管理与服务系统与传统的社区管理与服务方式相比,有着无法比拟的优点,网络共享、传播速度快的特点,社区居民可以随时随地进入系统查询所需信息,同时管理员可通过计算机可对系统相关信息进行全面管理,更好的为广大社区居民服务。

研究现状

随着计算机的普及,信息技术也得到了空前的发展,计算机应用的领域也越来越广泛。提高处理事情的效率也已经成为了各行各业所追求的目标。

在国外,由于计算机发展的比较早,信息技术发展相比于国内更加快速,况且国外对于计算机系统应用的也是广泛。在国外社区管理与服务系统很早就已经开始进行实施了,而且效果相当不错。由于国外应用社区管理与服务系统的时间很长,所以使得他们在实际的工作中发现了计算机系统的不足之处,并将这些不足之处进行弥补。也是通过这些不足之出,国外的研究人员也逐渐制定了完善的规则和标准。并将其应用到社区管理与服务系统中。使得软件系统技术得到了长足的发展。

在国内,计算机普及的时间比较短,信息技术发展的还不是很完善,对于计算机信息应用的也不是很多,对计算机系统了解还不是透彻,导致计算机系统在实际应用中的实际效果与预期效果大相径庭,国内缺少的是解决计算机系统出现的问题的经验,因为对计算机系统的应用太少,国内缺少的是解决计算机系统所产生的问题的经验,想要社区管理与服务系统方面的研究水平得到提高,就要多遇到问题,然后解决问题,这样积累经验的速度才是最快的。

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.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.ShequyonghuEntity;
import com.entity.view.ShequyonghuView;import com.service.ShequyonghuService;
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-02-27 15:35:54*/
@RestController
@RequestMapping("/shequyonghu")
public class ShequyonghuController {@Autowiredprivate ShequyonghuService shequyonghuService;@Autowiredprivate TokenService tokenService;/*** 登录*/@IgnoreAuth@RequestMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {ShequyonghuEntity user = shequyonghuService.selectOne(new EntityWrapper<ShequyonghuEntity>().eq("yonghuzhanghao", username));if(user==null || !user.getMima().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(), username,"shequyonghu",  "社区用户" );return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@RequestMapping("/register")public R register(@RequestBody ShequyonghuEntity shequyonghu){//ValidatorUtils.validateEntity(shequyonghu);ShequyonghuEntity user = shequyonghuService.selectOne(new EntityWrapper<ShequyonghuEntity>().eq("yonghuzhanghao", shequyonghu.getYonghuzhanghao()));if(user!=null) {return R.error("注册用户已存在");}Long uId = new Date().getTime();shequyonghu.setId(uId);shequyonghuService.insert(shequyonghu);return R.ok();}/*** 退出*/@RequestMapping("/logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 获取用户的session用户信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");ShequyonghuEntity user = shequyonghuService.selectById(id);return R.ok().put("data", user);}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){ShequyonghuEntity user = shequyonghuService.selectOne(new EntityWrapper<ShequyonghuEntity>().eq("yonghuzhanghao", username));if(user==null) {return R.error("账号不存在");}user.setMima("123456");shequyonghuService.updateById(user);return R.ok("密码已重置为:123456");}/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,ShequyonghuEntity shequyonghu, HttpServletRequest request){EntityWrapper<ShequyonghuEntity> ew = new EntityWrapper<ShequyonghuEntity>();PageUtils page = shequyonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shequyonghu), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 前端列表*/@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,ShequyonghuEntity shequyonghu, HttpServletRequest request){EntityWrapper<ShequyonghuEntity> ew = new EntityWrapper<ShequyonghuEntity>();PageUtils page = shequyonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shequyonghu), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( ShequyonghuEntity shequyonghu){EntityWrapper<ShequyonghuEntity> ew = new EntityWrapper<ShequyonghuEntity>();ew.allEq(MPUtil.allEQMapPre( shequyonghu, "shequyonghu")); return R.ok().put("data", shequyonghuService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(ShequyonghuEntity shequyonghu){EntityWrapper< ShequyonghuEntity> ew = new EntityWrapper< ShequyonghuEntity>();ew.allEq(MPUtil.allEQMapPre( shequyonghu, "shequyonghu")); ShequyonghuView shequyonghuView =  shequyonghuService.selectView(ew);return R.ok("查询社区用户成功").put("data", shequyonghuView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){ShequyonghuEntity shequyonghu = shequyonghuService.selectById(id);return R.ok().put("data", shequyonghu);}/*** 前端详情*/@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){ShequyonghuEntity shequyonghu = shequyonghuService.selectById(id);return R.ok().put("data", shequyonghu);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody ShequyonghuEntity shequyonghu, HttpServletRequest request){shequyonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(shequyonghu);ShequyonghuEntity user = shequyonghuService.selectOne(new EntityWrapper<ShequyonghuEntity>().eq("yonghuzhanghao", shequyonghu.getYonghuzhanghao()));if(user!=null) {return R.error("用户已存在");}shequyonghu.setId(new Date().getTime());shequyonghuService.insert(shequyonghu);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody ShequyonghuEntity shequyonghu, HttpServletRequest request){shequyonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(shequyonghu);ShequyonghuEntity user = shequyonghuService.selectOne(new EntityWrapper<ShequyonghuEntity>().eq("yonghuzhanghao", shequyonghu.getYonghuzhanghao()));if(user!=null) {return R.error("用户已存在");}shequyonghu.setId(new Date().getTime());shequyonghuService.insert(shequyonghu);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody ShequyonghuEntity shequyonghu, HttpServletRequest request){//ValidatorUtils.validateEntity(shequyonghu);shequyonghuService.updateById(shequyonghu);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){shequyonghuService.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<ShequyonghuEntity> wrapper = new EntityWrapper<ShequyonghuEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = shequyonghuService.selectCount(wrapper);return R.ok().put("count", count);}}

 

http://www.dt0577.cn/news/53682.html

相关文章:

  • 快速网站模板公司seo推广专员招聘
  • ppt模板免费网站在线制作市场推广方案模板
  • 四川人防工程建设网站网站接广告
  • 武汉网站公司多少钱2023年8月新闻热点事件
  • django网站开发过程百度官网app下载
  • 佛山企业网站建设策划百度搜索推广收费标准
  • 做推广适合哪些网站台州seo优化公司
  • 营销网站建设的步骤过程网络培训平台有哪些
  • 学校网站建设系统软文网站名称
  • 硅云网站建设视频推广下载
  • wordpress 电影网站百度优化关键词
  • 网站接口需求西地那非片说明书
  • 门户网站建设意义如何给网站做推广
  • 答题网站开发教程人工智能的关键词
  • 网站被主流搜索引擎收录的网页数量seo网站优化推广怎么样
  • 自己做的网站别人打不开青岛网站优化公司
  • 备案的网站名称写什么360站长工具seo
  • 做设计值得收藏的图片网站抖音推广引流平台
  • 北京网站制作基本流程网络公司网页设计
  • 做网站的上市公司有哪些汽车宣传软文
  • iH5做网站什么是网站推广策略
  • 怎么在ftp中查看网站首页路径新闻稿营销
  • 常德做网站建设的公司外贸营销型网站建设公司
  • 天长企业网站制作互联网营销推广怎么做
  • 自学做网站界面市场调研的重要性
  • 软件做网站 编程自己写如何制作网页广告
  • 单位网站建设流程网页设计一般用什么软件
  • iis网站重定向设置统计站老站长推荐草莓
  • 外贸建站哪家自己怎么创建一个网站
  • wallbase wordpress网站seo平台