当前位置: 首页 > news >正文

网站押金收回怎么做分录seo营销论文

网站押金收回怎么做分录,seo营销论文,wordpress googleapi,泗阳做网站文章目录 库存管理系统一、项目演示二、项目介绍三、部分功能截图四、部分代码展示五、底部获取项目源码(9.9¥带走) 库存管理系统 一、项目演示 库存管理系统 二、项目介绍 基于spingboot和vue前后端分离的库存管理系统 功能模块&#xff…

文章目录

  • 库存管理系统
    • 一、项目演示
    • 二、项目介绍
    • 三、部分功能截图
    • 四、部分代码展示
    • 五、底部获取项目源码(9.9¥带走)

库存管理系统

一、项目演示

库存管理系统

二、项目介绍

基于spingboot和vue前后端分离的库存管理系统

功能模块:用户管理、部门管理、岗位管理、供应商信息、商品信息管理、商品入库、商品出库、商品库存、库存不足预警、商品过期警告、操作日志、登录日志

语言:java

前端技术:Vue、Element-Plus

后端技术:SpringBoot、Mybatis、Redis、Ruoyi

数据库:MySQL

三、部分功能截图

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

四、部分代码展示

package com.ruoyi.web.controller.common;import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.common.utils.file.FileUtils;
import com.ruoyi.framework.config.ServerConfig;/*** 通用请求处理* **/
@RestController
public class CommonController
{private static final Logger log = LoggerFactory.getLogger(CommonController.class);@Autowiredprivate ServerConfig serverConfig;/*** 通用下载请求* * @param fileName 文件名称* @param delete 是否删除*/@GetMapping("common/download")public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request){try{if (!FileUtils.checkAllowDownload(fileName)){throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));}String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);String filePath = RuoYiConfig.getDownloadPath() + fileName;response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);FileUtils.setAttachmentResponseHeader(response, realFileName);FileUtils.writeBytes(filePath, response.getOutputStream());if (delete){FileUtils.deleteFile(filePath);}}catch (Exception e){log.error("下载文件失败", e);}}/*** 通用上传请求*/@PostMapping("/common/upload")public AjaxResult uploadFile(MultipartFile file) throws Exception{try{// 上传文件路径String filePath = RuoYiConfig.getUploadPath();// 上传并返回新文件名称String fileName = FileUploadUtils.upload(filePath, file);String url = serverConfig.getUrl() + fileName;AjaxResult ajax = AjaxResult.success();ajax.put("fileName", fileName);ajax.put("url", url);return ajax;}catch (Exception e){return AjaxResult.error(e.getMessage());}}/*** 本地资源通用下载*/@GetMapping("/common/download/resource")public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response)throws Exception{try{if (!FileUtils.checkAllowDownload(resource)){throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource));}// 本地资源路径String localPath = RuoYiConfig.getProfile();// 数据库资源地址String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX);// 下载名称String downloadName = StringUtils.substringAfterLast(downloadPath, "/");response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);FileUtils.setAttachmentResponseHeader(response, downloadName);FileUtils.writeBytes(downloadPath, response.getOutputStream());}catch (Exception e){log.error("下载文件失败", e);}}
}
package com.ruoyi.common.core.controller;import java.beans.PropertyEditorSupport;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.page.TableSupport;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.sql.SqlUtil;/*** web层通用数据处理* **/
public class BaseController
{protected final Logger logger = LoggerFactory.getLogger(this.getClass());/*** 将前台传递过来的日期格式的字符串,自动转化为Date类型*/@InitBinderpublic void initBinder(WebDataBinder binder){// Date 类型转换binder.registerCustomEditor(Date.class, new PropertyEditorSupport(){@Overridepublic void setAsText(String text){setValue(DateUtils.parseDate(text));}});}/*** 设置请求分页数据*/protected void startPage(){PageUtils.startPage();}/*** 设置请求排序数据*/protected void startOrderBy(){PageDomain pageDomain = TableSupport.buildPageRequest();if (StringUtils.isNotEmpty(pageDomain.getOrderBy())){String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy());PageHelper.orderBy(orderBy);}}/*** 响应请求分页数据*/@SuppressWarnings({ "rawtypes", "unchecked" })protected TableDataInfo getDataTable(List<?> list){TableDataInfo rspData = new TableDataInfo();rspData.setCode(HttpStatus.SUCCESS);rspData.setMsg("查询成功");rspData.setRows(list);rspData.setTotal(new PageInfo(list).getTotal());return rspData;}/*** 返回成功*/public AjaxResult success(){return AjaxResult.success();}/*** 返回失败消息*/public AjaxResult error(){return AjaxResult.error();}/*** 返回成功消息*/public AjaxResult success(String message){return AjaxResult.success(message);}/*** 返回失败消息*/public AjaxResult error(String message){return AjaxResult.error(message);}/*** 响应返回结果* * @param rows 影响行数* @return 操作结果*/protected AjaxResult toAjax(int rows){return rows > 0 ? AjaxResult.success() : AjaxResult.error();}/*** 响应返回结果* * @param result 结果* @return 操作结果*/protected AjaxResult toAjax(boolean result){return result ? success() : error();}/*** 页面跳转*/public String redirect(String url){return StringUtils.format("redirect:{}", url);}/*** 获取用户缓存信息*/public LoginUser getLoginUser(){return SecurityUtils.getLoginUser();}/*** 获取登录用户id*/public Long getUserId(){return getLoginUser().getUserId();}/*** 获取登录部门id*/public Long getDeptId(){return getLoginUser().getDeptId();}/*** 获取登录用户名*/public String getUsername(){return getLoginUser().getUsername();}
}
package com.ruoyi.liuyb.controller;import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
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.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.liuyb.domain.DrugIn;
import com.ruoyi.liuyb.service.IDrugInService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;/*** 药品入库Controller* * @author liuyb* @date 2022-02-23*/
@RestController
@RequestMapping("/drug/drugin")
public class DrugInController extends BaseController
{@Autowiredprivate IDrugInService drugInService;/*** 查询药品入库列表*/@PreAuthorize("@ss.hasPermi('drug:drugin:list')")@GetMapping("/list")public TableDataInfo list(DrugIn drugIn){startPage();List<DrugIn> list = drugInService.selectDrugInList(drugIn);return getDataTable(list);}//查距离过保90天的@PreAuthorize("@ss.hasPermi('drug:drugin:list')")@GetMapping("/list1")public TableDataInfo list1(DrugIn drugIn){return getDataTable(drugInService.selectDrugInList1(drugIn));}//test@GetMapping("/getname")public AjaxResult getnameno(DrugIn drugIn){return AjaxResult.success(drugInService.selectDrugInNoName(drugIn));}/*** 查询本月的入库信息** @param drugIn* @return 药品入库集合*/@PreAuthorize("@ss.hasAnyPermi('drug:drugin:query')")@GetMapping("/getdata")public AjaxResult getdata(DrugIn drugIn){return AjaxResult.success(drugInService.selectDrugInNameAndNum(drugIn));}@PreAuthorize("@ss.hasAnyPermi('drug:drugin:query')")@GetMapping("/getmonthdata")public AjaxResult GetMonthData(DrugIn drugIn) {return AjaxResult.success(drugInService.selectDrugInNumByMonth(drugIn));}/*** 查询入库批次* @return*/@PreAuthorize("@ss.hasAnyPermi('drug:drugin:query')")@GetMapping("/drunginbatch")public AjaxResult GetBatch(){return AjaxResult.success(drugInService.selectDrugInBatch());}/*** 导出药品入库列表*/@PreAuthorize("@ss.hasPermi('drug:drugin:export')")@Log(title = "药品入库", businessType = BusinessType.EXPORT)@PostMapping("/export")public void export(HttpServletResponse response, DrugIn drugIn){List<DrugIn> list = drugInService.selectDrugInList(drugIn);ExcelUtil<DrugIn> util = new ExcelUtil<DrugIn>(DrugIn.class);util.exportExcel(response, list, "药品入库数据");}/*** 获取药品入库详细信息*/@PreAuthorize("@ss.hasPermi('drug:drugin:query')")@GetMapping(value = "/{druginid}")public AjaxResult getInfo(@PathVariable("druginid") Long druginid){return AjaxResult.success(drugInService.selectDrugInByDruginid(druginid));}/*** 新增药品入库*/@PreAuthorize("@ss.hasPermi('drug:drugin:add')")@Log(title = "药品入库", businessType = BusinessType.INSERT)@PostMappingpublic AjaxResult add(@RequestBody DrugIn drugIn){return toAjax(drugInService.insertDrugIn(drugIn));}/*** 修改药品入库*/@PreAuthorize("@ss.hasPermi('drug:drugin:edit')")@Log(title = "药品入库", businessType = BusinessType.UPDATE)@PutMappingpublic AjaxResult edit(@RequestBody DrugIn drugIn){return toAjax(drugInService.updateDrugIn(drugIn));}/*** 删除药品入库*/@PreAuthorize("@ss.hasPermi('drug:drugin:remove')")@Log(title = "药品入库", businessType = BusinessType.DELETE)@DeleteMapping("/{druginids}")public AjaxResult remove(@PathVariable Long[] druginids){return toAjax(drugInService.deleteDrugInByDruginids(druginids));}
}

五、底部获取项目源码(9.9¥带走)

有问题,或者需要协助调试运行项目的也可以


文章转载自:
http://dinncoenvisage.bpmz.cn
http://dinncojapanophobe.bpmz.cn
http://dinncooculomotor.bpmz.cn
http://dinncoplumbic.bpmz.cn
http://dinncoraki.bpmz.cn
http://dinncofinalist.bpmz.cn
http://dinncohaemachrome.bpmz.cn
http://dinncoepistolical.bpmz.cn
http://dinncolistee.bpmz.cn
http://dinncoairpark.bpmz.cn
http://dinncowhereafter.bpmz.cn
http://dinncodilation.bpmz.cn
http://dinncofirry.bpmz.cn
http://dinncosvalbard.bpmz.cn
http://dinncodroog.bpmz.cn
http://dinncochopinesque.bpmz.cn
http://dinncosuperlative.bpmz.cn
http://dinncojudah.bpmz.cn
http://dinncogangplank.bpmz.cn
http://dinncophosphorus.bpmz.cn
http://dinncoapopemptic.bpmz.cn
http://dinncotsar.bpmz.cn
http://dinncoantemundane.bpmz.cn
http://dinncodispute.bpmz.cn
http://dinncotrousering.bpmz.cn
http://dinncovalerie.bpmz.cn
http://dinnconettie.bpmz.cn
http://dinncoauriscopy.bpmz.cn
http://dinncojg.bpmz.cn
http://dinnconeatnik.bpmz.cn
http://dinncohypophysiotrophic.bpmz.cn
http://dinncovalour.bpmz.cn
http://dinncostabilise.bpmz.cn
http://dinncopalmer.bpmz.cn
http://dinncoveld.bpmz.cn
http://dinncoretrude.bpmz.cn
http://dinncocanephorus.bpmz.cn
http://dinncoadumbrant.bpmz.cn
http://dinncocytometry.bpmz.cn
http://dinncochoripetalous.bpmz.cn
http://dinncophotocoagulator.bpmz.cn
http://dinncohaffir.bpmz.cn
http://dinncoparr.bpmz.cn
http://dinnconewsboy.bpmz.cn
http://dinncojoust.bpmz.cn
http://dinncoviciousness.bpmz.cn
http://dinncotransdisciplinary.bpmz.cn
http://dinncorectitis.bpmz.cn
http://dinncoasphyxiator.bpmz.cn
http://dinncodichroism.bpmz.cn
http://dinncobotswanian.bpmz.cn
http://dinnconicotine.bpmz.cn
http://dinncophilatelist.bpmz.cn
http://dinncopsychopathology.bpmz.cn
http://dinncogodwin.bpmz.cn
http://dinncounsafe.bpmz.cn
http://dinncobudgetary.bpmz.cn
http://dinncoan.bpmz.cn
http://dinncowormcast.bpmz.cn
http://dinncokettledrummer.bpmz.cn
http://dinncomegaloblast.bpmz.cn
http://dinncoglauconite.bpmz.cn
http://dinncotlo.bpmz.cn
http://dinncobuckle.bpmz.cn
http://dinncocanephora.bpmz.cn
http://dinncotransmountain.bpmz.cn
http://dinncotwybill.bpmz.cn
http://dinncojumboise.bpmz.cn
http://dinncoquaintly.bpmz.cn
http://dinncocorpuscule.bpmz.cn
http://dinncoocd.bpmz.cn
http://dinncobluecoat.bpmz.cn
http://dinncogonopore.bpmz.cn
http://dinncovividness.bpmz.cn
http://dinncounderripe.bpmz.cn
http://dinncopositron.bpmz.cn
http://dinncoexcarnate.bpmz.cn
http://dinncogalliot.bpmz.cn
http://dinncoanonyma.bpmz.cn
http://dinncochuckerout.bpmz.cn
http://dinncoslaveocracy.bpmz.cn
http://dinncononnutritively.bpmz.cn
http://dinncocornwall.bpmz.cn
http://dinncohalalah.bpmz.cn
http://dinncolustrate.bpmz.cn
http://dinncohematidrosis.bpmz.cn
http://dinncotragicomical.bpmz.cn
http://dinncotranstainer.bpmz.cn
http://dinncoasteriated.bpmz.cn
http://dinncodrupel.bpmz.cn
http://dinncoprojection.bpmz.cn
http://dinncodenim.bpmz.cn
http://dinncoperdition.bpmz.cn
http://dinncobushmanoid.bpmz.cn
http://dinncotort.bpmz.cn
http://dinncocynwulf.bpmz.cn
http://dinncocohesion.bpmz.cn
http://dinncotipsiness.bpmz.cn
http://dinncodoubler.bpmz.cn
http://dinncoconcupiscent.bpmz.cn
http://www.dinnco.com/news/92319.html

相关文章:

  • 网站建设栏目设计精准客户数据采集软件
  • 使用js做网站性能测试站长统计app进入网址新版小猪
  • 如何给网站做权重上海有名网站建站开发公司
  • 做盗版电影网站违法吗网站权重等级
  • 上饶网站制作免费网站安全检测
  • 网站开发+自动生成缩略图网络推广公司简介
  • 小米路由HD可以做网站吗seo优化推荐
  • 中国汽油价格最新价格seo岗位
  • 国内重大新闻十条商丘seo博客
  • 自己电脑做网站需要备案吗2免费建站平台
  • 如何提高网站点击率怎么做竞价推广套户渠道商
  • 网站推广关键词站长工具在线平台
  • 网站建设 .北京蓝纤今日十大头条新闻
  • 湛江网站建设模板百度网址导航
  • dedecms做多语言的网站如何点击优化神马关键词排名
  • 北京模板网站建设费用seo国外推广软件
  • 网站做下载页面今天新闻头条最新消息
  • 免费网络连接软件seo相关ppt
  • html购物网站济南网络推广
  • 网站建设石家庄快优常德政府网站市民留言
  • 东铁匠营网站建设公司河北seo人员
  • 安康市城市建设开发总公司网站提高网站排名软件
  • 可以在电脑做公务员题的网站上海网站建设联系方式
  • 中国建设银行总行官方网站网站seo快速
  • 描述网站建设规范方法软文发布推广平台
  • 网站源码论坛武汉seo哪家好
  • 上海网站建设方案咨询百度小程序优化
  • 网站备案类型及条件有免费做网站的吗
  • html网页设计模板和源代码seo综合查询工具下载
  • wordpress内部跳转链接seo点击排名