文末获取源码

开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7/8.0
应用服务:Tomcat7/Tomcat8
是否Maven项目:是
后端框架:SpringBoot
前端框架:vue+element等
JDK版本:jdk1.8
项目架构:B/S架构

前言介绍

本系统主要包括管理员,责任单位和供应商三个角色组成,主要包括以下功能:

(1)前台:首页、招标项目、结果公示、中标公告、市场监督、帮助中心、新闻公告、个人中心、后台管理。

(2)管理员:首页、个人中心、责任单位管理、供应商管理、招标分类管理、招标项目管理、在线投标管理、结果公示管理、中标公告管理、市场监督管理、帮助中心管理、新闻公告管理、管理员管理、系统管理。

(3)责任单位:首页、个人中心、招标项目管理、在线投标管理、结果公示管理、中标公告管理。

(4)供应商:首页、个人中心、在线投标管理、中标公告管理。

系统展示

前台

招标项目

管理员

供应商管理

招标分类管理

帮助中心管理

责任单位

招标项目管理

供应商

部分核心代码

/*** 登录相关*/
@RequestMapping("config")
@RestController
public class ConfigController{@Autowiredprivate ConfigService configService;/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,ConfigEntity config){EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();PageUtils page = configService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, config), params), params));return R.ok().put("data", page);}/*** 列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,ConfigEntity config){EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();PageUtils page = configService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, config), params), params));return R.ok().put("data", page);}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){ConfigEntity config = configService.selectById(id);return R.ok().put("data", config);}/*** 详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") String id){ConfigEntity config = configService.selectById(id);return R.ok().put("data", config);}/*** 根据name获取信息*/@RequestMapping("/info")public R infoByName(@RequestParam String name){ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));return R.ok().put("data", config);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody ConfigEntity config){
//      ValidatorUtils.validateEntity(config);configService.insert(config);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody ConfigEntity config){
//        ValidatorUtils.validateEntity(config);configService.updateById(config);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){configService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}
/*** 供应商* 后端接口* @author * @email * @date 2022-05-18 09:48:23*/
@RestController
@RequestMapping("/gongyingshang")
public class GongyingshangController {@Autowiredprivate GongyingshangService gongyingshangService;@Autowiredprivate TokenService tokenService;/*** 登录*/@IgnoreAuth@RequestMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {GongyingshangEntity user = gongyingshangService.selectOne(new EntityWrapper<GongyingshangEntity>().eq("gongyingshangmingcheng", username));if(user==null || !user.getMima().equals(password)) {return R.error("账号或密码不正确");}if("否".equals(user.getSfsh())) return R.error("账号已锁定,请联系管理员审核。");String token = tokenService.generateToken(user.getId(), username,"gongyingshang",  "供应商" );return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@RequestMapping("/register")public R register(@RequestBody GongyingshangEntity gongyingshang){//ValidatorUtils.validateEntity(gongyingshang);GongyingshangEntity user = gongyingshangService.selectOne(new EntityWrapper<GongyingshangEntity>().eq("gongyingshangmingcheng", gongyingshang.getGongyingshangmingcheng()));if(user!=null) {return R.error("注册用户已存在");}Long uId = new Date().getTime();gongyingshang.setId(uId);gongyingshangService.insert(gongyingshang);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");GongyingshangEntity user = gongyingshangService.selectById(id);return R.ok().put("data", user);}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){GongyingshangEntity user = gongyingshangService.selectOne(new EntityWrapper<GongyingshangEntity>().eq("gongyingshangmingcheng", username));if(user==null) {return R.error("账号不存在");}user.setMima("123456");gongyingshangService.updateById(user);return R.ok("密码已重置为:123456");}/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,GongyingshangEntity gongyingshang,HttpServletRequest request){EntityWrapper<GongyingshangEntity> ew = new EntityWrapper<GongyingshangEntity>();PageUtils page = gongyingshangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gongyingshang), params), params));return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,GongyingshangEntity gongyingshang, HttpServletRequest request){EntityWrapper<GongyingshangEntity> ew = new EntityWrapper<GongyingshangEntity>();PageUtils page = gongyingshangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gongyingshang), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( GongyingshangEntity gongyingshang){EntityWrapper<GongyingshangEntity> ew = new EntityWrapper<GongyingshangEntity>();ew.allEq(MPUtil.allEQMapPre( gongyingshang, "gongyingshang")); return R.ok().put("data", gongyingshangService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(GongyingshangEntity gongyingshang){EntityWrapper< GongyingshangEntity> ew = new EntityWrapper< GongyingshangEntity>();ew.allEq(MPUtil.allEQMapPre( gongyingshang, "gongyingshang")); GongyingshangView gongyingshangView =  gongyingshangService.selectView(ew);return R.ok("查询供应商成功").put("data", gongyingshangView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){GongyingshangEntity gongyingshang = gongyingshangService.selectById(id);return R.ok().put("data", gongyingshang);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){GongyingshangEntity gongyingshang = gongyingshangService.selectById(id);return R.ok().put("data", gongyingshang);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody GongyingshangEntity gongyingshang, HttpServletRequest request){gongyingshang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(gongyingshang);GongyingshangEntity user = gongyingshangService.selectOne(new EntityWrapper<GongyingshangEntity>().eq("gongyingshangmingcheng", gongyingshang.getGongyingshangmingcheng()));if(user!=null) {return R.error("用户已存在");}gongyingshang.setId(new Date().getTime());gongyingshangService.insert(gongyingshang);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody GongyingshangEntity gongyingshang, HttpServletRequest request){gongyingshang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(gongyingshang);GongyingshangEntity user = gongyingshangService.selectOne(new EntityWrapper<GongyingshangEntity>().eq("gongyingshangmingcheng", gongyingshang.getGongyingshangmingcheng()));if(user!=null) {return R.error("用户已存在");}gongyingshang.setId(new Date().getTime());gongyingshangService.insert(gongyingshang);return R.ok();}/*** 修改*/@RequestMapping("/update")@Transactionalpublic R update(@RequestBody GongyingshangEntity gongyingshang, HttpServletRequest request){//ValidatorUtils.validateEntity(gongyingshang);gongyingshangService.updateById(gongyingshang);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){gongyingshangService.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<GongyingshangEntity> wrapper = new EntityWrapper<GongyingshangEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = gongyingshangService.selectCount(wrapper);return R.ok().put("count", count);}}

SpringBoot+Vue项目电子招投标系统相关推荐

  1. springboot毕设项目电子招投标系统btw32(java+VUE+Mybatis+Maven+Mysql)

    springboot毕设项目电子招投标系统btw32(java+VUE+Mybatis+Maven+Mysql) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql + HBu ...

  2. Springboot毕设项目电子营业执照系统t4g7g(java+VUE+Mybatis+Maven+Mysql)

    Springboot毕设项目电子营业执照系统t4g7g(java+VUE+Mybatis+Maven+Mysql) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql + HB ...

  3. springboot毕设项目电子导游系统7rj3e(java+VUE+Mybatis+Maven+Mysql)

    springboot毕设项目电子导游系统7rj3e(java+VUE+Mybatis+Maven+Mysql) 项目运行 环境配置: Jdk1.8 + Tomcat8.5 + Mysql + HBui ...

  4. 基于springboot+vue的电子村务系统(前后端分离)

    博主主页:猫头鹰源码 博主简介:Java领域优质创作者.CSDN博客专家.公司架构师.全网粉丝5万+.专注Java技术领域和毕业设计项目实战 主要内容:毕业设计(Javaweb项目|小程序等).简历模 ...

  5. SpringBoot+Vue项目学生选课系统

    文末获取源码 开发语言:Java 框架:springboot JDK版本:JDK1.8 服务器:tomcat7 数据库:mysql 5.7/8.0 数据库工具:Navicat11 开发软件:eclip ...

  6. SpringBoot+Vue项目校园商铺系统

    文末获取源码 开发语言:Java 框架:springboot+vue Node:node.js JDK版本:JDK1.8 服务器:tomcat7 数据库:mysql 5.7/8.0 数据库工具:Nav ...

  7. Springboot+vue项目医疗服务系统

    开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:Tomcat7/Tomcat8 使用框架:springboot+vue JDK版本:jdk1.8 医疗服务 ...

  8. SpringBoot+Vue项目医院挂号系统的设计与实现

    文末获取源码 开发语言:Java 使用框架:spring boot 前端技术:JavaScript.Vue .css3 开发工具:IDEA/MyEclipse/Eclipse.Visual Studi ...

  9. SpringBoot+Vue项目智能选课系统

    文末获取源码 开发语言:Java 使用框架:spring boot 前端技术:JavaScript.Vue .css3 开发工具:IDEA/MyEclipse/Eclipse.Visual Studi ...

最新文章

  1. 简单分析MySQL 一则慢日志监控误报问题
  2. 提升研发效能的简单而使用的习惯
  3. CAS 单点登出失效的问题(源码跟踪)
  4. 理解C语言声明的优先级规则
  5. Clonezilla制作镜像时报错:extfsclone.c:bitmap free count err解决办法
  6. 简单使用JDOM解析XML
  7. SCU 4439 Vertex Cover(二分图最小覆盖点)题解
  8. java 服务注册中心_服务治理的含义和java最流行的微服务框架服务治理注册中心的搭建...
  9. HRBUST1754 Minimum Scalar Product【序列处理】
  10. android自定义软键盘
  11. cvCalcBackProjectPatch() 基于块的反向投影
  12. 【Java毕设项目】二十项毕设项目(附源码课件)
  13. Win10系统下使用Setuna截图自动放大解决办法
  14. 图片上传时,显示格式错误怎么办?
  15. android官方模拟器下载安装,网易MuMu模拟器
  16. 快速收录的软文发布平台
  17. 听歌识曲算法技术[语音识别]
  18. 用CreateToolhelp32Snapshot、Process32First、Process32Next枚举进程(BCB)
  19. Python经典案例:身体指数BMI
  20. DX9鼠标检测-------VB6编程学习DX9游戏编程DirectX9编程2D小游戏源码冷风引擎CoolWind2D游戏引擎(16)

热门文章

  1. Intellij IDEA的Facets和Artifacts
  2. CListCtrl控件详解
  3. 串级PID调试simulink仿真
  4. [AHK]用AutoHotkey面向对象实践“观察者模式”
  5. 中国石油大学(北京)-《化学与社会》第二阶段在线作业
  6. DownloadString”时发生异常:“无法解析此远程名称: ‘raw.gith ubusercontent.com
  7. 查询物流信息并筛选最后站点
  8. HCIA全双工与半双工ensp修改双工模式方法
  9. 个人内外网存储服务器(主要是外网ftp)完整解决方案
  10. linux C语言perror()函数(将错误消息写入标准错误)(把一个描述性错误消息输出到标准错误 stderr。首先输出自定义字符串 str,后跟一个冒号,然后是一个空格)