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

萧山大江东规划国土建设局网站电子商务网站有哪些类型

萧山大江东规划国土建设局网站,电子商务网站有哪些类型,app网站设计,衡阳网站推广排名作者主页#xff1a;源码空间codegym 简介#xff1a;Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍 本大学生入学审核系统管理员和学生。 管理员功能有个人中心#xff0c;学生管理#xff0c;学籍信息管理#xff0c;入学办理管理等。 学… 作者主页源码空间codegym 简介Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍 本大学生入学审核系统管理员和学生。 管理员功能有个人中心学生管理学籍信息管理入学办理管理等。 学生功能有个人中心学籍信息管理入学办理管理等。 环境要求 1.运行环境最好是java jdk1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境Tomcat7.x,8.X,9.x版本均可 4.硬件环境windows7/8/10 4G内存以上或者Mac OS; 5.是否Maven项目是查看源码目录中是否包含pom.xml;若包含则为maven项目否则为非maven.项目 6.数据库MySql5.7/8.0等版本均可 技术栈 运行环境jdk8 tomcat9 mysql5.7 windows10 服务端技术Spring Boot Mybatis VUE 使用说明 1.使用Navicati或者其它工具在mysql中创建对应sq文件名称的数据库并导入项目的sql文件 2.使用IDEA/Eclipse/MyEclipse导入项目修改配置运行项目 3.将项目中config-propertiesi配置文件中的数据库配置改为自己的配置然后运行 运行指导 idea导入源码空间站顶目教程说明(Vindows版)-ssm篇 http://mtw.so/5MHvZq 源码地址http://codegym.top 运行截图 文档截图 项目文档 代码 package com.controller;import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.mapper.Wrapper; import com.entity.SusheEntity; import com.entity.SusheYonghuEntity; import com.entity.view.SusheView; import com.service.DictionaryService; import com.service.SusheService; import com.service.SusheYonghuService; import com.service.TokenService; import com.utils.PageUtils; import com.utils.R; import com.utils.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*;import javax.servlet.http.HttpServletRequest; import java.util.*;/*** 宿舍信息* 后端接口* author* email* date */ RestController Controller RequestMapping(/sushe) public class SusheController {private static final Logger logger LoggerFactory.getLogger(SusheController.class);Autowiredprivate SusheService susheService;Autowiredprivate TokenService tokenService;Autowiredprivate DictionaryService dictionaryService;Autowiredprivate SusheYonghuService susheYonghuService;//级联表service/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params, HttpServletRequest request){logger.debug(page方法:,,Controller:{},,params:{},this.getClass().getName(),JSONObject.toJSONString(params));params.put(orderBy,id);String role String.valueOf(request.getSession().getAttribute(role));PageUtils page susheService.queryPage(params);if(StringUtil.isNotEmpty(role) 用户.equals(role)){ // 如果是用户的话,就删除 不是当前学生宿舍 的宿舍EntityWrapperSusheYonghuEntity wrapper new EntityWrapper();wrapper.eq(yonghu_id,request.getSession().getAttribute(userId));SusheYonghuEntity susheYonghuEntity susheYonghuService.selectOne(wrapper);if(susheYonghuEntity! null){Integer susheId susheYonghuEntity.getSusheId();ListSusheView list1 (ListSusheView)page.getList();IteratorSusheView it list1.iterator();while(it.hasNext()){SusheView susheView it.next();if(susheView.getId() ! susheId){it.remove();}}}else{page.setList(new ArrayListSusheView());}}//字典表数据转换ListSusheView list (ListSusheView)page.getList();for(SusheView c:list){//修改对应字典表字段dictionaryService.dictionaryConvert(c);}return R.ok().put(data, page);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){logger.debug(info方法:,,Controller:{},,id:{},this.getClass().getName(),id);SusheEntity sushe susheService.selectById(id);if(sushe !null){//entity转viewSusheView view new SusheView();BeanUtils.copyProperties( sushe , view );//把实体数据重构到view中//修改对应字典表字段dictionaryService.dictionaryConvert(view);return R.ok().put(data, view);}else {return R.error(511,查不到该宿舍);}}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody SusheEntity sushe, HttpServletRequest request){logger.debug(save方法:,,Controller:{},,sushe:{},this.getClass().getName(),sushe.toString());String building sushe.getBuilding();String unit sushe.getUnit();String room sushe.getRoom();WrapperSusheEntity queryWrapper new EntityWrapperSusheEntity().eq(building, building).eq(unit, unit).eq(room,room);logger.info(sql语句:queryWrapper.getSqlSegment());SusheEntity susheEntity susheService.selectOne(queryWrapper);if(susheEntitynull){sushe.setCreateTime(new Date());sushe.setSusheNumber(0);susheService.insert(sushe);return R.ok();}else {return R.error(511,表中已有楼栋:building,单元:unit,房间号:room的房间);}}/*** 修改*/RequestMapping(/update)public R update(RequestBody SusheEntity sushe, HttpServletRequest request){logger.debug(update方法:,,Controller:{},,sushe:{},this.getClass().getName(),sushe.toString());String building sushe.getBuilding();String unit sushe.getUnit();String room sushe.getRoom();WrapperSusheEntity queryWrapper new EntityWrapperSusheEntity().notIn(id,sushe.getId()).eq(building, building).eq(unit, unit).eq(room, room);logger.info(sql语句:queryWrapper.getSqlSegment());SusheEntity susheEntity susheService.selectOne(queryWrapper);if(susheEntitynull){susheService.updateById(sushe);//根据id更新return R.ok();}else {return R.error(511,表中已有楼栋:building,单元:unit,房间号:room的房间);}}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Integer[] ids){logger.debug(delete:,,Controller:{},,ids:{},this.getClass().getName(),ids.toString());if(ids ! null ids.length0){susheService.deleteBatchIds(Arrays.asList(ids));susheYonghuService.delete(new EntityWrapperSusheYonghuEntity().in(sushe_id, Arrays.asList(ids)));}return R.ok();}}
http://www.zqtcl.cn/news/851961/

相关文章:

  • 东莞个人免费建网站网站后台管理系统 asp
  • 呼和浩特网站制作 建设wordpress怎么改中文
  • 银医网站建设方案公司网站模板免费下载
  • 优秀网站设计案例中国网站建设东莞公司
  • 自己的公网ip可以做网站网页设计与制作课程思政建设内容
  • 静态网站 搜索搭建织梦网站教程
  • idc 网站备案手机电脑网站建设短视频
  • 做搜狗pc网站优化快速亚马逊云搭建WordPress
  • 免费的建网站软件2020做seo还有出路吗
  • 宁波三优互动网站建设公司怎么样网站建设公司管理流程图
  • 网站内文章外链如何做创新设计
  • 西安做网站公网站做友链有行业要求吗
  • 做现金贷网站的公司软件开发设计文档
  • 数据做图网站表示商业网站的域名
  • 网站备案单位备案老域名
  • 黔西南州建设局网站网站建设流程的过程
  • 河南龙王建设集团网站沈阳专业建站
  • 百度网盘app下载安装手机版百度排名优化咨询电话
  • 网站微信公众号链接怎么做免费访问国外网站的应用
  • 东莞网站搜索排名wordpress 小工具居中
  • 网上商城网站源码网站建站中关键字搜索怎么弄
  • 房地产开发公司网站源代码 墨绿色风格河北省建设项目环保备案网站
  • 有没有做机械加工的网站企业网站建站企业
  • 网站自创重庆宣传片制作
  • 如何做美发店网站世界上网站做的好的例子
  • 不会代码可以做网站维护吗成版年蝴蝶视频app免费
  • html5手机论坛网站模板支付商城网站制作
  • 自己主机做多个网站网站备案和服务器备案
  • 长安手机网站建设江西做网站的公司有哪些
  • 泉州微信网站开发万能浏览器有哪些