|
|
# # 字段新增 (表名,字段名,字段类型,修改方式(1:新增,2:修改,3:删除)
|
|
|
#
|
|
|
#
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_info`
|
|
|
(
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编码',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门编码',
|
|
|
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '1.正常,2变更归属中,3.维修申请中 4.维修中 6.销毁/报废',
|
|
|
`checkLock` bit(1) NOT NULL DEFAULT b'0' COMMENT '巡检锁定',
|
|
|
`udi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UDI码',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'DI码',
|
|
|
`productId` bigint NOT NULL COMMENT '产品id',
|
|
|
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '产品名称',
|
|
|
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '规格型号',
|
|
|
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '批次号',
|
|
|
`serialNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '序列号',
|
|
|
`productionDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产日期',
|
|
|
`expireDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '失效日期',
|
|
|
`manufactory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产厂家',
|
|
|
`measname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '计量单位',
|
|
|
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '注册/备案凭证号',
|
|
|
`supId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商ID',
|
|
|
`supName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商名称',
|
|
|
`changeCount` int NOT NULL DEFAULT '0' COMMENT '变更次数',
|
|
|
`repairApplyCount` int NOT NULL DEFAULT '0' COMMENT '报修次数',
|
|
|
`repairCount` int NOT NULL DEFAULT '0' COMMENT '维修次数',
|
|
|
`checkCount` int NOT NULL DEFAULT '0' COMMENT '巡检次数',
|
|
|
`lastChangeOrderId` bigint NOT NULL COMMENT '最后变更单号',
|
|
|
`lastRepairApplyId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后报修申请单号',
|
|
|
`lastRepairApplyTime` datetime DEFAULT NULL COMMENT '最后报修时间',
|
|
|
`lastRepairId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后维修单号',
|
|
|
`lastRepairUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后维修负责人名称',
|
|
|
`lastRepairUserPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后维修人联系电话',
|
|
|
`lastRepairTime` datetime DEFAULT NULL COMMENT '最后维修时间',
|
|
|
`lastCheckUserId` bigint DEFAULT NULL COMMENT '最后检查/巡检负责人',
|
|
|
`lastCheckUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后检查/巡检负责人名称',
|
|
|
`lastCheckPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '最后检查/巡检人联系电话',
|
|
|
`lastCheckTime` datetime DEFAULT NULL COMMENT '最后检查/巡检时间',
|
|
|
`lastCheckTaskId` bigint DEFAULT NULL COMMENT '最后检查/巡检任务id',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
`createUserId` bigint NOT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人名称',
|
|
|
`assetType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产分类',
|
|
|
`sasacType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '国资分类',
|
|
|
`assetMnemonicCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产助记码',
|
|
|
`number` int DEFAULT '1' COMMENT '数量',
|
|
|
`acquisitionMethod` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取得方式',
|
|
|
`purpose` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用途',
|
|
|
`depreciationYear` int(10) unsigned zerofill DEFAULT NULL COMMENT '折旧年',
|
|
|
`depreciationMonth` int(10) unsigned zerofill DEFAULT NULL COMMENT '折旧月',
|
|
|
`invCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '存储仓库',
|
|
|
`estimatedTotalHour` int(10) unsigned zerofill DEFAULT NULL COMMENT '预计总工时',
|
|
|
`dayHour` int(10) unsigned zerofill DEFAULT NULL COMMENT '单日工时',
|
|
|
`assetValue` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '单个资产价值',
|
|
|
`ownFund` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '自有资金',
|
|
|
`financialAppropriation` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '财政拨款',
|
|
|
`educationFund` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '科教基金',
|
|
|
`otherFund` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '其他资金',
|
|
|
`nonPeerFinancialAppropriation` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '非同级财政拨款',
|
|
|
`ybbm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '医疗器械分类编码',
|
|
|
`catalogname1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '一级分类名称(学科,品名)',
|
|
|
`catalogname2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '二级分类名称(用途、品目)',
|
|
|
`catalogname3` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '三级分类名称(部位、功能、品种)',
|
|
|
`catalogCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '编码',
|
|
|
`catalogCode1` bigint DEFAULT NULL COMMENT '一级分类名称(学科,品名)',
|
|
|
`catalogCode2` bigint DEFAULT NULL COMMENT '二级分类名称(用途、品目)',
|
|
|
`catalogCode3` bigint DEFAULT NULL COMMENT '三级分类名称(部位、功能、品种)',
|
|
|
`managementCategory` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '管理类别',
|
|
|
`endUser` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '使用人',
|
|
|
`estimatedResidualValue` decimal(10, 2) unsigned zerofill DEFAULT NULL COMMENT '预计残值',
|
|
|
`currencyType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '币种',
|
|
|
`purType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '采购类型',
|
|
|
`purchaseDate` date DEFAULT NULL COMMENT '购置日期',
|
|
|
`addDate` date DEFAULT NULL COMMENT '添加日期',
|
|
|
`assetName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产品名',
|
|
|
`isImperative` bigint DEFAULT NULL COMMENT '是否强检',
|
|
|
`isMaintain` bigint DEFAULT NULL COMMENT '是否保养',
|
|
|
`imperativeCycle` bigint DEFAULT NULL COMMENT '检定周期(月)',
|
|
|
`maintainCycle` bigint DEFAULT NULL COMMENT '保养周期(月)',
|
|
|
`startImperativeDate` date DEFAULT NULL COMMENT '开始检定日期',
|
|
|
`startMaintainDate` date DEFAULT NULL COMMENT '开始保养日期',
|
|
|
`serviceType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '维修组',
|
|
|
`maintainType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '保养组',
|
|
|
`managerUser` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '管理人',
|
|
|
`approveUser` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '审核人',
|
|
|
`ledgerAccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '对应会计科目',
|
|
|
`impairmentProvision` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '减值准备',
|
|
|
`estimatedWorkload` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '预计工作量',
|
|
|
`completedWorkload` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '已完成工作量',
|
|
|
`maintenanceType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '维保类型',
|
|
|
`maintenanceCycle` bigint DEFAULT NULL COMMENT '维保周期',
|
|
|
`startMaintenancDate` date DEFAULT NULL COMMENT '维保开始日期',
|
|
|
`endMaintenancDate` date DEFAULT NULL COMMENT '维保结束日期',
|
|
|
`networkType` bigint DEFAULT NULL COMMENT '内外网',
|
|
|
`UserRole` bigint DEFAULT NULL COMMENT '使用角色',
|
|
|
`isAddDomain` bigint DEFAULT NULL COMMENT '是否加域',
|
|
|
`isUDisc` bigint DEFAULT NULL COMMENT 'u盘是否禁用',
|
|
|
`ascriptionType` bigint DEFAULT NULL COMMENT '设备归类',
|
|
|
`assetReserveType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '资产备用类型',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更改日期',
|
|
|
PRIMARY KEY (`deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备表'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE if not exists `device_check`
|
|
|
(
|
|
|
`taskId` bigint NOT NULL COMMENT '巡检任务id',
|
|
|
`planId` bigint DEFAULT NULL COMMENT '计划id',
|
|
|
`planName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '计划名称',
|
|
|
`chargeDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '负责部门编码',
|
|
|
`checkUserId` bigint DEFAULT NULL COMMENT '巡检人id',
|
|
|
`checkUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检人姓名',
|
|
|
`checkUserPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检人电话',
|
|
|
`deviceCount` int NOT NULL COMMENT '设备数量',
|
|
|
`finishCount` int NOT NULL DEFAULT '0' COMMENT '完成设备数量',
|
|
|
`exceptionCount` int NOT NULL DEFAULT '0' COMMENT '异常数量',
|
|
|
`finishTime` datetime DEFAULT NULL COMMENT '完成时间',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名称',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '任务备注',
|
|
|
`sysFlag` bit(1) NOT NULL COMMENT '是否系统创建 1/true 是 0/false 否',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已完成',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
`createUserId` bigint DEFAULT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '创建人姓名',
|
|
|
`updateTime` datetime DEFAULT NULL,
|
|
|
PRIMARY KEY (`taskId`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='巡检任务表'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_check_detail`
|
|
|
(
|
|
|
`taskId` bigint NOT NULL COMMENT '任务id',
|
|
|
`deviceCode` varbinary(255) NOT NULL COMMENT '设备编码',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门编码',
|
|
|
`deptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '部门名称',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已完成 1/true 0/false',
|
|
|
`productId` bigint NOT NULL COMMENT '产品id',
|
|
|
`udi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UDI码',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'DI码',
|
|
|
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '产品名称',
|
|
|
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '规格型号',
|
|
|
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '批次号',
|
|
|
`serialNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '序列号',
|
|
|
`productionDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产日期',
|
|
|
`expireDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '失效日期',
|
|
|
`manufactory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产厂家',
|
|
|
`measname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '计量单位',
|
|
|
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '注册/备案凭证号',
|
|
|
`supId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商ID',
|
|
|
`supName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商名称',
|
|
|
`itemCount` int NOT NULL DEFAULT '0' COMMENT '项目数量',
|
|
|
`exceptionCount` int NOT NULL DEFAULT '0' COMMENT '异常数量',
|
|
|
`finishCount` int NOT NULL DEFAULT '0' COMMENT '完成项目数量',
|
|
|
`finishTime` datetime DEFAULT NULL COMMENT '完成时间',
|
|
|
`repairId` bigint DEFAULT NULL COMMENT '维修单id',
|
|
|
`normalFlag` tinyint DEFAULT NULL COMMENT '巡检状态 :0:异常;1.正常',
|
|
|
`livePath` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '现场照片',
|
|
|
`suggestion` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检建议',
|
|
|
`applyId` bigint DEFAULT NULL COMMENT '报修单id',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更改时间',
|
|
|
PRIMARY KEY (`taskId`, `deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='巡检任务明细'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_check_detail_item`
|
|
|
(
|
|
|
`taskId` bigint NOT NULL COMMENT '任务id',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编码',
|
|
|
`itemCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目编码',
|
|
|
`itemName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目名称',
|
|
|
`itemContent` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目内容',
|
|
|
`normalFlag` bit(1) DEFAULT NULL COMMENT '正常标识',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '完成标识',
|
|
|
`finishTime` datetime DEFAULT NULL COMMENT '完成时间',
|
|
|
`suggestion` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '巡检建议',
|
|
|
`checkUserId` bigint DEFAULT NULL COMMENT '巡检人id',
|
|
|
`checkUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检人姓名',
|
|
|
`checkDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检部门',
|
|
|
`checkDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '巡检部门名称',
|
|
|
`updateTime` datetime DEFAULT NULL,
|
|
|
PRIMARY KEY (`taskId`, `deviceCode`, `itemCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备巡检项目'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_repair`
|
|
|
(
|
|
|
`id` bigint NOT NULL COMMENT '维修id',
|
|
|
`applyId` bigint DEFAULT NULL COMMENT '维修申请id',
|
|
|
`checkTaskId` bigint DEFAULT NULL COMMENT '巡检任务单id',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已完成 true/false',
|
|
|
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '问题描述',
|
|
|
`diagnosisInfo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '诊断信息',
|
|
|
`innerFlag` bit(1) DEFAULT NULL COMMENT '是否内部维修',
|
|
|
`repairUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '维修人姓名',
|
|
|
`repairUserPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '维修人联系方式',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备码',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门编码',
|
|
|
`deptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门名称',
|
|
|
`productId` bigint NOT NULL COMMENT '产品id',
|
|
|
`udi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UDI码',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'DI码',
|
|
|
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '产品名称',
|
|
|
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '规格型号',
|
|
|
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '批次号',
|
|
|
`serialNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '序列号',
|
|
|
`productionDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产日期',
|
|
|
`expireDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '失效日期',
|
|
|
`manufactory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产厂家',
|
|
|
`measname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '计量单位',
|
|
|
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '注册/备案凭证号',
|
|
|
`supId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商ID',
|
|
|
`supName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商名称',
|
|
|
`createUserId` bigint NOT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人姓名',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
`createDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建部门',
|
|
|
`createDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建部门名称',
|
|
|
`confirmUserId` bigint DEFAULT NULL COMMENT '确认人id',
|
|
|
`confirmUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人姓名',
|
|
|
`confirmTime` datetime DEFAULT NULL COMMENT '确认时间',
|
|
|
`confirmRemark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '确认备注',
|
|
|
`confirmDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门',
|
|
|
`confirmDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门名称',
|
|
|
`confirmPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人联系方式',
|
|
|
`repairDeptCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '维修部门',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备维修单'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_repair_apply`
|
|
|
(
|
|
|
`id` bigint NOT NULL COMMENT '报修单id',
|
|
|
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '状态 待受理,受理中,维修中,完成',
|
|
|
`applyDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报修部门编码',
|
|
|
`applyDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报修部门',
|
|
|
`applyUserId` bigint NOT NULL COMMENT '报修人id',
|
|
|
`applyUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报修人姓名',
|
|
|
`applyUserPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报修人联系方式',
|
|
|
`applyTime` datetime NOT NULL COMMENT '报修时间',
|
|
|
`deviceCount` int NOT NULL COMMENT '设备数量',
|
|
|
`finishCount` int NOT NULL DEFAULT '0' COMMENT '完成数量',
|
|
|
`confirmDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门',
|
|
|
`confirmDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门名称',
|
|
|
`confirmUserId` bigint DEFAULT NULL COMMENT '确认人id',
|
|
|
`confirmUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人姓名',
|
|
|
`confirmPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人联系方式',
|
|
|
`confirmTime` datetime DEFAULT NULL COMMENT '确认时间',
|
|
|
`finishTime` datetime DEFAULT NULL COMMENT '完成时间',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备报修单'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_repair_apply_detail`
|
|
|
(
|
|
|
`applyId` bigint NOT NULL COMMENT '报修单id',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编码',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门编码',
|
|
|
`deptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门名称',
|
|
|
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '问题描述',
|
|
|
`diagnosisInfo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '诊断信息',
|
|
|
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '\0' COMMENT '状态 待诊断、待维修、维修中、完成',
|
|
|
`repairFlag` bit(1) DEFAULT NULL COMMENT '是否需要维修 true/false',
|
|
|
`repairId` bigint DEFAULT NULL COMMENT '维修单id',
|
|
|
`productId` bigint NOT NULL COMMENT '产品id',
|
|
|
`udi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'UDI码',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'DI码',
|
|
|
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '产品名称',
|
|
|
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '规格型号',
|
|
|
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '批次号',
|
|
|
`serialNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '序列号',
|
|
|
`productionDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产日期',
|
|
|
`expireDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '失效日期',
|
|
|
`manufactory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产厂家',
|
|
|
`measname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '计量单位',
|
|
|
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '注册/备案凭证号',
|
|
|
`supId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商ID',
|
|
|
`supName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商名称',
|
|
|
`confirmUserId` bigint DEFAULT NULL COMMENT '确认人id',
|
|
|
`confirmUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人姓名',
|
|
|
`confirmTime` datetime DEFAULT NULL COMMENT '确认时间',
|
|
|
`confirmRemark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '确认备注',
|
|
|
`confirmDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门',
|
|
|
`confirmDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认部门名称',
|
|
|
`finishTime` datetime DEFAULT NULL COMMENT '完成时间',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
|
PRIMARY KEY (`applyId`, `deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备报修单明细'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_plan`
|
|
|
(
|
|
|
`planId` bigint NOT NULL COMMENT '计划id',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '计划名称',
|
|
|
`chargeDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '负责部门',
|
|
|
`startDate` date NOT NULL COMMENT '开始日期',
|
|
|
`endDate` date NOT NULL COMMENT '结束日期',
|
|
|
`frequency` int NOT NULL COMMENT '频率(天)',
|
|
|
`execCount` int NOT NULL DEFAULT '0' COMMENT '执行次数',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '备注',
|
|
|
`createUserId` bigint NOT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人名称',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
`status` tinyint DEFAULT NULL COMMENT '设备巡检计划状态 :1:草稿;2.已提交',
|
|
|
PRIMARY KEY (`planId`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备巡检计划'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_plan_detail`
|
|
|
(
|
|
|
`planId` bigint NOT NULL COMMENT '计划id',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编号',
|
|
|
`productId` bigint NOT NULL COMMENT '产品id',
|
|
|
PRIMARY KEY (`planId`, `deviceCode`) USING BTREE,
|
|
|
UNIQUE KEY `uk_planId_productId` (`planId`, `deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='巡检计划明细'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_plan_detail_item`
|
|
|
(
|
|
|
`planId` bigint NOT NULL COMMENT '巡检计划明细id',
|
|
|
`productId` bigint NOT NULL COMMENT '巡检计划产品id',
|
|
|
`itemCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目编码',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目名称',
|
|
|
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目内容',
|
|
|
PRIMARY KEY (`planId`, `productId`, `itemCode`) USING BTREE,
|
|
|
UNIQUE KEY `uk_planId_deviceCode_itemCode` (`planId`, `itemCode`, `deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='巡检设备的项目'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_check_item_dict`
|
|
|
(
|
|
|
`code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目编码',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目名称',
|
|
|
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目内容',
|
|
|
`createUserId` bigint NOT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人名称',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
PRIMARY KEY (`code`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='巡检项目字典'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_change_log`
|
|
|
(
|
|
|
`id` bigint NOT NULL COMMENT '日志id',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编码',
|
|
|
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'add:新增入库,change:变更归属',
|
|
|
`changeOrderId` bigint NOT NULL COMMENT '变更单号',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作部门',
|
|
|
`deptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作部门',
|
|
|
`toDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '目标部门',
|
|
|
`toDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '目标部门',
|
|
|
`confirmUser` bigint NOT NULL COMMENT '确认人id',
|
|
|
`confirmUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '确认人姓名',
|
|
|
`confirmTime` datetime NOT NULL COMMENT '确认时间',
|
|
|
`confirmRemark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '确认备注',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '备注',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作人姓名',
|
|
|
`createUser` bigint NOT NULL COMMENT '操作人id',
|
|
|
`createTime` datetime NOT NULL COMMENT '操作时间',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备变更日志表'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `device_change_order`
|
|
|
(
|
|
|
`orderId` bigint NOT NULL COMMENT '编码',
|
|
|
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'add:新增入库,change:变更归属',
|
|
|
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '1.待目标部门接收 ,2.完成(目标确认接收) ,3.目标部门拒收,4.取消',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建部门',
|
|
|
`toDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '目标部门',
|
|
|
`confirmUser` bigint DEFAULT NULL COMMENT '确认人id',
|
|
|
`confirmUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '确认人姓名',
|
|
|
`confirmTime` datetime DEFAULT NULL COMMENT '确认时间',
|
|
|
`confirmRemark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '确认备注',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '备注',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人',
|
|
|
`createUser` bigint DEFAULT NULL COMMENT '创建人id',
|
|
|
`createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
PRIMARY KEY (`orderId`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='设备变更单'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sync_data_set', 'deviceInfo',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''设备管理数据''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sync_data_set', 'deviceCheck',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''巡检管理数据''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sync_data_set', 'deviceRepairApply',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''报修单数据''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'repairDescription',
|
|
|
' varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''维修内容''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `thr_manufacturer`
|
|
|
(
|
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
|
`unitId` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`spell` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`addr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`creditNo` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`contact` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`mobile` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`thirdSysFk` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
|
|
|
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '创建人',
|
|
|
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
|
|
|
`updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '更新人',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
|
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '备注',
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
UNIQUE KEY `unique` (`unitId`, `thirdSysFk`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
AUTO_INCREMENT = 1001
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='第三方往来单位类型'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_check_item_dict', 'type',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''项目字典类型 1:巡检项目;2:保养项目''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_plan', 'type',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''计划类型 1:巡检计划; 2:保养计划''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_plan_detail_item', 'type',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''项目类型 1:巡检项目; 2:保养项目''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sync_data_set', 'produceBusiness',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''生产企业信息''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair_apply_detail', 'livePath',
|
|
|
'varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''维修现场照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'livePath',
|
|
|
'varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''报修现场照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'serviceLivePath',
|
|
|
'varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''维修后现场照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'diagnosisLivePath',
|
|
|
'varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''诊断照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair_apply_detail', 'diagnosisLivePath',
|
|
|
'varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''诊断照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'repairUserId', 'bigint DEFAULT NULL COMMENT''报修人id''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'repairDescription',
|
|
|
' varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT''维修内容''',
|
|
|
1);
|
|
|
ALTER TABLE device_repair
|
|
|
MODIFY COLUMN `diagnosisInfo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '诊断信息' AFTER `description`;
|
|
|
ALTER TABLE device_plan_detail_item
|
|
|
DROP PRIMARY KEY,
|
|
|
ADD PRIMARY KEY (`planId`, `productId`, `itemCode`, `deviceCode`) USING BTREE;
|
|
|
-- Table structure for device_upkeep
|
|
|
-- ----------------------------
|
|
|
CREATE TABLE IF NOT EXISTS `device_upkeep`
|
|
|
(
|
|
|
`taskId` bigint(0) NOT NULL COMMENT '保养任务id',
|
|
|
`planId` bigint(0) NULL DEFAULT NULL COMMENT '计划id',
|
|
|
`planName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '计划名称',
|
|
|
`chargeDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '负责部门编码',
|
|
|
`upkeepUserId` bigint(0) NULL DEFAULT NULL COMMENT '保养人id',
|
|
|
`upkeepUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养人姓名',
|
|
|
`upkeepUserPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养人电话',
|
|
|
`deviceCount` int(0) NOT NULL COMMENT '设备数量',
|
|
|
`finishCount` int(0) NOT NULL DEFAULT 0 COMMENT '完成设备数量',
|
|
|
`exceptionCount` int(0) NOT NULL DEFAULT 0 COMMENT '异常数量',
|
|
|
`finishTime` datetime(0) NULL DEFAULT NULL COMMENT '完成时间',
|
|
|
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名称',
|
|
|
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '任务备注',
|
|
|
`sysFlag` bit(1) NOT NULL COMMENT '是否系统创建 1/true 是 0/false 否',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已完成',
|
|
|
`createTime` datetime(0) NOT NULL COMMENT '创建时间',
|
|
|
`createUserId` bigint(0) NULL DEFAULT NULL COMMENT '创建人id',
|
|
|
`createUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人姓名',
|
|
|
`updateTime` datetime(0) NULL DEFAULT NULL,
|
|
|
PRIMARY KEY (`taskId`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
CHARACTER SET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT = '保养任务表'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for device_upkeep_detail
|
|
|
-- ----------------------------
|
|
|
CREATE TABLE IF NOT EXISTS `device_upkeep_detail`
|
|
|
(
|
|
|
`taskId` bigint(0) NOT NULL COMMENT '任务id',
|
|
|
`deviceCode` varbinary(255) NOT NULL COMMENT '设备编码',
|
|
|
`deptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '部门编码',
|
|
|
`deptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '部门名称',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否已完成 1/true 0/false',
|
|
|
`productId` bigint(0) NOT NULL COMMENT '产品id',
|
|
|
`udi` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'UDI码',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'DI码',
|
|
|
`productName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品名称',
|
|
|
`ggxh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规格型号',
|
|
|
`batchNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '批次号',
|
|
|
`serialNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '序列号',
|
|
|
`productionDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生产日期',
|
|
|
`expireDate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失效日期',
|
|
|
`manufactory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生产厂家',
|
|
|
`measname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '计量单位',
|
|
|
`zczbhhzbapzbh` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '注册/备案凭证号',
|
|
|
`supId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '供应商ID',
|
|
|
`supName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '供应商名称',
|
|
|
`itemCount` int(0) NOT NULL DEFAULT 0 COMMENT '项目数量',
|
|
|
`exceptionCount` int(0) NOT NULL DEFAULT 0 COMMENT '异常数量',
|
|
|
`finishCount` int(0) NOT NULL DEFAULT 0 COMMENT '完成项目数量',
|
|
|
`finishTime` datetime(0) NULL DEFAULT NULL COMMENT '完成时间',
|
|
|
`normalFlag` tinyint(0) NULL DEFAULT NULL COMMENT '保养状态 :0:异常;1.正常',
|
|
|
`livePath` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '现场照片',
|
|
|
`suggestion` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养建议',
|
|
|
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更改时间',
|
|
|
PRIMARY KEY (`taskId`, `deviceCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
CHARACTER SET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT = '保养任务明细'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
-- ----------------------------
|
|
|
-- Table structure for device_upkeep_detail_item
|
|
|
-- ----------------------------
|
|
|
CREATE TABLE IF NOT EXISTS `device_upkeep_detail_item`
|
|
|
(
|
|
|
`taskId` bigint(0) NOT NULL COMMENT '任务id',
|
|
|
`deviceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备编码',
|
|
|
`itemCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目编码',
|
|
|
`itemName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目名称',
|
|
|
`itemContent` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目内容',
|
|
|
`normalFlag` bit(1) NULL DEFAULT NULL COMMENT '正常标识',
|
|
|
`finishFlag` bit(1) NOT NULL DEFAULT b'0' COMMENT '完成标识',
|
|
|
`finishTime` datetime(0) NULL DEFAULT NULL COMMENT '完成时间',
|
|
|
`suggestion` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '保养建议',
|
|
|
`upkeepUserId` bigint(0) NULL DEFAULT NULL COMMENT '保养人id',
|
|
|
`upkeepUserName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养人姓名',
|
|
|
`upkeepDeptCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养部门',
|
|
|
`upkeepDeptName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '保养部门名称',
|
|
|
`updateTime` datetime(0) NULL DEFAULT NULL,
|
|
|
PRIMARY KEY (`taskId`, `deviceCode`, `itemCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
CHARACTER SET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备保养项目'
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `thr_medical_product_category`
|
|
|
(
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
`materialId` int DEFAULT NULL COMMENT '物资分类编码',
|
|
|
`materialName` varchar(255) DEFAULT NULL COMMENT '物资分类的名称',
|
|
|
`firstLevelCategoryCode` int DEFAULT NULL COMMENT '一级分类的编码',
|
|
|
`firstLevelCategoryName` varchar(255) DEFAULT NULL COMMENT '一级分类的名称',
|
|
|
`secondLevelCategoryCode` int DEFAULT NULL COMMENT '二级分类的编码',
|
|
|
`secondLevelCategoryName` varchar(255) DEFAULT NULL COMMENT '二级分类的名称',
|
|
|
`managementType` int DEFAULT NULL COMMENT '管理类别 ',
|
|
|
`materialCode` varchar(255) DEFAULT NULL COMMENT '标识',
|
|
|
PRIMARY KEY (`id`)
|
|
|
) ENGINE = InnoDB
|
|
|
AUTO_INCREMENT = 160
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci COMMENT ='医疗产品分类标识';
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'requireScanCode',
|
|
|
'bit(1) NOT NULL DEFAULT b''0'' COMMENT ''是否需要扫码 1是;0否''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_check_item_dict', 'updateTime',
|
|
|
' datetime NULL DEFAULT NULL COMMENT ''更新时间''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_check', 'taskBillNo',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''巡检任务单号''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('device_repair_apply', 'livePath',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''现场照片''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair_apply', 'repairApplyBillNo',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''报修单号''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_repair', 'repairBillNo',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''维修单号''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('device_upkeep', 'taskBillNo',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''保养任务单号''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'bzgg',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''包装规格''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'bzgg',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''包装规格''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
UPDATE auth_menu
|
|
|
SET `menu_name` = '选入入院产品',
|
|
|
`parent_id` = 1819,
|
|
|
`order_num` = 3,
|
|
|
`path` = 'supplier/products/supProductsOptinDi',
|
|
|
`component` = 'supplier/products/supProductsOptinDi',
|
|
|
`query_param` = NULL,
|
|
|
`is_frame` = 1,
|
|
|
`is_cache` = 0,
|
|
|
`menu_type` = 'C',
|
|
|
`visible` = '0',
|
|
|
`status` = '0',
|
|
|
`perms` = NULL,
|
|
|
`icon` = NULL,
|
|
|
`create_by` = '超级用户',
|
|
|
`create_time` = '2023-02-17 10:04:07',
|
|
|
`update_by` = NULL,
|
|
|
`update_time` = NULL,
|
|
|
`remark` = NULL
|
|
|
WHERE `menu_id` = 1759;
|
|
|
|
|
|
INSERT ignore INTO 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 (2013, '新增入院产品', 1819, 3, 'supplier/products/supProductsAddDi', 'supplier/products/supProductsAddDi',
|
|
|
NULL, 1, 0, 'C', '0', '0', NULL, NULL, '超级用户', '2023-02-17 10:04:07', NULL, NULL, NULL);
|
|
|
|
|
|
UPDATE sys_custom_config
|
|
|
SET `businessType` = 'supProductsAddDi',
|
|
|
`remark` = '新增入院产品',
|
|
|
`type` = '1',
|
|
|
`handleChangeFuc` = NULL
|
|
|
WHERE `id` = 22;
|
|
|
INSERT ignore INTO sys_custom_config(`id`, `businessType`, `remark`, `type`, `handleChangeFuc`)
|
|
|
VALUES (84, 'supProductsOptinDi', '选入入院产品', '1', NULL);
|
|
|
|
|
|
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2105, 84, '2', 1, 'code', 'DI产品标识', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2106, 84, '2', 1, 'name', '物资名称', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2107, 84, '2', 1, 'spec', '规格型号', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2108, 84, '2', 1, 'registerNo', '注册证编号', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2109, 84, '2', 1, 'checkStatus', '审核状态', 'select', NULL, NULL,
|
|
|
'{\"1\":\"未审核\",\"2\":\"已审核\",\"3\":\"未通过\",\"\":\"全部\"}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2110, 84, '1', 1, 'index', '序号', 'id', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2111, 84, '1', 1, 'code', '物资产品标识', 'text', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2112, 84, '1', 1, 'name', '物资名称', 'text', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2113, 84, '1', 1, 'spec', '规格型号', 'text', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2114, 84, '1', 1, 'ylqxzcrbarmc', '医疗器械注册人', 'text', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2115, 84, '1', 1, 'registerNo', '注册证编号', 'text', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2116, 84, '1', 1, 'status', '审核状态', 'laber', '', NULL, '{\"1\":\"未审核\",\"2\":\"已审核\",\"3\":\"未通过\"}', NULL, 1,
|
|
|
'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2117, 84, '1', 1, 'oper', '操作', 'button', '', NULL, '', 120, NULL,
|
|
|
'[{\"type\":\"text\",\"size\":\"small\",\"style\":\"\",\"name\":\"详情\",\"clickFuc\":\"detail\",\"disabledFuc\":\"\",\"hasPermi\":\"\"},{\"type\":\"text\",\"size\":\"small\",\"style\":\"\",\"name\":\"删除\",\"clickFuc\":\"deleteProduct\",\"disabledFuc\":\"row.status == 2\",\"hasPermi\":\"\"}]',
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'sourceType',
|
|
|
'bit(1) NOT NULL DEFAULT b''0'' COMMENT ''来源类型 1新增;0选入''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'internalMaterialCode',
|
|
|
'varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''内部物资编码''',
|
|
|
1);
|
|
|
UPDATE sys_custom_config_detail
|
|
|
SET `configId` = 22,
|
|
|
`type` = '1',
|
|
|
`isShow` = 1,
|
|
|
`columnName` = 'internalMaterialCode',
|
|
|
`columnDesc` = '内部物资编码',
|
|
|
`columnType` = 'text',
|
|
|
`colorRule` = NULL,
|
|
|
`sort` = NULL,
|
|
|
`lableRule` = NULL,
|
|
|
`width` = NULL,
|
|
|
`tooltip` = 1,
|
|
|
`buttonRule` = NULL,
|
|
|
`number` = NULL,
|
|
|
`lineNumber` = NULL,
|
|
|
`clickFuc` = NULL,
|
|
|
`size` = NULL,
|
|
|
`style` = NULL,
|
|
|
`disabled` = NULL,
|
|
|
`checkRules` = NULL,
|
|
|
`inputType` = NULL,
|
|
|
`disabledFuc` = NULL,
|
|
|
`expression` = NULL,
|
|
|
`dataFuc` = NULL,
|
|
|
`isShowXx` = NULL
|
|
|
WHERE `id` = 275;
|
|
|
|
|
|
INSERT ignore INTO sys_custom_config_detail (`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2118, 32, '1', 1, 'internalMaterialCode', '内部物资编码', 'text', NULL, NULL, NULL, NULL, 1, NULL, 99, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_param_config (`id`, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`,
|
|
|
`paramType`, `paramExplain`, `updateTime`)
|
|
|
VALUES (1070, 0, '开启内部物资编码', 'internal_material_code', '1', 1, 0, '开启内部物资编码 0:否;1:是', NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2019, 18, '2', 1, 'mainId', '内部物资编码', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2020, 22, '2', 1, 'internalMaterialCode', '内部物资编码', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
|
INSERT ignore INTO sys_custom_config_detail(`id`, `configId`, `type`, `isShow`, `columnName`, `columnDesc`,
|
|
|
`columnType`, `colorRule`, `sort`, `lableRule`, `width`, `tooltip`,
|
|
|
`buttonRule`, `number`, `lineNumber`, `clickFuc`, `size`, `style`,
|
|
|
`disabled`, `checkRules`, `inputType`, `disabledFuc`, `expression`,
|
|
|
`dataFuc`, `isShowXx`)
|
|
|
VALUES (2021, 8, '2', 1, 'mainIdLike', '内部物资编码', 'input', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'codeCheck',
|
|
|
'tinyint NULL DEFAULT NULL COMMENT '' 是否开启校验扫码 :0:不校验;1:只允许录入扫码产品;2:只允许录入不扫码产品''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'isStack', 'tinyint', 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'productsType',
|
|
|
' tinyint NULL DEFAULT b''1'' COMMENT ''产品类型 1:耗材 2:药品''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'levelUnit',
|
|
|
'varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''每个层级的单位(例如:箱,盒,支)''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'prepnUnit',
|
|
|
'varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''制剂单位''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'prepnSpec',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''制剂规格''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'specialCode',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''特殊分类码''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'storageCondition',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''存储条件''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'transportCondition',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''运输条件''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'useAttribute',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''使用属性''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'useAttribute',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''包装材质''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'majorType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品分类''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'majorStatus',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品状态''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'physicType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品类型(详见码表) 1:特殊药品原料药,2:特殊药品制剂,3:普通药品,9:未分类''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'medicareType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''医保分类 1:甲类;2:乙类;3:丙类''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'indate',
|
|
|
' datetime NULL DEFAULT NULL COMMENT ''有效日期''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeLevelDi',
|
|
|
'varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''流通计量层层级标识''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeLevelUnit',
|
|
|
'varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''流通计量层级单位''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeLevelCount',
|
|
|
' int NULL DEFAULT NULL COMMENT ''流通时包含计量单元的数量''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'useLevelDi',
|
|
|
'varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''使用计量层级标识''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'useLevelUnit',
|
|
|
'varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''使用计量层级单位''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'useLeverCount',
|
|
|
'int NULL DEFAULT NULL COMMENT ''使用是当前层级包含计量单元数量''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_order', 'workPlaceCode', 'varchar(20)', 1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'payFeeCode',
|
|
|
'varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''收费项目编码''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_code_temp', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_code', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_order_detail_result', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_order_detail_biz', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_order_detail_code', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('pur_receive', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('pur_apply', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('pur_plan', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('pur_order', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_order', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型(1.耗材,2.药品)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'isStack', 'tinyint', 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'productType',
|
|
|
' tinyint NULL DEFAULT b''1'' COMMENT ''产品类型 1:耗材 2:药品''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'pinyinInitial', 'varchar(255)', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'destinyType',
|
|
|
' int(0) NULL DEFAULT NULL COMMENT''类型:1:定数包,内部使用;2:项目、组套外部关联''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'vailHcType',
|
|
|
'tinyint NULL DEFAULT NULL COMMENT '' 校验耗材类型 :0:不耗材;1:高值耗材;2:无普通耗材''', 1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'isStack', 'tinyint', 1);
|
|
|
|
|
|
# 2024 1015增加字段
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'uploadFlag', ' tinyint DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'uploadMsg', ' varchar(1024) DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeMaxLevel', ' int DEFAULT NULL COMMENT ''配送时允许采集的最大层级:''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'useMaxLevel', ' int DEFAULT NULL COMMENT ''使用时允许采集的最大层级''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'splitEnable', ' tinyint DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'useLevel', ' int DEFAULT NULL COMMENT ''使用层级''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeLevel', ' int DEFAULT NULL COMMENT ''流通层级''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'autoCode', ' tinyint DEFAULT ''0'' COMMENT ''是否自动赋码 0否 1是''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'unpackUseTime', ' datetime DEFAULT NULL COMMENT ''拆包后可用时长(小时)''', 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'type', 'tinyint DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'prcitmcode',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'invCode',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname1',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname2',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname3',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode1', 'bigint DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode2', 'bigint DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode3', 'bigint DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'matrial',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''耗材材质''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'productType', 'tinyint DEFAULT ''1'' COMMENT ''产品类型 1:耗材 2:药品''', 1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'prepnSpec',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''采集规格''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products', 'prepnUnit',
|
|
|
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'zxxsdycpbs',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('basic_products', 'xjdw',
|
|
|
' varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'productType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''单据类型; 1:器械单据 2:药品单据''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'productsType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''产品类型; 1:器械 2:药品''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_code_temp', 'drugLink',
|
|
|
' tinyint NULL DEFAULT b''0''COMMENT ''药品关联关系是否存在 0不存在 1存在''',
|
|
|
1);
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `rel_code_batch`
|
|
|
(
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
`productCode` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '产品编码',
|
|
|
`subTypeNo` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '类型编码',
|
|
|
`cascadeRatio` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '包装比例',
|
|
|
`packageSpec` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '包装规格',
|
|
|
`comment` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注',
|
|
|
`batchNo` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '批次号',
|
|
|
`madeDate` datetime DEFAULT NULL COMMENT '生产日期',
|
|
|
`validateDate` datetime DEFAULT NULL COMMENT '失效日期',
|
|
|
`workShop` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产车间',
|
|
|
`lineName` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '生产线',
|
|
|
`lineManager` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '负责人',
|
|
|
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
|
|
|
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '创建人',
|
|
|
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
|
`updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '更新人',
|
|
|
`parentCode` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '父级码',
|
|
|
`uploadFlagUp` tinyint(1) DEFAULT '0' COMMENT '0 未上传 1已上传 2上传失败',
|
|
|
`uploadFlagDown` tinyint(1) DEFAULT '0' COMMENT '0 未上传 1已上传 2上传失败',
|
|
|
`erpId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '供应商ID',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
AUTO_INCREMENT = 1
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci;
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `rel_code_detail`
|
|
|
(
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
`curCode` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '当前条码',
|
|
|
`packLayer` tinyint DEFAULT NULL COMMENT '包装级别',
|
|
|
`parentCode` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '父级码',
|
|
|
`flag` tinyint DEFAULT NULL COMMENT '状态',
|
|
|
`batchIdFk` int DEFAULT NULL COMMENT '产品批次ID外键',
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
AUTO_INCREMENT = 1
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci;
|
|
|
|
|
|
|
|
|
CREATE TABLE if not exists `third_ali_drug`
|
|
|
(
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '药品类型',
|
|
|
`manufacturer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生产企业',
|
|
|
`cpmctymc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品名称通用名称',
|
|
|
`form` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '剂型',
|
|
|
`formSpec` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '剂型规格',
|
|
|
`bzgg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包装规格',
|
|
|
`spmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品名称',
|
|
|
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '层级标识',
|
|
|
`packRatio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包装比例',
|
|
|
`packLevel` varchar(255) 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 '更新时间',
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
UNIQUE INDEX `nameCode` (`nameCode`) USING BTREE
|
|
|
) ENGINE = InnoDB
|
|
|
CHARACTER SET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'bzgg',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装规格''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'prepnUnit',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''剂型''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'prepnSpec',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂规格''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'packMatrial',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装材质''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'physicType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品类型:3:普通药品 2特殊药品制剂 1特殊药品原料药 9:未分类''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'majorType',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品分类:1:中药 2:化学药 3:生物制品''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'majorStatus',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品状态: 1:在用 0:停用''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_code_temp', 'parentCode',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''父级编码''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_code_temp', 'grantPaCode',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''爷级编码''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_code', 'parentCode',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''父级编码''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('io_code', 'grantPaCode',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''爷级编码''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('rel_code_batch', 'erpId',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''供应商ID''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('rel_code_batch', 'curCode',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''当前码''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('rel_code_batch', 'oneLevelCount',
|
|
|
'int NULL DEFAULT null COMMENT ''一级数量''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('rel_code_batch', 'twoLevelCount',
|
|
|
'int NULL DEFAULT null COMMENT ''二级数量''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('rel_code_batch', 'threeLevelCount',
|
|
|
'int NULL DEFAULT null COMMENT ''三级数量''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'erpId',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''供应商ID''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'approvalNum',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''批准文号''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
call Modify_index('third_ali_drug', 'approvalNum', 'approvalNum', 'BTREE');
|
|
|
|
|
|
|
|
|
# CALL Pro_Temp_ColumnWork('basic_products', 'detailSort',
|
|
|
# ' tinyint DEFAULT NULL COMMENT ''明细分类''',
|
|
|
# 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sync_data_set', 'drugDataTask',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''药品关联关系同步''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('sys_custom_config_detail', 'isImport',
|
|
|
' tinyint NULL DEFAULT NULL COMMENT ''是否常用搜索0:否;1:是''',
|
|
|
1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('customer_info', 'appKey',
|
|
|
' varchar(255) DEFAULT NULL COMMENT ''应用Key''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('customer_info', 'appSecret',
|
|
|
' varchar(255) DEFAULT NULL COMMENT ''应用密文''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('customer_info', 'refEntId',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''接口调用企业的唯一标识''',
|
|
|
1);
|
|
|
INSERT ignore INTO `sys_param_config` (`id`, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`,
|
|
|
`paramType`, `paramExplain`, `updateTime`)
|
|
|
VALUES (20100, 0, '是否全部维护关联关系', 'warning_relCode_switch', '1', 1, 0, '0:否;1:是', NULL);
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'prepnUnit',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位描述''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'prepnUnitName',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位描述''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicDetailType',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品详情类型''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicDetailTypeDesc ',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品类型详情描述''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicTypeDesc',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品类型描述''',
|
|
|
1);
|
|
|
CALL Pro_Temp_ColumnWork('third_ali_drug', 'packUnitName',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装单位''',
|
|
|
1);
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_ali_user`
|
|
|
(
|
|
|
`id` bigint NOT NULL,
|
|
|
`erpId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '第三方ID',
|
|
|
`appKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '阿里KEY',
|
|
|
`appSecret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '阿里密钥',
|
|
|
`refEntId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '厂家标识',
|
|
|
`type` varchar(255) DEFAULT NULL COMMENT '1 为生成企业 2为零售药店',
|
|
|
PRIMARY KEY (`id`)
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4
|
|
|
COLLATE = utf8mb4_0900_ai_ci;
|
|
|
CALL Pro_Temp_ColumnWork('basic_bussiness_type', 'checkWebNewType', 'tinyint', 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('auth_company', 'refEntId',
|
|
|
' varchar(255) DEFAULT NULL COMMENT ''接口调用企业的唯一标识''',
|
|
|
1);
|
|
|
call Modify_UNIQUE_index('io_code_lost', 'code', 'uniqueCode', 'BTREE');
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('io_order', 'aliOrderBillNo',
|
|
|
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''阿里来源单号''',
|
|
|
1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_udirel', 'detailSort', ' tinyint DEFAULT NULL', 1);
|
|
|
|
|
|
CALL Pro_Temp_ColumnWork('basic_corp', 'adSickNum', ' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL', 1);
|
|
|
|
|
|
|