由于APP軟件在開發(fā)以及運營上面所需成本較高,而用戶手機需要安裝各種APP軟件,因此占用用戶過多的手機存儲空間,導(dǎo)致用戶手機運行緩慢,體驗度比較差,進而導(dǎo)致用戶會卸載非必要的APP,倒逼管理者必須改變運營策略。隨著微信小程序的出現(xiàn),解決了用戶非獨立APP不可訪問內(nèi)容的痛點,所以很多APP軟件都轉(zhuǎn)向微信小程序。本次課題就運用了微信小程序技術(shù)開發(fā)一個陽光電腦公司的維修服務(wù)微信小程序。
陽光電腦公司的維修服務(wù)微信小程序借助微信開發(fā)者工具開發(fā)用戶前端,使用SSM框架和Java語言開發(fā)管理員后臺,使用Mysql創(chuàng)建數(shù)據(jù)表保存本系統(tǒng)產(chǎn)生的數(shù)據(jù)。系統(tǒng)可以提供信息顯示和相應(yīng)服務(wù),其管理員管理配件,電腦,維修,購買訂單,客服通知以及用戶評價。用戶購買電腦,申請電腦維修,支付維修費用并評價維修訂單。
總之,陽光電腦公司的維修服務(wù)微信小程序可以更加方便用戶購買電腦,申請電腦維修,并在線支付費用。
關(guān)鍵詞:陽光電腦公司的維修服務(wù)微信小程序;微信開發(fā)者工具;SSM框架
基于ssm的手機電腦電子產(chǎn)品維修服務(wù)微信小程序源碼和論文weixin154
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. In this project, the WeChat applet technology was used to develop a WeChat applet for Sunshine Computer's maintenance service.
Sunshine Computer’s maintenance service 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 a data table to save the data generated by the system. The system can provide information display and corresponding services, and its administrator manages accessories, computers, maintenance, purchase orders, customer service notifications and user reviews. Users purchase computers, apply for computer repairs, pay for repairs, and evaluate repair orders.
In short, Sunshine Computer’s maintenance service WeChat applet can make it more convenient for users to purchase computers, apply for computer repairs, and pay online.
Key Words:Sunshine Computer’s maintenance service WeChat applet; WeChat developer tool; SSM framework
主要中文參考資料與外文資料(在確定了畢業(yè)論文(設(shè)計)題目和明確了要求后,指導(dǎo)教師應(yīng)給學生提供一些相關(guān)資料和相關(guān)信息,或劃定參考資料的范圍,指導(dǎo)學生收集反映當前研究進展的近1-3年參考資料和文獻。外文資料是指導(dǎo)老師根據(jù)選題情況明確學生需要閱讀或翻譯成中文的外文文獻。) [1]徐星明. 微信小程序第三方平臺的設(shè)計與實現(xiàn)[D].山東大學,2020. [2]袁久琛. 企業(yè)級通用小程序管理平臺設(shè)計與實現(xiàn)[D].大連理工大學,2020. [3]張振超,吳杰,陳序蓬.淺談Java中Mysql數(shù)據(jù)庫的連接與操作[J].信息記錄材料,2020,21(02):144-145. [4]鄭智方,魏愷樂,李彬,謝易壯.MySQL得到廣泛使用的原因以及它的嵌入應(yīng)用[J].科技風,2020(05):114. [5]趙秀芹,劉楊青,李瑞祥.MySQL數(shù)據(jù)庫使用技巧三例[J].網(wǎng)絡(luò)安全和信息化,2019(08):90-91. [6]余濤.計算機軟件開發(fā)中Java編程語言的應(yīng)用研究[J].信息記錄材料,2020,21(01):113-115. [7]岳青玲.Java面向?qū)ο缶幊痰娜筇匦訹J].電子技術(shù)與軟件工程,2019(24):239-240. [8]耿學.關(guān)于Java Web中中文亂碼問題的探討[J].現(xiàn)代信息科技,2020,4(01):74-75+78. [9]張彥芳.Java Web項目開發(fā)中的中文亂碼問題與對策[J].電腦知識與技術(shù),2020,16(09):96-97. [10]薛茹.基于SSM框架的Web系統(tǒng)研究與應(yīng)用[J].計算機產(chǎn)品與流通,2018(07):30. [11]邱丹萍.Web開發(fā)中SSM框架的分析[J].電腦知識與技術(shù),2020,16(17):81-82. [12]袁堂青,亓婧.基于微信小程序的開發(fā)與研究[J].網(wǎng)絡(luò)安全技術(shù)與應(yīng)用,2020(04):66-67. [13]邢榕珊,匡芳君.微信小程序設(shè)計[J].計算機時代,2018(08):9-12. [14]仲崇文.關(guān)于計算機軟件開發(fā)中常見問題的研究[J].通訊世界,2020,27(07):89-90. [15]Raffi Khatchadourian.Automated refactoring of legacy Java software to enumerated types[J].Automated Software Engineering,2017,24(4). [16]Ben White.Marx and Chayanov at the margins:understanding agrarian change in Java[J].The Journal of Peasant Studies,2018,45(5-6). |
文章來源:http://www.zghlxwxcb.cn/news/detail-803348.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.YonghuEntity;
import com.entity.view.YonghuView;
import com.service.YonghuService;
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-27 14:05:12
*/
@RestController
@RequestMapping("/yonghu")
public class YonghuController {
@Autowired
private YonghuService yonghuService;
@Autowired
private TokenService tokenService;
/**
* 登錄
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("賬號或密碼不正確");
}
String token = tokenService.generateToken(user.getId(), username,"yonghu", "用戶" );
return R.ok().put("token", token);
}
/**
* 注冊
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody YonghuEntity yonghu){
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("注冊用戶已存在");
}
Long uId = new Date().getTime();
yonghu.setId(uId);
yonghuService.insert(yonghu);
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");
YonghuEntity user = yonghuService.selectById(id);
return R.ok().put("data", user);
}
/**
* 密碼重置
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", username));
if(user==null) {
return R.error("賬號不存在");
}
user.setMima("123456");
yonghuService.updateById(user);
return R.ok("密碼已重置為:123456");
}
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YonghuEntity yonghu,
HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YonghuEntity yonghu,
HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YonghuEntity yonghu){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
return R.ok().put("data", yonghuService.selectListView(ew));
}
/**
* 查詢
*/
@RequestMapping("/query")
public R query(YonghuEntity yonghu){
EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
YonghuView yonghuView = yonghuService.selectView(ew);
return R.ok("查詢用戶成功").put("data", yonghuView);
}
/**
* 后端詳情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
* 前端詳情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("用戶已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("用戶已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
//ValidatorUtils.validateEntity(yonghu);
yonghuService.updateById(yonghu);//全部更新
return R.ok();
}
/**
* 刪除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yonghuService.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<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yonghuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
?文章來源地址http://www.zghlxwxcb.cn/news/detail-803348.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.YonghupingjiaEntity;
import com.entity.view.YonghupingjiaView;
import com.service.YonghupingjiaService;
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-27 14:05:12
*/
@RestController
@RequestMapping("/yonghupingjia")
public class YonghupingjiaController {
@Autowired
private YonghupingjiaService yonghupingjiaService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YonghupingjiaEntity yonghupingjia,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
yonghupingjia.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<YonghupingjiaEntity> ew = new EntityWrapper<YonghupingjiaEntity>();
PageUtils page = yonghupingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghupingjia), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YonghupingjiaEntity yonghupingjia,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
yonghupingjia.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<YonghupingjiaEntity> ew = new EntityWrapper<YonghupingjiaEntity>();
PageUtils page = yonghupingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghupingjia), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YonghupingjiaEntity yonghupingjia){
EntityWrapper<YonghupingjiaEntity> ew = new EntityWrapper<YonghupingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghupingjia, "yonghupingjia"));
return R.ok().put("data", yonghupingjiaService.selectListView(ew));
}
/**
* 查詢
*/
@RequestMapping("/query")
public R query(YonghupingjiaEntity yonghupingjia){
EntityWrapper< YonghupingjiaEntity> ew = new EntityWrapper< YonghupingjiaEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghupingjia, "yonghupingjia"));
YonghupingjiaView yonghupingjiaView = yonghupingjiaService.selectView(ew);
return R.ok("查詢用戶評價成功").put("data", yonghupingjiaView);
}
/**
* 后端詳情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YonghupingjiaEntity yonghupingjia = yonghupingjiaService.selectById(id);
return R.ok().put("data", yonghupingjia);
}
/**
* 前端詳情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YonghupingjiaEntity yonghupingjia = yonghupingjiaService.selectById(id);
return R.ok().put("data", yonghupingjia);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YonghupingjiaEntity yonghupingjia, HttpServletRequest request){
yonghupingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghupingjia);
yonghupingjiaService.insert(yonghupingjia);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YonghupingjiaEntity yonghupingjia, HttpServletRequest request){
yonghupingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghupingjia);
yonghupingjia.setUserid((Long)request.getSession().getAttribute("userId"));
yonghupingjiaService.insert(yonghupingjia);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YonghupingjiaEntity yonghupingjia, HttpServletRequest request){
//ValidatorUtils.validateEntity(yonghupingjia);
yonghupingjiaService.updateById(yonghupingjia);//全部更新
return R.ok();
}
/**
* 刪除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yonghupingjiaService.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<YonghupingjiaEntity> wrapper = new EntityWrapper<YonghupingjiaEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
wrapper.eq("zhanghao", (String)request.getSession().getAttribute("username"));
}
int count = yonghupingjiaService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
到了這里,關(guān)于基于ssm的手機電腦電子產(chǎn)品維修服務(wù)微信小程序源碼和論文的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!