新增已执行次数字段;

自定义前端表头字段相关操作类
dev2.0
anthonywj 2 years ago
parent 24cd753745
commit dec79c047d

@ -0,0 +1,10 @@
package com.glxp.api.dao.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.system.SysTableHeadEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SysTableHeadMapper extends BaseMapperPlus<SysTableHeadMapper, SysTableHeadEntity, SysTableHeadEntity> {
}

@ -131,4 +131,9 @@ public class DeviceInspectPlanEntity {
*/ */
private Integer useFrequency; private Integer useFrequency;
/**
*
*/
private Integer executeCount;
} }

@ -0,0 +1,90 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
@Data
@TableName(value = "sys_table_head")
public class SysTableHeadEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
*
*/
@TableField(value = "page")
private String page;
/**
*
*/
@TableField(value = "response")
private String response;
/**
*
*/
@TableField(value = "`label`")
private String label;
/**
*
*/
@TableField(value = "prop")
private String prop;
/**
*
*/
@TableField(value = "width")
private Double width;
/**
*
*/
@TableField(value = "isShow")
private String isShow;
/**
*
*/
@TableField(value = "isAuto")
private String isAuto;
/**
* tooltip
*/
@TableField(value = "overflow")
private Byte overflow;
/**
*
*/
@TableField(value = "sort")
private Integer sort;
/**
*
*/
@TableField(value = "customSort")
private Byte customSort;
/**
*
*/
@TableField(value = "remark")
private String remark;
/**
*
*/
@TableField(value = "updateTime")
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,13 @@
package com.glxp.api.service.system;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.system.SysTableHeadEntity;
import com.glxp.api.dao.system.SysTableHeadMapper;
@Service
public class SysTableHeadService extends ServiceImpl<SysTableHeadMapper, SysTableHeadEntity> {
}

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.system.SysTableHeadMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysTableHeadEntity">
<!--@mbg.generated-->
<!--@Table sys_table_head-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="page" jdbcType="VARCHAR" property="page" />
<result column="response" jdbcType="VARCHAR" property="response" />
<result column="label" jdbcType="VARCHAR" property="label" />
<result column="prop" jdbcType="VARCHAR" property="prop" />
<result column="width" jdbcType="DOUBLE" property="width" />
<result column="isShow" jdbcType="VARCHAR" property="isShow" />
<result column="isAuto" jdbcType="VARCHAR" property="isAuto" />
<result column="overflow" jdbcType="TINYINT" property="overflow" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="customSort" jdbcType="TINYINT" property="customSort" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, page, response, `label`, prop, width, isShow, isAuto, overflow, sort, customSort,
remark, updateTime
</sql>
</mapper>

@ -180,28 +180,37 @@ CALL Pro_Temp_ColumnWork('sync_data_set', 'deviceTask', 'tinyint', 1);
# INSERT ignore INTO `udi_wms_wmd`.`auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2001, '我的领用单', 1685, 1, 'inout/receive/receiveMySearch', 'inout/receive/receiveMySearch', NULL, 1, 0, 'C', '0', '0', NULL, NULL, '超级用户', '2023-08-14 10:35:30', NULL, NULL, NULL); # INSERT ignore INTO `udi_wms_wmd`.`auth_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2001, '我的领用单', 1685, 1, 'inout/receive/receiveMySearch', 'inout/receive/receiveMySearch', NULL, 1, 0, 'C', '0', '0', NULL, NULL, '超级用户', '2023-08-14 10:35:30', NULL, NULL, NULL);
# #
INSERT ignore INTO `sys_param_config`(`id`, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`, `paramType`, `paramExplain`, `updateTime`) VALUES (20068, 0, '设备领用是否选取耗材字段', 'device_product', '0', 1, 0, '01', NULL); INSERT ignore INTO `sys_param_config`(`id`, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`,
INSERT ignore INTO `sys_pdf_template_relevance_label` (`id`, `templateId`, `customerId`, `adminId`, `moduleId`, `localAction`, `remark1`, `remark2`, `remark3`, `printType`, `modelKey`, `updateTime`) VALUES (5, 3, 110, 0, 9, '设备打印', NULL, NULL, NULL, NULL, 'lable', '2023-06-25 15:18:37'); `paramType`, `paramExplain`, `updateTime`)
VALUES (20068, 0, '设备领用是否选取耗材字段', 'device_product', '0', 1, 0, '01', NULL);
INSERT ignore INTO `sys_pdf_template_relevance_label` (`id`, `templateId`, `customerId`, `adminId`, `moduleId`,
`localAction`, `remark1`, `remark2`, `remark3`, `printType`,
CREATE TABLE IF NOT EXISTS `device_asset_cert` ( `modelKey`, `updateTime`)
`id` bigint NOT NULL, VALUES (5, 3, 110, 0, 9, '设备打印', NULL, NULL, NULL, NULL, 'lable', '2023-06-25 15:18:37');
`devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码外键',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书名称',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书编码',
`filePath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '文件路径', CREATE TABLE IF NOT EXISTS `device_asset_cert`
`vailDate` datetime(0) NULL DEFAULT NULL COMMENT '生效期', (
`expireDate` datetime(0) NULL DEFAULT NULL COMMENT '失效期', `id` bigint NOT NULL,
`status` tinyint NULL DEFAULT NULL COMMENT '证书状态', `devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码外键',
`type` tinyint NULL DEFAULT NULL COMMENT '证书类型1资质证书2技术材料', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书名称',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明', `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书编码',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人', `filePath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '文件路径',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `vailDate` datetime(0) NULL DEFAULT NULL COMMENT '生效期',
`updateUser` datetime(0) NULL DEFAULT NULL COMMENT '更新人', `expireDate` datetime(0) NULL DEFAULT NULL COMMENT '失效期',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `status` tinyint NULL DEFAULT NULL COMMENT '证书状态',
PRIMARY KEY (`id`) USING BTREE `type` tinyint NULL DEFAULT NULL COMMENT '证书类型1资质证书2技术材料',
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC; `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateUser` datetime(0) NULL DEFAULT NULL COMMENT '更新人',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of device_asset_cert -- Records of device_asset_cert
@ -210,36 +219,48 @@ CREATE TABLE IF NOT EXISTS `device_asset_cert` (
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
CREATE TABLE IF NOT EXISTS `device_asset_user` ( CREATE TABLE IF NOT EXISTS `device_asset_user`
`id` bigint NOT NULL COMMENT '雪花ID', (
`devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码', `id` bigint NOT NULL COMMENT '雪花ID',
`userName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '相关人员名称', `devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码',
`contact1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式1', `userName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '相关人员名称',
`contact2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式2', `contact1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式1',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明', `contact2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式2',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`updateUser` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人', `createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `updateUser` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`) USING BTREE `updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
CREATE TABLE IF NOT EXISTS `device_asset_usage` ( COLLATE = utf8mb4_0900_ai_ci
`id` bigint NOT NULL COMMENT '雪花ID', ROW_FORMAT = Dynamic;
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '使用记录号',
`user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '使用人',
`startTime` datetime(0) NULL DEFAULT NULL COMMENT '开始时间', CREATE TABLE IF NOT EXISTS `device_asset_usage`
`endTime` datetime(0) NULL DEFAULT NULL COMMENT '结束时间', (
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', `id` bigint NOT NULL COMMENT '雪花ID',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人', `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '使用记录号',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', `user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '使用人',
`updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人', `startTime` datetime(0) NULL DEFAULT NULL COMMENT '开始时间',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `endTime` datetime(0) NULL DEFAULT NULL COMMENT '结束时间',
PRIMARY KEY (`id`) USING BTREE `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; `createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = Dynamic;
CALL Pro_Temp_ColumnWork('dept_device_detail', 'curUser', 'varchar(255)', 1); CALL Pro_Temp_ColumnWork('dept_device_detail', 'curUser', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('dept_device_detail', 'location', 'varchar(255)', 1); CALL Pro_Temp_ColumnWork('dept_device_detail', 'location', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('dept_device_detail', 'detailLocation', 'varchar(255)', 1); CALL Pro_Temp_ColumnWork('dept_device_detail', 'detailLocation', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('device_inspect_plan', 'executeCount', 'int', 1);
CALL Pro_Temp_ColumnWork('device_inspect_plan', 'useFrequency', 'int', 1);

Loading…
Cancel
Save