计算机毕业设计 基于SpringBoot的公司资产网站的设计与实现 Java实战项目 附源码+文档+视频讲解

博主介绍:✌从事软件开发10年之余,专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者✌
🍅文末获取源码联系🍅
👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟
————————————————
计算机毕业设计《1000套》✌

目录

1、项目介绍及开发技术

1.1 项目介绍

1.2 开发技术

2、系统功能设计结构图

3、功能截图

4、数据库表结构设计

5、关键代码

5.1 资产Controller模块 

5.2 资产Service模块 

5.3 资产ServiceImpl模块

5.4 资产Dao模块

6、论文目录结构

7、源码获取


1、项目介绍及开发技术

1.1 项目介绍

信息数据从传统到当代,是一直在变革当中,突如其来的互联网让传统的信息管理看到了革命性的曙光,因为传统信息管理从时效性,还是安全性,还是可操作性等各个方面来讲,遇到了互联网时代才发现能补上自古以来的短板,有效的提升管理的效率和业务水平。传统的管理模式,时间越久管理的内容越多,也需要更多的人来对数据进行整理,并且数据的汇总查询方面效率也是极其的低下,并且数据安全方面永远不会保证安全性能。结合数据内容管理的种种缺点,在互联网时代都可以得到有效的补充。结合先进的互联网技术,开发符合需求的软件,让数据内容管理不管是从录入的及时性,查看的及时性还是汇总分析的及时性,都能让正确率达到最高,管理更加的科学和便捷。本次开发的公司资产网站实现了字典管理、公告管理、员工管理、资产管理、资产报废管理、资产申请管理、资料库管理、管理员管理等功能。系统用到了关系型数据库中王者MySql作为系统的数据库,有效的对数据进行安全的存储,有效的备份,对数据可靠性方面得到了保证。并且程序也具备程序需求的所有功能,使得操作性还是安全性都大大提高,让公司资产网站更能从理念走到现实,确确实实的让人们提升信息处理效率。

1.2 开发技术

Java开发语言、SpringBoot、MyBatisPlus、MySQL数据库、Maven、IDEA开发工具、JDK1.8+、Vue、HTML、CSS、JS。

2、系统功能设计结构图

3、功能截图

资产管理:主要实现资产的增加、修改、删除、查看的功能。

公告信息管理:新增公告,修改公告,删除公告操作。

公告类型管理:在此页面既可以让管理员添加新的公告信息类型,也能对已有的公告类型信息执行编辑更新,失效的公告类型信息也能让管理员快速删除。

资产报废管理: 新增资产报废,修改资产报废,删除资产报废。

资产报废类型管理: 管理员可以新增资产报废类型,修改资产报废类型,删除资产报废类型。

4、数据库表结构设计

CREATE DATABASE /*!32312 IF NOT EXISTS*/`gongsizichan` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `gongsizichan`;

/*Table structure for table `config` */

DROP TABLE IF EXISTS `config`;

CREATE TABLE `config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(100) DEFAULT NULL COMMENT '配置参数名称',
  `value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置文件';

/*Data for the table `config` */

/*Table structure for table `dictionary` */

DROP TABLE IF EXISTS `dictionary`;

CREATE TABLE `dictionary` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `dic_code` varchar(200) DEFAULT NULL COMMENT '字段',
  `dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',
  `code_index` int(11) DEFAULT NULL COMMENT '编码',
  `index_name` varchar(200) DEFAULT NULL COMMENT '编码名字  Search111 ',
  `super_id` int(11) DEFAULT NULL COMMENT '父字段id',
  `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COMMENT='字典';

/*Data for the table `dictionary` */

insert  into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`beizhu`,`create_time`) values (1,'gonggao_types','公告类型',1,'公告类型1',NULL,NULL,'2023-05-17 14:02:33'),(2,'gonggao_types','公告类型',2,'公告类型2',NULL,NULL,'2023-05-17 14:02:33'),(3,'zhiwei_types','职位',1,'职位1',NULL,NULL,'2023-05-17 14:02:33'),(4,'zhiwei_types','职位',2,'职位2',NULL,NULL,'2023-05-17 14:02:33'),(5,'bumen_types','部门',1,'部门1',NULL,NULL,'2023-05-17 14:02:33'),(6,'bumen_types','部门',2,'部门2',NULL,NULL,'2023-05-17 14:02:33'),(7,'sex_types','性别类型',1,'男',NULL,NULL,'2023-05-17 14:02:33'),(8,'sex_types','性别类型',2,'女',NULL,NULL,'2023-05-17 14:02:33'),(9,'jinyong_types','账户状态',1,'启用',NULL,NULL,'2023-05-17 14:02:33'),(10,'jinyong_types','账户状态',2,'禁用',NULL,NULL,'2023-05-17 14:02:33'),(11,'zichan_types','资产类型',1,'资产类型1',NULL,NULL,'2023-05-17 14:02:33'),(12,'zichan_types','资产类型',2,'资产类型2',NULL,NULL,'2023-05-17 14:02:33'),(13,'zichan_types','资产类型',3,'资产类型3',NULL,NULL,'2023-05-17 14:02:33'),(14,'zichan_types','资产类型',4,'资产类型4',NULL,NULL,'2023-05-17 14:02:33'),(15,'zichan_shenqing_types','资产申请类型',1,'资产申请类型1',NULL,NULL,'2023-05-17 14:02:33'),(16,'zichan_shenqing_types','资产申请类型',2,'资产申请类型2',NULL,NULL,'2023-05-17 14:02:33'),(17,'zichan_shenqing_types','资产申请类型',3,'资产申请类型3',NULL,NULL,'2023-05-17 14:02:33'),(18,'zichan_shenqing_types','资产申请类型',4,'资产申请类型4',NULL,NULL,'2023-05-17 14:02:33'),(19,'zichan_shenqing_yesno_types','申请状态',1,'待审核',NULL,NULL,'2023-05-17 14:02:33'),(20,'zichan_shenqing_yesno_types','申请状态',2,'同意',NULL,NULL,'2023-05-17 14:02:33'),(21,'zichan_shenqing_yesno_types','申请状态',3,'拒绝',NULL,NULL,'2023-05-17 14:02:33'),(22,'zichan_baofei_types','资产报废类型',1,'资产报废类型1',NULL,NULL,'2023-05-17 14:02:33'),(23,'zichan_baofei_types','资产报废类型',2,'资产报废类型2',NULL,NULL,'2023-05-17 14:02:33'),(24,'zichan_baofei_types','资产报废类型',3,'资产报废类型3',NULL,NULL,'2023-05-17 14:02:33'),(25,'zichan_baofei_types','资产报废类型',4,'资产报废类型4',NULL,NULL,'2023-05-17 14:02:33'),(26,'ziliaoku_types','资料类型',1,'资料类型1',NULL,NULL,'2023-05-17 14:02:34'),(27,'ziliaoku_types','资料类型',2,'资料类型2',NULL,NULL,'2023-05-17 14:02:34'),(28,'ziliaoku_types','资料类型',3,'资料类型3',NULL,NULL,'2023-05-17 14:02:34'),(29,'ziliaoku_types','资料类型',4,'资料类型4',NULL,NULL,'2023-05-17 14:02:34'),(30,'ziliaoku_types','资料类型',5,'资料类型5',NULL,'','2023-05-17 14:43:18');

/*Table structure for table `gonggao` */

DROP TABLE IF EXISTS `gonggao`;

CREATE TABLE `gonggao` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
  `gonggao_name` varchar(200) DEFAULT NULL COMMENT '公告名称 Search111  ',
  `gonggao_photo` varchar(200) DEFAULT NULL COMMENT '公告图片 ',
  `gonggao_types` int(11) NOT NULL COMMENT '公告类型 Search111 ',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '公告发布时间 ',
  `gonggao_content` longtext COMMENT '公告详情 ',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 nameShow',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='公告';

/*Data for the table `gonggao` */

insert  into `gonggao`(`id`,`gonggao_name`,`gonggao_photo`,`gonggao_types`,`insert_time`,`gonggao_content`,`create_time`) values (1,'公告名称1','upload/gonggao1.jpg',1,'2023-05-17 14:03:01','公告详情1','2023-05-17 14:03:01'),(2,'公告名称2','upload/gonggao2.jpg',2,'2023-05-17 14:03:01','公告详情2','2023-05-17 14:03:01'),(3,'公告名称3','upload/gonggao3.jpg',2,'2023-05-17 14:03:01','公告详情3','2023-05-17 14:03:01'),(4,'公告名称4','upload/gonggao4.jpg',1,'2023-05-17 14:03:01','公告详情4','2023-05-17 14:03:01'),(5,'公告名称5','upload/gonggao5.jpg',2,'2023-05-17 14:03:01','公告详情5','2023-05-17 14:03:01'),(6,'公告名称6','upload/gonggao6.jpg',1,'2023-05-17 14:03:01','公告详情6','2023-05-17 14:03:01'),(7,'公告名称7','upload/gonggao7.jpg',1,'2023-05-17 14:03:01','公告详情7','2023-05-17 14:03:01'),(8,'公告名称8','upload/gonggao8.jpg',2,'2023-05-17 14:03:01','公告详情8','2023-05-17 14:03:01'),(9,'公告名称9','upload/gonggao9.jpg',2,'2023-05-17 14:03:01','公告详情9','2023-05-17 14:03:01'),(10,'公告名称10','upload/gonggao10.jpg',2,'2023-05-17 14:03:01','公告详情10','2023-05-17 14:03:01'),(11,'公告名称11','upload/gonggao11.jpg',1,'2023-05-17 14:03:01','公告详情11','2023-05-17 14:03:01'),(12,'公告名称12','upload/gonggao12.jpg',2,'2023-05-17 14:03:01','公告详情12','2023-05-17 14:03:01'),(13,'公告名称13','upload/gonggao13.jpg',2,'2023-05-17 14:03:01','公告详情13','2023-05-17 14:03:01'),(14,'公告名称14','upload/gonggao14.jpg',1,'2023-05-17 14:03:01','<p>公告详情14广大电视柜</p>','2023-05-17 14:03:01');

/*Table structure for table `token` */

DROP TABLE IF EXISTS `token`;

CREATE TABLE `token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `userid` bigint(20) NOT NULL COMMENT '员工id',
  `username` varchar(100) NOT NULL COMMENT '员工名',
  `tablename` varchar(100) DEFAULT NULL COMMENT '表名',
  `role` varchar(100) DEFAULT NULL COMMENT '角色',
  `token` varchar(200) NOT NULL COMMENT '密码',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='token表';

/*Data for the table `token` */

insert  into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'a1','yuangong','员工','e5tqldyxuan2el8by2kxg4maa3v4msyo','2023-05-17 14:06:08','2023-05-17 15:41:47'),(2,1,'admin','users','管理员','43pgli8f1zoejblfefg83zlylgpxd3d7','2023-05-17 14:06:16','2023-05-17 15:43:01');

/*Table structure for table `users` */

DROP TABLE IF EXISTS `users`;

CREATE TABLE `users` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `username` varchar(100) NOT NULL COMMENT '员工名',
  `password` varchar(100) NOT NULL COMMENT '密码',
  `role` varchar(100) DEFAULT '管理员' COMMENT '角色',
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='管理员';

/*Data for the table `users` */

insert  into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2023-05-17 14:02:33');

/*Table structure for table `yuangong` */

DROP TABLE IF EXISTS `yuangong`;

CREATE TABLE `yuangong` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `username` varchar(200) DEFAULT NULL COMMENT '账户',
  `password` varchar(200) DEFAULT NULL COMMENT '密码',
  `yuangong_uuid_number` varchar(200) DEFAULT NULL COMMENT '工号 Search111 ',
  `yuangong_name` varchar(200) DEFAULT NULL COMMENT '员工姓名 Search111 ',
  `yuangong_phone` varchar(200) DEFAULT NULL COMMENT '员工手机号',
  `yuangong_id_number` varchar(200) DEFAULT NULL COMMENT '员工身份证号',
  `yuangong_photo` varchar(200) DEFAULT NULL COMMENT '员工头像',
  `sex_types` int(11) DEFAULT NULL COMMENT '性别',
  `bumen_types` int(11) DEFAULT NULL COMMENT '部门 Search111 ',
  `zhiwei_types` int(11) DEFAULT NULL COMMENT '职位 Search111 ',
  `yuangong_email` varchar(200) DEFAULT NULL COMMENT '员工邮箱',
  `jinyong_types` int(11) DEFAULT NULL COMMENT '账户状态 Search111 ',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='员工';

/*Data for the table `yuangong` */

insert  into `yuangong`(`id`,`username`,`password`,`yuangong_uuid_number`,`yuangong_name`,`yuangong_phone`,`yuangong_id_number`,`yuangong_photo`,`sex_types`,`bumen_types`,`zhiwei_types`,`yuangong_email`,`jinyong_types`,`create_time`) values (1,'a1','123456','1684303381652','员工姓名1','17703786901','410224199010102001','upload/yuangong1.jpg',1,1,1,'1@qq.com',1,'2023-05-17 14:03:01'),(2,'a2','123456','1684303381614','员工姓名2','17703786902','410224199010102002','upload/yuangong2.jpg',1,1,1,'2@qq.com',1,'2023-05-17 14:03:01'),(3,'a3','123456','1684303381690','员工姓名3','17703786903','410224199010102003','upload/yuangong3.jpg',2,2,1,'3@qq.com',2,'2023-05-17 14:03:01');

/*Table structure for table `zichan` */

DROP TABLE IF EXISTS `zichan`;

CREATE TABLE `zichan` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
  `zichan_uuid_number` varchar(200) DEFAULT NULL COMMENT '资产编号',
  `zichan_name` varchar(200) DEFAULT NULL COMMENT '资产名称  Search111 ',
  `zichan_photo` varchar(200) DEFAULT NULL COMMENT '资产照片',
  `zichan_danwei` varchar(200) DEFAULT NULL COMMENT '单位',
  `zichan_types` int(11) DEFAULT NULL COMMENT '资产类型 Search111',
  `zichan_kucun_number` int(11) DEFAULT NULL COMMENT '资产数量',
  `zichan_yuzhi` int(11) DEFAULT NULL COMMENT '阈值',
  `zichan_content` longtext COMMENT '资产介绍',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间  show1 show2 photoShow',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='资产';

/*Data for the table `zichan` */

insert  into `zichan`(`id`,`zichan_uuid_number`,`zichan_name`,`zichan_photo`,`zichan_danwei`,`zichan_types`,`zichan_kucun_number`,`zichan_yuzhi`,`zichan_content`,`insert_time`,`create_time`) values (1,'1684303381653','资产名称1','upload/zichan1.jpg','个',1,101,10,'资产介绍1','2023-05-17 14:03:01','2023-05-17 14:03:01'),(2,'1684303381638','资产名称2','upload/zichan2.jpg','个',3,102,10,'资产介绍2','2023-05-17 14:03:01','2023-05-17 14:03:01'),(3,'1684303381690','资产名称3','upload/zichan3.jpg','个',2,103,10,'资产介绍3','2023-05-17 14:03:01','2023-05-17 14:03:01'),(4,'1684303381694','资产名称4','upload/zichan4.jpg','个',2,104,10,'资产介绍4','2023-05-17 14:03:01','2023-05-17 14:03:01'),(5,'1684303381615','资产名称5','upload/zichan5.jpg','个',1,105,10,'资产介绍5','2023-05-17 14:03:01','2023-05-17 14:03:01'),(6,'1684303381639','资产名称6','upload/zichan6.jpg','个',3,106,10,'资产介绍6','2023-05-17 14:03:01','2023-05-17 14:03:01'),(7,'1684303381687','资产名称7','upload/zichan7.jpg','个',3,107,10,'资产介绍7','2023-05-17 14:03:01','2023-05-17 14:03:01'),(8,'1684303381656','资产名称8','upload/zichan8.jpg','个',2,108,10,'资产介绍8','2023-05-17 14:03:01','2023-05-17 14:03:01'),(9,'1684303381650','资产名称9','upload/zichan9.jpg','个',1,109,10,'资产介绍9','2023-05-17 14:03:01','2023-05-17 14:03:01'),(10,'1684303381646','资产名称10','upload/zichan10.jpg','个',3,1010,10,'资产介绍10','2023-05-17 14:03:01','2023-05-17 14:03:01'),(11,'1684303381682','资产名称11','upload/zichan11.jpg','个',3,1011,10,'资产介绍11','2023-05-17 14:03:01','2023-05-17 14:03:01'),(12,'1684303381654','资产名称12','upload/zichan12.jpg','个',2,1011,10,'资产介绍12','2023-05-17 14:03:01','2023-05-17 14:03:01'),(13,'1684303381673','资产名称13','upload/zichan13.jpg','个',1,10,10,'资产介绍13','2023-05-17 14:03:01','2023-05-17 14:03:01'),(14,'1684303381606','资产名称14','upload/zichan14.jpg','个',1,1013,10,'资产介绍14','2023-05-17 14:03:01','2023-05-17 14:03:01');

/*Table structure for table `zichan_baofei` */

DROP TABLE IF EXISTS `zichan_baofei`;

CREATE TABLE `zichan_baofei` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
  `yuangong_id` int(11) DEFAULT NULL COMMENT '员工',
  `zichan_id` int(11) DEFAULT NULL COMMENT '资产',
  `zichan_baofei_uuid_number` varchar(200) DEFAULT NULL COMMENT '资产报废编号',
  `zichan_baofei_types` int(11) DEFAULT NULL COMMENT '资产报废类型 Search111',
  `zichan_baofei_kucun_number` int(11) DEFAULT NULL COMMENT '资产报废数量',
  `zichan_baofei_content` longtext COMMENT '报废缘由',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '报废时间',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='资产报废';

/*Data for the table `zichan_baofei` */

insert  into `zichan_baofei`(`id`,`yuangong_id`,`zichan_id`,`zichan_baofei_uuid_number`,`zichan_baofei_types`,`zichan_baofei_kucun_number`,`zichan_baofei_content`,`insert_time`,`create_time`) values (1,1,1,'1684303381660',2,101,'报废缘由1','2023-05-17 14:03:01','2023-05-17 14:03:01'),(2,2,2,'1684303381611',3,102,'报废缘由2','2023-05-17 14:03:01','2023-05-17 14:03:01'),(3,2,3,'1684303381602',4,103,'报废缘由3','2023-05-17 14:03:01','2023-05-17 14:03:01'),(4,3,4,'1684303381614',3,104,'报废缘由4','2023-05-17 14:03:01','2023-05-17 14:03:01'),(5,2,5,'1684303381701',3,105,'报废缘由5','2023-05-17 14:03:01','2023-05-17 14:03:01'),(6,1,6,'1684303381683',3,106,'报废缘由6','2023-05-17 14:03:01','2023-05-17 14:03:01'),(7,3,7,'1684303381673',1,107,'报废缘由7','2023-05-17 14:03:01','2023-05-17 14:03:01'),(8,1,8,'1684303381606',2,108,'报废缘由8','2023-05-17 14:03:01','2023-05-17 14:03:01'),(9,1,9,'1684303381615',1,109,'报废缘由9','2023-05-17 14:03:01','2023-05-17 14:03:01'),(10,2,10,'1684303381688',1,1010,'报废缘由10','2023-05-17 14:03:01','2023-05-17 14:03:01'),(11,1,11,'1684303381645',1,1011,'报废缘由11','2023-05-17 14:03:01','2023-05-17 14:03:01'),(12,2,12,'1684303381641',1,1012,'报废缘由12','2023-05-17 14:03:01','2023-05-17 14:03:01'),(13,3,13,'1684303381649',3,1013,'报废缘由13','2023-05-17 14:03:01','2023-05-17 14:03:01'),(14,1,14,'1684303381691',2,1014,'报废缘由14','2023-05-17 14:03:01','2023-05-17 14:03:01'),(15,NULL,12,'1684305929093',2,1,'<p>广东省广东省固定事故</p>','2023-05-17 14:45:46','2023-05-17 14:45:46');

/*Table structure for table `zichan_shenqing` */

DROP TABLE IF EXISTS `zichan_shenqing`;

CREATE TABLE `zichan_shenqing` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
  `yuangong_id` int(11) DEFAULT NULL COMMENT '员工',
  `zichan_id` int(11) DEFAULT NULL COMMENT '资产',
  `zichan_shenqing_uuid_number` varchar(200) DEFAULT NULL COMMENT '资产申请编号',
  `zichan_shenqing_types` int(11) DEFAULT NULL COMMENT '资产申请类型 Search111',
  `zichan_shenqing_kucun_number` int(11) DEFAULT NULL COMMENT '资产申请数量',
  `zichan_shenqing_content` longtext COMMENT '申请缘由',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '申请时间',
  `zichan_shenqing_yesno_types` int(11) DEFAULT NULL COMMENT '申请状态 Search111',
  `zichan_shenqing_yesno_text` longtext COMMENT '审核意见',
  `zichan_shenqing_shenhe_time` timestamp NULL DEFAULT NULL COMMENT '审核时间',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='资产申请';

/*Data for the table `zichan_shenqing` */

insert  into `zichan_shenqing`(`id`,`yuangong_id`,`zichan_id`,`zichan_shenqing_uuid_number`,`zichan_shenqing_types`,`zichan_shenqing_kucun_number`,`zichan_shenqing_content`,`insert_time`,`zichan_shenqing_yesno_types`,`zichan_shenqing_yesno_text`,`zichan_shenqing_shenhe_time`,`create_time`) values (1,1,1,'1684303381654',4,101,'申请缘由1','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(2,2,2,'1684303381616',4,102,'申请缘由2','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(3,3,3,'1684303381621',4,103,'申请缘由3','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(4,2,4,'1684303381666',3,104,'申请缘由4','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(5,3,5,'1684303381677',4,105,'申请缘由5','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(6,3,6,'1684303381621',2,106,'申请缘由6','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(7,2,7,'1684303381650',3,107,'申请缘由7','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(8,2,8,'1684303381668',4,108,'申请缘由8','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(9,1,9,'1684303381614',4,109,'申请缘由9','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(10,2,10,'1684303381624',1,1010,'申请缘由10','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(11,3,11,'1684303381673',4,1011,'申请缘由11','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(12,1,12,'1684303381621',4,1012,'申请缘由12','2023-05-17 14:03:01',2,'同意','2023-05-17 14:03:01','2023-05-17 14:03:01'),(13,3,13,'1684303381653',2,1013,'申请缘由13','2023-05-17 14:03:01',1,NULL,NULL,'2023-05-17 14:03:01'),(14,2,14,'1684303381678',3,1014,'申请缘由14','2023-05-17 14:03:01',1,NULL,NULL,'2023-05-17 14:03:01'),(15,1,14,'1684305718100',1,10000,'<p>广东省格式的的格式</p>','2023-05-17 14:42:09',1,'',NULL,'2023-05-17 14:42:09'),(16,1,14,'1684305736879',3,1,'<p>合适的是大纲的三个</p>','2023-05-17 14:42:25',2,'孤独颂歌方式都个','2023-05-17 14:46:30','2023-05-17 14:42:25');

/*Table structure for table `ziliaoku` */

DROP TABLE IF EXISTS `ziliaoku`;

CREATE TABLE `ziliaoku` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
  `ziliaoku_uuid_number` varchar(200) DEFAULT NULL COMMENT '资料编号',
  `ziliaoku_name` varchar(200) DEFAULT NULL COMMENT '资料名称  Search111 ',
  `ziliaoku_types` int(11) DEFAULT NULL COMMENT '资料类型 Search111',
  `ziliaoku_file` varchar(200) DEFAULT NULL COMMENT '资料文件',
  `ziliaoku_content` longtext COMMENT '资料介绍',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间  show1 show2 photoShow',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='资料库';

/*Data for the table `ziliaoku` */

insert  into `ziliaoku`(`id`,`ziliaoku_uuid_number`,`ziliaoku_name`,`ziliaoku_types`,`ziliaoku_file`,`ziliaoku_content`,`insert_time`,`create_time`) values (1,'1684303381638','资料名称1',2,'upload/file.rar','资料介绍1','2023-05-17 14:03:01','2023-05-17 14:03:01'),(2,'1684303381610','资料名称2',2,'upload/file.rar','资料介绍2','2023-05-17 14:03:01','2023-05-17 14:03:01'),(3,'1684303381685','资料名称3',3,'upload/file.rar','资料介绍3','2023-05-17 14:03:01','2023-05-17 14:03:01'),(4,'1684303381629','资料名称4',2,'upload/file.rar','资料介绍4','2023-05-17 14:03:01','2023-05-17 14:03:01'),(5,'1684303381682','资料名称5',4,'upload/file.rar','资料介绍5','2023-05-17 14:03:01','2023-05-17 14:03:01'),(6,'1684303381653','资料名称6',3,'upload/file.rar','资料介绍6','2023-05-17 14:03:01','2023-05-17 14:03:01'),(7,'1684303381669','资料名称7',4,'upload/file.rar','资料介绍7','2023-05-17 14:03:01','2023-05-17 14:03:01'),(8,'1684303381615','资料名称8',2,'upload/file.rar','资料介绍8','2023-05-17 14:03:01','2023-05-17 14:03:01'),(9,'1684303381621','资料名称9',3,'upload/file.rar','资料介绍9','2023-05-17 14:03:01','2023-05-17 14:03:01'),(10,'1684303381689','资料名称10',3,'upload/file.rar','资料介绍10','2023-05-17 14:03:01','2023-05-17 14:03:01'),(11,'1684303381678','资料名称11',3,'upload/file.rar','资料介绍11','2023-05-17 14:03:01','2023-05-17 14:03:01'),(12,'1684303381651','资料名称12',3,'upload/file.rar','资料介绍12','2023-05-17 14:03:01','2023-05-17 14:03:01'),(13,'1684303381671','资料名称13',4,'upload/file.rar','资料介绍13','2023-05-17 14:03:01','2023-05-17 14:03:01'),(14,'1684303381671','资料名称14',2,'upload/file.rar','<p>资料介绍14个第三个第三个</p>','2023-05-17 14:03:01','2023-05-17 14:03:01');

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

5、关键代码

5.1 资产Controller模块 

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
 * WeChat  jsjbysj88
*/
@RestController
@Controller
@RequestMapping("/zichan")
public class ZichanController {
    private static final Logger logger = LoggerFactory.getLogger(ZichanController.class);

    private static final String TABLE_NAME = "zichan";

    @Autowired
    private ZichanService zichanService;

    @Autowired
    private TokenService tokenService;

    @Autowired
    private DictionaryService dictionaryService;//字典
    @Autowired
    private GonggaoService gonggaoService;//公告
    @Autowired
    private YuangongService yuangongService;//员工
    @Autowired
    private ZichanBaofeiService zichanBaofeiService;//资产报废
    @Autowired
    private ZichanShenqingService zichanShenqingService;//资产申请
    @Autowired
    private ZiliaokuService ziliaokuService;//资料库
    @Autowired
    private UsersService usersService;//管理员

    /**
    * 后端列表
    */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> 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,"永不会进入");
        else if("员工".equals(role))
            params.put("yuangongId",request.getSession().getAttribute("userId"));
        CommonUtil.checkMap(params);
        PageUtils page = zichanService.queryPage(params);

        //字典表数据转换
        List<ZichanView> list =(List<ZichanView>)page.getList();
        for(ZichanView c:list){
            //修改对应字典表字段
            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);
        ZichanEntity zichan = zichanService.selectById(id);
        if(zichan !=null){
            //entity转view
            ZichanView view = new ZichanView();
            BeanUtils.copyProperties( zichan , view );//把实体数据重构到view中
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(view, request);
            return R.ok().put("data", view);
        }else {
            return R.error(511,"查不到数据");
        }

    }

    /**
    * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody ZichanEntity zichan, HttpServletRequest request){
        logger.debug("save方法:,,Controller:{},,zichan:{}",this.getClass().getName(),zichan.toString());

        String role = String.valueOf(request.getSession().getAttribute("role"));
        if(false)
            return R.error(511,"永远不会进入");

        Wrapper<ZichanEntity> queryWrapper = new EntityWrapper<ZichanEntity>()
            .eq("zichan_name", zichan.getZichanName())
            .eq("zichan_danwei", zichan.getZichanDanwei())
            .eq("zichan_types", zichan.getZichanTypes())
            .eq("zichan_kucun_number", zichan.getZichanKucunNumber())
            .eq("zichan_yuzhi", zichan.getZichanYuzhi())
            ;

        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        ZichanEntity zichanEntity = zichanService.selectOne(queryWrapper);
        if(zichanEntity==null){
            zichan.setInsertTime(new Date());
            zichan.setCreateTime(new Date());
            zichanService.insert(zichan);
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }

    /**
    * 后端修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody ZichanEntity zichan, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
        logger.debug("update方法:,,Controller:{},,zichan:{}",this.getClass().getName(),zichan.toString());
        ZichanEntity oldZichanEntity = zichanService.selectById(zichan.getId());//查询原先数据

        String role = String.valueOf(request.getSession().getAttribute("role"));
//        if(false)
//            return R.error(511,"永远不会进入");
        if("".equals(zichan.getZichanPhoto()) || "null".equals(zichan.getZichanPhoto())){
                zichan.setZichanPhoto(null);
        }
        if("".equals(zichan.getZichanContent()) || "null".equals(zichan.getZichanContent())){
                zichan.setZichanContent(null);
        }

            zichanService.updateById(zichan);//根据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<ZichanEntity> oldZichanList =zichanService.selectBatchIds(Arrays.asList(ids));//要删除的数据
        zichanService.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 yuangongId = 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<ZichanEntity> zichanList = new ArrayList<>();//上传的东西
            Map<String, List<String>> 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,"找不到上传文件,请联系管理员");
                    }else{
                        List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
                        dataList.remove(0);//删除第一行,因为第一行是提示
                        for(List<String> data:dataList){
                            //循环
                            ZichanEntity zichanEntity = new ZichanEntity();
//                            zichanEntity.setZichanUuidNumber(data.get(0));                    //资产编号 要改的
//                            zichanEntity.setZichanName(data.get(0));                    //资产名称 要改的
//                            zichanEntity.setZichanPhoto("");//详情和图片
//                            zichanEntity.setZichanDanwei(data.get(0));                    //单位 要改的
//                            zichanEntity.setZichanTypes(Integer.valueOf(data.get(0)));   //资产类型 要改的
//                            zichanEntity.setZichanKucunNumber(Integer.valueOf(data.get(0)));   //资产数量 要改的
//                            zichanEntity.setZichanYuzhi(Integer.valueOf(data.get(0)));   //阈值 要改的
//                            zichanEntity.setZichanContent("");//详情和图片
//                            zichanEntity.setInsertTime(date);//时间
//                            zichanEntity.setCreateTime(date);//时间
                            zichanList.add(zichanEntity);

                            //把要查询是否重复的字段放入map中
                                //资产编号
                                if(seachFields.containsKey("zichanUuidNumber")){
                                    List<String> zichanUuidNumber = seachFields.get("zichanUuidNumber");
                                    zichanUuidNumber.add(data.get(0));//要改的
                                }else{
                                    List<String> zichanUuidNumber = new ArrayList<>();
                                    zichanUuidNumber.add(data.get(0));//要改的
                                    seachFields.put("zichanUuidNumber",zichanUuidNumber);
                                }
                        }

                        //查询是否重复
                         //资产编号
                        List<ZichanEntity> zichanEntities_zichanUuidNumber = zichanService.selectList(new EntityWrapper<ZichanEntity>().in("zichan_uuid_number", seachFields.get("zichanUuidNumber")));
                        if(zichanEntities_zichanUuidNumber.size() >0 ){
                            ArrayList<String> repeatFields = new ArrayList<>();
                            for(ZichanEntity s:zichanEntities_zichanUuidNumber){
                                repeatFields.add(s.getZichanUuidNumber());
                            }
                            return R.error(511,"数据库的该表中的 [资产编号] 字段已经存在 存在数据为:"+repeatFields.toString());
                        }
                        zichanService.insertBatch(zichanList);
                        return R.ok();
                    }
                }
            }
        }catch (Exception e){
            e.printStackTrace();
            return R.error(511,"批量插入数据异常,请联系管理员");
        }
    }
}

5.2 资产Service模块 

package com.service;

import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.ZichanEntity;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import java.util.List;

/**
 * 资产 服务类
 */
public interface ZichanService extends IService<ZichanEntity> {

    /**
    * @param params 查询参数
    * @return 带分页的查询出来的数据
    */
     PageUtils queryPage(Map<String, Object> params);
}

5.3 资产ServiceImpl模块

package com.service.impl;

import com.utils.StringUtil;
import com.service.DictionaryService;
import com.utils.ClazzDiff;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.util.*;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import com.utils.PageUtils;
import com.utils.Query;
import org.springframework.web.context.ContextLoader;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import com.dao.ZichanDao;
import com.entity.ZichanEntity;
import com.service.ZichanService;
import com.entity.view.ZichanView;

/**
 * 资产 服务实现类
 */
@Service("zichanService")
@Transactional
public class ZichanServiceImpl extends ServiceImpl<ZichanDao, ZichanEntity> implements ZichanService {

    @Override
    public PageUtils queryPage(Map<String,Object> params) {
        Page<ZichanView> page =new Query<ZichanView>(params).getPage();
        page.setRecords(baseMapper.selectListView(page,params));
        return new PageUtils(page);
    }

}

5.4 资产Dao模块

package com.dao;

import com.entity.ZichanEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import org.apache.ibatis.annotations.Param;
import com.entity.view.ZichanView;

/**
 * 资产 Dao 接口
 *
 * @author 学长编程
 * WeChat  jsjbysj88
*/
public interface ZichanDao extends BaseMapper<ZichanEntity> {

   List<ZichanView> selectListView(Pagination page,@Param("params")Map<String,Object> params);

}

6、论文目录结构

7、源码获取

感谢大家的阅读,如有不懂的问题可以评论区交流或私聊!

喜欢文章可以点赞、收藏、关注、评论

获取源码请私信

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/296373.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

rhino犀牛怎么导入和调整背景图?

rhino犀牛怎么导入和调整背景图&#xff1f;Rhino建模过程中经常要用到背景图&#xff0c;为了更加方便快捷&#xff0c;我们会直接导入一些图片来当做背景&#xff0c;那么Rhino犀牛如何导入和调整背景图呢&#xff0c;让我们一起来看看吧 打开犀牛软件&#xff0c;进入操作界…

玩转Mysql 二(MySQL的目录结构与表结构)

一路走来,所有遇到的人,帮助过我的、伤害过我的都是朋友,没有一个是敌人。 一、MYSQL目录结构及命令存放路径 1、查看MYSQL数据文件存放路径 mysql> show variables like datadir; 注意:生成环境要提前规划好数据存放目录,存储一般以T为单位闪盘。 2、MYSQL命令存放…

Android两个APP之间跳转+手机图标修改

APP之间跳转 两个APP之间跳转同样使用Intent进行跳转&#xff0c;将需要跳转的APP都下载到手机中&#xff0c;通过主APP调用需要跳转的APP包名进行跳转。 最好在其中加上try-catch语句&#xff0c;当需要跳转的APP不存在时进行错误抓取。 代码如下&#xff1a; Intent mInten…

iview inputNumber有一个默认值1,来看解决方案

iview inputNumber为什么总有一个默认值1&#xff0c;怎么让它为空。 修改编辑没问题&#xff0c;赋值都没问题&#xff0c;但是新增的时候会有默认值1&#xff0c;也没赋值 这种情况你要手动解决&#xff0c;看看当前值有没有被覆盖 我这个问题就是出现覆盖导致的 看代码似乎…

生信技能33 - gnomAD数据库hg19/hg38 VCF文件批量下载脚本

gnomAD数据库下载地址 gnomAD downloads gnomAD v2.1.1数据集包含来自125,748个外显子组和15,708个全基因组的数据,所有这些数据都映射到GRCh 37/hg 19和GRCh 38/hg 38 两个版本的参考序列。 gnomAD数据库hg19与hg39 VCF文件批量下载脚本 download.sh # 获取当前目录路径…

STM32 IAP学习

STM32三种烧录方式 ISP&#xff1a;In System Programming&#xff08;在系统编程&#xff09; 执行芯片厂商的BootLoader程序进入ISP模式&#xff0c;进入ISP模式后&#xff0c;用户可选择官方提供的烧录通信接口&#xff08;如&#xff1a;串口&#xff09;&#xff0c;并配…

机械配件移动商城课程概述

项目介绍 开发准备 任务 开源库介绍 框架搭建 工具类

单机部署Rancher

上次已经安装完毕了k8s了&#xff0c;但是想要界面化的管理&#xff0c;离不开界面工具&#xff0c;首推就是rancher&#xff0c;本文介绍安装rancher的安装&#xff0c;也可以将之前安装的k8s管理起来。 已经安装完毕docker和docker-ce的可以直接从第三部分开始。 一、基础准…

Rockchip平台双屏异显功能实现(基于Android13)

Rockchip平台双屏异显功能实现(基于Android13) 1. 异显实现方案 Rockchip SDK平台支持两种不同的异显方案&#xff1a;Android Presentation和Android Activity指定屏幕启动。 使用Android Presentation方案&#xff0c;需要在APP开发中调用相应接口以使指定视图&#xff08…

Debezium发布历史49

原文地址&#xff1a; https://debezium.io/blog/2019/02/19/reliable-microservices-data-exchange-with-the-outbox-pattern/ 欢迎关注留言&#xff0c;我是收集整理小能手&#xff0c;工具翻译&#xff0c;仅供参考&#xff0c;笔芯笔芯. 使用发件箱模式进行可靠的微服务数…

FSMC驱动LCD

FSMC( Flexible static memory controller)全称“灵活的静态存储器控制器”&#xff0c;是 STM32中一个很有特色的外设&#xff0c;通过 FSMC&#xff0c;STM32可以通过FSMC与SRAM、ROM、PSRAM、Nor Flash和NandFlash存储器的引脚相连&#xff0c;从而进行数据的交换。 FSMC的本…

Java面试项目推荐,异构数据源数据流转服务DatalinkX

前言 作为一个年迈的夹娃练习生&#xff0c;每次到了春招秋招面试实习生时都能看到一批简历&#xff0c;十个简历里得有七八个是写商城或者外卖项目。 不由得想到了我大四那会&#xff0c;由于没有啥项目经验&#xff0c;又想借一个质量高点的项目通过简历初筛&#xff0c;就…

LeetCode 2221. 数组的三角和

文章目录 1. 题目 2. 解题 1. 题目 给你一个下标从 0 开始的整数数组 nums ,其中 nums[i] 是 0 到 9 之间(两者都包含)的一个数字。 nums 的 三角和 是执行以下操作以后最后剩下元素的值: nums 初始包含 n 个元素。如果 n == 1 ,终止 …

系列十一、(三)Sentinel控制台

一、Sentinel控制台 二、实时监控 2.1、概述 实时监控&#xff0c;顾名思义是用来实时监控的&#xff0c;具体监控的是接口请求通过的QPS和拒绝的QPS&#xff0c;默认情况下没有访问记录&#xff0c;所以看不到任何记录&#xff0c;需要访问接口才会有记录。另外需要注意&…

每10分钟一更新的实时卫星影像

我们为大家分享了一个可以查看下载高时效卫星影像的方法。 这里再为大家推荐一个可以查看近乎实时的卫星影像的网站&#xff0c;卫星影像每10分钟更新一次。 实时卫星影像 打开网站&#xff08;zoom.earth&#xff09;&#xff0c;可以查看实时卫星影像画面&#xff0c;在左…

[C#]C# OpenVINO部署yolov8图像分类模型

【官方框架地址】 https://github.com/ultralytics/ultralytics.git 【算法介绍】 YOLOv8 抛弃了前几代模型的 Anchor-Base。 YOLO 是一种基于图像全局信息进行预测的目标检测系统。自 2015 年 Joseph Redmon、Ali Farhadi 等人提出初代模型以来&#xff0c;领域内的研究者们…

2024年天津体育学院专升本专业考试考生入场及考前须知

天津体育学院2024年高职升本科招生专业考试考生考前须知 一、考生入场及考试要求 1.考生于1月6日笔试考试当天&#xff0c;根据考试时间提前30分钟到达天津体育学院新校区东门&#xff0c;凭专业考试准考证、有效身份证原件&#xff0c;经查验合格后方可允许进入学校。 2.笔…

python语言在web上的应用:如何节省服务器资源?

背景介绍​ 在web开发中的应用广泛​ 在web开发中的应用广泛。随着互联网的发展&#xff0c;web应用越来越普遍&#xff0c;而Python作为一种简洁、高效的编程语言&#xff0c;被广泛应用于web开发领域。Python提供了丰富的库和框架&#xff0c;如Django、Flask等&#xff0c…

软件验收测试计划、验收测试报告案例模板参考

1. 概述 1.1. 编写目的 1.2. 测试背景 1.3. 测试依据 1.4. 测试对象 1.5. 测试资源 2. 测试方式与环境 2.1. 测试方式 2.2. 测试环境 3. 测试结果 3.1. 功能适合性和准确性 3.1.1. 总体统计 3.1.2. 详细结果 3.2. 安全性 3.3. 可靠性和性能 4. 总体分析 5. 测试…

数字逻辑电路入门:从晶体管到逻辑门

数字逻辑电路入门&#xff1a;从晶体管到逻辑门 这是数字逻辑电路中最基础的部分。但是并非那么容易理解。 1、晶体管 mosfet&#xff1a;场效应晶体管&#xff0c;是电压控制元件。cmos&#xff1a;是指由mos管构成的门级电路通常是互补的。BJT&#xff1a;一种三极管&…