由于APP軟件在開發(fā)以及運(yùn)營(yíng)上面所需成本較高,而用戶手機(jī)需要安裝各種APP軟件,因此占用用戶過多的手機(jī)存儲(chǔ)空間,導(dǎo)致用戶手機(jī)運(yùn)行緩慢,體驗(yàn)度比較差,進(jìn)而導(dǎo)致用戶會(huì)卸載非必要的APP,倒逼管理者必須改變運(yùn)營(yíng)策略。隨著微信小程序的出現(xiàn),解決了用戶非獨(dú)立APP不可訪問內(nèi)容的痛點(diǎn),所以很多APP軟件都轉(zhuǎn)向微信小程序。本次課題就運(yùn)用了微信小程序技術(shù)開發(fā)一個(gè)基于微信小程序的停車場(chǎng)管理系統(tǒng)。
基于微信小程序的停車場(chǎng)管理系統(tǒng)借助微信開發(fā)者工具開發(fā)用戶前端,使用SSM框架和Java語言開發(fā)管理員后臺(tái),使用Mysql創(chuàng)建數(shù)據(jù)表保存本系統(tǒng)產(chǎn)生的數(shù)據(jù)。系統(tǒng)可以提供信息顯示和相應(yīng)服務(wù),其管理員管理車位,審核車輛停放,車輛駛出以及停車費(fèi)用信息。用戶查看車位,登記車輛停放信息以及車輛駛出信息,對(duì)停車費(fèi)用進(jìn)行支付。
總之,基于微信小程序的停車場(chǎng)管理系統(tǒng)可以更加方便用戶停放車輛,駛出車輛,支付停車費(fèi)用。
關(guān)鍵詞:基于微信小程序的停車場(chǎng)管理系統(tǒng);微信開發(fā)者工具;SSM框架
基于微信小程序的停車場(chǎng)管理平臺(tái)+ssm后端源碼和論文weixin158
基于微信小程序的停車場(chǎng)管理平臺(tái)+ssm后端源碼和論文
?
Abstract
Due to the high cost of APP software development and operation, and the user's mobile phone needs to install various APP software, it takes up too much mobile phone storage space of the user, causing the user's mobile phone to run slowly, the experience is relatively poor, and the user will uninstall Non-essential APPs force managers to change their operating strategies. With the emergence of WeChat mini-programs, the pain point that users cannot access content from non-independent APPs has been solved, so many APP software have turned to WeChat mini-programs. This project uses WeChat applet technology to develop a parking lot management system based on WeChat applet.
The parking lot management system based on WeChat applet uses WeChat developer tools to develop the user front end, uses the SSM framework and Java language to develop the administrator backend, and uses Mysql to create data tables to save the data generated by the system. The system can provide information display and corresponding services. Its administrator manages parking spaces, reviews vehicle parking, vehicle driving out, and parking fee information. Users check parking spaces, register vehicle parking information and vehicle exit information, and pay for parking.
In short, the parking lot management system based on WeChat applet can make it more convenient for users to park their vehicles, drive them out, and pay for parking.
Key Words:Parking lot management system based on WeChat applet; WeChat developer tool; SSM framework
文章來源:http://www.zghlxwxcb.cn/news/detail-808159.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-808159.html
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.CheweixinxiEntity;
import com.entity.view.CheweixinxiView;
import com.service.CheweixinxiService;
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 2021-04-28 10:50:51
*/
@RestController
@RequestMapping("/cheweixinxi")
public class CheweixinxiController {
@Autowired
private CheweixinxiService cheweixinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi,
HttpServletRequest request){
EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,CheweixinxiEntity cheweixinxi,
HttpServletRequest request){
EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
PageUtils page = cheweixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheweixinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( CheweixinxiEntity cheweixinxi){
EntityWrapper<CheweixinxiEntity> ew = new EntityWrapper<CheweixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi"));
return R.ok().put("data", cheweixinxiService.selectListView(ew));
}
/**
* 查詢
*/
@RequestMapping("/query")
public R query(CheweixinxiEntity cheweixinxi){
EntityWrapper< CheweixinxiEntity> ew = new EntityWrapper< CheweixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( cheweixinxi, "cheweixinxi"));
CheweixinxiView cheweixinxiView = cheweixinxiService.selectView(ew);
return R.ok("查詢車位信息成功").put("data", cheweixinxiView);
}
/**
* 后端詳情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
CheweixinxiEntity cheweixinxi = cheweixinxiService.selectById(id);
return R.ok().put("data", cheweixinxi);
}
/**
* 前端詳情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
CheweixinxiEntity cheweixinxi = cheweixinxiService.selectById(id);
return R.ok().put("data", cheweixinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
cheweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(cheweixinxi);
cheweixinxiService.insert(cheweixinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
cheweixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(cheweixinxi);
cheweixinxiService.insert(cheweixinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody CheweixinxiEntity cheweixinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(cheweixinxi);
cheweixinxiService.updateById(cheweixinxi);//全部更新
return R.ok();
}
/**
* 刪除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
cheweixinxiService.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<CheweixinxiEntity> wrapper = new EntityWrapper<CheweixinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = cheweixinxiService.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.TingchechanggonggaoEntity;
import com.entity.view.TingchechanggonggaoView;
import com.service.TingchechanggonggaoService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 停車場(chǎng)公告
* 后端接口
* @author
* @email
* @date 2021-04-28 10:50:51
*/
@RestController
@RequestMapping("/tingchechanggonggao")
public class TingchechanggonggaoController {
@Autowired
private TingchechanggonggaoService tingchechanggonggaoService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,TingchechanggonggaoEntity tingchechanggonggao,
HttpServletRequest request){
EntityWrapper<TingchechanggonggaoEntity> ew = new EntityWrapper<TingchechanggonggaoEntity>();
PageUtils page = tingchechanggonggaoService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tingchechanggonggao), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,TingchechanggonggaoEntity tingchechanggonggao,
HttpServletRequest request){
EntityWrapper<TingchechanggonggaoEntity> ew = new EntityWrapper<TingchechanggonggaoEntity>();
PageUtils page = tingchechanggonggaoService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tingchechanggonggao), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( TingchechanggonggaoEntity tingchechanggonggao){
EntityWrapper<TingchechanggonggaoEntity> ew = new EntityWrapper<TingchechanggonggaoEntity>();
ew.allEq(MPUtil.allEQMapPre( tingchechanggonggao, "tingchechanggonggao"));
return R.ok().put("data", tingchechanggonggaoService.selectListView(ew));
}
/**
* 查詢
*/
@RequestMapping("/query")
public R query(TingchechanggonggaoEntity tingchechanggonggao){
EntityWrapper< TingchechanggonggaoEntity> ew = new EntityWrapper< TingchechanggonggaoEntity>();
ew.allEq(MPUtil.allEQMapPre( tingchechanggonggao, "tingchechanggonggao"));
TingchechanggonggaoView tingchechanggonggaoView = tingchechanggonggaoService.selectView(ew);
return R.ok("查詢停車場(chǎng)公告成功").put("data", tingchechanggonggaoView);
}
/**
* 后端詳情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
TingchechanggonggaoEntity tingchechanggonggao = tingchechanggonggaoService.selectById(id);
return R.ok().put("data", tingchechanggonggao);
}
/**
* 前端詳情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
TingchechanggonggaoEntity tingchechanggonggao = tingchechanggonggaoService.selectById(id);
return R.ok().put("data", tingchechanggonggao);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody TingchechanggonggaoEntity tingchechanggonggao, HttpServletRequest request){
tingchechanggonggao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(tingchechanggonggao);
tingchechanggonggaoService.insert(tingchechanggonggao);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody TingchechanggonggaoEntity tingchechanggonggao, HttpServletRequest request){
tingchechanggonggao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(tingchechanggonggao);
tingchechanggonggaoService.insert(tingchechanggonggao);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody TingchechanggonggaoEntity tingchechanggonggao, HttpServletRequest request){
//ValidatorUtils.validateEntity(tingchechanggonggao);
tingchechanggonggaoService.updateById(tingchechanggonggao);//全部更新
return R.ok();
}
/**
* 刪除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
tingchechanggonggaoService.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<TingchechanggonggaoEntity> wrapper = new EntityWrapper<TingchechanggonggaoEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = tingchechanggonggaoService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
到了這里,關(guān)于基于微信小程序的停車場(chǎng)管理平臺(tái)+ssm后端源碼和論文的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!