当前位置:   article > 正文

ssm固定资产管理系统源码和论文_基于ssm框架的固定资产管理系统

基于ssm框架的固定资产管理系统

ssm固定资产管理系统源码和论文167


 开发工具:idea 或eclipse
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm

  • 本课题国内外状况,说明选题依据和意义
  1. 课题意义

随着当前经济社会快速发展以及互联网技术的不断突破,作为我国企业的重 要战略资产和经济命脉,资产能够使得企业在竞争情况下获得最佳的业绩和目标。 作为横跨管理科学和计算机技术两门学科的交界产业,资产管理促进了知识管理, 知识管理可以协助企业完成实现资产管理的预订目标。这些资产管理数据以企业 的宝贵无形资产的形式储存在知识库、数据库以及文件柜或管理者信息库中。企 业管理者越来越重视资产管理系统的运用和实践。企业资产数据库中存在各种IT和基础设施设备,各种设备之间缺乏明显的关 联性。目前大多数企业对于资产的管理模式仅通过管理人员的记忆式的管理。由于企业硬件设备众多,且涉及到的运维组室复杂。小组之间多种运维资料缺乏联系,无法很好地涵盖数据中心整体规划,以及当前和长效的企业硬件设备和软件的运维,会让企业对于资产的管理工作越发难以进行。在各组之间,存在信息无法有效沟通的问题。仅依据网络资产,继续向该机柜添加设备,导致系统运行安全性严重减低。

资产管理系统是运用信息系统和计算机技术,全方位、多层次地监控和管理资产,并能够实时的对管理数据进行运维和流动,以达到提高企业部门的组织机构的应变能力、创新能力,以及不断提升企业生产效率和工作技能,从而可以全面地增强企业的竞争能力。

  1. 国外研究现状

固定资产的管理面临的问题对于国内外的众多企业、高校等单位都是一样 的,所以早在上个世纪的时候,国外的专家、学者、技术研发人员就从不同的方面对固定资产管理系统进行过研究。首先从固定资产管理的理论来说,较早进行相关研究的是以美国等西方国家为典型的,这些国家提出了应用于固定资产管理的可持续发展管理理论、贯穿资产生命周期的生命周期管理理论等管理理论,为固定资产的管理模式、运行模式等形成提供了理论基础。前期由此而开发很多单机版的资产管理系统帮助国外的企业进行日常的固定资产管理工作。从固定资产发展的方向来说,国外较早提出要注重资产管理数据的安全性,保护资产数据不被篡改和恶意使用,注重资产的可靠性,保证资产的来源是正确无误的;基于这些目的就要搭建专门的管理信息系统面向复杂度不同的各类资产管理工作,并建构监管体系,制定固定资产管理的长期规划,从整体上提高效率,把风险降到最低。从固定资产管理的系统研究来说,从早期的单机版系统到目前的以网络化为主的很多跨平台的固定资产管理系统,系统的研究逐渐深入,应用的领域和行业越来越多,如国外的斯坦福大学、美国通用、花旗集团、帝国理工学院都很早使用或者研发了固定资产或者设备管理系统。此外国外还涌现了很多优秀的产品,如由IT的优秀企业IBM公司开发的MAXIM管理系统,由加拿大蒙特利尔城市IFCS公司开发的Senergy产品。前者属于一种商品化的软件开发品,能够帮助用户进行固定资产的预防性维修管理,还能够对资产进行售后维护的记录和管理,所以面向的对象大多是企业用户;系统中建立了台帐对所有类型的资产进行信息管理,以维修线索作为固定资产的过程线索,完成设备维修申请的提交、申请的审批和执行申请整个过程;同时还提供了采购流程、预算流程和供应商管理等内容,涵盖的内容较多,保证固定资产的库存率不高,实现对各类资源的优化配置。

  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import com.alibaba.fastjson.JSONObject;
  4. import java.util.*;
  5. import com.entity.BaofeiEntity;
  6. import com.service.BaofeiService;
  7. import org.springframework.beans.BeanUtils;
  8. import javax.servlet.http.HttpServletRequest;
  9. import org.springframework.web.context.ContextLoader;
  10. import javax.servlet.ServletContext;
  11. import com.service.TokenService;
  12. import com.utils.StringUtil;
  13. import java.lang.reflect.InvocationTargetException;
  14. import com.service.DictionaryService;
  15. import org.apache.commons.lang3.StringUtils;
  16. import com.annotation.IgnoreAuth;
  17. import org.slf4j.Logger;
  18. import org.slf4j.LoggerFactory;
  19. import org.springframework.beans.factory.annotation.Autowired;
  20. import org.springframework.stereotype.Controller;
  21. import org.springframework.web.bind.annotation.*;
  22. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  23. import com.baomidou.mybatisplus.mapper.Wrapper;
  24. import com.entity.ZichanEntity;
  25. import com.service.ZichanService;
  26. import com.entity.view.ZichanView;
  27. import com.utils.PageUtils;
  28. import com.utils.R;
  29. /**
  30. * 资产
  31. * 后端接口
  32. * @author
  33. * @email
  34. * @date 2021-04-06
  35. */
  36. @RestController
  37. @Controller
  38. @RequestMapping("/zichan")
  39. public class ZichanController {
  40. private static final Logger logger = LoggerFactory.getLogger(ZichanController.class);
  41. @Autowired
  42. private ZichanService zichanService;
  43. @Autowired
  44. private BaofeiService baofeiService;
  45. @Autowired
  46. private TokenService tokenService;
  47. @Autowired
  48. private DictionaryService dictionaryService;
  49. //级联表service
  50. /**
  51. * 后端列表
  52. */
  53. @RequestMapping("/page")
  54. public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
  55. logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
  56. String role = String.valueOf(request.getSession().getAttribute("role"));
  57. if(StringUtil.isNotEmpty(role) && "用户".equals(role)){
  58. params.put("yonghuId",request.getSession().getAttribute("userId"));
  59. }
  60. params.put("orderBy","id");
  61. PageUtils page = zichanService.queryPage(params);
  62. //字典表数据转换
  63. List<ZichanView> list =(List<ZichanView>)page.getList();
  64. for(ZichanView c:list){
  65. //修改对应字典表字段
  66. dictionaryService.dictionaryConvert(c);
  67. }
  68. return R.ok().put("data", page);
  69. }
  70. /**
  71. * 后端详情
  72. */
  73. @RequestMapping("/info/{id}")
  74. public R info(@PathVariable("id") Long id){
  75. logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
  76. ZichanEntity zichan = zichanService.selectById(id);
  77. if(zichan !=null){
  78. //entity转view
  79. ZichanView view = new ZichanView();
  80. BeanUtils.copyProperties( zichan , view );//把实体数据重构到view中
  81. //修改对应字典表字段
  82. dictionaryService.dictionaryConvert(view);
  83. return R.ok().put("data", view);
  84. }else {
  85. return R.error(511,"查不到数据");
  86. }
  87. }
  88. /**
  89. * 后端保存
  90. */
  91. @RequestMapping("/save")
  92. public R save(@RequestBody ZichanEntity zichan, HttpServletRequest request){
  93. logger.debug("save方法:,,Controller:{},,zichan:{}",this.getClass().getName(),zichan.toString());
  94. Wrapper<ZichanEntity> queryWrapper = new EntityWrapper<ZichanEntity>()
  95. .eq("zichan_name", zichan.getZichanName())
  96. .eq("zichan_types", zichan.getZichanTypes())
  97. .eq("bumen_types", zichan.getBumenTypes())
  98. .eq("zichan_guige", zichan.getZichanGuige())
  99. .eq("zichan_changjia", zichan.getZichanChangjia())
  100. .eq("zichan_baoyang", zichan.getZichanBaoyang())
  101. ;
  102. logger.info("sql语句:"+queryWrapper.getSqlSegment());
  103. ZichanEntity zichanEntity = zichanService.selectOne(queryWrapper);
  104. if(zichanEntity==null){
  105. zichan.setCreateTime(new Date());
  106. // String role = String.valueOf(request.getSession().getAttribute("role"));
  107. // if("".equals(role)){
  108. // zichan.set
  109. // }
  110. zichanService.insert(zichan);
  111. return R.ok();
  112. }else {
  113. return R.error(511,"表中有相同数据");
  114. }
  115. }
  116. /**
  117. * 后端修改
  118. */
  119. @RequestMapping("/update")
  120. public R update(@RequestBody ZichanEntity zichan, HttpServletRequest request){
  121. logger.debug("update方法:,,Controller:{},,zichan:{}",this.getClass().getName(),zichan.toString());
  122. //根据字段查询是否有相同数据
  123. Wrapper<ZichanEntity> queryWrapper = new EntityWrapper<ZichanEntity>()
  124. .notIn("id",zichan.getId())
  125. .andNew()
  126. .eq("zichan_name", zichan.getZichanName())
  127. .eq("zichan_types", zichan.getZichanTypes())
  128. .eq("bumen_types", zichan.getBumenTypes())
  129. .eq("zichan_guige", zichan.getZichanGuige())
  130. .eq("zichan_changjia", zichan.getZichanChangjia())
  131. .eq("zichan_baoyang", zichan.getZichanBaoyang())
  132. ;
  133. logger.info("sql语句:"+queryWrapper.getSqlSegment());
  134. ZichanEntity zichanEntity = zichanService.selectOne(queryWrapper);
  135. if(zichanEntity==null){
  136. // String role = String.valueOf(request.getSession().getAttribute("role"));
  137. // if("".equals(role)){
  138. // zichan.set
  139. // }
  140. zichanService.updateById(zichan);//根据id更新
  141. return R.ok();
  142. }else {
  143. return R.error(511,"表中有相同数据");
  144. }
  145. }
  146. /**
  147. * 删除
  148. */
  149. @RequestMapping("/delete")
  150. public R delete(Integer ids){
  151. ZichanEntity zichan = zichanService.selectById(ids);
  152. if(zichan == null){
  153. return R.error();
  154. }
  155. BaofeiEntity baofei = new BaofeiEntity();
  156. baofei.setCreateTime(new Date());
  157. baofei.setInsertTime(new Date());
  158. baofei.setZichanName(zichan.getZichanName());
  159. boolean insert = baofeiService.insert(baofei);
  160. if(insert){
  161. boolean b = zichanService.deleteBatchIds(Arrays.asList(ids));
  162. if(b){
  163. return R.ok();
  164. }
  165. }
  166. return R.error();
  167. }
  168. }
  1. package com.controller;
  2. import java.text.SimpleDateFormat;
  3. import com.alibaba.fastjson.JSONObject;
  4. import java.util.*;
  5. import org.springframework.beans.BeanUtils;
  6. import javax.servlet.http.HttpServletRequest;
  7. import org.springframework.web.context.ContextLoader;
  8. import javax.servlet.ServletContext;
  9. import com.service.TokenService;
  10. import com.utils.StringUtil;
  11. import java.lang.reflect.InvocationTargetException;
  12. import com.service.DictionaryService;
  13. import org.apache.commons.lang3.StringUtils;
  14. import com.annotation.IgnoreAuth;
  15. import org.slf4j.Logger;
  16. import org.slf4j.LoggerFactory;
  17. import org.springframework.beans.factory.annotation.Autowired;
  18. import org.springframework.stereotype.Controller;
  19. import org.springframework.web.bind.annotation.*;
  20. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  21. import com.baomidou.mybatisplus.mapper.Wrapper;
  22. import com.entity.BaofeiEntity;
  23. import com.service.BaofeiService;
  24. import com.entity.view.BaofeiView;
  25. import com.utils.PageUtils;
  26. import com.utils.R;
  27. /**
  28. * 资产报废
  29. * 后端接口
  30. * @author
  31. * @email
  32. * @date 2021-04-06
  33. */
  34. @RestController
  35. @Controller
  36. @RequestMapping("/baofei")
  37. public class BaofeiController {
  38. private static final Logger logger = LoggerFactory.getLogger(BaofeiController.class);
  39. @Autowired
  40. private BaofeiService baofeiService;
  41. @Autowired
  42. private TokenService tokenService;
  43. @Autowired
  44. private DictionaryService dictionaryService;
  45. //级联表service
  46. /**
  47. * 后端列表
  48. */
  49. @RequestMapping("/page")
  50. public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
  51. logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
  52. String role = String.valueOf(request.getSession().getAttribute("role"));
  53. if(StringUtil.isNotEmpty(role) && "用户".equals(role)){
  54. params.put("yonghuId",request.getSession().getAttribute("userId"));
  55. }
  56. params.put("orderBy","id");
  57. PageUtils page = baofeiService.queryPage(params);
  58. //字典表数据转换
  59. List<BaofeiView> list =(List<BaofeiView>)page.getList();
  60. for(BaofeiView c:list){
  61. //修改对应字典表字段
  62. dictionaryService.dictionaryConvert(c);
  63. }
  64. return R.ok().put("data", page);
  65. }
  66. /**
  67. * 后端详情
  68. */
  69. @RequestMapping("/info/{id}")
  70. public R info(@PathVariable("id") Long id){
  71. logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
  72. BaofeiEntity baofei = baofeiService.selectById(id);
  73. if(baofei !=null){
  74. //entity转view
  75. BaofeiView view = new BaofeiView();
  76. BeanUtils.copyProperties( baofei , view );//把实体数据重构到view中
  77. //修改对应字典表字段
  78. dictionaryService.dictionaryConvert(view);
  79. return R.ok().put("data", view);
  80. }else {
  81. return R.error(511,"查不到数据");
  82. }
  83. }
  84. /**
  85. * 后端保存
  86. */
  87. @RequestMapping("/save")
  88. public R save(@RequestBody BaofeiEntity baofei, HttpServletRequest request){
  89. logger.debug("save方法:,,Controller:{},,baofei:{}",this.getClass().getName(),baofei.toString());
  90. Wrapper<BaofeiEntity> queryWrapper = new EntityWrapper<BaofeiEntity>()
  91. .eq("zichan_name", baofei.getZichanName())
  92. ;
  93. logger.info("sql语句:"+queryWrapper.getSqlSegment());
  94. BaofeiEntity baofeiEntity = baofeiService.selectOne(queryWrapper);
  95. if(baofeiEntity==null){
  96. baofei.setInsertTime(new Date());
  97. baofei.setCreateTime(new Date());
  98. // String role = String.valueOf(request.getSession().getAttribute("role"));
  99. // if("".equals(role)){
  100. // baofei.set
  101. // }
  102. baofeiService.insert(baofei);
  103. return R.ok();
  104. }else {
  105. return R.error(511,"表中有相同数据");
  106. }
  107. }
  108. /**
  109. * 后端修改
  110. */
  111. @RequestMapping("/update")
  112. public R update(@RequestBody BaofeiEntity baofei, HttpServletRequest request){
  113. logger.debug("update方法:,,Controller:{},,baofei:{}",this.getClass().getName(),baofei.toString());
  114. //根据字段查询是否有相同数据
  115. Wrapper<BaofeiEntity> queryWrapper = new EntityWrapper<BaofeiEntity>()
  116. .notIn("id",baofei.getId())
  117. .andNew()
  118. .eq("zichan_name", baofei.getZichanName())
  119. ;
  120. logger.info("sql语句:"+queryWrapper.getSqlSegment());
  121. BaofeiEntity baofeiEntity = baofeiService.selectOne(queryWrapper);
  122. if(baofeiEntity==null){
  123. // String role = String.valueOf(request.getSession().getAttribute("role"));
  124. // if("".equals(role)){
  125. // baofei.set
  126. // }
  127. baofeiService.updateById(baofei);//根据id更新
  128. return R.ok();
  129. }else {
  130. return R.error(511,"表中有相同数据");
  131. }
  132. }
  133. /**
  134. * 删除
  135. */
  136. @RequestMapping("/delete")
  137. public R delete(@RequestBody Integer[] ids){
  138. logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
  139. baofeiService.deleteBatchIds(Arrays.asList(ids));
  140. return R.ok();
  141. }
  142. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/451983
推荐阅读
相关标签
  

闽ICP备14008679号