当前位置:   article > 正文

springboot泊车收费管理系统-JAVA【毕业设计、快速开发、源码、开题报告】_基于springboot的停车场信息平台设计与实现开题报告

基于springboot的停车场信息平台设计与实现开题报告

 

功能介绍

管理员登录系统后,可以对首页,个人中心,用户管理,公告信息管理,车位信息管理,入场信息管理,出场信息管理,统计收入管理等功能进行相应的操作。

用户管理,在用户管理页面可以对索引,用户账号,用户姓名,性别,联系方式,车牌号码,头像等内容进行详情,修改或删除等操作。

公告信息管理,在公告信息管理页面可以对索索引,标题,封面,发布日期等内容进行详情,修改和删除等操作。

车位信息管理,在车位信息管理页面可以对索引,车位编号,车位名称,车位图片,车位类型,车位位置,车位状态,车位价格等内容进行详情,修改或删除等操作。

入场信息管理,在入场信息管理页面可以对索引,车位编号,车位名称,车位类型,车位位置,用户账号,用户姓名,车牌号码,车位价格,入场时间等内容进行详情,出场,修改和删除等操作

等等......

部分功能模块代码

  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import java.util.ArrayList;
  4. import java.util.Arrays;
  5. import java.util.Calendar;
  6. import java.util.Map;
  7. import java.util.HashMap;
  8. import java.util.Iterator;
  9. import java.util.Date;
  10. import java.util.List;
  11. import javax.servlet.http.HttpServletRequest;
  12. import com.utils.ValidatorUtils;
  13. import org.apache.commons.lang3.StringUtils;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.format.annotation.DateTimeFormat;
  16. import org.springframework.web.bind.annotation.PathVariable;
  17. import org.springframework.web.bind.annotation.RequestBody;
  18. import org.springframework.web.bind.annotation.RequestMapping;
  19. import org.springframework.web.bind.annotation.RequestParam;
  20. import org.springframework.web.bind.annotation.RestController;
  21. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  22. import com.baomidou.mybatisplus.mapper.Wrapper;
  23. import com.annotation.IgnoreAuth;
  24. import com.entity.CheweixinxiEntity;
  25. import com.entity.view.CheweixinxiView;
  26. import com.service.CheweixinxiService;
  27. import com.service.TokenService;
  28. import com.utils.PageUtils;
  29. import com.utils.R;
  30. import com.utils.MD5Util;
  31. import com.utils.MPUtil;
  32. import com.utils.CommonUtil;
  33. import java.io.IOException;
  34. /**
  35. * 车位信息
  36. * 后端接口
  37. * @author
  38. * @email
  39. * @date 2022-04-19 22:07:01
  40. */
  41. @RestController
  42. @RequestMapping("/cheweixinxi")
  43. public class CheweixinxiController {
  44. @Autowired
  45. private CheweixinxiService cheweixinxiService;
  46. /**
  47. * 后端列表
  48. */
  49. @RequestMapping("/page")
  50. public R page(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi,
  51. HttpServletRequest request){
  52. EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
  53. PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
  54. return R.ok().put("data", page);
  55. }
  56. /**
  57. * 前端列表
  58. */
  59. @IgnoreAuth
  60. @RequestMapping("/list")
  61. public R list(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi,
  62. HttpServletRequest request){
  63. EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
  64. PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
  65. return R.ok().put("data", page);
  66. }
  67. /**
  68. * 列表
  69. */
  70. @RequestMapping("/lists")
  71. public R list( CheweixinxiEntity cheweixinxi){
  72. EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
  73. ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi"));
  74. return R.ok().put("data", cheweixinxiService.selectListView(ew));
  75. }
  76. /**
  77. * 查询
  78. */
  79. @RequestMapping("/query")
  80. public R query(CheweixinxiEntity cheweixinxi){
  81. EntityWrapper< CheweixinxiEntity> ew = new EntityWrapper< CheweixinxiEntity>();
  82. ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi"));
  83. CheweixinxiView cheweixinxiView = cheweixinxiService.selectView(ew);
  84. return R.ok("查询车位信息成功").put("data", cheweixinxiView);
  85. }
  86. /**
  87. * 后端详情
  88. */
  89. @RequestMapping("/info/{id}")
  90. public R info(@PathVariable("id") Long id){
  91. CheweixinxiEntity cheweixinxi = cheweixinxiService.selectById(id);
  92. return R.ok().put("data", cheweixinxi);
  93. }
  94. /**
  95. * 前端详情
  96. */
  97. @IgnoreAuth
  98. @RequestMapping("/detail/{id}")
  99. public R detail(@PathVariable("id") Long id){
  100. CheweixinxiEntity cheweixinxi = cheweixinxiService.selectById(id);
  101. return R.ok().put("data", cheweixinxi);
  102. }
  103. /**
  104. * 后端保存
  105. */
  106. @RequestMapping("/save")
  107. public R save(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
  108. cheweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  109. //ValidatorUtils.validateEntity(cheweixinxi);
  110. cheweixinxiService.insert(cheweixinxi);
  111. return R.ok();
  112. }
  113. /**
  114. * 前端保存
  115. */
  116. @RequestMapping("/add")
  117. public R add(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
  118. cheweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
  119. //ValidatorUtils.validateEntity(cheweixinxi);
  120. cheweixinxiService.insert(cheweixinxi);
  121. return R.ok();
  122. }
  123. /**
  124. * 修改
  125. */
  126. @RequestMapping("/update")
  127. public R update(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
  128. //ValidatorUtils.validateEntity(cheweixinxi);
  129. cheweixinxiService.updateById(cheweixinxi);//全部更新
  130. return R.ok();
  131. }
  132. /**
  133. * 删除
  134. */
  135. @RequestMapping("/delete")
  136. public R delete(@RequestBody Long[] ids){
  137. cheweixinxiService.deleteBatchIds(Arrays.asList(ids));
  138. return R.ok();
  139. }
  140. /**
  141. * 提醒接口
  142. */
  143. @RequestMapping("/remind/{columnName}/{type}")
  144. public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
  145. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
  146. map.put("column", columnName);
  147. map.put("type", type);
  148. if(type.equals("2")) {
  149. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  150. Calendar c = Calendar.getInstance();
  151. Date remindStartDate = null;
  152. Date remindEndDate = null;
  153. if(map.get("remindstart")!=null) {
  154. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
  155. c.setTime(new Date());
  156. c.add(Calendar.DAY_OF_MONTH,remindStart);
  157. remindStartDate = c.getTime();
  158. map.put("remindstart", sdf.format(remindStartDate));
  159. }
  160. if(map.get("remindend")!=null) {
  161. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
  162. c.setTime(new Date());
  163. c.add(Calendar.DAY_OF_MONTH,remindEnd);
  164. remindEndDate = c.getTime();
  165. map.put("remindend", sdf.format(remindEndDate));
  166. }
  167. }
  168. Wrapper<CheweixinxiEntity> wrapper = new EntityWrapper<CheweixinxiEntity>();
  169. if(map.get("remindstart")!=null) {
  170. wrapper.ge(columnName, map.get("remindstart"));
  171. }
  172. if(map.get("remindend")!=null) {
  173. wrapper.le(columnName, map.get("remindend"));
  174. }
  175. int count = cheweixinxiService.selectCount(wrapper);
  176. return R.ok().put("count", count);
  177. }
  178. }
  179. package com.service.impl;
  180. import org.springframework.stereotype.Service;
  181. import java.util.Map;
  182. import java.util.List;
  183. import com.baomidou.mybatisplus.mapper.Wrapper;
  184. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  185. import com.baomidou.mybatisplus.plugins.Page;
  186. import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  187. import com.utils.PageUtils;
  188. import com.utils.Query;
  189. import com.dao.CheweixinxiDao;
  190. import com.entity.CheweixinxiEntity;
  191. import com.service.CheweixinxiService;
  192. import com.entity.vo.CheweixinxiVO;
  193. import com.entity.view.CheweixinxiView;
  194. @Service("cheweixinxiService")
  195. public class CheweixinxiServiceImpl extends ServiceImpl<CheweixinxiDao, CheweixinxiEntity> implements CheweixinxiService {
  196. @Override
  197. public PageUtils queryPage(Map<String, Object> params) {
  198. Page<CheweixinxiEntity> page = this.selectPage(
  199. new Query<CheweixinxiEntity>(params).getPage(),
  200. new EntityWrapper<CheweixinxiEntity>()
  201. );
  202. return new PageUtils(page);
  203. }
  204. @Override
  205. public PageUtils queryPage(Map<String, Object> params, Wrapper<CheweixinxiEntity> wrapper) {
  206. Page<CheweixinxiView> page =new Query<CheweixinxiView>(params).getPage();
  207. page.setRecords(baseMapper.selectListView(page,wrapper));
  208. PageUtils pageUtil = new PageUtils(page);
  209. return pageUtil;
  210. }
  211. @Override
  212. public List<CheweixinxiVO> selectListVO(Wrapper<CheweixinxiEntity> wrapper) {
  213. return baseMapper.selectListVO(wrapper);
  214. }
  215. @Override
  216. public CheweixinxiVO selectVO(Wrapper<CheweixinxiEntity> wrapper) {
  217. return baseMapper.selectVO(wrapper);
  218. }
  219. @Override
  220. public List<CheweixinxiView> selectListView(Wrapper<CheweixinxiEntity> wrapper) {
  221. return baseMapper.selectListView(wrapper);
  222. }
  223. @Override
  224. public CheweixinxiView selectView(Wrapper<CheweixinxiEntity> wrapper) {
  225. return baseMapper.selectView(wrapper);
  226. }
  227. }
  228. package com.dao;
  229. import com.entity.CheweixinxiEntity;
  230. import com.baomidou.mybatisplus.mapper.BaseMapper;
  231. import java.util.List;
  232. import java.util.Map;
  233. import com.baomidou.mybatisplus.mapper.Wrapper;
  234. import com.baomidou.mybatisplus.plugins.pagination.Pagination;
  235. import org.apache.ibatis.annotations.Param;
  236. import com.entity.vo.CheweixinxiVO;
  237. import com.entity.view.CheweixinxiView;
  238. /**
  239. * 车位信息
  240. *
  241. * @author
  242. * @email
  243. * @date 2022-04-19 22:07:01
  244. */
  245. public interface CheweixinxiDao extends BaseMapper<CheweixinxiEntity> {
  246. List<CheweixinxiVO> selectListVO(@Param("ew") Wrapper<CheweixinxiEntity> wrapper);
  247. CheweixinxiVO selectVO(@Param("ew") Wrapper<CheweixinxiEntity> wrapper);
  248. List<CheweixinxiView> selectListView(@Param("ew") Wrapper<CheweixinxiEntity> wrapper);
  249. List<CheweixinxiView> selectListView(Pagination page,@Param("ew") Wrapper<CheweixinxiEntity> wrapper);
  250. CheweixinxiView selectView(@Param("ew") Wrapper<CheweixinxiEntity> wrapper);
  251. }

论文目录

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/320561
推荐阅读
相关标签
  

闽ICP备14008679号