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

网站建设的网络直接拖拉做网站的软件

网站建设的网络,直接拖拉做网站的软件,做网站表示时间的控件用哪个,wordpress内容模版文件在哪个目录随着农机电招行业的不断发展#xff0c;农机电招在现实生活中的使用和普及#xff0c;农机电招行业成为近年内出现的一个新行业#xff0c;并且能够成为大群众广为认可和接受的行为和选择。设计农机电招平台的目的就是借助计算机让复杂的销售操作变简单#xff0c;变高效。… 随着农机电招行业的不断发展农机电招在现实生活中的使用和普及农机电招行业成为近年内出现的一个新行业并且能够成为大群众广为认可和接受的行为和选择。设计农机电招平台的目的就是借助计算机让复杂的销售操作变简单变高效。 农机电招平台采用了B/S结构JAVA作为开发语言数据库采用了B/S结构Mysql数据库进行开发。该系统包括前台操作和后台管理两个部分一方面为用户提供首页农机系统公告个人中心后台管理等功能另一方面为管理员提供首页个人中心农机机主管理使用者管理农机类型管理农机管理农机预约管理系统管理等功能。 【关键词】农机电招JAVAB/S结构 springboot农机电招平台源码和论文326 演示视频 springboot农机电招平台源码和论文 Abstract With the continuous development of the agricultural mechanical and electrical recruitment industry, the use and popularization of agricultural mechanical and electrical recruitment in real life, the agricultural mechanical and electrical recruitment industry has become a new industry that has emerged in recent years, and can become a behavior and choice widely recognized and accepted by the masses. The purpose of designing the agricultural mechanical and electrical recruitment platform is to make complex sales operations simple and efficient with the help of computers. The agricultural mechanical and electrical recruitment platform adopts the B/S structure, JAVA as the development language, the database adopts the B/S structure, and the Mysql database is developed. The system includes two parts of front-end operation and background management, on the one hand, to provide users with the home page, agricultural machinery, system announcements, personal center, background management and other functions; on the other hand, to provide administrators with homepage, personal center, agricultural machinery master management, user management, agricultural machinery type management, agricultural machinery management, agricultural machinery appointment management, system management and other functions. 【Keywords】Agricultural mechanical and electrical moves; JAVA; B/S structure 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.NongjijizhuEntity; import com.entity.view.NongjijizhuView;import com.service.NongjijizhuService; import com.service.TokenService; import com.utils.PageUtils; import com.utils.R; import com.utils.MD5Util; import com.utils.MPUtil; import com.utils.CommonUtil; import java.io.IOException;/*** 农机机主* 后端接口* author * email * date 2022-04-18 15:38:13*/ RestController RequestMapping(/nongjijizhu) public class NongjijizhuController {Autowiredprivate NongjijizhuService nongjijizhuService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthRequestMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {NongjijizhuEntity user nongjijizhuService.selectOne(new EntityWrapperNongjijizhuEntity().eq(jizhuzhanghao, username));if(usernull || !user.getMima().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(), username,nongjijizhu, 农机机主 );return R.ok().put(token, token);}/*** 注册*/IgnoreAuthRequestMapping(/register)public R register(RequestBody NongjijizhuEntity nongjijizhu){//ValidatorUtils.validateEntity(nongjijizhu);NongjijizhuEntity user nongjijizhuService.selectOne(new EntityWrapperNongjijizhuEntity().eq(jizhuzhanghao, nongjijizhu.getJizhuzhanghao()));if(user!null) {return R.error(注册用户已存在);}Long uId new Date().getTime();nongjijizhu.setId(uId);nongjijizhuService.insert(nongjijizhu);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);NongjijizhuEntity user nongjijizhuService.selectById(id);return R.ok().put(data, user);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){NongjijizhuEntity user nongjijizhuService.selectOne(new EntityWrapperNongjijizhuEntity().eq(jizhuzhanghao, username));if(usernull) {return R.error(账号不存在);}user.setMima(123456);nongjijizhuService.updateById(user);return R.ok(密码已重置为123456);}/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,NongjijizhuEntity nongjijizhu,HttpServletRequest request){EntityWrapperNongjijizhuEntity ew new EntityWrapperNongjijizhuEntity();PageUtils page nongjijizhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, nongjijizhu), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,NongjijizhuEntity nongjijizhu, HttpServletRequest request){EntityWrapperNongjijizhuEntity ew new EntityWrapperNongjijizhuEntity();PageUtils page nongjijizhuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, nongjijizhu), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( NongjijizhuEntity nongjijizhu){EntityWrapperNongjijizhuEntity ew new EntityWrapperNongjijizhuEntity();ew.allEq(MPUtil.allEQMapPre( nongjijizhu, nongjijizhu)); return R.ok().put(data, nongjijizhuService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(NongjijizhuEntity nongjijizhu){EntityWrapper NongjijizhuEntity ew new EntityWrapper NongjijizhuEntity();ew.allEq(MPUtil.allEQMapPre( nongjijizhu, nongjijizhu)); NongjijizhuView nongjijizhuView nongjijizhuService.selectView(ew);return R.ok(查询农机机主成功).put(data, nongjijizhuView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){NongjijizhuEntity nongjijizhu nongjijizhuService.selectById(id);return R.ok().put(data, nongjijizhu);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){NongjijizhuEntity nongjijizhu nongjijizhuService.selectById(id);return R.ok().put(data, nongjijizhu);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody NongjijizhuEntity nongjijizhu, HttpServletRequest request){nongjijizhu.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(nongjijizhu);NongjijizhuEntity user nongjijizhuService.selectOne(new EntityWrapperNongjijizhuEntity().eq(jizhuzhanghao, nongjijizhu.getJizhuzhanghao()));if(user!null) {return R.error(用户已存在);}nongjijizhu.setId(new Date().getTime());nongjijizhuService.insert(nongjijizhu);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody NongjijizhuEntity nongjijizhu, HttpServletRequest request){nongjijizhu.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(nongjijizhu);NongjijizhuEntity user nongjijizhuService.selectOne(new EntityWrapperNongjijizhuEntity().eq(jizhuzhanghao, nongjijizhu.getJizhuzhanghao()));if(user!null) {return R.error(用户已存在);}nongjijizhu.setId(new Date().getTime());nongjijizhuService.insert(nongjijizhu);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody NongjijizhuEntity nongjijizhu, HttpServletRequest request){//ValidatorUtils.validateEntity(nongjijizhu);nongjijizhuService.updateById(nongjijizhu);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){nongjijizhuService.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));}}WrapperNongjijizhuEntity wrapper new EntityWrapperNongjijizhuEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count nongjijizhuService.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 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.ShiyongzheEntity; import com.entity.view.ShiyongzheView;import com.service.ShiyongzheService; import com.service.TokenService; import com.utils.PageUtils; import com.utils.R; import com.utils.MD5Util; import com.utils.MPUtil; import com.utils.CommonUtil; import java.io.IOException;/*** 使用者* 后端接口* author * email * date 2022-04-18 15:38:13*/ RestController RequestMapping(/shiyongzhe) public class ShiyongzheController {Autowiredprivate ShiyongzheService shiyongzheService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthRequestMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {ShiyongzheEntity user shiyongzheService.selectOne(new EntityWrapperShiyongzheEntity().eq(yonghuming, username));if(usernull || !user.getMima().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(), username,shiyongzhe, 使用者 );return R.ok().put(token, token);}/*** 注册*/IgnoreAuthRequestMapping(/register)public R register(RequestBody ShiyongzheEntity shiyongzhe){//ValidatorUtils.validateEntity(shiyongzhe);ShiyongzheEntity user shiyongzheService.selectOne(new EntityWrapperShiyongzheEntity().eq(yonghuming, shiyongzhe.getYonghuming()));if(user!null) {return R.error(注册用户已存在);}Long uId new Date().getTime();shiyongzhe.setId(uId);shiyongzheService.insert(shiyongzhe);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);ShiyongzheEntity user shiyongzheService.selectById(id);return R.ok().put(data, user);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){ShiyongzheEntity user shiyongzheService.selectOne(new EntityWrapperShiyongzheEntity().eq(yonghuming, username));if(usernull) {return R.error(账号不存在);}user.setMima(123456);shiyongzheService.updateById(user);return R.ok(密码已重置为123456);}/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,ShiyongzheEntity shiyongzhe,HttpServletRequest request){EntityWrapperShiyongzheEntity ew new EntityWrapperShiyongzheEntity();PageUtils page shiyongzheService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shiyongzhe), params), params));return R.ok().put(data, page);}/*** 前端列表*/IgnoreAuthRequestMapping(/list)public R list(RequestParam MapString, Object params,ShiyongzheEntity shiyongzhe, HttpServletRequest request){EntityWrapperShiyongzheEntity ew new EntityWrapperShiyongzheEntity();PageUtils page shiyongzheService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shiyongzhe), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/lists)public R list( ShiyongzheEntity shiyongzhe){EntityWrapperShiyongzheEntity ew new EntityWrapperShiyongzheEntity();ew.allEq(MPUtil.allEQMapPre( shiyongzhe, shiyongzhe)); return R.ok().put(data, shiyongzheService.selectListView(ew));}/*** 查询*/RequestMapping(/query)public R query(ShiyongzheEntity shiyongzhe){EntityWrapper ShiyongzheEntity ew new EntityWrapper ShiyongzheEntity();ew.allEq(MPUtil.allEQMapPre( shiyongzhe, shiyongzhe)); ShiyongzheView shiyongzheView shiyongzheService.selectView(ew);return R.ok(查询使用者成功).put(data, shiyongzheView);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){ShiyongzheEntity shiyongzhe shiyongzheService.selectById(id);return R.ok().put(data, shiyongzhe);}/*** 前端详情*/IgnoreAuthRequestMapping(/detail/{id})public R detail(PathVariable(id) Long id){ShiyongzheEntity shiyongzhe shiyongzheService.selectById(id);return R.ok().put(data, shiyongzhe);}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody ShiyongzheEntity shiyongzhe, HttpServletRequest request){shiyongzhe.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(shiyongzhe);ShiyongzheEntity user shiyongzheService.selectOne(new EntityWrapperShiyongzheEntity().eq(yonghuming, shiyongzhe.getYonghuming()));if(user!null) {return R.error(用户已存在);}shiyongzhe.setId(new Date().getTime());shiyongzheService.insert(shiyongzhe);return R.ok();}/*** 前端保存*/RequestMapping(/add)public R add(RequestBody ShiyongzheEntity shiyongzhe, HttpServletRequest request){shiyongzhe.setId(new Date().getTime()new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(shiyongzhe);ShiyongzheEntity user shiyongzheService.selectOne(new EntityWrapperShiyongzheEntity().eq(yonghuming, shiyongzhe.getYonghuming()));if(user!null) {return R.error(用户已存在);}shiyongzhe.setId(new Date().getTime());shiyongzheService.insert(shiyongzhe);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody ShiyongzheEntity shiyongzhe, HttpServletRequest request){//ValidatorUtils.validateEntity(shiyongzhe);shiyongzheService.updateById(shiyongzhe);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){shiyongzheService.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));}}WrapperShiyongzheEntity wrapper new EntityWrapperShiyongzheEntity();if(map.get(remindstart)!null) {wrapper.ge(columnName, map.get(remindstart));}if(map.get(remindend)!null) {wrapper.le(columnName, map.get(remindend));}int count shiyongzheService.selectCount(wrapper);return R.ok().put(count, count);}}
http://www.w-s-a.com/news/740204/

相关文章:

  • 网站建设需要微信账号和密码网站建设工作汇报
  • 国家城乡住房和建设部网站西安私人网站
  • 天津高端网站定制seo实战教程
  • 网站文章怎么做才能被快速收录网站备案核验系统
  • 子网站建设方案l建设银行网站
  • 免费看舆情网站网站备案用户名忘了怎么办
  • 地方门户网站的分类网站的方案
  • 沧州哪里做网站网站的建设是什么
  • 设计公司海报秦皇岛seo网站推广
  • 网站导航规划wordpress做漫画
  • jsp体育用品网站建设wordpress 10万篇文章
  • 沈阳做微信和网站的公司网站在线支付接口
  • 重庆整合网络营销百度seo快速提升排名
  • 设计师网站外网百度分析工具
  • 旅游网站建设技术解决方案wordpress主题安装后找不到
  • 网站图片文字排版错误管理系统界面设计
  • 网站建设 台州广州惠科互联网技术有限公司
  • 网站页面尺寸大小四川鸿业建设集团网站
  • 做女朋友的网站局网站建设方案word
  • 做阿里国际网站会有成效吗科技网站有哪些
  • 高端公司网站建设北京两学一做网站
  • 黄埔网站建设设计wordpress 文件夹改名
  • 怎么什么软件可以吧做网站最火的二十个电商app
  • wordpress theme sage网站seo优化加推广
  • 建设一个大型电影网站公司网站建设工作总结
  • 传奇网站一般怎么做的宇泽佛山网站建设
  • google网站入口电商运营十大基础知识
  • 建设公司网站的细节中国建设网网站
  • 重庆美邦建网站宝安网页设计
  • 建网站的地址十堰做网站