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

站长网站工具wordpress不显示目录文章

站长网站工具,wordpress不显示目录文章,frontpage2003网页制作教程,图片制作视频怎么制作基于ssm Vue的戒烟网站源码和论文734 开发工具#xff1a;idea 数据库mysql5.7 数据库链接工具#xff1a;navcat,小海豚等 环境#xff1a; jdk8 tomcat8.5 开发技术 ssm 摘要 随着互联网的高速发展#xff0c;线上管理成为当代人们管理事物的重要手段之一#xff…基于ssm Vue的戒烟网站源码和论文734 开发工具idea 数据库mysql5.7 数据库链接工具navcat,小海豚等 环境 jdk8 tomcat8.5 开发技术 ssm 摘要 随着互联网的高速发展线上管理成为当代人们管理事物的重要手段之一戒烟网站的开发也迫在眉睫。所以采用B/S模式, MySQL数据库以及通过java技术来开发此网站的目的是建立一个戒烟网站这样可以有效地解决戒烟管理混乱的局面。本网站设计了2种角色管理员,用户。通过此网站用户可以对首页用户分享论坛交流公告文章个人中心后台管理等功能进行操作管理员可以对网站所有功能进行管理包括管理用户的基本信息。该网站大大提高戒烟效率节约了大量的时间和精力。 关键字戒烟网站java技术 演示视频 基于ssm Vue的戒烟网站源码和论文 Abstract With the rapid development of the Internet, online management has become one of the important means for people to manage things. The development of smoking cessation websites is also imminent. Therefore, the purpose of using B/S mode, MySQL database and Java technology to develop this system is to establish a smoking cessation website, which can effectively solve the chaotic situation of smoking cessation management. This system has designed two kinds of roles: administrator, user. Through this system, users can operate the home page, user share, forum exchange, announcement articles, personal center, background management and other functions; Administrators can manage all functions of the system, including basic user information. The system greatly improves the efficiency of smoking cessation and saves a lot of time and energy. Key words: Quit smoking website; Java technology; 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 java.io.IOException;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.YonghuEntity; import com.entity.view.YonghuView;import com.service.YonghuService; 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 2022-04-15 08:22:48*/ RestController RequestMapping(/yonghu) public class YonghuController {Autowiredprivate YonghuService yonghuService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthRequestMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {YonghuEntity user yonghuService.selectOne(new EntityWrapperYonghuEntity().eq(yonghuming, username));if(usernull || !user.getMima().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(), username,yonghu, 用户 );return R.ok().put(token, token);}/*** 注册*/IgnoreAuthRequestMapping(/register)public R register(RequestBody YonghuEntity yonghu){//ValidatorUtils.validateEntity(yonghu);YonghuEntity user yonghuService.selectOne(new EntityWrapperYonghuEntity().eq(yonghuming, yonghu.getYonghuming()));if(user!null) {return R.error(注册用户已存在);}Long uId new Date().getTime();yonghu.setId(uId);yonghuService.insert(yonghu);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);YonghuEntity user yonghuService.selectById(id);return R.ok().put(data, user);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){YonghuEntity user yonghuService.selectOne(new EntityWrapperYonghuEntity().eq(yonghuming, username));if(usernull) {return R.error(账号不存在);}user.setMima(123456);yonghuService.updateById(user);return R.ok(密码已重置为123456);}/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,YonghuEntity yonghu, HttpServletRequest request){EntityWrapperYonghuEntity ew new EntityWrapperYonghuEntity();PageUtils page yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,YonghuEntity yonghu, HttpServletRequest request){EntityWrapperYonghuEntity ew new EntityWrapperYonghuEntity();PageUtils page yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( YonghuEntity yonghu){EntityWrapperYonghuEntity ew new EntityWrapperYonghuEntity();ew.allEq(MPUtil.allEQMapPre( yonghu, yonghu)); return R.ok().put(data, yonghuService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(YonghuEntity yonghu){EntityWrapper YonghuEntity ew new EntityWrapper YonghuEntity();ew.allEq(MPUtil.allEQMapPre( yonghu, yonghu)); YonghuView yonghuView yonghuService.selectView(ew);return R.ok(查询用户成功).put(data, yonghuView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){YonghuEntity yonghu yonghuService.selectById(id);return R.ok().put(data, yonghu);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){YonghuEntity yonghu yonghuService.selectById(id);return R.ok().put(data, yonghu);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody YonghuEntity yonghu, HttpServletRequest request){yonghu.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(yonghu);YonghuEntity user yonghuService.selectOne(new EntityWrapperYonghuEntity().eq(yonghuming, yonghu.getYonghuming()));if(user!null) {return R.error(用户已存在);}yonghu.setId(new Date().getTime());yonghuService.insert(yonghu);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody YonghuEntity yonghu, HttpServletRequest request){yonghu.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(yonghu);YonghuEntity user yonghuService.selectOne(new EntityWrapperYonghuEntity().eq(yonghuming, yonghu.getYonghuming()));if(user!null) {return R.error(用户已存在);}yonghu.setId(new Date().getTime());yonghuService.insert(yonghu);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody YonghuEntity yonghu, HttpServletRequest request){//ValidatorUtils.validateEntity(yonghu);yonghuService.updateById(yonghu);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){yonghuService.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 MapString, 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));}}WrapperYonghuEntity wrapper new EntityWrapperYonghuEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count yonghuService.selectCount(wrapper);return R.ok().put(count, count);}}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 java.io.IOException;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.NewsEntity; import com.entity.view.NewsView;import com.service.NewsService; 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 2022-04-15 08:22:48*/ RestController RequestMapping(/news) public class NewsController {Autowiredprivate NewsService newsService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,NewsEntity news, HttpServletRequest request){EntityWrapperNewsEntity ew new EntityWrapperNewsEntity();PageUtils page newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,NewsEntity news, HttpServletRequest request){EntityWrapperNewsEntity ew new EntityWrapperNewsEntity();PageUtils page newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( NewsEntity news){EntityWrapperNewsEntity ew new EntityWrapperNewsEntity();ew.allEq(MPUtil.allEQMapPre( news, news)); return R.ok().put(data, newsService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(NewsEntity news){EntityWrapper NewsEntity ew new EntityWrapper NewsEntity();ew.allEq(MPUtil.allEQMapPre( news, news)); NewsView newsView newsService.selectView(ew);return R.ok(查询公告文章成功).put(data, newsView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){NewsEntity news newsService.selectById(id);return R.ok().put(data, news);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){NewsEntity news newsService.selectById(id);return R.ok().put(data, news);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody NewsEntity news, HttpServletRequest request){news.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(news);newsService.insert(news);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody NewsEntity news, HttpServletRequest request){news.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(news);newsService.insert(news);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody NewsEntity news, HttpServletRequest request){//ValidatorUtils.validateEntity(news);newsService.updateById(news);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){newsService.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 MapString, 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));}}WrapperNewsEntity wrapper new EntityWrapperNewsEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count newsService.selectCount(wrapper);return R.ok().put(count, count);}}
http://www.zqtcl.cn/news/69572/

相关文章:

  • 网站推广服务商wordpress加速优化插件
  • 怎么免费建立自己的网站手机端网页界面设计
  • saas云建站平台源码wordpress 主题库
  • 专业做网站排名多少钱网站设计的优缺点
  • 做那个网站的图客比较好手机网站菜单代码
  • 网站制作不用备案做一个网站中的搜索功能怎么做
  • 做网站界面的软件wordpress+简码使用
  • 龙口网站制作wordpress安装文件下载
  • 线上海报设计网站互联网公司设计
  • 电子政务门户网站建设项目招标采购吉林整站优化
  • 网上商城功能模块图seo排名优化软件有用吗
  • 最新经济新闻头条外贸seo是啥
  • 经过学习网站开发后的心得体会怎样建官方网站
  • 公司做企业网站须知识图 WordPress
  • 做企业网站一般用什么服务器网上商城都有哪些
  • 凡科网站建设网站网络推广合同范本
  • wordpress首页加登录衡水seo营销
  • 第一免费营销型网站网络服务提供者知道或者应当知道网络用户利用其网络服务侵害他
  • 网站开发的方案南京奥美广告公司
  • 优秀国外网站设计赏析电商sku是什么意思
  • 动漫做3d游戏下载网站企业网站建设费怎么入账
  • 设计师的网站大气绿色网站模板
  • 搭建博客网站腾讯建设网站视频下载
  • 福建省住房和城乡建设厅的网站电商运营推广是做什么的
  • 网站开发企划书如何给wordpress文章排版
  • 做网站赚钱的QQ群佛山小学网站建设
  • 微信网站建设方案友汇网站建设
  • 江苏华悦建设集团网站陕西建设执业注册中心网站
  • 石家庄市住房城乡建设局网站保健品网站怎么做的
  • 无为县建设局网站采购