1.1 研究背景
近年来,人们的生活方式以网络为主题不断进化,北京医疗企业固定资产管理就是其中的一部分。现在,无论是大型的还是小型的网站,都随处可见,不知不觉中已经成为我们生活中不可或缺的存在。随着社会的发展,除了对系统的需求外,我们还要促进经济发展,提高工作效率,同时还要做好对固定资产、资产入库、资产出库、资产申领、资产报修等[1]。目前,由代码编程实现的各种管理工具和系统替代传统的人工操作,不但提升了可靠性还降低了人力成本,节省了时间,提升了工作效率。全球视域下信息技术逐步渗透到各个领域,多样化的数据信息为北京医疗企业固定资产管理带来了深刻变革。电子商务是新时代发展的一种产品,它是一种被广泛接受的、顺应时代潮流的新型管理模式。它有助于改变现状,提高工作效率,加强专业化、信息化、规范化管理,在这个阶段,北京医疗企业固定资产管理系统为提高整体工作效率的一种方式,它是医疗企业经济的基础。
1.2 研究意义
国内外科技信息技术大大提高,近年来,随着计算机技术的飞速发展以及其在全球范围内的普及,计算机技术的在人们生活中应用的占比越来越大,尤其是信息资源管理方面,广泛应用于各个行业,已经产生了不可估量的社会效益。计算机技术在信息资源管理方面的应用大大提高了工作效率,简化了工作程序。而这些特点正好对医疗企业固定资产的难题对症下药。北京医疗企业固定资产管理系统一经问世,就展现了其巨大的发展前景与优势,北京医疗企业固定资产管理系统的发展重心也快速转向了利用计算机技术节省人力物力和节省开支,同时也为了更好地发挥更大的安全性、快速和理性的功能。北京医疗企业固定资产管理系统的形式包括固定资产管理、资产入库、资产出库、资产申领等,既为员工提供服务,又可针对其特点实现对整个北京医疗企业固定资产管理系统的统一管理[2]。
1.3 主要内容
本文的研究目标是以医疗企业的固定资产管理体系为对象,论文的研究内容包括:固定资产、资产入库、资产出库等方面进行了研究。系统以当前应用最为广泛的Java语言为基础,结合了目前应用最为广泛的嵌入式嵌入式平台,集成了B/S体系结构。数据库选择简便高效的MySQL,springboot框架。在北京医疗企业固定资产管理系统进行管理,不仅可以解除时间空间的束缚,还可以节省人力成本,将数据和库存一目了然地呈现在眼前,方便管理,整个系统操作简便,界面亲切,实用性,安全,高效率,能准确完成操作,实现系统的全过程[3]。
同时,也正是由于管理制度的使用,使得更多的工作者可以被解放出来,将更多的精力投入到其他方面。只要与网络相连,就可以使用本程序解决数据信息交换的问题。
springboot vue医疗企业固定资产管理系统源码和答辩PPT论文819
演示视频:
【包调试运行】springboot vue学生成绩动态追踪系统源码和答辩PPT论文
package com.controller;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.text.ParseException;
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.transaction.annotation.Transactional;
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.ZichanshenlingEntity;
import com.entity.view.ZichanshenlingView;
import com.service.ZichanshenlingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;
/**
* 资产申领
* 后端接口
* @author
* @email
* @date 2023-03-10 23:30:53
*/
@RestController
@RequestMapping("/zichanshenling")
public class ZichanshenlingController {
@Autowired
private ZichanshenlingService zichanshenlingService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ZichanshenlingEntity zichanshenling,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
zichanshenling.setYuangonggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
PageUtils page = zichanshenlingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zichanshenling), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ZichanshenlingEntity zichanshenling,
HttpServletRequest request){
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
PageUtils page = zichanshenlingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zichanshenling), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ZichanshenlingEntity zichanshenling){
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
ew.allEq(MPUtil.allEQMapPre( zichanshenling, "zichanshenling"));
return R.ok().put("data", zichanshenlingService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ZichanshenlingEntity zichanshenling){
EntityWrapper< ZichanshenlingEntity> ew = new EntityWrapper< ZichanshenlingEntity>();
ew.allEq(MPUtil.allEQMapPre( zichanshenling, "zichanshenling"));
ZichanshenlingView zichanshenlingView = zichanshenlingService.selectView(ew);
return R.ok("查询资产申领成功").put("data", zichanshenlingView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ZichanshenlingEntity zichanshenling = zichanshenlingService.selectById(id);
return R.ok().put("data", zichanshenling);
}
/**
* 前端详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ZichanshenlingEntity zichanshenling = zichanshenlingService.selectById(id);
return R.ok().put("data", zichanshenling);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ZichanshenlingEntity zichanshenling, HttpServletRequest request){
zichanshenling.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zichanshenling);
zichanshenlingService.insert(zichanshenling);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ZichanshenlingEntity zichanshenling, HttpServletRequest request){
zichanshenling.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zichanshenling);
zichanshenlingService.insert(zichanshenling);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody ZichanshenlingEntity zichanshenling, HttpServletRequest request){
//ValidatorUtils.validateEntity(zichanshenling);
zichanshenlingService.updateById(zichanshenling);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
zichanshenlingService.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<ZichanshenlingEntity> wrapper = new EntityWrapper<ZichanshenlingEntity>();
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("yuangong")) {
wrapper.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
int count = zichanshenlingService.selectCount(wrapper);
return R.ok().put("count", count);
}
/**
* (按值统计)
*/
@RequestMapping("/value/{xColumnName}/{yColumnName}")
public R value(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
ew.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = zichanshenlingService.selectValue(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* (按值统计)时间统计类型
*/
@RequestMapping("/value/{xColumnName}/{yColumnName}/{timeStatType}")
public R valueDay(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
params.put("timeStatType", timeStatType);
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
ew.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = zichanshenlingService.selectTimeStatValue(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* 分组统计
*/
@RequestMapping("/group/{columnName}")
public R group(@PathVariable("columnName") String columnName,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("column", columnName);
EntityWrapper<ZichanshenlingEntity> ew = new EntityWrapper<ZichanshenlingEntity>();
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
ew.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
List<Map<String, Object>> result = zichanshenlingService.selectGroup(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
}