欧美free性护士vide0shd,老熟女,一区二区三区,久久久久夜夜夜精品国产,久久久久久综合网天天,欧美成人护士h版

首頁綜合 正文
目錄

柚子快報邀請碼778899分享:基于微信小程序?qū)崿F(xiàn)美食推薦系統(tǒng)

柚子快報邀請碼778899分享:基于微信小程序?qū)崿F(xiàn)美食推薦系統(tǒng)

http://yzkb.51969.com/

?作者簡介:Java領(lǐng)域優(yōu)質(zhì)創(chuàng)作者、CSDN博客專家 、CSDN內(nèi)容合伙人、掘金特邀作者、阿里云博客專家、51CTO特邀作者、多年架構(gòu)師設(shè)計經(jīng)驗(yàn)、多年校企合作經(jīng)驗(yàn),被多個學(xué)校常年聘為校外企業(yè)導(dǎo)師,指導(dǎo)學(xué)生畢業(yè)設(shè)計并參與學(xué)生畢業(yè)答辯指導(dǎo),有較為豐富的相關(guān)經(jīng)驗(yàn)。期待與各位高校教師、企業(yè)講師以及同行交流合作

主要內(nèi)容:Java項目、Python項目、前端項目、PHP、ASP.NET、人工智能與大數(shù)據(jù)、單片機(jī)開發(fā)、物聯(lián)網(wǎng)設(shè)計與開發(fā)設(shè)計、簡歷模板、學(xué)習(xí)資料、面試題庫、技術(shù)互助、就業(yè)指導(dǎo)等

業(yè)務(wù)范圍:免費(fèi)功能設(shè)計、開題報告、任務(wù)書、中期檢查PPT、系統(tǒng)功能實(shí)現(xiàn)、代碼編寫、論文編寫和輔導(dǎo)、論文降重、長期答辯答疑輔導(dǎo)、騰訊會議一對一專業(yè)講解輔導(dǎo)答辯、模擬答辯演練、和理解代碼邏輯思路等。

收藏點(diǎn)贊不迷路? 關(guān)注作者有好處

文末獲取源碼?

項目編號:BS-XCX-081

一,環(huán)境介紹

語言環(huán)境:微信小程序

數(shù)據(jù)庫:Mysql: mysql5.7

WEB框架:SpringBoot+Vue

開發(fā)工具:IDEA和微信開發(fā)者工具

二,項目簡介

互聯(lián)網(wǎng)發(fā)展至今,無論是其理論還是技術(shù)都已經(jīng)成熟,而且它廣泛參與在社會中的方方面面。它讓信息都可以通過網(wǎng)絡(luò)傳播,搭配信息管理工具可以很好地為人們提供服務(wù)。針對高校教師成果信息管理混亂,出錯率高,信息安全性差,勞動強(qiáng)度大,費(fèi)時費(fèi)力等問題,采用美食推薦系統(tǒng)可以有效管理,使信息管理能夠更加科學(xué)和規(guī)范。

美食推薦系統(tǒng)使用Java語言進(jìn)行編碼,使用Mysql創(chuàng)建數(shù)據(jù)表保存本系統(tǒng)產(chǎn)生的數(shù)據(jù)。系統(tǒng)可以提供信息顯示和相應(yīng)服務(wù),其管理美食推薦系統(tǒng)信息,查看美食推薦系統(tǒng)信息,管理美食推薦系統(tǒng)。

總之,美食推薦系統(tǒng)集中管理信息,有著保密性強(qiáng),效率高,存儲空間大,成本低等諸多優(yōu)點(diǎn)。它可以降低信息管理成本,實(shí)現(xiàn)信息管理計算機(jī)化。

文檔目錄:

三,系統(tǒng)展示

后臺管理系統(tǒng)

商家管理

管理員

四,核心代碼展示

package com.controller;

import java.io.File;

import java.math.BigDecimal;

import java.net.URL;

import java.text.SimpleDateFormat;

import com.alibaba.fastjson.JSONObject;

import java.util.*;

import org.springframework.beans.BeanUtils;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.context.ContextLoader;

import javax.servlet.ServletContext;

import com.service.TokenService;

import com.utils.*;

import java.lang.reflect.InvocationTargetException;

import com.service.DictionaryService;

import org.apache.commons.lang3.StringUtils;

import com.annotation.IgnoreAuth;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.*;

import com.baomidou.mybatisplus.mapper.EntityWrapper;

import com.baomidou.mybatisplus.mapper.Wrapper;

import com.entity.*;

import com.entity.view.*;

import com.service.*;

import com.utils.PageUtils;

import com.utils.R;

import com.alibaba.fastjson.*;

/**

* 反饋與建議

* 后端接口

* @author

* @email

*/

@RestController

@Controller

@RequestMapping("/chat")

public class ChatController {

private static final Logger logger = LoggerFactory.getLogger(ChatController.class);

private static final String TABLE_NAME = "chat";

@Autowired

private ChatService chatService;

@Autowired

private TokenService tokenService;

@Autowired

private AddressService addressService;//收貨地址

@Autowired

private CartService cartService;//購物車

@Autowired

private DictionaryService dictionaryService;//字典

@Autowired

private ForumService forumService;//論壇

@Autowired

private MeishiService meishiService;//商品

@Autowired

private MeishiCollectionService meishiCollectionService;//商品收藏

@Autowired

private MeishiCommentbackService meishiCommentbackService;//商品評價

@Autowired

private MeishiOrderService meishiOrderService;//商品訂單

@Autowired

private NewsService newsService;//公告信息

@Autowired

private ShangjiaService shangjiaService;//餐廳

@Autowired

private YonghuService yonghuService;//用戶

@Autowired

private UsersService usersService;//管理員

/**

* 后端列表

*/

@RequestMapping("/page")

public R page(@RequestParam Map params, HttpServletRequest request){

logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));

String role = String.valueOf(request.getSession().getAttribute("role"));

if(false)

return R.error(511,"永不會進(jìn)入");

else if("用戶".equals(role))

params.put("yonghuId",request.getSession().getAttribute("userId"));

else if("餐廳".equals(role))

params.put("shangjiaId",request.getSession().getAttribute("userId"));

CommonUtil.checkMap(params);

PageUtils page = chatService.queryPage(params);

//字典表數(shù)據(jù)轉(zhuǎn)換

List list =(List)page.getList();

for(ChatView c:list){

//修改對應(yīng)字典表字段

dictionaryService.dictionaryConvert(c, request);

}

return R.ok().put("data", page);

}

/**

* 后端詳情

*/

@RequestMapping("/info/{id}")

public R info(@PathVariable("id") Long id, HttpServletRequest request){

logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);

ChatEntity chat = chatService.selectById(id);

if(chat !=null){

//entity轉(zhuǎn)view

ChatView view = new ChatView();

BeanUtils.copyProperties( chat , view );//把實(shí)體數(shù)據(jù)重構(gòu)到view中

//級聯(lián)表 用戶

//級聯(lián)表

YonghuEntity yonghu = yonghuService.selectById(chat.getYonghuId());

if(yonghu != null){

BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把級聯(lián)的數(shù)據(jù)添加到view中,并排除id和創(chuàng)建時間字段,當(dāng)前表的級聯(lián)注冊表

view.setYonghuId(yonghu.getId());

}

//修改對應(yīng)字典表字段

dictionaryService.dictionaryConvert(view, request);

return R.ok().put("data", view);

}else {

return R.error(511,"查不到數(shù)據(jù)");

}

}

/**

* 后端保存

*/

@RequestMapping("/save")

public R save(@RequestBody ChatEntity chat, HttpServletRequest request){

logger.debug("save方法:,,Controller:{},,chat:{}",this.getClass().getName(),chat.toString());

String role = String.valueOf(request.getSession().getAttribute("role"));

if(false)

return R.error(511,"永遠(yuǎn)不會進(jìn)入");

else if("用戶".equals(role))

chat.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));

Wrapper queryWrapper = new EntityWrapper()

.eq("yonghu_id", chat.getYonghuId())

.eq("chat_issue", chat.getChatIssue())

.eq("chat_reply", chat.getChatReply())

.eq("zhuangtai_types", chat.getZhuangtaiTypes())

.eq("chat_types", chat.getChatTypes())

;

logger.info("sql語句:"+queryWrapper.getSqlSegment());

ChatEntity chatEntity = chatService.selectOne(queryWrapper);

if(chatEntity==null){

chat.setInsertTime(new Date());

chatService.insert(chat);

return R.ok();

}else {

return R.error(511,"表中有相同數(shù)據(jù)");

}

}

/**

* 后端修改

*/

@RequestMapping("/update")

public R update(@RequestBody ChatEntity chat, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {

logger.debug("update方法:,,Controller:{},,chat:{}",this.getClass().getName(),chat.toString());

ChatEntity oldChatEntity = chatService.selectById(chat.getId());//查詢原先數(shù)據(jù)

String role = String.valueOf(request.getSession().getAttribute("role"));

// if(false)

// return R.error(511,"永遠(yuǎn)不會進(jìn)入");

// else if("用戶".equals(role))

// chat.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));

chatService.updateById(chat);//根據(jù)id更新

return R.ok();

}

/**

* 刪除

*/

@RequestMapping("/delete")

public R delete(@RequestBody Integer[] ids, HttpServletRequest request){

logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());

List oldChatList =chatService.selectBatchIds(Arrays.asList(ids));//要刪除的數(shù)據(jù)

chatService.deleteBatchIds(Arrays.asList(ids));

return R.ok();

}

/**

* 批量上傳

*/

@RequestMapping("/batchInsert")

public R save( String fileName, HttpServletRequest request){

logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);

Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

//.eq("time", new SimpleDateFormat("yyyy-MM-dd").format(new Date()))

try {

List chatList = new ArrayList<>();//上傳的東西

Map> seachFields= new HashMap<>();//要查詢的字段

Date date = new Date();

int lastIndexOf = fileName.lastIndexOf(".");

if(lastIndexOf == -1){

return R.error(511,"該文件沒有后綴");

}else{

String suffix = fileName.substring(lastIndexOf);

if(!".xls".equals(suffix)){

return R.error(511,"只支持后綴為xls的excel文件");

}else{

URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//獲取文件路徑

File file = new File(resource.getFile());

if(!file.exists()){

return R.error(511,"找不到上傳文件,請聯(lián)系管理員");

}else{

List> dataList = PoiUtil.poiImport(file.getPath());//讀取xls文件

dataList.remove(0);//刪除第一行,因?yàn)榈谝恍惺翘崾?/p>

for(List data:dataList){

//循環(huán)

ChatEntity chatEntity = new ChatEntity();

// chatEntity.setYonghuId(Integer.valueOf(data.get(0))); //提問用戶 要改的

// chatEntity.setChatIssue(data.get(0)); //問題 要改的

// chatEntity.setIssueTime(sdf.parse(data.get(0))); //問題時間 要改的

// chatEntity.setChatReply(data.get(0)); //回復(fù) 要改的

// chatEntity.setReplyTime(sdf.parse(data.get(0))); //回復(fù)時間 要改的

// chatEntity.setZhuangtaiTypes(Integer.valueOf(data.get(0))); //狀態(tài) 要改的

// chatEntity.setChatTypes(Integer.valueOf(data.get(0))); //數(shù)據(jù)類型 要改的

// chatEntity.setInsertTime(date);//時間

chatList.add(chatEntity);

//把要查詢是否重復(fù)的字段放入map中

}

//查詢是否重復(fù)

chatService.insertBatch(chatList);

return R.ok();

}

}

}

}catch (Exception e){

e.printStackTrace();

return R.error(511,"批量插入數(shù)據(jù)異常,請聯(lián)系管理員");

}

}

/**

* 前端列表

*/

@IgnoreAuth

@RequestMapping("/list")

public R list(@RequestParam Map params, HttpServletRequest request){

logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));

CommonUtil.checkMap(params);

PageUtils page = chatService.queryPage(params);

//字典表數(shù)據(jù)轉(zhuǎn)換

List list =(List)page.getList();

for(ChatView c:list)

dictionaryService.dictionaryConvert(c, request); //修改對應(yīng)字典表字段

return R.ok().put("data", page);

}

/**

* 前端詳情

*/

@RequestMapping("/detail/{id}")

public R detail(@PathVariable("id") Integer id, HttpServletRequest request){

logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);

ChatEntity chat = chatService.selectById(id);

if(chat !=null){

//entity轉(zhuǎn)view

ChatView view = new ChatView();

BeanUtils.copyProperties( chat , view );//把實(shí)體數(shù)據(jù)重構(gòu)到view中

//級聯(lián)表

YonghuEntity yonghu = yonghuService.selectById(chat.getYonghuId());

if(yonghu != null){

BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把級聯(lián)的數(shù)據(jù)添加到view中,并排除id和創(chuàng)建時間字段

view.setYonghuId(yonghu.getId());

}

//修改對應(yīng)字典表字段

dictionaryService.dictionaryConvert(view, request);

return R.ok().put("data", view);

}else {

return R.error(511,"查不到數(shù)據(jù)");

}

}

/**

* 前端保存

*/

@RequestMapping("/add")

public R add(@RequestBody ChatEntity chat, HttpServletRequest request){

logger.debug("add方法:,,Controller:{},,chat:{}",this.getClass().getName(),chat.toString());

Wrapper queryWrapper = new EntityWrapper()

.eq("yonghu_id", chat.getYonghuId())

.eq("chat_issue", chat.getChatIssue())

.eq("chat_reply", chat.getChatReply())

.eq("zhuangtai_types", chat.getZhuangtaiTypes())

.eq("chat_types", chat.getChatTypes())

// .notIn("chat_types", new Integer[]{102})

;

logger.info("sql語句:"+queryWrapper.getSqlSegment());

ChatEntity chatEntity = chatService.selectOne(queryWrapper);

if(chatEntity==null){

chat.setInsertTime(new Date());

chatService.insert(chat);

return R.ok();

}else {

return R.error(511,"表中有相同數(shù)據(jù)");

}

}

}

五,相關(guān)作品展示

基于Java開發(fā)、Python開發(fā)、PHP開發(fā)、C#開發(fā)等相關(guān)語言開發(fā)的實(shí)戰(zhàn)項目

基于Nodejs、Vue等前端技術(shù)開發(fā)的前端實(shí)戰(zhàn)項目

基于微信小程序和安卓APP應(yīng)用開發(fā)的相關(guān)作品

基于51單片機(jī)等嵌入式物聯(lián)網(wǎng)開發(fā)應(yīng)用

基于各類算法實(shí)現(xiàn)的AI智能應(yīng)用

基于大數(shù)據(jù)實(shí)現(xiàn)的各類數(shù)據(jù)管理和推薦系統(tǒng)

?

?

柚子快報邀請碼778899分享:基于微信小程序?qū)崿F(xiàn)美食推薦系統(tǒng)

http://yzkb.51969.com/

文章鏈接

評論可見,查看隱藏內(nèi)容

本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場。

轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。

本文鏈接:http://m.gantiao.com.cn/post/19583656.html

發(fā)布評論

您暫未設(shè)置收款碼

請在主題配置——文章設(shè)置里上傳

掃描二維碼手機(jī)訪問

文章目錄