Browse Source

留存v1.1.0数据库sql文件

LinWuTai 1 year ago
parent
commit
89d2c423de

+ 11 - 5
ruoyi-admin/src/main/java/com/ruoyi/order/controller/TbOrderController.java

@@ -155,13 +155,14 @@ public class TbOrderController extends BaseController
             }
         } else if (type.equals(OrderTypeEnum.LEND.getTypeCode())) {
             // 资产借出
-            TbOrder.lendOrder(tbOrder);
+            // TbOrder.lendOrder(tbOrder);
 
-            AjaxResult ajaxResult = checkLendOrder(tbOrder);
+            // AjaxResult ajaxResult = checkLendOrder(tbOrder);
 
-            if (ajaxResult != null) {
-                return ajaxResult;
-            }
+            // if (ajaxResult != null) {
+            //     return ajaxResult;
+            // }
+            throw new RuntimeException("[资产借出]功能已移植");
         } else {
             // 资产其他变动
             TbOrder.otherOrder(tbOrder);
@@ -207,6 +208,11 @@ public class TbOrderController extends BaseController
     @PutMapping
     public AjaxResult edit(@RequestBody TbOrder tbOrder)
     {
+        Long orderType = tbOrder.getOrderType();
+        if (orderType.equals(OrderTypeEnum.LEND.getTypeCode())) {
+            // 资产借出
+            throw new RuntimeException("[资产借出]功能已移植");
+        }
         return toAjax(tbOrderService.updateTbOrder(tbOrder));
     }
 

+ 0 - 22
sql/borrowMenu.sql

@@ -1,22 +0,0 @@
--- 菜单 SQL
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用', '2000', '1', 'borrow', 'asset/borrow/index', 1, 0, 'C', '0', '0', 'asset:borrow:list', '#', 'admin', sysdate(), '', null, '资产借用菜单');
-
--- 按钮父菜单ID
-SELECT @parentId := LAST_INSERT_ID();
-
--- 按钮 SQL
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'asset:borrow:query',        '#', 'admin', sysdate(), '', null, '');
-
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'asset:borrow:add',          '#', 'admin', sysdate(), '', null, '');
-
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'asset:borrow:edit',         '#', 'admin', sysdate(), '', null, '');
-
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'asset:borrow:remove',       '#', 'admin', sysdate(), '', null, '');
-
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('资产借用导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'asset:borrow:export',       '#', 'admin', sysdate(), '', null, '');

File diff suppressed because it is too large
+ 442 - 229
sql/rfid-hotel-manager.sql


+ 0 - 48
sql/tb_asset_borrow_record.sql

@@ -1,48 +0,0 @@
-/*
- Navicat Premium Data Transfer
-
- Source Server         : localhost_3306
- Source Server Type    : MySQL
- Source Server Version : 80023 (8.0.23)
- Source Host           : localhost:3306
- Source Schema         : rfid_db
-
- Target Server Type    : MySQL
- Target Server Version : 80023 (8.0.23)
- File Encoding         : 65001
-
- Date: 11/01/2024 17:57:15
-*/
-
-SET NAMES utf8mb4;
-SET FOREIGN_KEY_CHECKS = 0;
-
--- ----------------------------
--- Table structure for tb_asset_borrow_record
--- ----------------------------
-DROP TABLE IF EXISTS `tb_asset_borrow_record`;
-CREATE TABLE `tb_asset_borrow_record`  (
-  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
-  `asset_id` bigint NOT NULL COMMENT '借出资产ID',
-  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '借出人用户名',
-  `borrow_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '借出时间',
-  `borrow_location_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '借出位置编码',
-  `expected_return_time` timestamp NOT NULL COMMENT '预计归还时间',
-  `is_return` int NOT NULL DEFAULT 0 COMMENT '是否归还,0:否,1:是',
-  `return_time` timestamp NULL DEFAULT NULL COMMENT '归还时间',
-  `return_location_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '归还位置编码',
-  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
-  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
-  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
-  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
-  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
-  PRIMARY KEY (`id`) USING BTREE,
-  INDEX `asset_id`(`asset_id` ASC) USING BTREE,
-  INDEX `borrow_location_number`(`borrow_location_number` ASC) USING BTREE,
-  INDEX `return_location_number`(`return_location_number` ASC) USING BTREE,
-  CONSTRAINT `tb_asset_borrow_record_ibfk_1` FOREIGN KEY (`asset_id`) REFERENCES `tb_asset_information` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
-  CONSTRAINT `tb_asset_borrow_record_ibfk_2` FOREIGN KEY (`borrow_location_number`) REFERENCES `tb_location` (`number`) ON DELETE RESTRICT ON UPDATE RESTRICT,
-  CONSTRAINT `tb_asset_borrow_record_ibfk_3` FOREIGN KEY (`return_location_number`) REFERENCES `tb_location` (`number`) ON DELETE RESTRICT ON UPDATE RESTRICT
-) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '资产借用记录表' ROW_FORMAT = Dynamic;
-
-SET FOREIGN_KEY_CHECKS = 1;

Some files were not shown because too many files changed in this diff