
   DROP PROCEDURE IF EXISTS `DropColumnIfExists`;
DELIMITER $$

CREATE PROCEDURE DropColumnIfExists(
    IN tableName VARCHAR(255),
    IN columnName VARCHAR(255)
)
BEGIN
    DECLARE columnExists INT;

    -- 检查列是否存在
    SELECT COUNT(*) INTO columnExists
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE table_name = tableName
    AND column_name = columnName
    AND table_schema = DATABASE();  -- 当前数据库

    -- 如果列存在，则删除列
    IF columnExists > 0 THEN
        SET @sql = CONCAT('ALTER TABLE ', tableName, ' DROP COLUMN ', columnName);
        PREPARE stmt FROM @sql;
        EXECUTE stmt;
        DEALLOCATE PREPARE stmt;
    ELSE
        SELECT CONCAT('Column ', columnName, ' does not exist in table ', tableName) AS Message;
    END IF;
END $$

DELIMITER ;

 DROP PROCEDURE IF EXISTS `sp_drop_index_if_exists`;
-- 创建存储过程
DELIMITER //

CREATE PROCEDURE `sp_drop_index_if_exists`(
    IN tableName VARCHAR(255),
    IN indexName VARCHAR(255)
)
BEGIN
    DECLARE indexExists INT DEFAULT 0;

    -- 检查索引是否存在
    SELECT COUNT(*)
    INTO indexExists
    FROM INFORMATION_SCHEMA.STATISTICS
    WHERE TABLE_SCHEMA = DATABASE()
    AND TABLE_NAME = tableName
    AND INDEX_NAME = indexName;

    -- 如果索引存在，则删除索引
    IF indexExists > 0 THEN
        SET @sql = CONCAT('ALTER TABLE `', tableName, '` DROP INDEX `', indexName, '`');
        PREPARE stmt FROM @sql;
        EXECUTE stmt;
        DEALLOCATE PREPARE stmt;
    END IF;
END //

DELIMITER ;




ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_id` bigint NOT NULL COMMENT '主键' FIRST;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid唯一标识' AFTER `table_id`;

UPDATE `product_sys_datamodel_table` set created_by=1,updated_by=1;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `created_by` int NULL DEFAULT NULL COMMENT '创建者' AFTER `uuid`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '更新者' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '更新时间' AFTER `updated_by`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所属公司,视图专用,关联lx_sys_org_levels表uuid' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '表名' AFTER `org_level_uuid`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '表描述' AFTER `table_name`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_type` int NULL DEFAULT NULL COMMENT '表类型' AFTER `table_description`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_base_view` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视图基础表' AFTER `table_type`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `view_sql` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视图SQL' AFTER `table_base_view`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_primary_key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '表主键' AFTER `view_sql`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `sequence` int NOT NULL COMMENT '排序' AFTER `table_primary_key`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `is_international` int NULL DEFAULT NULL COMMENT '是否国际化' AFTER `sequence`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `container_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'container容器名称' AFTER `produce_msg`;

ALTER TABLE `product_sys_datamodel_table` MODIFY COLUMN `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键';


ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_id` int NOT NULL COMMENT '主键' FIRST;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `uuid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid' AFTER `field_id`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `table_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联lx_sys_datamodel_table表uuid' AFTER `uuid`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段名称' AFTER `table_uuid`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段类型' AFTER `field_name`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_show_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字段显示名称' AFTER `field_type`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '字段描述' AFTER `field_show_name`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `is_required` int NULL DEFAULT NULL COMMENT '是否必填' AFTER `field_unit`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `is_unique` int NULL DEFAULT NULL COMMENT '是否唯一' AFTER `is_required`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `is_international` int NULL DEFAULT NULL COMMENT '是否国际化' AFTER `is_unique`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `is_filter` int NULL DEFAULT NULL COMMENT '是否为高级检索条件字段,1=是、0=否' AFTER `is_international`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_format` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据格式' AFTER `is_filter`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `related_table` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视图字段对应表名' AFTER `field_format`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_reference` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'field_reference' AFTER `related_table`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_relation_table` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联外键表' AFTER `field_reference`;

call DropColumnIfExists('product_sys_datamodel_field','field_sequence');

ALTER TABLE `product_sys_datamodel_field` ADD COLUMN `field_sequence` int NOT NULL COMMENT '排序，根据提交的数据顺序自动生成' AFTER `field_relation_table`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '更新者' AFTER `created_utc_datetime`;

call DropColumnIfExists('product_sys_datamodel_field','is_more_value');

ALTER TABLE `product_sys_datamodel_field` ADD COLUMN `is_more_value` int NULL DEFAULT NULL COMMENT '逗号分隔，多个值 ' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_datamodel_field` MODIFY COLUMN `field_id` int NOT NULL AUTO_INCREMENT COMMENT '主键';


INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'product_sys_datamodel_field', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '', 'product_sys_datamodel_field', '数据建模数据源字段表', '1', '', '', 'uuid', '28', '0', NULL, '', NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_datamodel_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'created_by', 'int', '创建者', '创建者', '11', '0', '0', '0', '0', '0', '', '', '', '', '19', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '20', '0', '0', '0', '0', '0', '', '', '', '', '20', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_description', 'string', '字段描述', '字段描述', '2000', '0', '0', '0', '0', '0', '', '', '', NULL, '7', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_description');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_format', 'string', '数据格式', '数据格式', '255', '0', '0', '0', '0', '0', '', '', '', '', '14', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_format');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_id', 'pk', '主键', '主键', '11', '0', '1', '0', '0', '0', '', '', '', NULL, '1', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_length', 'int', '字段长度', '字段长度', '16', '0', '0', '0', '0', '0', '', '', '', NULL, '8', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_length');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_name', 'string', '字段名称', '字段名称', '255', '0', '1', '0', '0', '1', '', '', '', NULL, '4', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_reference', 'string', 'field_reference', 'field_reference', '500', '0', '0', '0', '0', '0', '', '', '', '', '16', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_reference');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_relation_table', 'string', '关联外键表', '关联外键表', '255', '0', '0', '0', '0', '0', '', '', '', '', '17', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_relation_table');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_sequence', 'int', '字段排序', '排序，根据提交的数据顺序自动生成', '20', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '18', '1', '2024-08-19 00:00:00', '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_sequence');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_show_name', 'string', '字段显示名称', '字段显示名称', '200', '0', '1', '0', NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_show_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_type', 'string', '字段类型', '字段类型', '20', '0', '1', '0', '0', '0', '', '', '', NULL, '5', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'field_unit', 'int', '小数位数', '小数位数', '16', '0', '0', '0', '0', '0', '', '', '', NULL, '9', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='field_unit');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'is_filter', 'int', '是否检索条件', '是否为高级检索条件字段,1=是、0=否', '4', '0', '0', '0', '0', '0', '', '', '', '', '13', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='is_filter');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'is_international', 'int', '是否国际化', '是否国际化', '5', '0', '0', '0', '0', '0', '', '', '', '', '12', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='is_international');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'is_more_value', 'int', '多值', '逗号分隔，多个值 ', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '23', '1', '2024-10-06 17:45:34', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='is_more_value');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'is_required', 'int', '是否必填', '是否必填', '16', '0', '0', '0', '0', '0', '', '', '', NULL, '10', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='is_required');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'is_unique', 'int', '是否唯一', '是否唯一', '16', '0', '0', '0', '0', '0', '', '', '', NULL, '11', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='is_unique');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'related_table', 'string', '字段对应表', '视图字段对应表名', '50', '0', '0', '0', '0', '0', '', '', '', '', '15', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='related_table');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'table_uuid', 'parentuuid', '关联表uuid', '关联lx_sys_datamodel_table表uuid', '80', '0', '1', '0', '0', '0', '', '', '', 'product_sys_datamodel_table', '3', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='table_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'updated_by', 'int', '更新者', '更新者', '11', '0', '0', '0', '0', '0', '', '', '', '', '21', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '20', '0', '0', '0', '0', '0', '', '', '', '', '22', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_datamodel_field', 'uuid', 'string', 'uuid', 'uuid', '100', '0', '1', '1', '0', '0', '', '', '', NULL, '2', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_datamodel_field' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'created_by', field_type = 'int', field_show_name = '创建者', field_description = '创建者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 19, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 20, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_description', field_type = 'string', field_show_name = '字段描述', field_description = '字段描述', field_length = 2000, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 7, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_description';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_format', field_type = 'string', field_show_name = '数据格式', field_description = '数据格式', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 14, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_format';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 11, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_length', field_type = 'int', field_show_name = '字段长度', field_description = '字段长度', field_length = 16, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_length';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_name', field_type = 'string', field_show_name = '字段名称', field_description = '字段名称', field_length = 255, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_reference', field_type = 'string', field_show_name = 'field_reference', field_description = 'field_reference', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 16, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_reference';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_relation_table', field_type = 'string', field_show_name = '关联外键表', field_description = '关联外键表', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 17, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_relation_table';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_sequence', field_type = 'int', field_show_name = '字段排序', field_description = '排序，根据提交的数据顺序自动生成', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 18, created_by = '1', created_utc_datetime = '2024-08-19 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_sequence';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_show_name', field_type = 'string', field_show_name = '字段显示名称', field_description = '字段显示名称', field_length = 200, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()

, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_show_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_type', field_type = 'string', field_show_name = '字段类型', field_description = '字段类型', field_length = 20, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'field_unit', field_type = 'int', field_show_name = '小数位数', field_description = '小数位数', field_length = 16, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'field_unit';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'is_filter', field_type = 'int', field_show_name = '是否检索条件', field_description = '是否为高级检索条件字段,1=是、0=否', field_length = 4, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 13, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'is_filter';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'is_international', field_type = 'int', field_show_name = '是否国际化', field_description = '是否国际化', field_length = 5, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 12, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'is_international';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'is_more_value', field_type = 'int', field_show_name = '多值', field_description = '逗号分隔，多个值 ', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 23, created_by = '1', created_utc_datetime = '2024-10-06 17:45:34', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'is_more_value';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'is_required', field_type = 'int', field_show_name = '是否必填', field_description = '是否必填', field_length = 16, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'is_required';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'is_unique', field_type = 'int', field_show_name = '是否唯一', field_description = '是否唯一', field_length = 16, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 11, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'is_unique';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'related_table', field_type = 'string', field_show_name = '字段对应表', field_description = '视图字段对应表名', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 15, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'related_table';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'table_uuid', field_type = 'parentuuid', field_show_name = '关联表uuid', field_description = '关联lx_sys_datamodel_table表uuid', field_length = 80, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = 'product_sys_datamodel_table', field_sequence = 3, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'table_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 21, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = '', field_sequence = 22, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_datamodel_field', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 100, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = 0, field_format = '', related_table = '', field_reference = '', field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_datamodel_field' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='product_sys_datamodel_field' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='product_sys_datamodel_field';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659cb3f-7fad-11ec-a3ed-902b3470f24e','product_sys_datamodel_field','table_uuid_and_field_name','field_name,table_uuid','1' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659cc79-7fad-11ec-a3ed-902b3470f24e','product_sys_datamodel_field','uuid','uuid','1' );


ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `cach_id` bigint NOT NULL COMMENT '主键' FIRST;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'uuid' AFTER `cach_id`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `created_by` int NULL DEFAULT NULL COMMENT '创建者' AFTER `uuid`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '更新者' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '更新时间' AFTER `updated_by`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `cache_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '缓存名称' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '缓存表' AFTER `cache_name`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `group_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '分存缓存' AFTER `table_name`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `cache_fields` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '缓存表字段，多个逗号分隔' AFTER `group_field`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `filter` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '缓存条件' AFTER `cache_fields`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `bean_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '通过bean的方法缓存' AFTER `filter`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `bean_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '通过bean调用缓存' AFTER `bean_method`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `is_used` int NOT NULL COMMENT '是否启用' AFTER `bean_name`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `detail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注说明' AFTER `is_used`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `sort_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '排序字段，逗号分隔' AFTER `isload_sub_data`;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `sort` int NOT NULL COMMENT '加载顺序' AFTER `pagesize`;

CALL sp_drop_index_if_exists('product_sys_cache_config', 'cache_name');

ALTER TABLE `product_sys_cache_config` ADD UNIQUE INDEX `cache_name`(`cache_name` ASC) USING BTREE;

ALTER TABLE `product_sys_cache_config` MODIFY COLUMN `cach_id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键';

DELETE from product_sys_datamodel_table_index where table_uuid='product_sys_cache_config' and index_name='cache_name';

INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) VALUES ('d6470fa2-ec4a-462f-9064-040d9793c426', 'product_sys_cache_config', 'cache_name', 'cache_name', 1);


UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'bean_method', field_type = 'string', field_show_name = '通过bean的方法缓存', field_description = '通过bean的方法缓存', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 12, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'bean_method';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'bean_name', field_type = 'string', field_show_name = '通过bean调用缓存', field_description = '通过bean调用缓存', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'bean_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'cach_id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'cach_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'cache_fields', field_type = 'string', field_show_name = '缓存表字段', field_description = '缓存表字段，多个逗号分隔', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'cache_fields';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'cache_name', field_type = 'string', field_show_name = '缓存名称', field_description = '缓存名称', field_length = 255, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'cache_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'created_by', field_type = 'int', field_show_name = '创建者', field_description = '创建者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'detail', field_type = 'string', field_show_name = '备注说明', field_description = '备注说明', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 15, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'detail';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'filter', field_type = 'string', field_show_name = '缓存条件', field_description = '缓存条件', field_length = 1000, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'filter';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'group_field', field_type = 'string', field_show_name = '分存缓存', field_description = '分存缓存', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'group_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'is_used', field_type = 'int', field_show_name = '是否启用 0 否 1 是 ', field_description = '是否启用', field_length = 4, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 14, created_by = NULL, created_utc_datetime = NULL, updated_by = '1', updated_utc_datetime = '2023-05-18 11:19:11'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'is_used';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'isload_sub_data', field_type = 'int', field_show_name = '是否加载子表', field_description = '是否加载子表数据', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 16, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'isload_sub_data';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'pagesize', field_type = 'int', field_show_name = '每页记录数', field_description = '每页记录数', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 18, created_by = NULL, created_utc_datetime = NULL, updated_by = '1', updated_utc_datetime = '2023-05-18 11:19:11'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'pagesize';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'sort', field_type = 'int', field_show_name = '加载顺序', field_description = '加载顺序', field_length = 4, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 19, created_by = NULL, created_utc_datetime = NULL, updated_by = '1', updated_utc_datetime = '2023-05-18 11:19:11'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'sort';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'sort_field', field_type = 'string', field_show_name = '排序字段', field_description = '排序字段，逗号分隔', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 17, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'sort_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'table_name', field_type = 'table_name', field_show_name = '缓存表', field_description = '缓存表', field_length = 255, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'table_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_cache_config', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = 0 WHERE table_uuid = 'product_sys_cache_config' AND field_name = 'uuid';
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict007', 'product_sys_dict', 'client_type', 'string', '客户端类型', '客户端类型', '255', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '7', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='client_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict020', 'product_sys_dict', 'client_uuid', 'string', '客户', '关联客户uuid', '80', '0', '0', '0', '0', NULL, NULL, NULL, NULL, 'product_sys_clients', '14', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='client_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict013', 'product_sys_dict', 'created_by', 'int', '创建者', '创建者', '11', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '10', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict015', 'product_sys_dict', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '11', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9673d2cd-1e16-4b6b-bdf9-fb9f5467b6e4', 'product_sys_dict', 'dict_group', 'string', '字典分组', '字典分组', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '17', '1', '2024-11-07 10:26:47', NULL, NULL, '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_group');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict001', 'product_sys_dict', 'dict_id', 'pk', '数据表主键', '数据表主键ID', '11', '0', '1', '1', '0', NULL, NULL, NULL, NULL, NULL, '1', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict004', 'product_sys_dict', 'dict_label', 'string', '显示标签', '显示标签', '500', '0', '1', '0', '0', '1', NULL, NULL, NULL, NULL, '4', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_label');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict003', 'product_sys_dict', 'dict_name', 'string', '字典名称', '字典名称', '100', '0', '1', '0', '0', '1', NULL, NULL, NULL, NULL, '3', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict005', 'product_sys_dict', 'dict_value', 'string', '保存值', '保存值', '200', '0', '1', '0', '0', NULL, NULL, NULL, NULL, NULL, '5', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_value');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict093', 'product_sys_dict', 'dict_value_color', 'string', '颜色值', '颜色值', '100', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '15', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_value_color');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict094', 'product_sys_dict', 'dict_value_img', 'file', '图标值', '图标值', '80', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '16', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='dict_value_img');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict006', 'product_sys_dict', 'is_used', 'int', '是否启用', '是否启用 0 否 1 是', '4', '0', '1', '0', '0', NULL, NULL, NULL, '《is_status》', NULL, '6', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='is_used');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict008', 'product_sys_dict', 'org_level_uuid', 'string', '所属公司', '所属公司，关联组织机构表', '80', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '8', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='org_level_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict009', 'product_sys_dict', 'sequence', 'int', '排列顺序', '排列顺序', '11', '0', '1', '0', '0', NULL, NULL, NULL, NULL, NULL, '9', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='sequence');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict017', 'product_sys_dict', 'updated_by', 'int', '更新者', '更新者', '11', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '12', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict019', 'product_sys_dict', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '13', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_dict002', 'product_sys_dict', 'uuid', 'string', 'UUID', 'UUID', '200', '0', '1', '1', '0', NULL, NULL, NULL, NULL, NULL, '2', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_dict' and field_name='uuid');

UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'client_type', field_type = 'string', field_show_name = '客户端类型', field_description = '客户端类型', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'client_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'client_uuid', field_type = 'string', field_show_name = '客户', field_description = '关联客户uuid', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = 'product_sys_clients', field_sequence = 14, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'client_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'created_by', field_type = 'int', field_show_name = '创建者', field_description = '创建者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_group', field_type = 'string', field_show_name = '字典分组', field_description = '字典分组', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 17, created_by = '1', created_utc_datetime = '2024-11-07 10:26:47', updated_by = NULL, updated_utc_datetime = NULL
, is_more_value = 0 WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_group';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_id', field_type = 'pk', field_show_name = '数据表主键', field_description = '数据表主键ID', field_length = 11, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_label', field_type = 'string', field_show_name = '显示标签', field_description = '显示标签', field_length = 500, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_label';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_name', field_type = 'string', field_show_name = '字典名称', field_description = '字典名称', field_length = 100, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_value', field_type = 'string', field_show_name = '保存值', field_description = '保存值', field_length = 200, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_value';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_value_color', field_type = 'string', field_show_name = '颜色值', field_description = '颜色值', field_length = 100, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 15, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_value_color';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'dict_value_img', field_type = 'file', field_show_name = '图标值', field_description = '图标值', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 16, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'dict_value_img';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'is_used', field_type = 'int', field_show_name = '是否启用', field_description = '是否启用 0 否 1 是', field_length = 4, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = '《is_status》', field_relation_table = NULL, field_sequence = 6, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'is_used';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'org_level_uuid', field_type = 'string', field_show_name = '所属公司', field_description = '所属公司，关联组织机构表', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'sequence', field_type = 'int', field_show_name = '排列顺序', field_description = '排列顺序', field_length = 11, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'sequence';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 12, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_dict', field_name = 'uuid', field_type = 'string', field_show_name = 'UUID', field_description = 'UUID', field_length = 200, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00'
, is_more_value = NULL WHERE table_uuid = 'product_sys_dict' AND field_name = 'uuid';




ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_id` bigint NOT NULL COMMENT '数据表主键ID' FIRST;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `uuid` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'UUID' AFTER `dict_id`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '字典名称' AFTER `uuid`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_label` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示标签' AFTER `dict_name`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '保存值' AFTER `dict_label`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `is_used` int NOT NULL COMMENT '是否启用 0 否 1 是' AFTER `dict_value`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `client_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '客户端类型' AFTER `is_used`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所属公司，关联组织机构表' AFTER `client_type`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `created_by` int NULL DEFAULT NULL COMMENT '创建者' AFTER `sequence`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '更新者' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `client_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联客户uuid' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_value_color` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '颜色值' AFTER `client_uuid`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_value_img` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '图标值' AFTER `dict_value_color`;

CALL DropColumnIfExists('product_sys_dict','dict_group');

ALTER TABLE `product_sys_dict` ADD COLUMN `dict_group` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '字典分组' AFTER `dict_value_img`;

ALTER TABLE `product_sys_dict` MODIFY COLUMN `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '数据表主键ID';

call sp_drop_index_if_exists('product_sys_flow_task','unique_uuid');


-- ALTER TABLE `product_sys_flow_task` DROP INDEX `unique_uuid`;

call sp_drop_index_if_exists('product_sys_flow_task','index_flow');

-- ALTER TABLE `product_sys_flow_task` DROP INDEX `index_flow`;

call DropColumnIfExists('product_sys_flow_task','is_urgency');

ALTER TABLE `product_sys_flow_task` ADD COLUMN `is_urgency` int NULL DEFAULT NULL COMMENT '是否紧急;0 否 1是 ' AFTER `parent_detail_uuid`;

INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', '1', '2021-03-22 00:00:00', '1', '2021-03-22 00:00:00', NULL, 'product_sys_flow_task', 'flow任务表', '1', NULL, NULL, 'uuid', '130', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_flow_task');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'created_by', 'string', '创建者', '创建者', '50', '0', '0', '0', NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'cur_node_uuid', 'string', '当前环节节点', '当前环节节点uuid', '64', '0', '0', '0', NULL, '0', NULL, NULL, 'flow_node', NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='cur_node_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'finish_time', 'datetime', '结束时间', '结束时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='finish_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'finish_type', 'decimal', '完成标识', '完成标识（1-在办，2-正常结束，3-终止）', '2', '0', '0', '0', NULL, '0', NULL, NULL, '《flow_task_finish_type》', '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='finish_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'flow_uuid', 'string', '关联流程表', '关联流程表', '64', '0', '1', '0', NULL, '0', NULL, NULL, 'flow_title', '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='flow_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'id', 'int', '主键', '主键', '10', '0', '0', '1', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'is_allow_transmit', 'decimal', '是否允许转发', '是否允许转发', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='is_allow_transmit');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'is_urgency', 'int', '是否紧急;0 否 1是 ', '是否紧急;0 否 1是 ', '10', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, '2024-10-18 15:29:47', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='is_urgency');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'is_wait_sub_flow', 'int', '是否等待', '是否等待', '2', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='is_wait_sub_flow');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'parent_detail_uuid', 'string', '主流程明细uuid', '主流程明细uuid', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='parent_detail_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'parent_task_uuid', 'string', '主流程任务uuid', '主流程任务uuid', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='parent_task_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'record_uuid', 'string', '关联业务', '关联业务UUID', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='record_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'send_time', 'datetime', '发起时间', '发起时间', '0', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='send_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'sender', 'string', '发起人', '发起人', '64', '0', '1', '0', NULL, '0', NULL, NULL, 'user_name_by_user_id', '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='sender');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'table_name', 'table_name', '关联表', '关联表', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='table_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'title', 'string', '标题', '标题', '500', '0', '1', '0', NULL, '1', NULL, NULL, NULL, '', '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'updated_by', 'string', '修改者', '修改者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', 'uuid', 'string', 'uuid', 'uuid', '64', '0', '0', '1', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-08-25 17:04:49', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'created_by', field_type = 'string', field_show_name = '创建者', field_description = '创建者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'cur_node_uuid', field_type = 'string', field_show_name = '当前环节节点', field_description = '当前环节节点uuid', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'flow_node', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'cur_node_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'finish_time', field_type = 'datetime', field_show_name = '结束时间', field_description = '结束时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'finish_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'finish_type', field_type = 'decimal', field_show_name = '完成标识', field_description = '完成标识（1-在办，2-正常结束，3-终止）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《flow_task_finish_type》', field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'finish_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'flow_uuid', field_type = 'string', field_show_name = '关联流程表', field_description = '关联流程表', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'flow_title', field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'flow_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'id', field_type = 'int', field_show_name = '主键', field_description = '主键', field_length = 10, field_unit = '0', is_required = 0, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'is_allow_transmit', field_type = 'decimal', field_show_name = '是否允许转发', field_description = '是否允许转发', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'is_allow_transmit';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'is_urgency', field_type = 'int', field_show_name = '是否紧急;0 否 1是 ', field_description = '是否紧急;0 否 1是 ', field_length = 10, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = '2024-10-18 15:29:47', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'is_urgency';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'is_wait_sub_flow', field_type = 'int', field_show_name = '是否等待', field_description = '是否等待', field_length = 2, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'is_wait_sub_flow';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'parent_detail_uuid', field_type = 'string', field_show_name = '主流程明细uuid', field_description = '主流程明细uuid', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'parent_detail_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'parent_task_uuid', field_type = 'string', field_show_name = '主流程任务uuid', field_description = '主流程任务uuid', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'parent_task_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'record_uuid', field_type = 'string', field_show_name = '关联业务', field_description = '关联业务UUID', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'record_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'send_time', field_type = 'datetime', field_show_name = '发起时间', field_description = '发起时间', field_length = 0, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'send_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'sender', field_type = 'string', field_show_name = '发起人', field_description = '发起人', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'sender';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'table_name', field_type = 'table_name', field_show_name = '关联表', field_description = '关联表', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'table_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'title', field_type = 'string', field_show_name = '标题', field_description = '标题', field_length = 500, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'updated_by', field_type = 'string', field_show_name = '修改者', field_description = '修改者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '修改时间', field_description = '修改时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 64, field_unit = '0', is_required = 0, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659fe26-7fad-11ec-a3ed-902b3470f24e','e7c83a66-80e1-4d76-9f15-4eb2fa5e0a4a','uuid','uuid','1' );



ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid' AFTER `id`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `flow_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联表lx_sys_flow_model' AFTER `uuid`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '节点名称' AFTER `flow_uuid`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `flow_node_describe` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '节点描述' AFTER `title`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_wait_sub_flow` int NULL DEFAULT NULL COMMENT '是否等待' AFTER `flow_node_describe`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '修改时间' AFTER `is_wait_sub_flow`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_allow_add` int NULL DEFAULT NULL COMMENT '是否允许加签' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '消息推送方式（多选）：1-邮件，2-短信，3-其他' AFTER `is_allow_add`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_allow_back` int NULL DEFAULT NULL COMMENT '是否允许退回' AFTER `msg_push_type`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_preview` int NULL DEFAULT NULL COMMENT '允许预览' AFTER `is_allow_back`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_form_field_post` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '可选岗位，表单字段' AFTER `allow_preview`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `node_attachment_upload` int NULL DEFAULT NULL COMMENT '关联附件' AFTER `default_form_field_post`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `bean_send_param` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'bean传入参数' AFTER `node_attachment_upload`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sms_format` int NULL DEFAULT NULL COMMENT '短信模板' AFTER `bean_send_param`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `location_left` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '坐标，节点到左边界的垂直距离' AFTER `msg_push_sms_format`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '修改者' AFTER `default_users`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_mail_format_advent` int NULL DEFAULT NULL COMMENT '临期提醒短信格式（关联模板表）' AFTER `updated_by`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `node_attachment_preview` int NULL DEFAULT NULL COMMENT '预览附件' AFTER `msg_push_mail_format_advent`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_allow_share` int NULL DEFAULT NULL COMMENT '是否允许分享' AFTER `node_attachment_preview`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_form_field_dept` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '可选部门，表单字段' AFTER `is_allow_share`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `default_form_field_dept`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_type_overdue` int NULL DEFAULT NULL COMMENT '超期提醒方式（短信、邮件、其他）' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者' AFTER `msg_push_type_overdue`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `advent_percent` int NULL DEFAULT NULL COMMENT '临期百分比' AFTER `created_by`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `sub_flow_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '子流程名称' AFTER `advent_percent`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `bean_return_param` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'bean返回参数' AFTER `sub_flow_name`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_nest_red` int NOT NULL COMMENT '允许套红' AFTER `bean_return_param`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `module_type` int NOT NULL COMMENT '组件类型：1-开始节点，2-处理节点，0-结束节点' AFTER `allow_nest_red`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_edit_node` int NULL DEFAULT NULL COMMENT '允许编辑-节点' AFTER `module_type`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_edit_page` int NULL DEFAULT NULL COMMENT '允许编辑-表单' AFTER `allow_edit_node`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `send_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '传入参数' AFTER `allow_edit_page`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `add_sign_default_depts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '加签可选部门' AFTER `send_param`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_multiperson` int NULL DEFAULT NULL COMMENT '是否多人处理' AFTER `add_sign_default_depts`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sms_format_overdue` int NULL DEFAULT NULL COMMENT '超期提醒邮件格式（关联模板表）' AFTER `is_multiperson`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_deal_time` int NULL DEFAULT NULL COMMENT '默认处理时间（h）' AFTER `msg_push_sms_format_overdue`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_delete` int NULL DEFAULT NULL COMMENT '允许删除' AFTER `default_deal_time`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `return_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '返回参数' AFTER `allow_delete`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_download` int NULL DEFAULT NULL COMMENT '允许下载' AFTER `return_param`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `add_sign_default_posts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '加签可选岗位' AFTER `allow_download`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_mail_format_overdue` int NULL DEFAULT NULL COMMENT '超期提醒短信格式（关联模板表）' AFTER `node_attachment_download`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_signature` int NULL DEFAULT NULL COMMENT '允许签章' AFTER `msg_push_mail_format_overdue`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `sub_flow_function_uuid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '子流程功能uuid' AFTER `allow_signature`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `location_top` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '坐标，节点到上边界的垂直距离' AFTER `sub_flow_function_uuid`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `no_show_field` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '不展示字段' AFTER `location_top`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_upload` int NULL DEFAULT NULL COMMENT '允许上传' AFTER `no_show_field`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_sub_flow` int NULL DEFAULT NULL COMMENT '是否允许发起子流程' AFTER `allow_upload`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_type_advent` int NULL DEFAULT NULL COMMENT '临期提醒方式（短信、邮件、其他）' AFTER `allow_sub_flow`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `sub_flow_button_uuid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '子流程按钮uuid' AFTER `msg_push_type_advent`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `checked_flow_node_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联流程节点uuid，可选其他的某个节点的处理人' AFTER `sub_flow_button_uuid`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_default_direct_supervisor` int NULL DEFAULT NULL COMMENT '是否默认直属领导' AFTER `checked_flow_node_uuid`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_form_field_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '可选人员，表单字段' AFTER `is_default_direct_supervisor`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sp_func_advent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '临期提醒其他方式（关联模板表）' AFTER `default_form_field_user`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `allow_print` int NOT NULL COMMENT '允许打印' AFTER `msg_push_sp_func_advent`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_mail_format` decimal(2, 0) NULL DEFAULT NULL COMMENT '邮件模板' AFTER `allow_print`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sp_func` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `msg_push_mail_format`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `is_allow_update` decimal(2, 0) NULL DEFAULT NULL COMMENT '是否允许修改' AFTER `msg_push_sp_func`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_depts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '可选择的部门' AFTER `is_allow_update`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_posts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '可选岗位' AFTER `default_depts`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `default_deal_time_form` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `default_posts`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sms_format_advent` int NULL DEFAULT NULL COMMENT '临期提醒邮件格式（关联模板表）' AFTER `default_deal_time_form`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `msg_push_sp_func_overdue` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '超期提醒其他方式（关联模板表）' AFTER `msg_push_sms_format_advent`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `deal_type` int NULL DEFAULT NULL COMMENT '类型：0-等待处理，1-竞争处理，2-顺序处理' AFTER `msg_push_sp_func_overdue`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `editable_field` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '可编辑字段' AFTER `deal_type`;

ALTER TABLE `product_sys_flow_node` MODIFY COLUMN `add_sign_default_users` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '加签可选人员' AFTER `editable_field`;

call DropColumnIfExists('product_sys_flow_node','allow_seal');

ALTER TABLE `product_sys_flow_node` ADD COLUMN `allow_seal` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '允许使用的印章' AFTER `add_sign_default_users`;


call DropColumnIfExists('product_sys_flow_node','allow_nest_template');


ALTER TABLE `product_sys_flow_node` ADD COLUMN `allow_nest_template` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '允许使用的套红模板' AFTER `allow_seal`;
INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT '3e2540b8-34ec-48db-95d9-fad47ba68bca', '1', '2021-03-18 00:00:00', '1', '2021-03-18 00:00:00', NULL, 'product_sys_flow_node', 'flow节点表', '1', NULL, NULL, NULL, '123', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_flow_node');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'add_sign_default_depts', 'text', '加签可选部门', '加签可选部门', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '34', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='add_sign_default_depts');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'add_sign_default_posts', 'text', '加签可选岗位', '加签可选岗位', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '41', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='add_sign_default_posts');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'add_sign_default_users', 'text', '加签可选人员', '加签可选人员', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '64', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='add_sign_default_users');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'advent_percent', 'int', '临期百分比', '临期百分比', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '26', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='advent_percent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_delete', 'int', '允许删除', '允许删除', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '38', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_delete');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_download', 'int', '允许下载', '允许下载', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '40', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_download');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_edit_node', 'int', '允许编辑-节点', '允许编辑-节点', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '31', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_edit_node');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_edit_page', 'int', '允许编辑-表单', '允许编辑-表单', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '32', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_edit_page');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_nest_red', 'int', '允许套红', '允许套红', '4', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '29', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_nest_red');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_nest_template', 'string', '允许使用的套红模板', '允许使用的套红模板', '64', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '69', '1', '2023-06-09 00:00:00', '1', '2024-08-19 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_nest_template');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_preview', 'int', '允许预览', '允许预览', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '11', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_preview');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_print', 'int', '允许打印', '允许打印', '2', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '56', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_print');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_seal', 'string', '允许使用的印章', '允许使用的印章', '64', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '68', '1', '2023-06-09 00:00:00', '1', '2024-08-19 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_seal');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_signature', 'int', '允许签章', '允许签章', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '44', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_signature');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_sub_flow', 'int', '是否允许发起子流程', '是否允许发起子流程', '2', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '49', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_sub_flow');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'allow_upload', 'int', '允许上传', '允许上传', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '48', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='allow_upload');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'bean_return_param', 'string', 'bean返回参数', 'bean返回参数', '200', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '28', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='bean_return_param');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'bean_send_param', 'string', 'bean传入参数', 'bean传入参数', '200', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '14', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='bean_send_param');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'checked_flow_node_uuid', 'string', '流程节点', '关联流程节点uuid，可选其他的某个节点的处理人', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '52', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='checked_flow_node_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'created_by', 'string', '创建者', '创建者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '25', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '23', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'deal_type', 'int', '类型', '类型：0-等待处理，1-竞争处理，2-顺序处理', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '61', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='deal_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_deal_time', 'int', '默认处理时间', '默认处理时间（h）', '4', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '37', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_deal_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_deal_time_form', 'string', '默认处理时间', '默认处理时间（表单字段，h）', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '58', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_deal_time_form');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_depts', 'text', '可选择的部门', '可选择的部门', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '65', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_depts');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_form_field_dept', 'string', '可选部门', '可选部门，表单字段', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '22', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_form_field_dept');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_form_field_post', 'string', '可选岗位', '可选岗位，表单字段', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '12', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_form_field_post');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_form_field_user', 'string', '可选人员', '可选人员，表单字段', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '54', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_form_field_user');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_posts', 'text', '可选岗位', '可选岗位', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '67', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_posts');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'default_users', 'text', '可选择的人员', '可选择的人员', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '17', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='default_users');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'editable_field', 'text', '可编辑字段', '可编辑字段', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '66', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='editable_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'flow_node_describe', 'text', '节点描述', '节点描述', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '5', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='flow_node_describe');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'flow_uuid', 'parentuuid', 'flow流程表', '关联表lx_sys_flow_model', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', '3', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='flow_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'id', 'pk', '主键', '主键', '10', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '1', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_allow_add', 'int', '是否允许加签', '是否允许加签', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '8', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_allow_add');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_allow_back', 'int', '是否允许退回', '是否允许退回', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '10', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_allow_back');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_allow_share', 'int', '是否允许分享', '是否允许分享', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '21', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_allow_share');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_allow_update', 'int', '是否允许修改', '是否允许修改', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '62', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_allow_update');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_default_direct_supervisor', 'int', '默认直属领导', '是否默认直属领导', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '53', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_default_direct_supervisor');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_multiperson', 'int', '是否多人处理', '是否多人处理', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '35', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_multiperson');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'is_wait_sub_flow', 'int', '是否等待', '是否等待', '2', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='is_wait_sub_flow');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'location_left', 'string', '节点到左距离', '坐标，节点到左边界的垂直距离', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '16', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='location_left');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'location_top', 'string', '节点到上距离', '坐标，节点到上边界的垂直距离', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '46', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='location_top');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'module_type', 'int', '组件类型', '组件类型：1-开始节点，2-处理节点，0-结束节点', '2', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '30', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='module_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_mail_format', 'int', '邮件模板', '邮件模板', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '63', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_mail_format');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_mail_format_advent', 'int', '临期短信格式', '临期提醒短信格式（关联模板表）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '19', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_mail_format_advent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_mail_format_overdue', 'int', '超期短信格式', '超期提醒短信格式（关联模板表）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '43', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_mail_format_overdue');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sms_format', 'int', '短信模板', '短信模板', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '15', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sms_format');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sms_format_advent', 'int', '临期邮件格式', '临期提醒邮件格式（关联模板表）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '59', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sms_format_advent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sms_format_overdue', 'int', '超期邮件格式', '超期提醒邮件格式（关联模板表）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '36', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sms_format_overdue');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sp_func', 'string', '其他消息方式', '其他消息推送方法，调用java代码', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '57', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sp_func');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sp_func_advent', 'string', '临期其他方式', '临期提醒其他方式（关联模板表）', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '55', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sp_func_advent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_sp_func_overdue', 'string', '超期其他方式', '超期提醒其他方式（关联模板表）', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '60', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_sp_func_overdue');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_type', 'string', '消息推送方式', '消息推送方式（多选）：1-邮件，2-短信，3-其他', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '9', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_type_advent', 'int', '临期提醒方式', '临期提醒方式（短信、邮件、其他）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '50', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_type_advent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'msg_push_type_overdue', 'int', '超期提醒方式', '超期提醒方式（短信、邮件、其他）', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '24', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='msg_push_type_overdue');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'no_show_field', 'text', '不展示字段', '不展示字段', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '47', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='no_show_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'node_attachment_download', 'int', '下载附件', '下载附件', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '42', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='node_attachment_download');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'node_attachment_preview', 'int', '预览附件', '预览附件', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '20', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='node_attachment_preview');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'node_attachment_upload', 'int', '关联附件', '关联附件', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '13', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='node_attachment_upload');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'return_param', 'text', '返回参数', '返回参数', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '39', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='return_param');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'send_param', 'text', '传入参数', '传入参数', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '33', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='send_param');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'sub_flow_button_uuid', 'string', '子流程按钮uuid', '子流程按钮uuid', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '51', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='sub_flow_button_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'sub_flow_function_uuid', 'string', '子流程功能uuid', '子流程功能uuid', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '45', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='sub_flow_function_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'sub_flow_name', 'string', '子流程名称', '子流程名称', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '27', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='sub_flow_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'title', 'string', '节点名称', '节点名称', '200', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '4', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'updated_by', 'string', '修改者', '修改者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '18', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '7', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), '3e2540b8-34ec-48db-95d9-fad47ba68bca', 'uuid', 'string', 'uuid', 'uuid', '64', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '2', NULL, NULL, '1', '2023-04-26 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'add_sign_default_depts', field_type = 'text', field_show_name = '加签可选部门', field_description = '加签可选部门', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 34, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'add_sign_default_depts';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'add_sign_default_posts', field_type = 'text', field_show_name = '加签可选岗位', field_description = '加签可选岗位', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 41, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'add_sign_default_posts';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'add_sign_default_users', field_type = 'text', field_show_name = '加签可选人员', field_description = '加签可选人员', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 64, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'add_sign_default_users';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'advent_percent', field_type = 'int', field_show_name = '临期百分比', field_description = '临期百分比', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 26, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'advent_percent';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_delete', field_type = 'int', field_show_name = '允许删除', field_description = '允许删除', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 38, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_delete';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_download', field_type = 'int', field_show_name = '允许下载', field_description = '允许下载', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 40, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_download';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_edit_node', field_type = 'int', field_show_name = '允许编辑-节点', field_description = '允许编辑-节点', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 31, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_edit_node';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_edit_page', field_type = 'int', field_show_name = '允许编辑-表单', field_description = '允许编辑-表单', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 32, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_edit_page';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_nest_red', field_type = 'int', field_show_name = '允许套红', field_description = '允许套红', field_length = 4, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 29, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_nest_red';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_nest_template', field_type = 'string', field_show_name = '允许使用的套红模板', field_description = '允许使用的套红模板', field_length = 64, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 69, created_by = '1', created_utc_datetime = '2023-06-09 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_nest_template';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_preview', field_type = 'int', field_show_name = '允许预览', field_description = '允许预览', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_preview';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_print', field_type = 'int', field_show_name = '允许打印', field_description = '允许打印', field_length = 2, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 56, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_print';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_seal', field_type = 'string', field_show_name = '允许使用的印章', field_description = '允许使用的印章', field_length = 64, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 68, created_by = '1', created_utc_datetime = '2023-06-09 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_seal';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_signature', field_type = 'int', field_show_name = '允许签章', field_description = '允许签章', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 44, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_signature';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_sub_flow', field_type = 'int', field_show_name = '是否允许发起子流程', field_description = '是否允许发起子流程', field_length = 2, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 49, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_sub_flow';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'allow_upload', field_type = 'int', field_show_name = '允许上传', field_description = '允许上传', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 48, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'allow_upload';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'bean_return_param', field_type = 'string', field_show_name = 'bean返回参数', field_description = 'bean返回参数', field_length = 200, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 28, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'bean_return_param';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'bean_send_param', field_type = 'string', field_show_name = 'bean传入参数', field_description = 'bean传入参数', field_length = 200, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 14, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'bean_send_param';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'checked_flow_node_uuid', field_type = 'string', field_show_name = '流程节点', field_description = '关联流程节点uuid，可选其他的某个节点的处理人', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 52, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'checked_flow_node_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'created_by', field_type = 'string', field_show_name = '创建者', field_description = '创建者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 25, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 23, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'deal_type', field_type = 'int', field_show_name = '类型', field_description = '类型：0-等待处理，1-竞争处理，2-顺序处理', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 61, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'deal_type';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_deal_time', field_type = 'int', field_show_name = '默认处理时间', field_description = '默认处理时间（h）', field_length = 4, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 37, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_deal_time';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_deal_time_form', field_type = 'string', field_show_name = '默认处理时间', field_description = '默认处理时间（表单字段，h）', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 58, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_deal_time_form';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_depts', field_type = 'text', field_show_name = '可选择的部门', field_description = '可选择的部门', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 65, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_depts';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_form_field_dept', field_type = 'string', field_show_name = '可选部门', field_description = '可选部门，表单字段', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 22, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_form_field_dept';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_form_field_post', field_type = 'string', field_show_name = '可选岗位', field_description = '可选岗位，表单字段', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 12, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_form_field_post';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_form_field_user', field_type = 'string', field_show_name = '可选人员', field_description = '可选人员，表单字段', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 54, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_form_field_user';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_posts', field_type = 'text', field_show_name = '可选岗位', field_description = '可选岗位', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 67, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_posts';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'default_users', field_type = 'text', field_show_name = '可选择的人员', field_description = '可选择的人员', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 17, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'default_users';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'editable_field', field_type = 'text', field_show_name = '可编辑字段', field_description = '可编辑字段', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 66, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'editable_field';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'flow_node_describe', field_type = 'text', field_show_name = '节点描述', field_description = '节点描述', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 5, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'flow_node_describe';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'flow_uuid', field_type = 'parentuuid', field_show_name = 'flow流程表', field_description = '关联表lx_sys_flow_model', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_sequence = 3, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'flow_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 10, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_allow_add', field_type = 'int', field_show_name = '是否允许加签', field_description = '是否允许加签', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 8, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_allow_add';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_allow_back', field_type = 'int', field_show_name = '是否允许退回', field_description = '是否允许退回', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 10, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_allow_back';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_allow_share', field_type = 'int', field_show_name = '是否允许分享', field_description = '是否允许分享', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 21, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_allow_share';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_allow_update', field_type = 'int', field_show_name = '是否允许修改', field_description = '是否允许修改', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 62, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_allow_update';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_default_direct_supervisor', field_type = 'int', field_show_name = '默认直属领导', field_description = '是否默认直属领导', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 53, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_default_direct_supervisor';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_multiperson', field_type = 'int', field_show_name = '是否多人处理', field_description = '是否多人处理', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 35, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_multiperson';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'is_wait_sub_flow', field_type = 'int', field_show_name = '是否等待', field_description = '是否等待', field_length = 2, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'is_wait_sub_flow';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'location_left', field_type = 'string', field_show_name = '节点到左距离', field_description = '坐标，节点到左边界的垂直距离', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 16, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'location_left';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'location_top', field_type = 'string', field_show_name = '节点到上距离', field_description = '坐标，节点到上边界的垂直距离', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 46, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'location_top';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'module_type', field_type = 'int', field_show_name = '组件类型', field_description = '组件类型：1-开始节点，2-处理节点，0-结束节点', field_length = 2, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 30, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'module_type';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_mail_format', field_type = 'int', field_show_name = '邮件模板', field_description = '邮件模板', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 63, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_mail_format';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_mail_format_advent', field_type = 'int', field_show_name = '临期短信格式', field_description = '临期提醒短信格式（关联模板表）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 19, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_mail_format_advent';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_mail_format_overdue', field_type = 'int', field_show_name = '超期短信格式', field_description = '超期提醒短信格式（关联模板表）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 43, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_mail_format_overdue';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sms_format', field_type = 'int', field_show_name = '短信模板', field_description = '短信模板', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 15, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sms_format';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sms_format_advent', field_type = 'int', field_show_name = '临期邮件格式', field_description = '临期提醒邮件格式（关联模板表）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 59, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sms_format_advent';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sms_format_overdue', field_type = 'int', field_show_name = '超期邮件格式', field_description = '超期提醒邮件格式（关联模板表）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 36, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sms_format_overdue';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sp_func', field_type = 'string', field_show_name = '其他消息方式', field_description = '其他消息推送方法，调用java代码', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 57, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sp_func';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sp_func_advent', field_type = 'string', field_show_name = '临期其他方式', field_description = '临期提醒其他方式（关联模板表）', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 55, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sp_func_advent';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_sp_func_overdue', field_type = 'string', field_show_name = '超期其他方式', field_description = '超期提醒其他方式（关联模板表）', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 60, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_sp_func_overdue';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_type', field_type = 'string', field_show_name = '消息推送方式', field_description = '消息推送方式（多选）：1-邮件，2-短信，3-其他', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 9, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_type';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_type_advent', field_type = 'int', field_show_name = '临期提醒方式', field_description = '临期提醒方式（短信、邮件、其他）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 50, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_type_advent';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'msg_push_type_overdue', field_type = 'int', field_show_name = '超期提醒方式', field_description = '超期提醒方式（短信、邮件、其他）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 24, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'msg_push_type_overdue';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'no_show_field', field_type = 'text', field_show_name = '不展示字段', field_description = '不展示字段', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 47, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'no_show_field';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'node_attachment_download', field_type = 'int', field_show_name = '下载附件', field_description = '下载附件', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 42, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'node_attachment_download';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'node_attachment_preview', field_type = 'int', field_show_name = '预览附件', field_description = '预览附件', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 20, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'node_attachment_preview';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'node_attachment_upload', field_type = 'int', field_show_name = '关联附件', field_description = '关联附件', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'node_attachment_upload';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'return_param', field_type = 'text', field_show_name = '返回参数', field_description = '返回参数', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 39, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'return_param';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'send_param', field_type = 'text', field_show_name = '传入参数', field_description = '传入参数', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 33, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'send_param';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'sub_flow_button_uuid', field_type = 'string', field_show_name = '子流程按钮uuid', field_description = '子流程按钮uuid', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 51, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'sub_flow_button_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'sub_flow_function_uuid', field_type = 'string', field_show_name = '子流程功能uuid', field_description = '子流程功能uuid', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 45, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'sub_flow_function_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'sub_flow_name', field_type = 'string', field_show_name = '子流程名称', field_description = '子流程名称', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 27, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'sub_flow_name';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'title', field_type = 'string', field_show_name = '节点名称', field_description = '节点名称', field_length = 200, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 4, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'updated_by', field_type = 'string', field_show_name = '修改者', field_description = '修改者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 18, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '修改时间', field_description = '修改时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 64, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = 0 WHERE table_uuid = '3e2540b8-34ec-48db-95d9-fad47ba68bca' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='3e2540b8-34ec-48db-95d9-fad47ba68bca' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='3e2540b8-34ec-48db-95d9-fad47ba68bca';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659fa14-7fad-11ec-a3ed-902b3470f24e','3e2540b8-34ec-48db-95d9-fad47ba68bca','uuid','uuid','1' );

DROP TABLE IF EXISTS `product_sys_flow_agent_node_config`;

CREATE TABLE `product_sys_flow_agent_node_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '唯一标识',
  `created_by` bigint NOT NULL COMMENT '创建者，product_sys_users表user_id',
  `created_utc_datetime` datetime NOT NULL COMMENT '创建时间',
  `updated_by` bigint DEFAULT NULL COMMENT '更新者，product_sys_users表user_id',
  `updated_utc_datetime` datetime DEFAULT NULL COMMENT '更新时间',
  `master_uuid` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '主表uuid，关联product_sys_flow_agent_config',
  `flow_uuid` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '代理流程，关联product_sys_flow_model的  type_code 字段',
  `node_uuids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '代理节点，多个逗号分隔',
  `agent_user` bigint NOT NULL COMMENT '代理人',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid_unique` (`uuid`) USING BTREE,
  KEY `flow_index` (`flow_uuid`),
  KEY `agent_user` (`agent_user`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程代理节点配置';

DROP TABLE IF EXISTS `product_sys_flow_agent_config`;
CREATE TABLE `product_sys_flow_agent_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键自增',
  `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '唯一标识',
  `created_by` bigint NOT NULL COMMENT '创建者，product_sys_users表user_id',
  `created_utc_datetime` datetime NOT NULL COMMENT '创建时间',
  `updated_by` bigint DEFAULT NULL COMMENT '更新者，product_sys_users表user_id',
  `updated_utc_datetime` datetime DEFAULT NULL COMMENT '更新时间',
  `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '组织机构，product_sys_org_levels表uuid',
  `agent_cause` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '代理原因',
  `start_time` datetime NOT NULL COMMENT '启用日期',
  `end_time` datetime NOT NULL COMMENT '结束日期',
  `general_agent` bigint NOT NULL COMMENT '总代理人',
  `is_used` int NOT NULL COMMENT '启用 0 否 1 是',
  `message_feedback` int NOT NULL COMMENT '反馈 0 否 1 是',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid_unique` (`uuid`) USING BTREE,
  KEY `general_agent_index` (`general_agent`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程代理配置';

INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:10:17', NULL, 'product_sys_flow_agent_config', '流程代理配置', '1', NULL, NULL, NULL, '22', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_flow_agent_config');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'agent_cause', 'string', '代理原因', '代理原因', '255', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '8', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='agent_cause');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'created_by', 'userid', '创建者', '创建者，product_sys_users表user_id', '11', '0', '1', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '3', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '4', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'end_time', 'datetime', '结束日期', '结束日期', '0', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '10', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='end_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'general_agent', 'userid', '总代理人', '总代理人', '20', '0', '1', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '11', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='general_agent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'id', 'pk', '主键', '主键自增', '11', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '1', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'is_used', 'int', '启用', '启用 0 否 1 是', '20', '0', '1', NULL, NULL, '0', NULL, NULL, '《is_used》', NULL, '12', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='is_used');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'message_feedback', 'int', '反馈', '反馈 0 否 1 是', '20', '0', '1', NULL, NULL, '0', NULL, NULL, '《is_used》', NULL, '13', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='message_feedback');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'org_level_uuid', 'orgUuid', '组织机构', '组织机构，product_sys_org_levels表uuid', '80', '0', '1', NULL, NULL, '0', NULL, NULL, 'levels', NULL, '7', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='org_level_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'start_time', 'datetime', '启用日期', '启用日期', '0', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '9', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='start_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'updated_by', 'userid', '更新者', '更新者，product_sys_users表user_id', '11', '0', '0', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '5', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '6', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'uuid', 'string', '唯一标识', '唯一标识', '80', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '2', '1', '2024-08-22 18:10:21', '1', '2024-08-22 18:13:50', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'agent_cause', field_type = 'string', field_show_name = '代理原因', field_description = '代理原因', field_length = 255, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'agent_cause';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'created_by', field_type = 'userid', field_show_name = '创建者', field_description = '创建者，product_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 3, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'end_time', field_type = 'datetime', field_show_name = '结束日期', field_description = '结束日期', field_length = 0, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'end_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'general_agent', field_type = 'userid', field_show_name = '总代理人', field_description = '总代理人', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 11, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'general_agent';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键自增', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'is_used', field_type = 'int', field_show_name = '启用', field_description = '启用 0 否 1 是', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《is_used》', field_relation_table = NULL, field_sequence = 12, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'is_used';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'message_feedback', field_type = 'int', field_show_name = '反馈', field_description = '反馈 0 否 1 是', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《is_used》', field_relation_table = NULL, field_sequence = 13, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'message_feedback';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'org_level_uuid', field_type = 'orgUuid', field_show_name = '组织机构', field_description = '组织机构，product_sys_org_levels表uuid', field_length = 80, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'levels', field_relation_table = NULL, field_sequence = 7, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'start_time', field_type = 'datetime', field_show_name = '启用日期', field_description = '启用日期', field_length = 0, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'start_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'updated_by', field_type = 'userid', field_show_name = '更新者', field_description = '更新者，product_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_name = 'uuid', field_type = 'string', field_show_name = '唯一标识', field_description = '唯一标识', field_length = 80, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2024-08-22 18:10:21', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='afa86e2d-5b22-4fc6-a4ba-ab9a24061223' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='afa86e2d-5b22-4fc6-a4ba-ab9a24061223';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('d2b8a8dd-24ea-4245-8fda-8d257a5265d0','afa86e2d-5b22-4fc6-a4ba-ab9a24061223','general_agent_index','general_agent','0' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('d1ce6399-32e3-4d9b-bea5-d1856df36c59','afa86e2d-5b22-4fc6-a4ba-ab9a24061223','uuid_unique','uuid','1' );

INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:13:18', NULL, 'product_sys_flow_agent_node_config', '流程代理节点配置', '1', NULL, NULL, NULL, '33', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_flow_agent_node_config');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'agent_user', 'userid', '代理人', '代理人', '20', '0', '1', NULL, NULL, NULL, NULL, NULL, 'user_name_by_user_id', NULL, '10', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='agent_user');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'created_by', 'userid', '创建者', '创建者，product_sys_users表user_id', '11', '0', '1', NULL, NULL, NULL, NULL, NULL, 'user_name_by_user_id', NULL, '3', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '4', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'flow_uuid', 'string', '代理流程', '代理流程，关联product_sys_flow_model的  type_code 字段', '36', '0', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '8', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='flow_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'id', 'pk', '主键', '主键自增', '11', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'master_uuid', 'parentuuid', '主表uuid', '主表uuid，关联product_sys_flow_agent_config', '36', '0', '1', NULL, NULL, NULL, NULL, NULL, NULL, 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', '7', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='master_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'node_uuids', 'string', '代理节点', '代理节点，多个逗号分隔', '500', '0', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '9', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='node_uuids');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'updated_by', 'userid', '更新者', '更新者，product_sys_users表user_id', '11', '0', '0', NULL, NULL, NULL, NULL, NULL, 'user_name_by_user_id', NULL, '5', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '6', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', 'uuid', 'string', '唯一标识', '唯一标识', '80', '0', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2', '1', '2024-08-22 18:13:23', '1', '2024-08-22 18:14:18', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'agent_user', field_type = 'userid', field_show_name = '代理人', field_description = '代理人', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'agent_user';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'created_by', field_type = 'userid', field_show_name = '创建者', field_description = '创建者，product_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 3, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'flow_uuid', field_type = 'string', field_show_name = '代理流程', field_description = '代理流程，关联product_sys_flow_model的  type_code 字段', field_length = 36, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'flow_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键自增', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'master_uuid', field_type = 'parentuuid', field_show_name = '主表uuid', field_description = '主表uuid，关联product_sys_flow_agent_config', field_length = 36, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', field_sequence = 7, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'master_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'node_uuids', field_type = 'string', field_show_name = '代理节点', field_description = '代理节点，多个逗号分隔', field_length = 500, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'node_uuids';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'updated_by', field_type = 'userid', field_show_name = '更新者', field_description = '更新者，product_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066', field_name = 'uuid', field_type = 'string', field_show_name = '唯一标识', field_description = '唯一标识', field_length = 80, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2024-08-22 18:13:23', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'e694e5df-d6b3-4cfe-875e-cb2f8b80b066' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='e694e5df-d6b3-4cfe-875e-cb2f8b80b066' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='e694e5df-d6b3-4cfe-875e-cb2f8b80b066';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('a67c6682-eb6f-4d6e-b255-c0ed7ff2d61e','e694e5df-d6b3-4cfe-875e-cb2f8b80b066','agent_user','agent_user','0' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('2e52dbb3-4094-4668-b12a-0891c4220fd9','e694e5df-d6b3-4cfe-875e-cb2f8b80b066','flow_index','flow_uuid','0' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('a9acfdc5-497a-419f-913b-b076493b6b49','e694e5df-d6b3-4cfe-875e-cb2f8b80b066','uuid_unique','uuid','1' );

-- sys_face

call DropColumnIfExists('product_sys_face','flow_uuid');

-- ALTER TABLE `product_sys_face` DROP COLUMN `flow_uuid`;

call DropColumnIfExists('product_sys_face','tree_show');

ALTER TABLE `product_sys_face` ADD COLUMN `tree_show` int NULL DEFAULT NULL COMMENT '0 否 1 是' AFTER `terminal_type`;

call DropColumnIfExists('product_sys_face','tree_data_type');

ALTER TABLE `product_sys_face` ADD COLUMN `tree_data_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '数据源类型' AFTER `tree_show`;

call DropColumnIfExists('product_sys_face','tree_datasource');

ALTER TABLE `product_sys_face` ADD COLUMN `tree_datasource` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '树数据源' AFTER `tree_data_type`;

call DropColumnIfExists('product_sys_face','tree_label_key');
ALTER TABLE `product_sys_face` ADD COLUMN `tree_label_key` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '树显示key' AFTER `tree_datasource`;

call DropColumnIfExists('product_sys_face','tree_value_key');

ALTER TABLE `product_sys_face` ADD COLUMN `tree_value_key` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '树取值key' AFTER `tree_label_key`;

call sp_drop_index_if_exists('product_sys_face','faceNumber');

ALTER TABLE `product_sys_face` ADD INDEX `faceNumber`(`face_number` ASC) USING BTREE;


INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '209d91f5-b292-4fa2-a13b-f5eaad4f0d36', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'created_by', 'userid', '创建者', '创建者，lx_sys_users表user_id', '11', '0', '1', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '43c4dbc4-d5eb-4645-a182-029139ae04bf', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '1', NULL, NULL, '0', NULL, NULL, '', NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9d0e68d6-650e-48c0-b569-6531841aa239', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'face_desc', 'string', '表单描述', '表单描述', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='face_desc');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '3b65a837-1aec-4548-a5d7-7ae970a2b393', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'face_name', 'string', '表单名称', '表单名称', '255', '0', '1', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='face_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'e7dbde3d-1e80-491a-847b-9673417762d3', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'face_number', 'serialNumber', '表单号', '表单号', '20', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-04-13 00:00:00', '1', '2023-05-17 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='face_number');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'b5bcc864-7570-4081-a490-4edd89909e50', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'face_type', 'int', '表单类型', '表单类型', '4', '0', '1', '0', NULL, '0', NULL, NULL, '《face_type》', NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='face_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd7d14266-2344-4c69-8146-985012a2600b', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'formModel', 'string', '表单模型', '表单模型', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-05-18 00:00:00', '1', '2023-05-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='formModel');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '793977fa-a02f-49c4-b4f7-0800f43ca5a4', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'formRules', 'string', '校验模型', '校验模型', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-05-18 00:00:00', '1', '2023-05-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='formRules');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '6a695a3f-c479-414e-90bc-d1c8ccb6338c', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'gutter', 'int', '栅格间隔', '栅格间隔', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-05-18 00:00:00', '1', '2023-05-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='gutter');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0dddfee0-a5da-48de-bce1-a290ba4c8b1c', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'id', 'pk', '主键', '主键自增', '11', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '27807b57-3bab-4384-a957-c6b1be9a5b34', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'labelWidth', 'string', '标签宽度', '标签宽度', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-05-18 00:00:00', '1', '2023-05-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='labelWidth');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'bdc9875c-0cf8-4ac4-bf5e-977c436fed98', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'span', 'int', '行宽', '行宽占比', '4', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-05-18 00:00:00', '1', '2023-05-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='span');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '1a77a6c4-b4a0-4663-97b9-f9059964d795', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'table_uuid', 'string', '表名', '表uuid', '80', '0', '0', '0', NULL, '0', NULL, NULL, 'source_table_value_uuid', 'product_sys_datamodel_table', '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='table_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4f2fe2c0-90c3-43fa-9386-ebfc5594c636', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'terminal_type', 'int', '终端类型', '1 电脑  2 移动', '4', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-07-14 00:00:00', '1', '2023-07-14 16:49:10', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='terminal_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'c9222b82-c5db-4a7c-b510-58a5f58cd6bd', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'tree_data_type', 'string', '数据源类型', '数据源类型', '20', '0', '0', NULL, NULL, '0', NULL, NULL, '《data_source_type》', NULL, '0', '1', '2024-08-14 18:04:08', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='tree_data_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '870917b5-7fc0-47dc-80ed-ee41b3b7c45b', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'tree_datasource', 'string', '树数据源', '树数据源', '60', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-08-14 18:04:08', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='tree_datasource');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd9548a6a-2afc-4c60-8878-88549a08aaf5', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'tree_label_key', 'string', '树显示key', '树显示key', '60', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-08-14 18:04:08', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='tree_label_key');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5aa53940-26f8-4a76-a8ae-2e4a14c94a5d', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'tree_show', 'int', '树显示', '0 否 1 是', '2', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-08-14 18:04:08', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='tree_show');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '665a163c-02a0-4128-9f41-b7d12b0e8233', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'tree_value_key', 'string', '树取值key', '树取值key', '60', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-08-14 18:04:08', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='tree_value_key');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9b1eaabd-c530-4f49-b0fb-5262e06d6dd7', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'updated_by', 'int', '更新者', '更新者，lx_sys_users表user_id', '11', '0', '0', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '979d7df4-074f-4472-a8a2-f98f8c4dc2b6', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '10681647-2a2d-43a0-9e30-99b25464f2b4', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'uuid', 'string', '唯一标识', '唯一标识', '80', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-04-13 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' and field_name='uuid');


UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'created_by', field_type = 'userid', field_show_name = '创建者', field_description = '创建者，lx_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'face_desc', field_type = 'string', field_show_name = '表单描述', field_description = '表单描述', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'face_desc';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'face_name', field_type = 'string', field_show_name = '表单名称', field_description = '表单名称', field_length = 255, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'face_name';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'face_number', field_type = 'serialNumber', field_show_name = '表单号', field_description = '表单号', field_length = 20, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-04-13 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'face_number';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'face_type', field_type = 'int', field_show_name = '表单类型', field_description = '表单类型', field_length = 4, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《face_type》', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'face_type';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'formModel', field_type = 'string', field_show_name = '表单模型', field_description = '表单模型', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-05-18 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'formModel';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'formRules', field_type = 'string', field_show_name = '校验模型', field_description = '校验模型', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-05-18 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'formRules';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'gutter', field_type = 'int', field_show_name = '栅格间隔', field_description = '栅格间隔', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-05-18 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'gutter';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键自增', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'labelWidth', field_type = 'string', field_show_name = '标签宽度', field_description = '标签宽度', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-05-18 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'labelWidth';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'span', field_type = 'int', field_show_name = '行宽', field_description = '行宽占比', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-05-18 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'span';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'table_uuid', field_type = 'string', field_show_name = '表名', field_description = '表uuid', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'source_table_value_uuid', field_relation_table = 'product_sys_datamodel_table', field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'table_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'terminal_type', field_type = 'int', field_show_name = '终端类型', field_description = '1 电脑  2 移动', field_length = 4, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2023-07-14 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'terminal_type';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'tree_data_type', field_type = 'string', field_show_name = '数据源类型', field_description = '数据源类型', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《data_source_type》', field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-08-14 18:04:08', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'tree_data_type';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'tree_datasource', field_type = 'string', field_show_name = '树数据源', field_description = '树数据源', field_length = 60, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-08-14 18:04:08', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'tree_datasource';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'tree_label_key', field_type = 'string', field_show_name = '树显示key', field_description = '树显示key', field_length = 60, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-08-14 18:04:08', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'tree_label_key';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'tree_show', field_type = 'int', field_show_name = '树显示', field_description = '0 否 1 是', field_length = 2, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-08-14 18:04:08', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'tree_show';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'tree_value_key', field_type = 'string', field_show_name = '树取值key', field_description = '树取值key', field_length = 60, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-08-14 18:04:08', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'tree_value_key';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者，lx_sys_users表user_id', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826', field_name = 'uuid', field_type = 'string', field_show_name = '唯一标识', field_description = '唯一标识', field_length = 80, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '6ae9840b-8365-4eee-bb2d-dc09f382d826' AND field_name = 'uuid';



DELETE FROM `product_sys_datamodel_field` where table_uuid='6ae9840b-8365-4eee-bb2d-dc09f382d826' and DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='6ae9840b-8365-4eee-bb2d-dc09f382d826';



INSERT INTO `product_sys_datamodel_table_index` ( `uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) VALUES ( 'e473b45b-3a74-42c5-a8eb-cfc1e861009b', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'faceNumber', 'face_number', 0);
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) VALUES ( 'b659f4eb-7fad-11ec-a3ed-902b3470f24e', '6ae9840b-8365-4eee-bb2d-dc09f382d826', 'uuid', 'uuid', 1);



-- flow_detail

call sp_drop_index_if_exists('product_sys_flow_detail','unique_uuid');

-- ALTER TABLE `product_sys_flow_detail` DROP INDEX `unique_uuid`;

call sp_drop_index_if_exists('product_sys_flow_detail','index_flow');

-- ALTER TABLE `product_sys_flow_detail` DROP INDEX `index_flow`;

call sp_drop_index_if_exists('product_sys_flow_detail','index_flow_expect');

-- ALTER TABLE `product_sys_flow_detail` DROP INDEX `index_flow_expect`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `accept_time` datetime NOT NULL COMMENT '接收时间' FIRST;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `actual_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '实际处理人' AFTER `accept_time`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `advent_percent` decimal(2, 0) NULL DEFAULT NULL COMMENT '临期百分比' AFTER `actual_person`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者' AFTER `advent_percent`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `deal_time` datetime NULL DEFAULT NULL COMMENT '处理时间' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `expect_deal_time` datetime NULL DEFAULT NULL COMMENT '预期处理时间（小时）' AFTER `deal_time`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `expect_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '预期处理人' AFTER `expect_deal_time`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `flow_attachment` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '附件' AFTER `expect_person`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `flow_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联流程表uuid' AFTER `flow_attachment`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `id` bigint NOT NULL COMMENT '主键' AFTER `flow_uuid`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `next_node_info` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '下一节点信息' AFTER `id`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `node_deal_sign` int NULL DEFAULT NULL COMMENT '完成标识（0-未收，1-已收未办，2-已办，3-终止，4-竞争失败）' AFTER `next_node_info`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `node_sign` int NOT NULL COMMENT '节点标识（0-普通，1-加签，2-退回）' AFTER `node_deal_sign`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `node_title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '节点名称' AFTER `node_sign`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `node_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联节点表' AFTER `node_title`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `opinion` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '意见' AFTER `node_uuid`;


call DropColumnIfExists('product_sys_flow_detail','opinion_signature');

ALTER TABLE `product_sys_flow_detail` ADD COLUMN `opinion_signature` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '移动端手写签批意见（Uint8List图片）' AFTER `opinion`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `record_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联业务UUID' AFTER `opinion_signature`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `sign_attachment_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '签名' AFTER `record_uuid`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `source_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '源uuid，关联本表' AFTER `sign_attachment_uuid`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联表' AFTER `source_uuid`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `task_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联流程任务表' AFTER `table_name`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '标题' AFTER `task_uuid`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '修改者' AFTER `title`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '修改时间' AFTER `updated_by`;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid' AFTER `updated_utc_datetime`;


call sp_drop_index_if_exists('product_sys_flow_detail','flow_uuid');


ALTER TABLE `product_sys_flow_detail` ADD INDEX `flow_uuid`(`flow_uuid` ASC) USING BTREE;

call sp_drop_index_if_exists('product_sys_flow_detail','flow_uuid_expect');

ALTER TABLE `product_sys_flow_detail` ADD INDEX `flow_uuid_expect`(`flow_uuid` ASC, `expect_person` ASC) USING BTREE;

ALTER TABLE `product_sys_flow_detail` MODIFY COLUMN `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键';


INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'bf740510-2640-455b-9e52-4cb1a56f913b', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'accept_time', 'datetime', '接收时间', '接收时间', '0', '0', '1', '0', NULL, '1', NULL, NULL, NULL, '', '21', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='accept_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd19c348c-576f-4906-8a57-2f77df86d458', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'actual_person', 'string', '实际处理人', '实际处理人', '64', '0', '0', '0', NULL, '0', NULL, NULL, 'user_name_by_user_id', '', '23', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='actual_person');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f902df1f-c3a8-4529-8dc8-24b7a04229b3', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'advent_percent', 'number', '临期百分比', '临期百分比', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '26', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='advent_percent');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4fb6b309-c161-4b22-8e42-54021629da80', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'created_by', 'string', '发送人', '创建者', '50', '0', '0', '0', NULL, '1', NULL, NULL, 'user_name_by_user_id', NULL, '8', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '126a324c-ddf2-4134-a13e-04045ab030b5', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '3', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '1bf75809-a050-4221-af54-fb3315a42ba6', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'deal_time', 'datetime', '处理时间', '处理时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '4', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='deal_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'c16477dc-4122-4d00-9b09-be8210ca3fbc', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'expect_deal_time', 'datetime', '预期处理时间', '预期处理时间（小时）', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '22', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='expect_deal_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9c5ffb17-c6fa-4146-9734-f7a9c86f4c11', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'expect_person', 'string', '预期处理人', '预期处理人', '64', '0', '0', '0', NULL, '0', NULL, NULL, 'user_name_by_user_id', '', '18', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='expect_person');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '086bd7eb-af63-4dbd-babd-4717f11793d8', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'flow_attachment', 'file', '流程附件', '附件', '2000', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '2', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='flow_attachment');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7ca91506-2d21-4c79-8f6a-cbd0146c6c6c', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'flow_uuid', 'string', '关联流程表', '关联流程表uuid', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '15', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='flow_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7291785d-be43-4401-a85d-ee9af277c2fa', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'id', 'pk', '主键', '主键', '10', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '14', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '392bb42f-f5fc-4c00-a737-9002bd60f94f', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'next_node_info', 'string', '下一节点信息', '下一节点信息', '1000', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='next_node_info');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f36cd7cc-ec3d-4fb1-a447-c3ba2267f4f7', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'node_deal_sign', 'int', '完成标识', '完成标识（0-未收，1-已收未办，2-已办，3-终止，4-竞争失败）', '2', '0', '0', '0', NULL, '0', NULL, NULL, '《flow_node_deal_sign》', '', '24', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='node_deal_sign');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4511cb04-5ddc-4717-b67d-49707f718a17', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'node_sign', 'int', '节点标识', '节点标识（0-普通，1-加签，2-退回）', '2', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '7', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='node_sign');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'b4d2ece5-a2d5-43d7-9525-701fa36450ae', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'node_title', 'string', '节点名称', '节点名称', '500', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '20', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='node_title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f5109c11-8a41-4336-943a-4ea3e75be8f6', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'node_uuid', 'string', '关联节点表', '关联节点表', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '25', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='node_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5c71ad72-099e-4cc7-926c-139d4a6166aa', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'opinion', 'string', '意见', '意见', '2000', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '10', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='opinion');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '871eceb6-c954-4f5a-b38f-3d9bb19baa6b', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'opinion_signature', 'text', '手写签批', '移动端手写签批意见（Uint8List图片）', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '27', '1', '2024-09-07 00:00:00', '1', '2024-09-08 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='opinion_signature');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5af348b5-8d2a-44cd-aa6d-488dd6afb2d8', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'record_uuid', 'string', '关联业务', '关联业务UUID', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '9', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='record_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '642f38cb-c360-4929-9fc8-5557aba42e53', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'sign_attachment_uuid', 'string', '签名', '签名', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '12', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='sign_attachment_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0776642a-dc82-4b41-b0c6-613d722fb11c', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'source_uuid', 'string', '关联本表', '源uuid，关联本表', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '1', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='source_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '8bee4903-408f-48d7-be90-d906100b2a7e', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'table_name', 'table_name', '关联表', '关联表', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '17', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='table_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '31be8577-68eb-4fea-92e3-32d571a699d5', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'task_uuid', 'string', '流程任务表', '关联流程任务表', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '5', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='task_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'b259f02d-a262-40e7-93cf-e5f2d910d8bb', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'title', 'string', '标题', '标题', '500', '0', '1', '0', NULL, '1', NULL, NULL, NULL, '', '19', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '6fe20594-b06c-42fd-bd23-3e748943194c', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'updated_by', 'string', '修改者', '修改者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '13', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '627efec2-370a-425e-8ea2-ba9e592e8c25', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '11', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7ca91506-2d21-4c79-8f6a-cbd014d86c6c', '7ca91506-2d21-4c79-8f6a-cbd014d88893', 'uuid', 'string', 'uuid', 'uuid', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, NULL, '16', NULL, NULL, '1', '2023-08-28 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' and field_name='uuid');


UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'accept_time', field_type = 'datetime', field_show_name = '接收时间', field_description = '接收时间', field_length = 0, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 21, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'accept_time';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'actual_person', field_type = 'string', field_show_name = '实际处理人', field_description = '实际处理人', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = '', field_sequence = 23, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'actual_person';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'advent_percent', field_type = 'number', field_show_name = '临期百分比', field_description = '临期百分比', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 26, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'advent_percent';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'created_by', field_type = 'string', field_show_name = '发送人', field_description = '创建者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 8, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'deal_time', field_type = 'datetime', field_show_name = '处理时间', field_description = '处理时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 4, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'deal_time';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'expect_deal_time', field_type = 'datetime', field_show_name = '预期处理时间', field_description = '预期处理时间（小时）', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 22, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'expect_deal_time';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'expect_person', field_type = 'string', field_show_name = '预期处理人', field_description = '预期处理人', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = '', field_sequence = 18, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'expect_person';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'flow_attachment', field_type = 'file', field_show_name = '流程附件', field_description = '附件', field_length = 2000, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'flow_attachment';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'flow_uuid', field_type = 'string', field_show_name = '关联流程表', field_description = '关联流程表uuid', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 15, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'flow_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 10, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 14, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'next_node_info', field_type = 'string', field_show_name = '下一节点信息', field_description = '下一节点信息', field_length = 1000, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'next_node_info';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'node_deal_sign', field_type = 'int', field_show_name = '完成标识', field_description = '完成标识（0-未收，1-已收未办，2-已办，3-终止，4-竞争失败）', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《flow_node_deal_sign》', field_relation_table = '', field_sequence = 24, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'node_deal_sign';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'node_sign', field_type = 'int', field_show_name = '节点标识', field_description = '节点标识（0-普通，1-加签，2-退回）', field_length = 2, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 7, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'node_sign';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'node_title', field_type = 'string', field_show_name = '节点名称', field_description = '节点名称', field_length = 500, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 20, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'node_title';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'node_uuid', field_type = 'string', field_show_name = '关联节点表', field_description = '关联节点表', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 25, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'node_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'opinion', field_type = 'string', field_show_name = '意见', field_description = '意见', field_length = 2000, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 10, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'opinion';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'opinion_signature', field_type = 'text', field_show_name = '手写签批', field_description = '移动端手写签批意见（Uint8List图片）', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 27, created_by = '1', created_utc_datetime = '2024-09-07 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'opinion_signature';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'record_uuid', field_type = 'string', field_show_name = '关联业务', field_description = '关联业务UUID', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 9, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'record_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'sign_attachment_uuid', field_type = 'string', field_show_name = '签名', field_description = '签名', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 12, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'sign_attachment_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'source_uuid', field_type = 'string', field_show_name = '关联本表', field_description = '源uuid，关联本表', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 1, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'source_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'table_name', field_type = 'table_name', field_show_name = '关联表', field_description = '关联表', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 17, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'table_name';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'task_uuid', field_type = 'string', field_show_name = '流程任务表', field_description = '关联流程任务表', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 5, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'task_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'title', field_type = 'string', field_show_name = '标题', field_description = '标题', field_length = 500, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 19, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'updated_by', field_type = 'string', field_show_name = '修改者', field_description = '修改者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '修改时间', field_description = '修改时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 16, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '7ca91506-2d21-4c79-8f6a-cbd014d88893' AND field_name = 'uuid';



DELETE FROM `product_sys_datamodel_field` where table_uuid='7ca91506-2d21-4c79-8f6a-cbd014d88893' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='7ca91506-2d21-4c79-8f6a-cbd014d88893';



INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('0cd4457e-6480-49d0-a2cf-31d2ea70aad6','7ca91506-2d21-4c79-8f6a-cbd014d88893','flow_uuid','flow_uuid','0' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('08f90317-2d6a-4653-827b-e9e0b0cc3649','7ca91506-2d21-4c79-8f6a-cbd014d88893','flow_uuid_expect','flow_uuid,expect_person','0' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659f6f2-7fad-11ec-a3ed-902b3470f24e','7ca91506-2d21-4c79-8f6a-cbd014d88893','uuid','uuid','1' );

-- product_sys_flow_link

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者' FIRST;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `flow_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联表lx_sys_flow_model' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `target_uuid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '连线截止位置uuid，lx_sys_flow_node uuid' AFTER `flow_uuid`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `id` bigint NOT NULL COMMENT '主键' AFTER `target_uuid`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `target_type` int NOT NULL COMMENT '连线截止类型：1-节点，2-处理器' AFTER `id`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '标题' AFTER `target_type`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '修改时间' AFTER `title`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid' AFTER `updated_utc_datetime`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '修改者' AFTER `uuid`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `judge` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '判定条件' AFTER `updated_by`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `source_uuid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '连线起始位置uuid，lx_sys_flow_node uuid' AFTER `judge`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `source_type` int NOT NULL COMMENT '连线起点类型：1-节点，2-处理器' AFTER `source_uuid`;

ALTER TABLE `product_sys_flow_link` MODIFY COLUMN `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键';


INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9b216c7d-4a60-41c2-b5f3-1a294e6d715d', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'created_by', 'string', '创建者', '创建者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '9', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd2707756-2a6c-4190-960f-3b6bc83bbf19', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '13', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0c59b810-6449-4a69-89c1-b4b8acc65eac', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'flow_uuid', 'parentuuid', 'flow流程表', '关联表lx_sys_flow_model', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', '1', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='flow_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '185f6d09-cd92-423b-979e-08530ee6b630', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'id', 'pk', '主键', '主键', '10', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '3', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a990cfe4-bbb8-4db8-b1c5-d2af5a551bb8', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'judge', 'string', '判定条件', '判定条件', '1000', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '10', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='judge');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'cd070196-1ea0-478c-8941-a1b3dbb1a576', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'source_type', 'int', '连线起点类型', '连线起点类型：1-节点，2-处理器', '16', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '12', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='source_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a999afbc-cf01-4912-b947-2dcdcda9fa8b', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'source_uuid', 'string', '连线起始位置', '连线起始位置uuid，lx_sys_flow_node uuid', '50', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '11', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='source_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '13a9da74-3a38-4dba-8a29-ce715d192fa1', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'target_type', 'int', '连线截止类型', '连线截止类型：1-节点，2-处理器', '16', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '4', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='target_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '10573fc9-f0b0-47f7-9070-e1ca944fd10b', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'target_uuid', 'string', '连线截止位置', '连线截止位置uuid，lx_sys_flow_node uuid', '50', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '2', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='target_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '22e0c645-71b2-40e7-8313-6c303f057b1a', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'title', 'string', '标题', '标题', '200', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '5', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7373855a-34e2-4059-acc6-1577786e3257', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'updated_by', 'string', '修改者', '修改者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '8', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '2cbc332c-1b4c-49a6-97c9-ba8859ca9b6d', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '3032a5e2-505a-4f83-93b1-3b8ba4e6fd57', 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', 'uuid', 'string', 'uuid', 'uuid', '64', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '7', NULL, NULL, '1', '2024-10-29 11:51:52', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and field_name='uuid');


UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'created_by', field_type = 'string', field_show_name = '创建者', field_description = '创建者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'flow_uuid', field_type = 'parentuuid', field_show_name = 'flow流程表', field_description = '关联表lx_sys_flow_model', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_sequence = 1, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'flow_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 10, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'judge', field_type = 'string', field_show_name = '判定条件', field_description = '判定条件', field_length = 1000, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 10, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'judge';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'source_type', field_type = 'int', field_show_name = '连线起点类型', field_description = '连线起点类型：1-节点，2-处理器', field_length = 16, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 12, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'source_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'source_uuid', field_type = 'string', field_show_name = '连线起始位置', field_description = '连线起始位置uuid，lx_sys_flow_node uuid', field_length = 50, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 11, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'source_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'target_type', field_type = 'int', field_show_name = '连线截止类型', field_description = '连线截止类型：1-节点，2-处理器', field_length = 16, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 4, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'target_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'target_uuid', field_type = 'string', field_show_name = '连线截止位置', field_description = '连线截止位置uuid，lx_sys_flow_node uuid', field_length = 50, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 2, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'target_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'title', field_type = 'string', field_show_name = '标题', field_description = '标题', field_length = 200, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 5, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'updated_by', field_type = 'string', field_show_name = '修改者', field_description = '修改者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '修改时间', field_description = '修改时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 64, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' AND field_name = 'uuid';


DELETE FROM `product_sys_datamodel_field` where table_uuid='fcf9cea7-21cd-4799-9505-ce1d3c8f98e6' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='fcf9cea7-21cd-4799-9505-ce1d3c8f98e6';

INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659f7f4-7fad-11ec-a3ed-902b3470f24e','fcf9cea7-21cd-4799-9505-ce1d3c8f98e6','uuid','uuid','1' );



-- product_sys_flow_model
ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid' AFTER `id`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `created_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者' AFTER `uuid`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `updated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '修改者' AFTER `created_utc_datetime`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '公司uuid' AFTER `updated_utc_datetime`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '流程名称' AFTER `org_level_uuid`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `table_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联表uuid' AFTER `title`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `image` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'image' AFTER `table_uuid`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `flow_course_save_api` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '流程中保存api地址' AFTER `image`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `custom_page` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联自定义页面' AFTER `flow_course_save_api`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `form_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '关联表单uuid' AFTER `custom_page`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `flow_flag` int NULL DEFAULT NULL COMMENT '流程送办默认字段，0-待发，1-在办，2-办结' AFTER `form_uuid`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `type_code` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '类型uuid，类型唯一识别' AFTER `flow_flag`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `module_uuid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '关联模块表' AFTER `type_code`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `form_validation` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '表单验证方法' AFTER `module_uuid`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `flow_model_describe` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '流程描述' AFTER `form_validation`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `flow_course_query_bean` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '流程中查询的方法' AFTER `flow_model_describe`;

ALTER TABLE`product_sys_flow_model` MODIFY COLUMN `is_allow_transmit` int NULL DEFAULT NULL COMMENT '是否允许转发' AFTER `flow_course_query_bean`;


call DropColumnIfExists('product_sys_flow_model','use_time_limit');

ALTER TABLE`product_sys_flow_model` ADD COLUMN `use_time_limit` int NULL DEFAULT NULL COMMENT ' 0 否 1是' AFTER `is_allow_transmit`;


INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a1d1f1df-60aa-4f22-b811-fee21ae7248a', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'created_by', 'string', '创建者', '创建者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '3', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '275a41f3-a5d9-4389-839e-860757aeeed5', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '4', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '51792062-3cde-4235-85f3-226be4d762b7', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'custom_page', 'string', '自定义页面', '关联自定义页面', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, '', '12', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='custom_page');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'ec34cc6b-6d19-4a90-a6eb-a7b779850d9d', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'flow_course_query_bean', 'string', '流程中查询bean.method', '流程中查询的方法', '255', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '19', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='flow_course_query_bean');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '360361bf-e6f1-41ca-ad10-2e60a34b1235', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'flow_course_save_api', 'string', '流程中保存api地址', '流程中保存api地址', '150', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '11', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='flow_course_save_api');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '6b510f2c-78fa-4da1-ab4a-45711e342cd6', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'flow_flag', 'flowsign', '流程默认字段', '流程送办默认字段，0-待发，1-在办，2-办结', '4', '0', '0', '0', NULL, '0', NULL, NULL, '《flow_send_status》', NULL, '14', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='flow_flag');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'de1e2899-54ec-4b90-90c3-90803997ca8f', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'flow_model_describe', 'string', '流程描述', '流程描述', '2000', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '18', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='flow_model_describe');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '629c3872-3ebc-4220-bd96-e96b9f57b12c', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'form_uuid', 'string', '关联表单', '关联表单uuid', '64', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '13', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='form_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'c4c734f4-bdeb-49c9-bdc0-3909cfe4f4a2', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'form_validation', 'string', '表单验证方法', '表单验证方法', '60', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '17', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='form_validation');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f9757a2f-7074-491a-9c7f-43d459ab2060', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'id', 'pk', '主键', '主键', '10', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '1', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0cfb992d-7e60-44e5-bbde-1d372c890912', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'image', 'file', 'image', 'image', '80', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '10', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='image');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f4cec8ba-6973-4297-9f32-56e8e60bbb4b', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'is_allow_transmit', 'int', '是否允许转发', '是否允许转发', '2', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '20', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='is_allow_transmit');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a06e3cc0-5788-4bed-9eb7-480536d804e4', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'module_uuid', 'string', '关联模块表', '关联模块表', '64', '0', '1', '0', NULL, '0', NULL, NULL, 'function_parent', '', '16', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='module_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f89796e6-034f-4a7a-bdd1-ffb65d0b94eb', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'org_level_uuid', 'string', '公司', '公司uuid', '80', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '7', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='org_level_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '30d97fe5-1c8e-4fcb-a985-e1c5f3874ef2', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'table_uuid', 'string', '关联表', '关联表uuid', '64', '0', '1', '0', NULL, '0', NULL, NULL, NULL, '', '9', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='table_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '6f2f41bc-8d08-4390-b67d-894df2b61c9b', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'title', 'string', '流程名称', '流程名称', '200', '0', '1', '0', NULL, '1', NULL, NULL, NULL, '', '8', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9e90b239-c37a-409f-90cb-da720a3fa14a', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'type_code', 'string', '类型', '类型uuid，类型唯一识别', '80', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '15', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='type_code');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'ac762f43-2100-4f14-b240-15d0e9af07ac', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'updated_by', 'string', '修改者', '修改者', '50', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '5', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '89745768-3fb9-4177-a499-343af7531a16', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a226bc58-4e0a-4290-84b9-9a4014c3840b', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'use_time_limit', 'int', '使用限时', ' 0 否 1是', '20', '0', '0', NULL, NULL, '0', NULL, NULL, '', NULL, '21', '1', '2024-08-19 00:00:00', '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='use_time_limit');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'ec7803bc-9941-4add-9ed7-4ee9f435694c', '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', 'uuid', 'string', 'uuid', 'uuid', '64', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '2', NULL, NULL, '1', '2024-08-19 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'created_by', field_type = 'string', field_show_name = '创建者', field_description = '创建者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'custom_page', field_type = 'string', field_show_name = '自定义页面', field_description = '关联自定义页面', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 12, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'custom_page';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'flow_course_query_bean', field_type = 'string', field_show_name = '流程中查询bean.method', field_description = '流程中查询的方法', field_length = 255, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 19, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'flow_course_query_bean';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'flow_course_save_api', field_type = 'string', field_show_name = '流程中保存api地址', field_description = '流程中保存api地址', field_length = 150, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'flow_course_save_api';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'flow_flag', field_type = 'flowsign', field_show_name = '流程默认字段', field_description = '流程送办默认字段，0-待发，1-在办，2-办结', field_length = 4, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '《flow_send_status》', field_relation_table = NULL, field_sequence = 14, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'flow_flag';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'flow_model_describe', field_type = 'string', field_show_name = '流程描述', field_description = '流程描述', field_length = 2000, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 18, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'flow_model_describe';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'form_uuid', field_type = 'string', field_show_name = '关联表单', field_description = '关联表单uuid', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'form_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'form_validation', field_type = 'string', field_show_name = '表单验证方法', field_description = '表单验证方法', field_length = 60, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 17, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'form_validation';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 10, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'image', field_type = 'file', field_show_name = 'image', field_description = 'image', field_length = 80, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'image';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'is_allow_transmit', field_type = 'int', field_show_name = '是否允许转发', field_description = '是否允许转发', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 20, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'is_allow_transmit';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'module_uuid', field_type = 'string', field_show_name = '关联模块表', field_description = '关联模块表', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'function_parent', field_relation_table = '', field_sequence = 16, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'module_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'org_level_uuid', field_type = 'string', field_show_name = '公司', field_description = '公司uuid', field_length = 80, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'table_uuid', field_type = 'string', field_show_name = '关联表', field_description = '关联表uuid', field_length = 64, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 9, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'table_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'title', field_type = 'string', field_show_name = '流程名称', field_description = '流程名称', field_length = 200, field_unit = '0', is_required = 1, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 8, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'type_code', field_type = 'string', field_show_name = '类型', field_description = '类型uuid，类型唯一识别', field_length = 80, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 15, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'type_code';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'updated_by', field_type = 'string', field_show_name = '修改者', field_description = '修改者', field_length = 50, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 5, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '修改时间', field_description = '修改时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'use_time_limit', field_type = 'int', field_show_name = '使用限时', field_description = ' 0 否 1是', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '', field_relation_table = NULL, field_sequence = 21, created_by = '1', created_utc_datetime = '2024-08-19 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'use_time_limit';
UPDATE product_sys_datamodel_field SET table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 64, field_unit = '0', is_required = 1, is_unique = 1, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = '4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659f8f0-7fad-11ec-a3ed-902b3470f24e','4e8a70c1-dbc6-4e9d-b391-4eacf1974b1d','uuid','uuid','1' );




-- product_sys_staffs

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `email_address` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '邮箱地址' FIRST;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `enter_work` datetime NULL DEFAULT NULL COMMENT '参加工作时间' AFTER `email_address`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `religious_time` datetime NULL DEFAULT NULL COMMENT '加入宗教时间' AFTER `enter_work`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `education` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '学历' AFTER `religious_time`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `age` int NULL DEFAULT NULL COMMENT '年龄' AFTER `education`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `current_salary` int NULL DEFAULT NULL COMMENT '现薪酬' AFTER `age`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `residential_telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '住宅电话' AFTER `current_salary`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `major` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '专业' AFTER `residential_telephone`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `birthday_category` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '生日类别' AFTER `major`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `sequence` int NULL DEFAULT NULL COMMENT '排序' AFTER `birthday_category`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `leader_tricode` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '员工上下级编码' AFTER `sequence`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `head_img` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '员工头像' AFTER `leader_tricode`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `marital_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '婚姻状况' AFTER `head_img`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `height` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '身高(cm)' AFTER `marital_status`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `sex` int NULL DEFAULT NULL COMMENT '性别' AFTER `height`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `registered_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '户口类别' AFTER `sex`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `office_telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '办公电话' AFTER `registered_type`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `regular_salary` int NULL DEFAULT NULL COMMENT '转正薪金' AFTER `office_telephone`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `entry_datetime` datetime NULL DEFAULT NULL COMMENT '入职日期' AFTER `regular_salary`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `nation` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '民族' AFTER `probationary_salary`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `mobile_mac` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '移动设备MAC' AFTER `nation`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `mobile_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '移动电话' AFTER `mobile_mac`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `religious` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '宗教信仰 ' AFTER `mobile_phone`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `native_place` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '籍贯' AFTER `religious`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `birth_date` datetime NULL DEFAULT NULL COMMENT '出生年月' AFTER `native_place`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `registered_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '户口地址' AFTER `birth_date`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `political_outlook` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '政治面貌' AFTER `registered_address`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `id_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '身份证号码' AFTER `political_outlook`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `contact_address` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '联系地址' AFTER `id_number`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `probation_period` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '试用期' AFTER `contact_address`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `enter_profession` datetime NULL DEFAULT NULL COMMENT '入行时间' AFTER `probation_period`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `title` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '职称' AFTER `enter_profession`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `blood_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '血型' AFTER `title`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `team_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '所属团队编码' AFTER `blood_type`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `enclosure` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '附件' AFTER `team_code`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '备注' AFTER `enclosure`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `birthday` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '生日' AFTER `remark`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_id` bigint NOT NULL COMMENT '数据表主键ID' AFTER `birthday`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'UUID' AFTER `staff_id`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `tricode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '员工编码' AFTER `uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `direct_leader_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '直属领导编码' AFTER `tricode`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `user_id` int NULL DEFAULT NULL COMMENT '员工姓名' AFTER `direct_leader_code`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_avatar` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '员工头像' AFTER `user_id`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `client_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '所属客户' AFTER `staff_avatar`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公司UUID' AFTER `client_uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `dept_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '部门UUID' AFTER `org_level_uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `role_uuids` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色UUID' AFTER `dept_uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `is_org_admin` int NULL DEFAULT NULL COMMENT '是否为单位管理员：0否  1是' AFTER `role_uuids`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `is_org_manager` int NULL DEFAULT NULL COMMENT '是否为单位负责人：0否 1是' AFTER `is_org_admin`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `is_dept_manage` int NULL DEFAULT NULL COMMENT '是否为部门负责人：0否 1是' AFTER `is_org_manager`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `job_post_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '岗位名称' AFTER `is_dept_manage`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `job_post_grade_uuid` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '岗位等级' AFTER `job_post_uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '员工邮箱' AFTER `job_post_grade_uuid`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_image` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '员工图像' AFTER `staff_email`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_status` int NOT NULL COMMENT '员工状态' AFTER `staff_image`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `created_by` int NULL DEFAULT NULL COMMENT '创建者' AFTER `staff_status`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '更新者' AFTER `created_utc_datetime`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '更新时间' AFTER `updated_by`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `show_name` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '显示姓名' AFTER `updated_utc_datetime`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '员工编号：跟podium系统对接时使用' AFTER `show_name`;


call DropColumnIfExists('product_sys_staffs','school');

ALTER TABLE`product_sys_staffs` ADD COLUMN `school` varchar(320) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '毕业学校' AFTER `staff_code`;

call DropColumnIfExists('product_sys_staffs','resume_file');

ALTER TABLE`product_sys_staffs` ADD COLUMN `resume_file` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '简历附件' AFTER `school`;

ALTER TABLE`product_sys_staffs` MODIFY COLUMN `staff_id` bigint NOT NULL AUTO_INCREMENT COMMENT '数据表主键ID';

INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0d8d28d3-89fb-4935-81fb-7a9d83f4eda8', 'product_sys_staffs', 'age', 'int', '年龄', '年龄', '11', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '5', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='age');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'b675d2a0-3ba3-4d98-9363-657682201c81', 'product_sys_staffs', 'birth_date', 'datetime', '出生年月', '出生年月', '0', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '26', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='birth_date');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'fb3e7d65-40c4-4aa2-860d-fcb50d6e8c4b', 'product_sys_staffs', 'birthday', 'string', '生日', '生日', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '38', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='birthday');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4e31405a-79d7-45e7-9528-13e7703e6595', 'product_sys_staffs', 'birthday_category', 'string', '生日类别', '生日类别', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '9', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='birthday_category');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'eb1ed128-6295-481e-be72-413d43251837', 'product_sys_staffs', 'blood_type', 'string', '血型', '血型', '20', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '34', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='blood_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs011', 'product_sys_staffs', 'client_uuid', 'string', '所属客户', '所属客户', '80', '0', '1', '0', '0', '0', NULL, NULL, 'lx_sys_clients', NULL, '45', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='client_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'cd2b7c98-e53c-4d20-9855-860c5c8c4347', 'product_sys_staffs', 'contact_address', 'string', '联系地址', '联系地址', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '30', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='contact_address');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs023', 'product_sys_staffs', 'created_by', 'int', '创建者', '创建者', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '57', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs024', 'product_sys_staffs', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '58', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '139bdabd-5b1e-4c39-a7f3-fee3abbd0b17', 'product_sys_staffs', 'current_salary', 'int', '现薪酬', '现薪酬', '11', '2', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '6', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='current_salary');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs013', 'product_sys_staffs', 'dept_uuid', 'string', '部门', '部门UUID', '80', '0', '1', '0', '0', '0', NULL, NULL, 'levelUuid_deptUuid', 'product_sys_org_levels', '47', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='dept_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs004', 'product_sys_staffs', 'direct_leader_code', 'string', '直属领导编码', '直属领导编码', '100', '0', '0', '0', '0', '0', NULL, NULL, 'superiors', NULL, '42', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='direct_leader_code');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '0aeeb0b8-e623-4490-9273-f9973d3015d6', 'product_sys_staffs', 'education', 'string', '学历', '学历', '20', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '4', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='education');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '03978bd2-c2bc-4504-b145-346d9ae3e854', 'product_sys_staffs', 'email_address', 'string', '邮箱地址', '邮箱地址', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '1', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='email_address');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'f5f153cb-5000-4310-8376-e0949caee146', 'product_sys_staffs', 'enclosure', 'file', '附件', '附件', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '36', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='enclosure');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd972f8af-671c-4187-ad43-a9331c90d553', 'product_sys_staffs', 'enter_profession', 'datetime', '入行时间', '入行时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '32', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='enter_profession');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '04a3135f-5502-45ac-b5e8-bdf73ec022cc', 'product_sys_staffs', 'enter_work', 'datetime', '参加工作时间', '参加工作时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '2', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='enter_work');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '75442a80-7a84-4e1e-8a11-bca2232084c3', 'product_sys_staffs', 'entry_datetime', 'datetime', '入职日期', '入职日期', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '19', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='entry_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '50c2ae19-e9ce-4e89-87e3-4b3835170305', 'product_sys_staffs', 'head_img', 'file', '员工头像', '员工头像', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '12', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='head_img');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5481abb2-74da-4b2e-bdf6-c070d8a09f4f', 'product_sys_staffs', 'height', 'string', '身高(cm)', '身高(cm)', '20', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '14', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='height');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'ccd22c15-cd14-421b-b668-b4127e171abe', 'product_sys_staffs', 'id_number', 'string', '身份证号码', '身份证号码', '100', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '29', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='id_number');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs017', 'product_sys_staffs', 'is_dept_manage', 'int', '部门负责人', '是否为部门负责人：0否 1是', '2', '0', '0', '0', '0', '0', NULL, NULL, '', NULL, '51', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='is_dept_manage');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs015', 'product_sys_staffs', 'is_org_admin', 'int', '单位管理员', '是否为单位管理员：0否  1是', '2', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '49', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='is_org_admin');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs016', 'product_sys_staffs', 'is_org_manager', 'int', '单位负责人', '是否为单位负责人：0否 1是', '2', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '50', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='is_org_manager');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs019', 'product_sys_staffs', 'job_post_grade_uuid', 'string', '岗位等级', '岗位等级', '1000', '0', '0', '0', '0', '0', NULL, NULL, 'product_sys_job_post_grades', 'product_sys_job_post_grades', '53', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='job_post_grade_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs018', 'product_sys_staffs', 'job_post_uuid', 'string', '岗位表', '岗位名称', '80', '0', '1', '0', '0', '0', NULL, NULL, 'level-dept-post', 'product_sys_job_posts', '52', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='job_post_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '50b0e3fe-8a30-4761-b8e5-893073d0fe50', 'product_sys_staffs', 'leader_tricode', 'code', '员工编码', '员工上下级编码', '60', '0', '1', NULL, NULL, '0', NULL, NULL, NULL, NULL, '11', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='leader_tricode');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '2f01f0f3-19e9-4ac2-8ab8-544230504ae2', 'product_sys_staffs', 'major', 'string', '专业', '专业', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '8', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='major');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5227d8e7-53da-4b6b-bfb8-cb3664b2291e', 'product_sys_staffs', 'marital_status', 'string', '婚姻状况', '婚姻状况', '20', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '13', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='marital_status');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '983c226b-afa5-4ccb-89d6-d0d19d6e37fe', 'product_sys_staffs', 'mobile_mac', 'string', '移动设备MAC', '移动设备MAC', '50', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '22', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='mobile_mac');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '9908a788-01ce-457f-83dc-1db9d1e89d09', 'product_sys_staffs', 'mobile_phone', 'string', '移动电话', '移动电话', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '23', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='mobile_phone');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '8377acfb-c1c3-4a03-bf63-3cdb21a14d9a', 'product_sys_staffs', 'nation', 'string', '民族', '民族', '20', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '21', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='nation');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'adae16a9-129c-40e0-8404-139283d6ac23', 'product_sys_staffs', 'native_place', 'string', '籍贯', '籍贯', '255', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '25', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='native_place');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '696fdfd6-451f-40a7-b248-587a8f35eba0', 'product_sys_staffs', 'office_telephone', 'string', '办公电话', '办公电话', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '17', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='office_telephone');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs012', 'product_sys_staffs', 'org_level_uuid', 'string', '公司', '公司UUID', '80', '0', '1', '0', '0', '0', NULL, NULL, 'org_level_for_clients', 'product_sys_org_levels', '46', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='org_level_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'cc93341d-03a7-48ad-9685-8317f710f455', 'product_sys_staffs', 'political_outlook', 'string', '政治面貌', '政治面貌', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '28', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='political_outlook');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd0256777-4b8b-486d-b540-8090c5e03001', 'product_sys_staffs', 'probation_period', 'string', '试用期', '试用期', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '31', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='probation_period');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7f5ca8ea-3b27-4802-babd-989f9e1693d9', 'product_sys_staffs', 'probationary_salary', 'int', '试用薪金', '试用薪金', '11', '2', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '20', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='probationary_salary');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'bffab82c-a95f-4b19-a54a-6c6a3b7cc72d', 'product_sys_staffs', 'registered_address', 'string', '户口地址', '户口地址', '255', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '27', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='registered_address');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5cc03fa2-6150-4aef-a21d-a7b3947ab6b8', 'product_sys_staffs', 'registered_type', 'string', '户口类别', '户口类别', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '16', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='registered_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '6c12c8a3-e658-4444-8dd6-0a11b8037a13', 'product_sys_staffs', 'regular_salary', 'int', '转正薪金', '转正薪金', '11', '2', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '18', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='regular_salary');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'a5e14c11-353c-4428-9b77-06d67a3c8be0', 'product_sys_staffs', 'religious', 'string', '宗教信仰 ', '宗教信仰 ', '255', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '24', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='religious');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '06350260-6abd-468f-99ce-cdadd932ba86', 'product_sys_staffs', 'religious_time', 'datetime', '加入宗教时间', '加入宗教时间', '0', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '3', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='religious_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'fab04174-07a3-4d4f-9767-2a2de227e0dd', 'product_sys_staffs', 'remark', 'string', '备注', '备注', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '37', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='remark');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '2cd9071a-144f-4cef-92be-0878082be968', 'product_sys_staffs', 'residential_telephone', 'string', '住宅电话', '住宅电话', '20', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '7', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='residential_telephone');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '09ca379c-5802-4975-90d0-e9aa268b62ea', 'product_sys_staffs', 'resume_file', 'file', '简历附件', '简历附件', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '64', '1', '2024-09-10 00:00:00', '1', '2024-09-11 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='resume_file');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs014', 'product_sys_staffs', 'role_uuids', 'string', '角色', '角色UUID', '800', '0', '1', '0', '0', '0', NULL, NULL, 'level-role', 'product_sys_role', '48', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='role_uuids');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4d2776f4-55d6-43fb-a93c-4861217ac6f4', 'product_sys_staffs', 'school', 'string', '毕业学校', '毕业学校', '320', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '63', '1', '2024-09-10 00:00:00', '1', '2024-09-10 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='school');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4f83d519-e598-4c59-be03-e4a4e7455fa7', 'product_sys_staffs', 'sequence', 'int', '排序', '排序', '11', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '10', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='sequence');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '5bdf0e39-8d8d-4973-90d1-cd71106d55a1', 'product_sys_staffs', 'sex', 'int', '性别', '性别', '11', '0', '0', '0', NULL, '1', NULL, NULL, NULL, NULL, '15', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='sex');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs027', 'product_sys_staffs', 'show_name', 'string', '显示姓名', '显示姓名', '300', '0', '1', '0', '0', '1', NULL, NULL, NULL, NULL, '61', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='show_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs010', 'product_sys_staffs', 'staff_avatar', 'string', '员工头像', '员工头像', '1000', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '44', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_avatar');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs_staff_code', 'product_sys_staffs', 'staff_code', 'string', '员工编号', '员工编号：跟podium系统对接时使用', '64', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '62', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_code');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs020', 'product_sys_staffs', 'staff_email', 'string', '员工邮箱', '员工邮箱', '64', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '54', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_email');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs001', 'product_sys_staffs', 'staff_id', 'pk', '数据表主键', '数据表主键ID', '11', '0', '0', '1', '0', '0', NULL, NULL, NULL, NULL, '39', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs021', 'product_sys_staffs', 'staff_image', 'string', '员工图像', '员工图像', '1000', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '55', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_image');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs022', 'product_sys_staffs', 'staff_status', 'int', '状态：1 启用 0 停用', '员工状态', '2', '0', '1', '0', '0', '1', NULL, NULL, '《staffStatus》', NULL, '56', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='staff_status');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'edd85ea5-ff08-43e3-a495-4b419f8baab3', 'product_sys_staffs', 'team_code', 'string', '团队名称', '所属团队编码', '255', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '35', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='team_code');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'ea7f5561-f2d1-4b09-9516-782593f3fc7d', 'product_sys_staffs', 'title', 'string', '职称', '职称', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '33', NULL, NULL, '1', '2024-09-06 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs003', 'product_sys_staffs', 'tricode', 'code', '员工编码', '员工编码', '100', '0', '1', '1', '0', '0', NULL, NULL, NULL, NULL, '41', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='tricode');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs025', 'product_sys_staffs', 'updated_by', 'int', '更新者', '更新者', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '59', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs026', 'product_sys_staffs', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '60', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs005', 'product_sys_staffs', 'user_id', 'int', 'user表', '员工姓名', '20', '0', '0', '0', '0', '0', NULL, NULL, NULL, 'product_sys_users', '43', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='user_id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'lx_sys_staffs002', 'product_sys_staffs', 'uuid', 'string', 'UUID', 'UUID', '80', '0', '1', '1', '0', '0', NULL, NULL, NULL, NULL, '40', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_staffs' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'age', field_type = 'int', field_show_name = '年龄', field_description = '年龄', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 5, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'age';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'birth_date', field_type = 'datetime', field_show_name = '出生年月', field_description = '出生年月', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 26, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'birth_date';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'birthday', field_type = 'string', field_show_name = '生日', field_description = '生日', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 38, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'birthday';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'birthday_category', field_type = 'string', field_show_name = '生日类别', field_description = '生日类别', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'birthday_category';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'blood_type', field_type = 'string', field_show_name = '血型', field_description = '血型', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 34, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'blood_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'client_uuid', field_type = 'string', field_show_name = '所属客户', field_description = '所属客户', field_length = 80, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'lx_sys_clients', field_relation_table = NULL, field_sequence = 45, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'client_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'contact_address', field_type = 'string', field_show_name = '联系地址', field_description = '联系地址', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 30, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'contact_address';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'created_by', field_type = 'int', field_show_name = '创建者', field_description = '创建者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 57, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 58, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'current_salary', field_type = 'int', field_show_name = '现薪酬', field_description = '现薪酬', field_length = 11, field_unit = '2', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'current_salary';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'dept_uuid', field_type = 'string', field_show_name = '部门', field_description = '部门UUID', field_length = 80, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'levelUuid_deptUuid', field_relation_table = 'product_sys_org_levels', field_sequence = 47, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'dept_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'direct_leader_code', field_type = 'string', field_show_name = '直属领导编码', field_description = '直属领导编码', field_length = 100, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'superiors', field_relation_table = NULL, field_sequence = 42, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'direct_leader_code';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'education', field_type = 'string', field_show_name = '学历', field_description = '学历', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'education';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'email_address', field_type = 'string', field_show_name = '邮箱地址', field_description = '邮箱地址', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'email_address';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'enclosure', field_type = 'file', field_show_name = '附件', field_description = '附件', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 36, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'enclosure';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'enter_profession', field_type = 'datetime', field_show_name = '入行时间', field_description = '入行时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 32, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'enter_profession';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'enter_work', field_type = 'datetime', field_show_name = '参加工作时间', field_description = '参加工作时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 2, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'enter_work';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'entry_datetime', field_type = 'datetime', field_show_name = '入职日期', field_description = '入职日期', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 19, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'entry_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'head_img', field_type = 'file', field_show_name = '员工头像', field_description = '员工头像', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 12, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'head_img';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'height', field_type = 'string', field_show_name = '身高(cm)', field_description = '身高(cm)', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 14, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'height';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'id_number', field_type = 'string', field_show_name = '身份证号码', field_description = '身份证号码', field_length = 100, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 29, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'id_number';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'is_dept_manage', field_type = 'int', field_show_name = '部门负责人', field_description = '是否为部门负责人：0否 1是', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = '', field_relation_table = NULL, field_sequence = 51, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'is_dept_manage';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'is_org_admin', field_type = 'int', field_show_name = '单位管理员', field_description = '是否为单位管理员：0否  1是', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 49, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'is_org_admin';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'is_org_manager', field_type = 'int', field_show_name = '单位负责人', field_description = '是否为单位负责人：0否 1是', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 50, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'is_org_manager';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'job_post_grade_uuid', field_type = 'string', field_show_name = '岗位等级', field_description = '岗位等级', field_length = 1000, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'product_sys_job_post_grades', field_relation_table = 'product_sys_job_post_grades', field_sequence = 53, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'job_post_grade_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'job_post_uuid', field_type = 'string', field_show_name = '岗位表', field_description = '岗位名称', field_length = 80, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'level-dept-post', field_relation_table = 'product_sys_job_posts', field_sequence = 52, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'job_post_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'leader_tricode', field_type = 'code', field_show_name = '员工编码', field_description = '员工上下级编码', field_length = 60, field_unit = '0', is_required = 1, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 11, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'leader_tricode';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'major', field_type = 'string', field_show_name = '专业', field_description = '专业', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'major';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'marital_status', field_type = 'string', field_show_name = '婚姻状况', field_description = '婚姻状况', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 13, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'marital_status';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'mobile_mac', field_type = 'string', field_show_name = '移动设备MAC', field_description = '移动设备MAC', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 22, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'mobile_mac';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'mobile_phone', field_type = 'string', field_show_name = '移动电话', field_description = '移动电话', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 23, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'mobile_phone';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'nation', field_type = 'string', field_show_name = '民族', field_description = '民族', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 21, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'nation';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'native_place', field_type = 'string', field_show_name = '籍贯', field_description = '籍贯', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 25, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'native_place';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'office_telephone', field_type = 'string', field_show_name = '办公电话', field_description = '办公电话', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 17, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'office_telephone';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'org_level_uuid', field_type = 'string', field_show_name = '公司', field_description = '公司UUID', field_length = 80, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'org_level_for_clients', field_relation_table = 'product_sys_org_levels', field_sequence = 46, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'political_outlook', field_type = 'string', field_show_name = '政治面貌', field_description = '政治面貌', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 28, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'political_outlook';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'probation_period', field_type = 'string', field_show_name = '试用期', field_description = '试用期', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 31, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'probation_period';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'probationary_salary', field_type = 'int', field_show_name = '试用薪金', field_description = '试用薪金', field_length = 11, field_unit = '2', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 20, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'probationary_salary';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'registered_address', field_type = 'string', field_show_name = '户口地址', field_description = '户口地址', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 27, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'registered_address';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'registered_type', field_type = 'string', field_show_name = '户口类别', field_description = '户口类别', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 16, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'registered_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'regular_salary', field_type = 'int', field_show_name = '转正薪金', field_description = '转正薪金', field_length = 11, field_unit = '2', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 18, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'regular_salary';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'religious', field_type = 'string', field_show_name = '宗教信仰 ', field_description = '宗教信仰 ', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 24, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'religious';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'religious_time', field_type = 'datetime', field_show_name = '加入宗教时间', field_description = '加入宗教时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'religious_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'remark', field_type = 'string', field_show_name = '备注', field_description = '备注', field_length = 500, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 37, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'remark';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'residential_telephone', field_type = 'string', field_show_name = '住宅电话', field_description = '住宅电话', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'residential_telephone';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'resume_file', field_type = 'file', field_show_name = '简历附件', field_description = '简历附件', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 64, created_by = '1', created_utc_datetime = '2024-09-10 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'resume_file';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'role_uuids', field_type = 'string', field_show_name = '角色', field_description = '角色UUID', field_length = 800, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = 'level-role', field_relation_table = 'product_sys_role', field_sequence = 48, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'role_uuids';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'school', field_type = 'string', field_show_name = '毕业学校', field_description = '毕业学校', field_length = 320, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 63, created_by = '1', created_utc_datetime = '2024-09-10 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'school';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'sequence', field_type = 'int', field_show_name = '排序', field_description = '排序', field_length = 11, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'sequence';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'sex', field_type = 'int', field_show_name = '性别', field_description = '性别', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 15, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'sex';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'show_name', field_type = 'string', field_show_name = '显示姓名', field_description = '显示姓名', field_length = 300, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 61, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'show_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_avatar', field_type = 'string', field_show_name = '员工头像', field_description = '员工头像', field_length = 1000, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 44, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_avatar';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_code', field_type = 'string', field_show_name = '员工编号', field_description = '员工编号：跟podium系统对接时使用', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 62, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_code';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_email', field_type = 'string', field_show_name = '员工邮箱', field_description = '员工邮箱', field_length = 64, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 54, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_email';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_id', field_type = 'pk', field_show_name = '数据表主键', field_description = '数据表主键ID', field_length = 11, field_unit = '0', is_required = 0, is_unique = 1, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 39, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_image', field_type = 'string', field_show_name = '员工图像', field_description = '员工图像', field_length = 1000, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 55, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_image';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'staff_status', field_type = 'int', field_show_name = '状态：1 启用 0 停用', field_description = '员工状态', field_length = 2, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = '《staffStatus》', field_relation_table = NULL, field_sequence = 56, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'staff_status';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'team_code', field_type = 'string', field_show_name = '团队名称', field_description = '所属团队编码', field_length = 255, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 35, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'team_code';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'title', field_type = 'string', field_show_name = '职称', field_description = '职称', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 33, created_by = NULL, created_utc_datetime = NULL, updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'tricode', field_type = 'code', field_show_name = '员工编码', field_description = '员工编码', field_length = 100, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 41, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'tricode';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 59, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 60, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'user_id', field_type = 'int', field_show_name = 'user表', field_description = '员工姓名', field_length = 20, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = 'product_sys_users', field_sequence = 43, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'user_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_staffs', field_name = 'uuid', field_type = 'string', field_show_name = 'UUID', field_description = 'UUID', field_length = 80, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 40, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_staffs' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='product_sys_staffs' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='product_sys_staffs';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b65d8105-7fad-11ec-a3ed-902b3470f24e','product_sys_staffs','uuid','uuid','1' );

-- product_oa_cooperate_flow_node

call DropColumnIfExists('product_oa_cooperate_flow_node','is_tracks');

-- ALTER TABLE `product_oa_cooperate_flow_node` DROP COLUMN `is_tracks`;

call DropColumnIfExists('product_oa_cooperate_flow_node','is_track');

ALTER TABLE `product_oa_cooperate_flow_node` ADD COLUMN `is_track` int NULL DEFAULT NULL COMMENT '是否允许跟踪（1.是、0.否）' AFTER `grade`;

INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'product_oa_cooperate_flow_node', '1', '2021-03-24 15:33:55', '1', '2021-03-24 15:33:55', NULL, 'product_oa_cooperate_flow_node', '协同办公流程表', '1', NULL, NULL, 'uuid', '133', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_oa_cooperate_flow_node');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'accept_time', 'datetime', '接收时间', '接收时间', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='accept_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'attachments', 'string', '附件', '附件', '2000', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-05-27 00:00:00', '1', '2021-05-27 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='attachments');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'cooperate_uuid', 'parentuuid', '关联协同表', '关联协同表uuid', '64', NULL, '1', '0', '0', NULL, NULL, NULL, NULL, 'product_oa_cooperates', '0', '1', '2021-03-24 00:00:00', '1', '2021-03-24 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='cooperate_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'grade', 'int', '办理人层级', '办理人层级', '4', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-24 00:00:00', '1', '2021-03-24 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='grade');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'handle_time', 'datetime', '办理时间', '办理时间', '0', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='handle_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'id', 'pk', '自增主键', '自增主键id', '11', NULL, '0', '1', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-24 00:00:00', '1', '2021-03-24 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'is_hide_commentss', 'int ', '隐藏回复意见', '是否隐藏回复意见（1.是、0.否）', '4', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-05-26 00:00:00', '1', '2021-05-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='is_hide_commentss');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'is_track', 'int ', '是否允许跟踪', '是否允许跟踪（1.是、0.否）', '4', '0', '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-05-26 00:00:00', '1', '2021-05-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='is_track');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'opinion', 'string', '意见内容', '意见内容', '5000', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='opinion');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'receiver', 'int', '接收人', '接收人（关联用户表id）', '4', NULL, NULL, '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='receiver');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'receiver_name', 'string', '接收人姓名', '接收人姓名', '64', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='receiver_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'sender', 'int', '发送人', '发送人（关联用户表id）', '4', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='sender');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'sender_name', 'string', '发送人姓名', '发送人姓名', '64', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='sender_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'status', 'int', '状态', '0:未收未办 1:已收未办
2:已收已办', '4', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='status');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'title', 'string', '流程标题', '流程标题', '64', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-24 00:00:00', '1', '2021-03-24 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'tricode', 'string', '办理人全路径', 'tricode+’_’+sender:办理人全路径', '64', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='tricode');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'type', 'int ', '功能按钮', '0:暂存 1:加签 2:转发 3:退回4:送办 5:终止
6:撤销', '4', NULL, '0', '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-26 00:00:00', '1', '2021-03-26 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_oa_cooperate_flow_node', 'uuid', 'string', '唯一主键uuid', '唯一主键uuid', '64', NULL, '1', '1', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', '2021-03-24 00:00:00', '1', '2021-03-24 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_oa_cooperate_flow_node' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'accept_time', field_type = 'datetime', field_show_name = '接收时间', field_description = '接收时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = NULL, updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'accept_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'attachments', field_type = 'string', field_show_name = '附件', field_description = '附件', field_length = 2000, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-05-27 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'attachments';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'cooperate_uuid', field_type = 'parentuuid', field_show_name = '关联协同表', field_description = '关联协同表uuid', field_length = 64, field_unit = NULL, is_required = 1, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = 'product_oa_cooperates', field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-24 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'cooperate_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'grade', field_type = 'int', field_show_name = '办理人层级', field_description = '办理人层级', field_length = 4, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-24 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'grade';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'handle_time', field_type = 'datetime', field_show_name = '办理时间', field_description = '办理时间', field_length = 0, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'handle_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'id', field_type = 'pk', field_show_name = '自增主键', field_description = '自增主键id', field_length = 11, field_unit = NULL, is_required = 0, is_unique = 1, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-24 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'is_hide_commentss', field_type = 'int ', field_show_name = '隐藏回复意见', field_description = '是否隐藏回复意见（1.是、0.否）', field_length = 4, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-05-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'is_hide_commentss';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'is_track', field_type = 'int ', field_show_name = '是否允许跟踪', field_description = '是否允许跟踪（1.是、0.否）', field_length = 4, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-05-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'is_track';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'opinion', field_type = 'string', field_show_name = '意见内容', field_description = '意见内容', field_length = 5000, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'opinion';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'receiver', field_type = 'int', field_show_name = '接收人', field_description = '接收人（关联用户表id）', field_length = 4, field_unit = NULL, is_required = NULL, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'receiver';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'receiver_name', field_type = 'string', field_show_name = '接收人姓名', field_description = '接收人姓名', field_length = 64, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'receiver_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'sender', field_type = 'int', field_show_name = '发送人', field_description = '发送人（关联用户表id）', field_length = 4, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'sender';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'sender_name', field_type = 'string', field_show_name = '发送人姓名', field_description = '发送人姓名', field_length = 64, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'sender_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'status', field_type = 'int', field_show_name = '状态', field_description = '0:未收未办 1:已收未办
2:已收已办', field_length = 4, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'status';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'title', field_type = 'string', field_show_name = '流程标题', field_description = '流程标题', field_length = 64, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-24 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'tricode', field_type = 'string', field_show_name = '办理人全路径', field_description = 'tricode+’_’+sender:办理人全路径', field_length = 64, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'tricode';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'type', field_type = 'int ', field_show_name = '功能按钮', field_description = '0:暂存 1:加签 2:转发 3:退回4:送办 5:终止
6:撤销', field_length = 4, field_unit = NULL, is_required = 0, is_unique = 0, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-26 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_oa_cooperate_flow_node', field_name = 'uuid', field_type = 'string', field_show_name = '唯一主键uuid', field_description = '唯一主键uuid', field_length = 64, field_unit = NULL, is_required = 1, is_unique = 1, is_international = 0, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2021-03-24 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_oa_cooperate_flow_node' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='product_oa_cooperate_flow_node' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='product_oa_cooperate_flow_node';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b6597102-7fad-11ec-a3ed-902b3470f24e','product_oa_cooperate_flow_node','uuid','uuid','1' );


-- product_sys_track_v



CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `product_sys_track_v` AS select `b`.`title` AS `title`,`c`.`sender` AS `sender`,`b`.`accept_time` AS `accept_time`,`b`.`deal_time` AS `deal_time`,if((`c`.`is_urgency` = 1),'紧急','不紧急') AS `is_urgency`,`d`.`dict_label` AS `status`,`c`.`uuid` AS `uuid`,`a`.`track_user` AS `track_user`,`a`.`detail_uuid` AS `flow_node_uuid`,0 AS `type` from (((`product_sys_flow_track` `a` left join `product_sys_flow_detail` `b` on(((`a`.`task_uuid` = `b`.`task_uuid`) and (`a`.`node_uuid` = `b`.`node_uuid`) and (`a`.`flow_uuid` = `b`.`flow_uuid`) and (`a`.`detail_uuid` = `b`.`uuid`)))) left join `product_sys_flow_task` `c` on((`a`.`task_uuid` = `c`.`uuid`))) left join (select `product_sys_dict`.`dict_id` AS `dict_id`,`product_sys_dict`.`uuid` AS `uuid`,`product_sys_dict`.`dict_name` AS `dict_name`,`product_sys_dict`.`dict_label` AS `dict_label`,`product_sys_dict`.`dict_value` AS `dict_value`,`product_sys_dict`.`is_used` AS `is_used`,`product_sys_dict`.`sequence` AS `sequence`,`product_sys_dict`.`org_level_uuid` AS `org_level_uuid`,`product_sys_dict`.`client_type` AS `client_type`,`product_sys_dict`.`client_uuid` AS `client_uuid`,`product_sys_dict`.`created_utc_datetime` AS `created_utc_datetime`,`product_sys_dict`.`created_by` AS `created_by`,`product_sys_dict`.`updated_utc_datetime` AS `updated_utc_datetime`,`product_sys_dict`.`updated_by` AS `updated_by`,`product_sys_dict`.`dict_value_img` AS `dict_value_img`,`product_sys_dict`.`dict_value_color` AS `dict_value_color` from `product_sys_dict` where (`product_sys_dict`.`dict_name` = 'flow_node_deal_sign')) `d` on((`b`.`node_deal_sign` = `d`.`dict_value`))) union all select `b`.`title` AS `title`,`b`.`created_by` AS `created_by`,`a`.`accept_time` AS `accept_time`,`a`.`handle_time` AS `handle_time`,`c`.`dict_label` AS `emergency_degree`,`d`.`dict_label` AS `status`,`b`.`uuid` AS `uuid`,NULL AS `track_user`,`a`.`uuid` AS `flow_node_uuid`,1 AS `type` from (((`product_oa_cooperate_flow_node` `a` left join `product_oa_cooperates` `b` on((`a`.`cooperate_uuid` = `b`.`uuid`))) left join (select `product_sys_dict`.`dict_id` AS `dict_id`,`product_sys_dict`.`uuid` AS `uuid`,`product_sys_dict`.`dict_name` AS `dict_name`,`product_sys_dict`.`dict_label` AS `dict_label`,`product_sys_dict`.`dict_value` AS `dict_value`,`product_sys_dict`.`is_used` AS `is_used`,`product_sys_dict`.`sequence` AS `sequence`,`product_sys_dict`.`org_level_uuid` AS `org_level_uuid`,`product_sys_dict`.`client_type` AS `client_type`,`product_sys_dict`.`client_uuid` AS `client_uuid`,`product_sys_dict`.`created_utc_datetime` AS `created_utc_datetime`,`product_sys_dict`.`created_by` AS `created_by`,`product_sys_dict`.`updated_utc_datetime` AS `updated_utc_datetime`,`product_sys_dict`.`updated_by` AS `updated_by`,`product_sys_dict`.`dict_value_img` AS `dict_value_img`,`product_sys_dict`.`dict_value_color` AS `dict_value_color` from `product_sys_dict` where (`product_sys_dict`.`dict_name` = 'emergency_degree')) `c` on((`b`.`emergency_degree` = `c`.`dict_value`))) left join (select `product_sys_dict`.`dict_id` AS `dict_id`,`product_sys_dict`.`uuid` AS `uuid`,`product_sys_dict`.`dict_name` AS `dict_name`,`product_sys_dict`.`dict_label` AS `dict_label`,`product_sys_dict`.`dict_value` AS `dict_value`,`product_sys_dict`.`is_used` AS `is_used`,`product_sys_dict`.`sequence` AS `sequence`,`product_sys_dict`.`org_level_uuid` AS `org_level_uuid`,`product_sys_dict`.`client_type` AS `client_type`,`product_sys_dict`.`client_uuid` AS `client_uuid`,`product_sys_dict`.`created_utc_datetime` AS `created_utc_datetime`,`product_sys_dict`.`created_by` AS `created_by`,`product_sys_dict`.`updated_utc_datetime` AS `updated_utc_datetime`,`product_sys_dict`.`updated_by` AS `updated_by`,`product_sys_dict`.`dict_value_img` AS `dict_value_img`,`product_sys_dict`.`dict_value_color` AS `dict_value_color` from `product_sys_dict` where (`product_sys_dict`.`dict_name` = 'flow_send_status')) `d` on((`b`.`status` = `d`.`dict_value`))) where (`a`.`is_track` = 1);

INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'b3041ef7-5ac5-4065-af3d-0043634217e7', '1', '2024-08-21 00:00:00', '1', '2024-08-21 00:00:00', NULL, 'product_sys_track_v', '跟踪表视图', '2', '', 'SELECT
b.title,
c.sender,
b.accept_time,
b.deal_time,
IF(c.is_urgency =1,\'紧急\',\'不紧急\') is_urgency,
d.dict_label status,
c.uuid,
a.track_user,
a.detail_uuid flow_node_uuid,
0 type
FROM
product_sys_flow_track a LEFT JOIN product_sys_flow_detail b
on a.task_uuid =b.task_uuid and a.node_uuid=b.node_uuid and a.flow_uuid=b.flow_uuid and a.detail_uuid=b.uuid
LEFT JOIN product_sys_flow_task c  on a.task_uuid =c.uuid
LEFT JOIN (SELECT* FROM product_sys_dict where dict_name=\'flow_node_deal_sign\') d on b.node_deal_sign=d.dict_value
UNION ALL
SELECT
b.title,
b.created_by,
a.accept_time,
a.handle_time,
c.dict_label emergency_degree,
d.dict_label status,
b.uuid,
null track_user,
a.uuid flow_node_uuid,
1 type
FROM
product_oa_cooperate_flow_node a LEFT JOIN  product_oa_cooperates b on a.cooperate_uuid =b.uuid
LEFT JOIN (SELECT* FROM product_sys_dict where dict_name=\'emergency_degree\') c on b.emergency_degree=c.dict_value
LEFT JOIN (SELECT* FROM product_sys_dict where dict_name=\'flow_send_status\') d on b.status=d.dict_value
where a.is_track=1 ', NULL, '1', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_track_v');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT 'd1de4d05-876c-499a-9311-f95ccb82b6d0', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'accept_time', 'string', 'accept_time', 'accept_time', '20', '0', '0', NULL, NULL, '1', NULL, NULL, NULL, NULL, '3', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='accept_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '8d1689f1-feb9-42de-93d2-3cb07007020a', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'deal_time', 'string', 'deal_time', 'deal_time', '20', '0', '0', NULL, NULL, '1', NULL, NULL, NULL, NULL, '4', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='deal_time');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '4734ef07-8120-4406-b32a-7aa13d28ebc6', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'flow_node_uuid', 'string', 'flow_node_uuid', 'flow_node_uuid', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '9', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='flow_node_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '26fe3bff-c553-499a-9011-e83e97188a9e', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'is_urgency', 'string', 'is_urgency', 'is_urgency', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '5', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='is_urgency');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '2be52919-fa39-40d2-a2bb-c834bc1b45f2', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'sender', 'string', 'sender', 'sender', '20', '0', '0', NULL, NULL, '1', NULL, NULL, 'user_name_by_user_id', NULL, '2', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='sender');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '49c880a3-e847-4d08-8aa4-21adcdf2156b', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'status', 'string', 'status', 'status', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '6', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='status');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '7031b77b-02ec-4cee-9916-895b95156b5b', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'title', 'string', 'title', 'title', '20', '0', '0', NULL, NULL, '1', NULL, NULL, NULL, NULL, '1', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='title');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '3949f5b0-4a2e-42d7-8ff8-4fa76fc9d48c', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'track_user', 'string', 'track_user', 'track_user', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '8', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='track_user');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '13cac3e1-de07-481e-b428-11abcfeb02b3', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'type', 'string', 'type', 'type', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '10', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT '212db427-8f75-45c1-91b9-4345a4030df2', 'b3041ef7-5ac5-4065-af3d-0043634217e7', 'uuid', 'string', 'uuid', 'uuid', '20', '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '7', '1', '2024-08-26 00:00:00', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'accept_time', field_type = 'string', field_show_name = 'accept_time', field_description = 'accept_time', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 3, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'accept_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'deal_time', field_type = 'string', field_show_name = 'deal_time', field_description = 'deal_time', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 4, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'deal_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'flow_node_uuid', field_type = 'string', field_show_name = 'flow_node_uuid', field_description = 'flow_node_uuid', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 9, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'flow_node_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'is_urgency', field_type = 'string', field_show_name = 'is_urgency', field_description = 'is_urgency', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 5, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'is_urgency';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'sender', field_type = 'string', field_show_name = 'sender', field_description = 'sender', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 2, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'sender';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'status', field_type = 'string', field_show_name = 'status', field_description = 'status', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 6, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'status';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'title', field_type = 'string', field_show_name = 'title', field_description = 'title', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 1, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'track_user', field_type = 'string', field_show_name = 'track_user', field_description = 'track_user', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 8, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'track_user';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'type', field_type = 'string', field_show_name = 'type', field_description = 'type', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 10, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'type';
UPDATE product_sys_datamodel_field SET table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7', field_name = 'uuid', field_type = 'string', field_show_name = 'uuid', field_description = 'uuid', field_length = 20, field_unit = '0', is_required = 0, is_unique = NULL, is_international = NULL, is_filter = NULL, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 7, created_by = '1', created_utc_datetime = '2024-08-26 00:00:00', updated_by = NULL,
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'b3041ef7-5ac5-4065-af3d-0043634217e7' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='b3041ef7-5ac5-4065-af3d-0043634217e7' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='b3041ef7-5ac5-4065-af3d-0043634217e7';


CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `product_sys_done_v` AS select `t`.`task_uuid` AS `task_uuid`,`t`.`uuid` AS `uuid`,`t`.`cooperate_uuid` AS `cooperate_uuid`,`t`.`title` AS `title`,`t`.`node_title` AS `node_title`,`t`.`send_user` AS `send_user`,`t`.`send_time` AS `send_time`,`t`.`deal_time` AS `deal_time`,`t`.`type` AS `type`,`t`.`actual_person` AS `actual_person`,`t`.`finish_type` AS `finish_type`,`t`.`cur_node_uuid` AS `cur_node_uuid`,`t`.`wait_deal_person` AS `wait_deal_person` from (select `d`.`task_uuid` AS `task_uuid`,`d`.`uuid` AS `uuid`,NULL AS `cooperate_uuid`,`d`.`title` AS `title`,`d`.`node_title` AS `node_title`,`d`.`created_by` AS `send_user`,`d`.`accept_time` AS `send_time`,`d`.`deal_time` AS `deal_time`,0 AS `type`,`d`.`actual_person` AS `actual_person`,`t`.`finish_type` AS `finish_type`,`t`.`cur_node_uuid` AS `cur_node_uuid`,group_concat(`d2`.`expect_person` separator ',') AS `wait_deal_person` from ((`product_sys_flow_detail` `d` join `product_sys_flow_task` `t` on((`t`.`uuid` = `d`.`task_uuid`))) left join `product_sys_flow_detail` `d2` on(((`t`.`uuid` = `d2`.`task_uuid`) and (`d2`.`node_deal_sign` in (0,1,5))))) where ((`d`.`source_uuid` is not null) and (`d`.`node_deal_sign` in (2,6))) group by `d`.`task_uuid`,`d`.`uuid`,NULL,`d`.`title`,`d`.`node_title`,`d`.`created_by`,`d`.`accept_time`,`d`.`deal_time`,'',`d`.`actual_person`,`t`.`finish_type`,`t`.`cur_node_uuid` union all select NULL AS `NULL`,`d`.`uuid` AS `uuid`,`d`.`cooperate_uuid` AS `cooperate_uuid`,`r`.`title` AS `title`,`d`.`receiver_name` AS `receiver_name`,`d`.`sender` AS `sender`,`d`.`accept_time` AS `accept_time`,`d`.`handle_time` AS `handle_time`,1 AS `type`,`d`.`receiver` AS `receiver`,`r`.`status` AS `status`,NULL AS `NULL`,NULL AS `NULL` from ((select `product_oa_cooperate_flow_node`.`uuid` AS `uuid`,`product_oa_cooperate_flow_node`.`cooperate_uuid` AS `cooperate_uuid`,`product_oa_cooperate_flow_node`.`receiver_name` AS `receiver_name`,`product_oa_cooperate_flow_node`.`sender` AS `sender`,`product_oa_cooperate_flow_node`.`accept_time` AS `accept_time`,`product_oa_cooperate_flow_node`.`handle_time` AS `handle_time`,`product_oa_cooperate_flow_node`.`receiver` AS `receiver` from `product_oa_cooperate_flow_node` where ((`product_oa_cooperate_flow_node`.`status` = 2) and (`product_oa_cooperate_flow_node`.`grade` <> 1))) `d` join `product_oa_cooperates` `r` on((`d`.`cooperate_uuid` = `r`.`uuid`)))) `t`;


CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `product_sys_organization_v` AS select `product_sys_staffs`.`uuid` AS `uuid`,`product_sys_staffs`.`user_id` AS `save_value`,`product_sys_staffs`.`show_name` AS `show_value`,`product_sys_staffs`.`tricode` AS `org_level_code`,substr(`product_sys_staffs`.`tricode`,1,(length(`product_sys_staffs`.`tricode`) - 4)) AS `org_level_code_parent` from `product_sys_staffs` union all select `product_sys_org_levels`.`uuid` AS `uuid`,`product_sys_org_levels`.`uuid` AS `uuid`,`product_sys_org_levels`.`org_level_name` AS `org_level_name`,`product_sys_org_levels`.`org_level_code` AS `org_level_code`,`product_sys_org_levels`.`org_level_code_parent` AS `org_level_code_parent` from `product_sys_org_levels`;



CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `product_sys_sent_v` AS select `t`.`uuid` AS `uuid`,`t`.`title` AS `title`,`t`.`node_title` AS `node_title`,`t`.`send_time` AS `send_time`,`t`.`status` AS `status`,`t`.`type` AS `type`,`t`.`sender` AS `sender`,`t`.`wait_deal_person` AS `wait_deal_person` from (select `t`.`uuid` AS `uuid`,`t`.`title` AS `title`,`n`.`title` AS `node_title`,`t`.`send_time` AS `send_time`,`t`.`finish_type` AS `status`,0 AS `type`,`t`.`sender` AS `sender`,group_concat(`d`.`expect_person` separator ',') AS `wait_deal_person` from ((`product_sys_flow_task` `t` join `product_sys_flow_node` `n` on((`t`.`cur_node_uuid` = `n`.`uuid`))) left join `product_sys_flow_detail` `d` on(((`d`.`task_uuid` = `t`.`uuid`) and (`d`.`node_deal_sign` in (0,1,5))))) group by `t`.`uuid`,`t`.`title`,`n`.`title`,`t`.`send_time`,`t`.`finish_type`,'',`t`.`sender` union all select `product_oa_cooperates`.`uuid` AS `uuid`,`product_oa_cooperates`.`title` AS `title`,NULL AS `node_title`,`product_oa_cooperates`.`start_time` AS `start_time`,`product_oa_cooperates`.`status` AS `status`,1 AS `type`,`product_oa_cooperates`.`created_by` AS `created_by`,NULL AS `NULL` from `product_oa_cooperates` where (`product_oa_cooperates`.`status` is not null)) `t`;



delete from product_sys_cache_config;
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('509ae465-971e-45ff-9c43-85eb3a610', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '业务数据表', 'product_sys_datamodel_table', NULL, 'uuid,table_name', 'uuid in(select table_uuid from product_sys_functions where function_type_uuid in(1,5) )', NULL, NULL, 1, NULL, NULL, NULL, NULL, 5);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e19', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '所有字段信息并按表分组', 'product_sys_datamodel_field', 'table_uuid', '', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 2);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e18', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '所有表信息', 'product_sys_datamodel_table', 'table_name', '', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e21', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '所有表信息(uuid)', 'product_sys_datamodel_table', 'uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e20', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '所有表关联信息', 'product_sys_datamodel_field', 'field_relation_table', '', 'field_type=\'parentuuid\'', NULL, NULL, 1, NULL, NULL, NULL, NULL, 4);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('49a66029-4cd8-4d9a-99f4-c60dict', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '数据字典配置信息', 'product_sys_dict', 'dict_name', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 7);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e22', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '流水号配置信息', 'product_sys_swift_config', '', '', '', NULL, NULL, 1, '', NULL, '', NULL, 8);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ('fae86fc7-54f8-4b70-8d54-336e23', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '系统版本号', 'product_sys_version', 'version_type,version_code', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 9);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'facetelg-swga-2sdgs33-dgdfd3kww', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '缓存表数据源表', 'product_sys_cache_config', NULL, ' distinct    table_name', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 10);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'fae86fc7-54f8-4b70-8d54-336e25', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '表字段信息', 'product_sys_datamodel_field', 'table_uuid,field_name', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 3);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'facetelg-swga-2sdgs33-dgdfd3kd', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '高级参照配置信息', 'product_sys_prompt', 'prompt_name', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 12);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( '0b4f11a9-c4b4-48r-85d8-d5b5w809bf0d', 1, '2021-01-14 17:14:14', 1, '2021-01-14 17:14:21', '功能权限', 'product_sys_function_permission', 'role_uuid,function_uuid', 'role_uuid,function_uuid,button_uuid', NULL, NULL, NULL, 1, NULL, NULL, 'role_uuid', NULL, 13);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'sdgesagtttrwerajyyutumytu', 1, '2021-01-29 21:31:09', NULL, '2021-01-29 21:31:04', '客户信息', 'product_sys_clients', 'uuid', NULL, 'client_code is not null and client_code <>\'\'', NULL, NULL, 1, NULL, NULL, 'client_code', NULL, 14);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_org_levels_company', 1, NULL, 1, NULL, '所有公司信息', 'product_sys_org_levels', 'org_level_code', 'uuid,org_level_name,org_level_code_parent,org_level_code,client_uuid,org_level_all', 'org_level_type=0', NULL, NULL, 1, NULL, NULL, 'org_level_code,sequence', NULL, 17);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_org_levels_dept', 1, NULL, 1, NULL, '公司-部门', 'product_sys_org_levels', 'org_level_uuid', 'uuid,org_level_name,org_level_code_parent,org_level_code', 'org_level_type=1', NULL, NULL, 0, NULL, NULL, 'org_level_code,sequence', NULL, 18);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_post_v', 1, NULL, NULL, NULL, '部门-岗位', 'product_sys_post_v', 'dept_uuid', 'uuid,job_post_name,org_level_code', NULL, NULL, NULL, 0, NULL, NULL, '', NULL, 19);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_staff_order_v', 1, NULL, NULL, NULL, '岗位-人员', 'product_sys_staff_order_v', 'job_post_uuid', 'user_id uuid,show_name,job_post_uuid', NULL, NULL, NULL, 0, NULL, NULL, '', NULL, 20);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_staff_v', 1, NULL, NULL, NULL, '部门-人员', 'product_sys_staff_v', 'dept_uuid', 'user_id uuid,show_name,org_level_code', NULL, NULL, NULL, 0, NULL, NULL, '', NULL, 21);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_flow_model', 1, NULL, NULL, NULL, '流程-模块', 'product_sys_flow_model', 'uuid', '', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 22);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_flow_node', 1, NULL, NULL, NULL, '流程-节点', 'product_sys_flow_node', 'flow_uuid', '', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 23);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_flow_processor', 1, NULL, NULL, NULL, '流程-处理器', 'product_sys_flow_processor', 'flow_uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 24);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_flow_link', 1, NULL, NULL, NULL, '流程-连线', 'product_sys_flow_link', 'flow_uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 25);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_page_button_v', 1, NULL, 1, NULL, '页面-按钮', 'product_sys_page_button_v', 'mvc_page_uuid,function_uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, 'function_uuid,sequence', NULL, 26);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_report_config_init', 1, NULL, NULL, NULL, '报表配置', 'product_sys_report_config', 'uuid', NULL, NULL, NULL, NULL, 1, NULL, 1, '', NULL, 32);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_report_datasource_init', 1, NULL, NULL, NULL, '数据源配置', 'product_sys_report_datasource_config', 'uuid', NULL, NULL, NULL, NULL, 1, NULL, 1, NULL, NULL, 26);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_report_type_config_init', 1, NULL, NULL, NULL, '报表类型', 'product_sys_report_type_config', 'uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 28);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_report_type_attribute_init', 1, NULL, NULL, NULL, '报表类型属性表', 'product_sys_report_type_attribute', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 29);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_report_datasource_config_field_init', 1, NULL, NULL, NULL, '数据源字段配置', 'product_sys_report_datasource_config_field', 'datasource_uuid,uuid', NULL, NULL, NULL, NULL, 1, NULL, NULL, 'id', NULL, 30);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_flow_model_company', 1, NULL, NULL, NULL, '流程-模块-公司', 'product_sys_flow_model', 'org_level_uuid,type_code', NULL, NULL, NULL, NULL, 1, NULL, NULL, '', NULL, 31);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'fae86fc7-54f8-4b70-8d54-336e1833', 1, '2020-01-01 00:00:00', 1, '2020-01-01 00:00:00', '所有表视图', 'product_sys_datamodel_table', 'table_name', '', 'table_type=2', NULL, NULL, 1, NULL, NULL, NULL, NULL, 10);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'lx_sys_functions', 1, NULL, NULL, NULL, '所有模块按编码分组', 'product_sys_functions', 'tricode', 'uuid,uuid function_uuid,tricode,tricode_parent,function_name,function_description,function_type_uuid,client_type_uuid,data_type,table_uuid,status_uuid', 'data_type=2', NULL, NULL, 1, NULL, NULL, 'tricode', NULL, 37);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'function', 1, NULL, NULL, NULL, '所有功能', 'product_sys_functions', 'uuid', 'uuid,uuid function_uuid,tricode,tricode_parent,function_name,function_description,function_type_uuid,client_type_uuid,data_type,table_uuid,status_uuid,(select table_name from product_sys_datamodel_table where  product_sys_datamodel_table .uuid= product_sys_functions.table_uuid) as table_name', 'data_type=1', NULL, NULL, 1, NULL, NULL, 'tricode', NULL, 37);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'buttonall', 1, NULL, NULL, NULL, '所有按钮按功能分组', 'product_sys_function_buttons', 'function_uuid', 'uuid,uuid button_uuid,function_uuid,button_name,button_title,button_title `names`,button_type,sequence,client_type_uuid,button_category_uuid,uuid uuid1', NULL, NULL, NULL, 1, NULL, NULL, 'sequence', NULL, 38);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'permissionFunction', 1, NULL, NULL, NULL, '功能权限按角色分组', 'product_sys_function_permission', 'role_uuid', 'role_uuid,function_uuid,button_uuid,role_uuid as uuid', 'role_uuid in (select uuid from product_sys_role)', NULL, NULL, 1, NULL, NULL, NULL, NULL, 39);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'dict_cache', 1, NULL, NULL, NULL, '数据字典', 'product_sys_dict', NULL, '', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 40);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'system_menu', 1, NULL, NULL, NULL, '菜单缓存', 'product_sys_menus', NULL, NULL, NULL, 'refreshMenu', 'systemMenusService', 1, NULL, NULL, NULL, NULL, 41);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'system_router', 1, NULL, NULL, NULL, '路由缓存', 'product_sys_router_v', NULL, NULL, NULL, 'refreshRouter', 'routerService', 1, NULL, NULL, NULL, NULL, 42);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'system_user_avatar', 1, NULL, NULL, NULL, '头像缓存', 'product_sys_users', NULL, NULL, NULL, 'cacheUserAvatar', 'systemUserService', 1, NULL, NULL, NULL, NULL, 43);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'system_users', 1, NULL, NULL, NULL, '用户缓存', 'product_sys_users', 'user_id', '*,(select dept_uuid from product_sys_staffs bb where product_sys_users.user_id=bb.user_id ) dept_uuid, (select job_post_uuid from product_sys_staffs bb where product_sys_users.user_id=bb.user_id ) job_post_uuid,(	SELECT 1 FROM product_sys_org_manager a where  a.user_id = product_sys_users.user_id ) isManager', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 45);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'sys_org', 1, NULL, NULL, NULL, '机构缓存', 'product_sys_org_levels', '', '', NULL, 'cacheOrganization', 'organizationServiceV2', 1, NULL, NULL, '', NULL, 46);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'sys_posts', 1, NULL, NULL, NULL, '岗位缓存', 'product_sys_job_posts', '', '', '', 'cachePost', 'organizationServiceV2', 1, NULL, NULL, '', NULL, 47);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'sys_staffs', 1, NULL, NULL, NULL, '员工缓存', 'product_sys_users', '', '', NULL, 'cacheStaff', 'organizationServiceV2', 1, NULL, NULL, NULL, NULL, 48);
INSERT INTO `product_sys_cache_config` ( `uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `cache_name`, `table_name`, `group_field`, `cache_fields`, `filter`, `bean_method`, `bean_name`, `is_used`, `detail`, `isload_sub_data`, `sort_field`, `pagesize`, `sort`) VALUES ( 'd5583eb3-04c1-457d-9031-176042674837', 1, '2023-05-24 11:29:18', NULL, NULL, '表单缓存', 'product_sys_face', NULL, NULL, NULL, 'refreshCache', 'faceCacheService', 1, NULL, 0, '', NULL, 50);


-- 审批代理功能

delete from product_sys_functions where uuid ='7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f';
INSERT INTO `product_sys_functions` (`uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `org_level_uuid`, `tricode_parent`, `tricode`, `function_name`, `function_description`, `function_shortcode`, `function_icon`, `function_type_uuid`, `data_type`, `table_uuid`, `client_type_uuid`, `status_uuid`, `version_uuid`) VALUES ('7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 1, '2024-08-23 10:37:02', 1, '2024-08-23 10:37:02', '00000000-0000-0000-0000-000000000000', '001-004', '001-004-001', '审批代理设置', '审批代理设置', '审批代理设置', NULL, '1', 1, 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', 'Web', 1, '001');

delete from product_sys_function_buttons where function_uuid ='7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f';

INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( '9ee24529-9887-4b93-a717-abcdc65909c3', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'add', '新增', '', 2, '', '', NULL, 0, '1', '', 1, NULL, '', 'add', 'Web', '', '33px', '271px', '', '', '0', '1724380622285826873c848', '', 0, '', 'rgba(30, 144, 255, 1)', '', '', 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( 'ac00e985-61be-472b-85a3-33aad77de7d6', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'del', '删除', '', 2, '', 'uuid', NULL, 0, '1', '', 3, NULL, '', 'delete', 'Web', '', '118px', '274px', '', 'api/del-table', '1', '172438062228861329dP396', '', 1, '', 'rgba(30, 144, 255, 1)', '', '', 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( '09c5c136-361c-4809-8c72-4d8a01388dcf', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'entrance', '入口', '', 1, '', '', NULL, 1, '1', '', NULL, NULL, '', 'main', 'Web', '', '0px', '0px', '', 'api/list-info', '', '17243806222901169F0e333', '', NULL, NULL, NULL, NULL, NULL, 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( '5fa73713-3907-4eaa-aa56-5ec5b0180fea', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'return', '返回', '', 2, '', '', NULL, 0, '1', '', 2, NULL, '', 'back', 'Web', '', '63px', '922px', '', '', '0', '1724380622291986833w546', '', 0, '', 'rgba(30, 144, 255, 1)', '', '', 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( '75bc66c3-98b4-4ddb-a2e4-a19eced40523', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'save', '保存', '', 2, '', '', NULL, 0, '1', '', 1, NULL, '', 'save', 'Web', '', '0px', '921px', '', 'api/save-table', '0', '172438062229336w618K832', '', 0, '', 'rgba(30, 144, 255, 1)', '', '', 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( '14b5dcdc-bd72-4433-96ce-964dd4cdc3a2', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'update', '修改', '', 2, '', 'uuid', NULL, 0, '1', '', 2, NULL, '', 'update', 'Web', '', '77px', '271px', '', 'api/find-table', '0', '172438062229699O2429702', '', 0, '', 'rgba(30, 144, 255, 1)', '', '', 1);
INSERT INTO `product_sys_function_buttons` ( `uuid`, `function_uuid`, `button_name`, `button_title`, `button_description`, `button_type`, `button_icon`, `upload_parameter`, `api_url`, `is_main`, `status_uuid`, `script`, `sequence`, `is_send_email`, `script_method`, `button_category_uuid`, `client_type_uuid`, `version_uuid`, `top_location`, `left_location`, `click_method`, `upload_api_url`, `multiple_choice`, `route_name`, `params`, `is_warn`, `warn_info`, `button_color`, `print_template`, `next_page_keys`, `terminal_type`) VALUES ( 'fbe135c8-2ce2-4667-9e14-6caf0e0ab1ec', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 'view', '查看', '', 2, '', 'uuid', NULL, 0, '1', '', 4, NULL, '', 'view', 'Web', '', '162px', '270px', '', 'api/find-table', '0', '172438062229886J7632633', '', 0, '', 'rgba(30, 144, 255, 1)', '', '', 1);


delete from product_sys_mvc_page where function_uuid ='7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f';
INSERT INTO `product_sys_mvc_page` (`uuid`, `function_uuid`, `page_name`, `page_url`, `page_uuid`, `page_element_disabled`, `import_js`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `top_location`, `left_location`, `flow_uuid`, `from_param_key`, `tree_data`, `tree_data_type`, `page_type`, `flow_title`, `face_uuid`, `page_open_with`, `terminal_type`, `face_number`) VALUES ('e0470483-8b47-404e-8593-87754c86b620', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', '审批代理设置', 'common/commonList', '', 0, '', 1, '2024-08-23 10:37:02', 1, '2024-08-23 10:37:02', '159px', '0px', '', '', '', NULL, 1, '', '', 0, 1, '202408221822191');
INSERT INTO `product_sys_mvc_page` (`uuid`, `function_uuid`, `page_name`, `page_url`, `page_uuid`, `page_element_disabled`, `import_js`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `top_location`, `left_location`, `flow_uuid`, `from_param_key`, `tree_data`, `tree_data_type`, `page_type`, `flow_title`, `face_uuid`, `page_open_with`, `terminal_type`, `face_number`) VALUES ('af1d26cb-99a4-4fd0-a233-a83d9508355e', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', '审批代理设置', 'common/commonForm', '', 0, '', 1, '2024-08-23 10:37:02', 1, '2024-08-23 10:37:02', '34px', '655px', NULL, '', '', NULL, 0, NULL, '', 0, 1, '202408221832261');
INSERT INTO `product_sys_mvc_page` (`uuid`, `function_uuid`, `page_name`, `page_url`, `page_uuid`, `page_element_disabled`, `import_js`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `top_location`, `left_location`, `flow_uuid`, `from_param_key`, `tree_data`, `tree_data_type`, `page_type`, `flow_title`, `face_uuid`, `page_open_with`, `terminal_type`, `face_number`) VALUES ('43dd25fd-8ba1-4df4-a07e-03b7b481e534', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', '审批代理设置', 'common/commonForm', '', 1, '', 1, '2024-08-23 10:37:02', 1, '2024-08-23 10:37:02', '150px', '616px', '', '', '', NULL, 0, '', '', 0, 1, '202408221832261');

delete from product_sys_link where function_uuid ='7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f';

INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '09c5c136-361c-4809-8c72-4d8a01388dcf', 0, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, 'e0470483-8b47-404e-8593-87754c86b620', 2, NULL, NULL, 'd1deecfc-304d-4385-8546-617a52c6b400', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'e0470483-8b47-404e-8593-87754c86b620', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '14b5dcdc-bd72-4433-96ce-964dd4cdc3a2', 1, NULL, NULL, '188ac2c6-40bf-4be7-9db8-63d30cad3c67', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'e0470483-8b47-404e-8593-87754c86b620', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, 'ac00e985-61be-472b-85a3-33aad77de7d6', 1, NULL, NULL, '6cbb374c-5e12-4e24-af0c-8e8a03ef8131', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'e0470483-8b47-404e-8593-87754c86b620', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, 'fbe135c8-2ce2-4667-9e14-6caf0e0ab1ec', 1, NULL, NULL, 'c8addc15-07de-47ec-8537-82774b4ae676', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'af1d26cb-99a4-4fd0-a233-a83d9508355e', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '75bc66c3-98b4-4ddb-a2e4-a19eced40523', 1, NULL, NULL, 'f3e81407-5319-4bcf-8445-dbd3e161a924', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '14b5dcdc-bd72-4433-96ce-964dd4cdc3a2', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, 'af1d26cb-99a4-4fd0-a233-a83d9508355e', 2, NULL, NULL, '46864deb-dfc7-4ebd-9ae7-c457c924321f', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'ac00e985-61be-472b-85a3-33aad77de7d6', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '09c5c136-361c-4809-8c72-4d8a01388dcf', 0, NULL, NULL, '33f12e3b-2348-41a7-9e88-40df980ac134', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'af1d26cb-99a4-4fd0-a233-a83d9508355e', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '5fa73713-3907-4eaa-aa56-5ec5b0180fea', 1, NULL, NULL, 'f6bfc430-1988-43dd-a81f-61aec6d1fdc8', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'fbe135c8-2ce2-4667-9e14-6caf0e0ab1ec', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '43dd25fd-8ba1-4df4-a07e-03b7b481e534', 2, NULL, NULL, 'e1ff660e-4e6b-4351-95d9-c278968279a8', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '43dd25fd-8ba1-4df4-a07e-03b7b481e534', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '5fa73713-3907-4eaa-aa56-5ec5b0180fea', 1, NULL, NULL, '82dd6cfe-eacc-4b2c-bb0b-f15addc60fd0', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '5fa73713-3907-4eaa-aa56-5ec5b0180fea', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '09c5c136-361c-4809-8c72-4d8a01388dcf', 0, NULL, NULL, 'aacfde8e-f9af-47a5-aff1-13129084b8f9', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '75bc66c3-98b4-4ddb-a2e4-a19eced40523', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '09c5c136-361c-4809-8c72-4d8a01388dcf', 0, NULL, NULL, '226ddcb6-b016-446f-af83-f215f6349443', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, '9ee24529-9887-4b93-a717-abcdc65909c3', 1, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, 'af1d26cb-99a4-4fd0-a233-a83d9508355e', 2, NULL, NULL, '85b99e54-1c92-4e5e-930c-6bc9860b2c44', 1);
INSERT INTO `product_sys_link` (`created_utc_datetime`, `created_by`, `line_from`, `from_type`, `function_uuid`,  `link_type`, `line_to`, `to_type`, `updated_by`, `updated_utc_datetime`, `uuid`, `terminal_type`) VALUES ('2024-08-23 10:37:02', 1, 'e0470483-8b47-404e-8593-87754c86b620', 2, '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', 0, '9ee24529-9887-4b93-a717-abcdc65909c3', 1, NULL, NULL, '30bac1f2-1feb-48f7-a8d4-6692c7877c0f', 1);

delete from product_sys_face WHERE face_number in ('202408221832261','202408221822191');

INSERT INTO `product_sys_face` (`uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `face_name`, `face_desc`, `face_type`, `table_uuid`, `face_number`, `span`, `formRules`, `formModel`, `labelWidth`, `gutter`, `terminal_type`, `tree_show`, `tree_data_type`, `tree_datasource`, `tree_label_key`, `tree_value_key`) VALUES ( '8259c409-42dc-4c7b-b66c-4f06658ffb03', 1, '2024-08-22 00:00:00', 1, '2024-09-11 17:39:22', '流程代理设置_列表', '', 1, 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', '202408221822191', 24, 'rules', 'formData', '100', 15, 1, 0, '1', NULL, 'label', 'value');
INSERT INTO `product_sys_face` (`uuid`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `face_name`, `face_desc`, `face_type`, `table_uuid`, `face_number`, `span`, `formRules`, `formModel`, `labelWidth`, `gutter`, `terminal_type`, `tree_show`, `tree_data_type`, `tree_datasource`, `tree_label_key`, `tree_value_key`) VALUES ('b46d1052-9921-40f6-9edf-273fde6c34b3', 1, '2024-08-22 00:00:00', 1, '2024-08-28 10:37:55', '流程代理设置_表单', '', 2, 'afa86e2d-5b22-4fc6-a4ba-ab9a24061223', '202408221832261', 24, 'rules', 'formData', '100', 15, 1, 0, '1', NULL, 'label', 'value');

delete from product_sys_face_control_property where master_uuid in (select uuid from product_sys_face WHERE face_number in ('202408221832261','202408221822191'));

INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '56b1ab59-7145-40ed-b511-4d3144f8f4fe', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'clearable', '1', '5', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'caaee501-0684-4975-80b0-6b3a33d3f83e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '代理原因', '1', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9201f3f8-825f-4356-804e-1fc6a44220c7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5bde1489-1c93-4eaf-bb41-05c06639ea72', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e24310cd-3d5f-4e6a-b3cd-0aef973febe1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24691', '6', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f884ff85-b6a7-42f3-a57c-426f85f1760e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd27dbb5e-5aa2-4cc1-9815-42f92dcceb33', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:input', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '56788b2d-291f-4756-8f5a-317c46a4bd7f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'document', 'https://element.eleme.cn/#/zh-CN/component/input', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '61c365f1-0513-49bf-b707-58634a92b801', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '38b7e093-e641-4b80-8e17-0c73e977a8ab', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '代理原因', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2a9e4661-ffb0-4dd5-afb8-2cc882630d89', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'lx-input', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '13d0fd05-5f8c-44f6-a7bf-f90dc3395d66', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '73d18314-93be-4ea3-8650-0c99f1140a40', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ce43a714-7c46-4011-a980-57a3675a3671', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24700', '1', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ea78cc40-d38d-453d-98a8-467eb1bdd27a', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '24', '6', '54842e00-8e14-4e43-bb26-1b0f905338bd', 'ec9d2e91-ef9a-4103-b3ca-d0cfe8df4d7b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '54842e00-8e14-4e43-bb26-1b0f905338bd', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9bcfd2d5-36af-4587-9689-b8830b330429', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'readonly', '0', '5', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9b8b4e29-f451-49b5-952e-317b731077d2', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'agent_cause', '1', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e8394a5f-560a-4b8f-8507-a69f2cf85d8c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'agent_cause', '1', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b256cdbc-588f-40f4-8bc4-9c6e94cba681', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '64979afc-9eff-415d-86c7-cb2d5d44375b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入代理原因', '1', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f866e8b3-4b34-40a3-b617-198d3a1107da', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'show-word-limit', '0', '5', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1d313c22-baca-4aac-9769-3ab88b5cf51f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', NULL, '80ca7962-0c00-4f5b-a3c3-5eb255cda902');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '64768d70-5bf3-4e17-bd51-6a51b067f59c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'clearable', '1', '5', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f08d3f51-6cb8-4ca7-a596-fd6b03f1941f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'defaultNow', '0', '5', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b86d51d5-551a-4960-b91f-6ba6534d0995', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'format', 'yyyy-MM-dd HH:mm:ss', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bdea2fa0-8acb-42b2-9bd4-8db75dec79c1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'value-format', 'yyyy-MM-dd HH:mm:ss', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2d214443-7c00-4022-be93-f1f7358a36cf', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type', 'datetime', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e51275e2-f8fd-474d-81dd-118862fbe097', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '1', '6', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bacb538d-7b56-41f7-83c0-7189dfafde87', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24716', '6', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1929e122-2834-4f5d-bb20-9e6b7185ef39', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '666bc1aa-15a4-4393-86f5-1bc6a59a6b43', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:date', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f37145cc-3083-40ee-ad94-94cdc54359ab', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'document', 'https://element.eleme.cn/#/zh-CN/component/date-picker', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9367730b-dda4-49e1-8e0c-57a65d6f6047', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6327a476-fcf9-4b84-96c8-36d6a081ea87', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '启用日期', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'edd84fa9-203d-418d-a67e-c80ede869fc3', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'el-date-picker', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2faa2e9f-cf12-44b0-b207-aed80122345b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '08e233ed-9975-4a88-bead-2c15c0837398', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0d55f03c-5baf-4606-9259-6c16c157cf9b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24725', '1', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '12724da3-81b9-4eb6-ae3b-880293d3571d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '12', '6', '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '38d5cfce-f78f-43b4-b8ab-231b8975b483');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0d31666f-5b23-4239-bc1c-24e4f31b7c22', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd1b408ba-7955-48ba-8d68-1f4e4cd5baec', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'readonly', '0', '5', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'fe67c2df-190a-4166-859f-7fc5c8878932', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'start_time', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1d222e56-7c2b-4049-aedf-eb9d959a6107', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'start_time', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b4d1ac86-cebc-4caf-bf99-650f82ac1793', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2f0be434-21a6-4299-834f-9978d29d4e58', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '100%', '1', 'a3204f03-7f4e-4df7-a71c-dcea2059c13c', '81c2d6b4-6a4b-4759-a4dd-07b5a9d9e0d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a3204f03-7f4e-4df7-a71c-dcea2059c13c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'style', NULL, '3', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '17ff63b0-d85f-46ab-8b23-d7c2db0368b9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入启用日期', '1', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '230ccb04-ea67-4146-895e-3342a5a7e463', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '1', '6', NULL, '1fb9fee3-2e25-4e21-8d7b-0d652ff50cea');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '57f28262-9d35-4d60-9d29-f9e5cd4f2713', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'clearable', '1', '5', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bca2400e-a254-4fc6-b465-cd47e5543b97', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'defaultNow', '0', '5', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0ceac8ee-0012-453d-a412-9b119c400b5c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'format', 'yyyy-MM-dd', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '32df4309-d8e2-40ee-981f-c749d2172975', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'value-format', 'yyyy-MM-dd', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '147be806-6571-4e25-b85b-b12f635404f7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type', 'date', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'abd6f865-cfe7-4c64-a683-081618289f0c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '2', '6', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6f84af21-12b6-41de-8809-c80bccd2e1d7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24742', '6', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '449e2013-b8ef-4635-8b0e-4d754d7538d9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '13a38b7a-55f6-43b9-8b5f-e9c2f3fd3d5f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:date', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'acc28451-b843-4728-9055-f69fd8438578', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'document', 'https://element.eleme.cn/#/zh-CN/component/date-picker', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '79d36faa-6305-4fd4-b07b-989b3a6f5325', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '748382c8-d79c-4ce6-9a3a-26f3aca672e3', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '结束日期', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0529c97e-c509-49b3-95b9-1ce558ba57c4', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'el-date-picker', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5005a1a5-baa6-48b9-861d-f274220f8315', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '78273860-1bf0-438b-9c43-0343c793865c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '22faa187-eebb-4cbc-9a6d-7846d6f1c2c6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24751', '1', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f8839b38-f829-4370-bc20-407c38261fb6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '12', '6', 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '357efd30-03bf-4d48-82b1-d59ee4f1cad2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e2b1d50b-aa23-4269-baa7-5f3ff72e592d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b3c8ed59-a67c-487c-87e9-6da72fb6dde9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'readonly', '0', '5', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ecc34e77-6ec9-4229-9459-1ec33d36df82', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'end_time', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8a75d329-ba93-4269-b88e-ba0248ac179e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'end_time', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f6607280-2431-4448-babc-03a3c4b2dbb1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '13ebedb9-b224-47ac-b37a-a083fd6a9090', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '100%', '1', 'fab7ac7d-8de9-4c0e-91cb-972a71b4c705', '89793ea4-dd04-446e-a116-a796637baa13');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'fab7ac7d-8de9-4c0e-91cb-972a71b4c705', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'style', NULL, '3', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b86d1c8f-8cf5-4b37-bf51-d6bcffb03e04', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入结束日期', '1', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7f31143a-6950-4aec-a26b-20fa817a6f4c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '2', '6', NULL, '4a1f072f-518f-4f12-9942-a4f6494880b6');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0bf52fec-bbd1-46c4-bde6-9f3322a067aa', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'defaultValue', '0', '5', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b51aaa73-8c00-4e53-af92-8bd0ac520b90', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '0', '5', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '838612e9-d441-4762-9e66-b9c326621a0a', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '总代理人', '1', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b6d1bdb2-dad7-4eeb-9579-e7155ce94f61', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '0', '5', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e3050149-247f-4773-bfb0-75b7028d4c03', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '3', '6', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '233b3a78-fd4d-4364-96ee-d594afb63a2f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'organizationType', '5', '1', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4dc916d5-8ef3-4d3f-9524-0f1d78eb78cb', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24768', '6', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ee1a677f-62a3-4e9b-910c-c18094ed7bdd', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5cc220c5-7986-4604-bacb-3f8725e5f8e5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:tree', '1', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '14f7c4e7-663b-4bbc-8c6f-fc16a404ed63', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd4b998ab-de65-45f0-a11a-25fc420455a4', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '1', '5', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8c06b077-aae1-4884-a544-5703b4acdd6b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '总代理人', '1', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '38eed1cf-3dc5-4344-a8d1-cfbd36e7a035', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'lx-organization', '1', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '70020672-b4cf-43f4-a06f-10bf227d1ae0', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2fd4b849-22c5-4149-86af-a2fe800a7beb', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '0', '5', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '610376d3-8912-4afd-8449-0e9efc823af0', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24777', '1', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '25519973-a9f7-497b-8428-2046b22e400c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '12', '6', '426c9809-18cd-4357-9ffd-9823afceca79', '11f614e6-ad1c-4e27-bf72-254f290d743b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '426c9809-18cd-4357-9ffd-9823afceca79', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3c0517ec-5138-474a-b6cc-b5425455369e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'general_agent', '1', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7746fa9a-452a-4915-9d34-0a92f89a564b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'general_agent', '1', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '192d503c-6eae-4e60-a6fa-627f3a08a70c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ec721a85-c391-4bd3-90f9-44932e4245c1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'flushbonading', '0', '5', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '64aa4353-40ea-42cd-8117-68d40a1efff9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入总代理人', '1', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'aaaa6c1b-cc18-4928-bcb4-83258faff2b2', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '3', '6', NULL, 'b82d5d0f-a5cb-44d9-b123-e135bd59197a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3b968ed1-d1b5-40ba-8011-51a51cfa44ad', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'optionType', 'default', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '74d78dd1-5874-4413-888b-49694f7029aa', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24787', '6', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '296bb176-9568-4cf6-bf86-d2239b2d641c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'document', 'https://element.eleme.cn/#/zh-CN/component/radio', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3f0f1673-3f27-42a2-b336-3672ca6af961', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '启用', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ce34b5b2-d8d1-415d-a0b7-02b2bda94ccd', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8aaacd7c-2555-42e8-98d9-250b9ddcc28a', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'efc2a966-c9da-4f20-b7e9-f3ce417af54b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24792', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5c894256-d0e0-4644-8c1a-767e9eefdf61', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c3ef01e3-fbab-4fd5-8f0c-33afbaedd4b0', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'optionType', 'default', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '19d2b5e1-d083-4442-8521-d0cacfb19945', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:radio', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9d7c3b31-3c75-420d-8eca-eb92ea20644c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '42422560-3d70-4a99-ae2b-4405635ef559', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'lx-radio-group', '1', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '28266f16-073f-4194-902c-146be292de31', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '6', '6', 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '4508cb68-4144-42ad-bbd8-f8432ae5b715');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a9e11163-6d8e-4f3c-96a4-718ab4197985', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8730bd98-3a49-4ba7-9c1d-58ae00e64099', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'size', 'medium', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bff8083e-7ba4-4f7f-a2ce-c445faaeedba', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'is_used', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd7279138-baab-4b0e-974a-b494509ed530', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'is_used', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5fe476e9-4456-4c7c-a63a-e96573e96f2b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5e485904-8056-48c8-924e-e1b3fce659ff', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '启用', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '54445898-bb7c-4751-a391-83026080d06d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'advanceName', 'is_used', '1', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '81ffcdb6-8ebe-48a4-a480-51a573f5387c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4a1e9ae2-39ef-4213-b627-60a23c764376', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '4', '6', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f6deceeb-5668-437e-a2df-7215a6c71e41', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '4', '6', NULL, 'f212045e-2ba8-4528-9ef6-c8794aa0ac23');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3e8d65f8-5b83-47ee-a31c-60091577b322', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'optionType', 'default', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bdc1c924-1509-410f-b088-651432325060', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24810', '6', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd27710d8-7424-4af7-9da0-75a3c1d585b7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'document', 'https://element.eleme.cn/#/zh-CN/component/radio', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9623371f-00f2-4d59-b7e0-d68d51e19ec2', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '反馈', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ec455f2d-37fa-4a1f-be51-9b8ca2ce726b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9dfd8842-d5f5-4a38-a99b-3a726504079b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7d7edf2b-f031-4ee2-b889-97beb7d6b3b3', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24815', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '532e36d4-7410-414c-985e-6ecbc07cb581', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f2bd733c-50fc-4633-b64e-39f0d1f97c97', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'optionType', 'default', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '07edec00-03d0-472d-a6a9-32bfd9d1f7f9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:radio', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bcbc0d4c-f43e-436a-b778-fd53dfe5c93d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f216966d-b5bb-44be-a179-c02f815edd63', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'lx-radio-group', '1', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '01bd20a7-b9f5-42ac-9e9b-4be958cc0a58', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '6', '6', '79366202-c2d0-4d0a-b520-65e80c10c81c', '926652c5-7621-4c93-85b9-7fc17560d58f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '79366202-c2d0-4d0a-b520-65e80c10c81c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5ef9066b-bee0-4190-8d86-9538a9835bf5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'size', 'medium', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7d0ceb5a-e4e2-4759-beb2-1352ca38a0f3', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prop', 'message_feedback', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f612f7b6-0b7d-4084-a278-33c56c18be53', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'message_feedback', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b3353e65-0ee7-40c2-b2cc-dbcd747dd5e5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8e6965bf-ba80-433e-87b8-5241f92f93fb', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '反馈', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '972acb17-dc39-41b1-88ca-53f61a1bc679', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'advanceName', 'is_used', '1', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '58fe88ae-1bd3-449e-90b1-8e2b08eb9af8', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a8c8181d-7709-45f7-b60a-d47a1d190310', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '5', '6', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '78af7900-9f0c-4206-b556-a7a1fe6862f1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '5', '6', NULL, '24f10944-d198-4ac3-a3a6-a40af0ed3025');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'fff15a7e-6703-453b-bb48-d5615135d6a1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'add', '1', '5', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9bb1b51f-f1d2-4e3f-b555-a80f3812b765', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'subTableName', 'product_sys_flow_agent_node_config', '1', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e6863508-4d5e-44cf-b659-31d4c8b553ac', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'subTableForm', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'caac9a1d-beeb-452c-9101-7319b4ffa742', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24835', '6', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0ec52e45-f5d3-4570-abca-3ebd7c8837c6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'park:grid-nine,color-#777,theme-outline', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ae0b9a12-c16c-446b-9a84-4f07969a45dc', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'filterable', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '608b1464-981e-4011-b86e-b3e3a034957d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'subTableName', 'product_sys_flow_agent_node_config', '1', '317864fc-2696-41c0-b712-7f134a98c36c', '0384c40d-8044-475a-99ca-dad443fb1964');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '317864fc-2696-41c0-b712-7f134a98c36c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parent', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3028f134-c70e-4d13-b7e9-facd1d64d778', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24840', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f51bb90b-2af6-4e76-b62e-7e3ac6f690f7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '1', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '73ae2f07-3a5c-4817-9eee-ed9aa86bafda', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '代理流程', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '11b43e8d-198f-486d-aca6-e48ae02187e9', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type', 'subTableColumn', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7d21d8ec-4bb3-41d2-9264-a17f51f73728', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'setWidth', '33', '6', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4efa768d-ad33-4c13-a4f6-b4a1951034f6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '710776a9-d7e5-4a50-9d68-0d0efa636663', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1a7a6d78-8ce8-46de-9312-e531e4bd8969', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'customField', '0', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '62908ddb-bd9f-47a0-b955-c5e34fc7c269', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24848', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2901d13e-f2da-41b7-a479-c6dcdc9a3381', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2cabe8ab-3ad4-4d12-a7dc-3ee4418c7411', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:prompt', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f2980937-6873-421c-9ec8-d287a9464c0f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e8bc0320-b527-47d8-9ec5-af452bfa8e2b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'prompt', '1', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6856565a-9d5d-49a5-87cb-cb1df0511f37', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prompt', '1', '5', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6b22b795-5cb8-48d1-8bcf-da4e53d43b48', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '24', '6', 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', 'd3cd3e66-3c76-4523-9d1c-5abf64789270');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e84d58da-3d8d-4dc0-9bcd-0f58954ec786', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '358b53cb-ab0a-4679-bb64-60db2826e4a5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b1f5db73-7cdc-4850-9de8-1c368ef320ed', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'flow_uuid', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ba90d2a4-6837-4f9a-88d7-001d3d655d3b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '95d2af86-acb5-4112-b844-6ba0c17beb84', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '30', '1', '26bf786a-3201-434d-9f74-204f577ab656', '2d5cfbac-1908-4348-b5a1-2500fb933919');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '26bf786a-3201-434d-9f74-204f577ab656', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'style', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ac795e7d-ecdf-4765-a563-44b65cead0ee', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入代理流程', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'aad9d551-6555-4209-bf6f-9a232b234223', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'advanceName', 'Flow_info', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'de0d7826-db91-4308-ab69-2b0b6732a05f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'first', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6ac9de12-e3f5-4a1d-9cc0-696c11ef2e70', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parentType', 'subTable', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4d08f188-9cd6-4846-8152-b8552749bf30', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'adcd54a5-e31e-483d-9e94-bb864873da20', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '5dcfe9f8-547f-46fc-8bac-088afda9adf3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f951dddb-fc4e-4f9a-9141-eb9e16dd10ce', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'filterable', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0df34296-25b4-4d5a-bb6b-be0ca4a53a38', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'subTableName', 'product_sys_flow_agent_node_config', '1', 'c14fe121-2b88-4631-9f6e-eb00b4ec7ecd', '6052fee3-41b3-42bc-87a1-38e6b95f24d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c14fe121-2b88-4631-9f6e-eb00b4ec7ecd', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parent', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '00a2542f-5c14-47dd-8667-b43bcccd93f2', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'cfb94aa3-cb38-4886-8deb-86b59e8cc327', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'advanceName', 'flow_node_by_type_code_2', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '568936f9-a7e3-47c7-81d8-10999ad53f69', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parentType', 'subTable', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '22923326-2855-40f1-aaf8-f38b0e64f4c5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '1', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'dd53d69d-8395-45cf-a0c9-86a39e50cc7d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24874', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7562fbcb-43ec-4a9c-81ea-416f2ace8f89', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '1', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'cbda055d-4562-46e5-b149-b03fbafb79e4', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '代理节点', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7248c67f-410d-4e08-ac3f-3d1a4ef78d7c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type', 'subTableColumn', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e6448dc3-b6a9-4732-a1cf-e2c149f52458', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'setWidth', '33', '6', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '231b019f-412c-46c5-9229-d5c0acaeb704', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7ef871e3-68b7-4d85-b792-fdf4864b3a0c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '50595b35-fb05-4744-8e1d-364cd5aae127', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'customField', '0', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '792bea05-c8a4-4727-9f3a-d5bf098ba211', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24882', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '54bdb0d4-16af-4956-8ffd-706ba43e6f54', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e5e2d705-4f1b-49a2-8557-0b88369e84a6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:prompt', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '77f0f7a8-f2d4-475e-9108-417703c8db89', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ee9fb0de-7194-400a-ad09-d7a73de81c8d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'prompt', '1', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'bf6eeb70-f10b-41d8-b309-426cceb2c576', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prompt', '1', '5', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '926e7027-c785-40e0-abca-cf7a60c4e4f1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '24', '6', '1239598d-3c35-4b6f-b59c-dca1365ee17a', 'fe12c351-c37f-449a-9976-8a91b0ede30b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1239598d-3c35-4b6f-b59c-dca1365ee17a', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f86cc127-2153-4854-9b31-e4bd5655daf6', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'node_uuids', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '39a8fe90-47fe-4069-843d-97d143607ba1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ae92e888-bb23-46dc-ae21-cf23473533ee', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '30', '1', '6c8ef18b-8f54-4e8f-812c-23664d717b05', '12b1b6b2-df02-4043-bacc-7c7170375603');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6c8ef18b-8f54-4e8f-812c-23664d717b05', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'style', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2d177121-d76a-4c23-948e-d97f9b39f6c1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入代理节点', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9e807e40-8444-4278-8437-eca681702b09', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type_code', 'flow_uuid', '1', '9b1a6419-87bd-4a7f-ae9b-4c1fcb3cf46e', 'ce03029a-580a-443b-b8c4-711966530e47');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9b1a6419-87bd-4a7f-ae9b-4c1fcb3cf46e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'prompt_filter', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0e14dad8-a300-4ff9-a3c0-73508327a52c', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'first', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4dbb1ea7-319f-42cd-a9f1-4e2da677d02d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '1', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '08b786e0-e053-4825-89e2-f8c0b51a5844');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '42a189bb-f56e-4670-b784-7aedf6709d00', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'subTableName', 'product_sys_flow_agent_node_config', '1', '608d7ce1-528f-45e8-93c7-b0f922d3f3cb', 'a5d4a141-9d98-4b55-b4ac-afe5c0ae98be');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '608d7ce1-528f-45e8-93c7-b0f922d3f3cb', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parent', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f6b0c6ca-2479-4ad1-9c28-08c733f4d4ad', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'defaultValue', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '662ed2a2-ef7c-46a6-b7fb-6430dd0f52ab', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4ea51328-6aa2-4afe-b47b-4c88cb0bde1d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'advanceName', 'user_name_by_user_id', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd5e52ff1-a399-4b73-9278-6521a5a1e262', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'parentType', 'subTable', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '00589a72-1f53-4600-a819-4de2c4164c04', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '2', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ba5a62ff-c652-4568-ac88-212621ff2763', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'organizationType', '5', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2540f533-92f6-4b1f-b5fd-caad5991b5dd', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'formId', '24907', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9e02ff0f-2628-42e0-a954-c532d7ec6b11', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'multiple', '1', '5', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5ccea56e-666a-449b-bf9f-a3b3f26dcaa4', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'label', '代理人', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c4259653-6644-4fe3-a698-4a4c317ab4e7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'type', 'subTableColumn', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a4206bf3-a161-4952-b32e-6e598a902570', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'setWidth', '33', '6', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c411f094-caed-40ec-b3e1-f6a83a9af202', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'showLabel', '1', '5', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ce2518a1-deab-4b57-b647-787c11fe74b4', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'required', '1', '5', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '50a2b52d-125d-49d6-b4ef-94002cdf1a06', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'customField', '0', '5', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '10b104dc-5a34-460e-8a4d-0dfb392e7052', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24915', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '813068bb-0f68-49da-bff3-c141fc49c63a', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'layout', 'colFormItem', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c040d517-a03a-4f6d-9dec-d5245209055f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tagIcon', 'svg:tree', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '73f6d047-40d5-4cda-b3b3-685c99fd77b7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'changeTag', '1', '5', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '222a000a-778b-47bd-9ac4-b8ca55fab7a1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'organization', '1', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd135b992-60df-4599-9172-54e7324e24ba', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '24', '6', 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', 'b2758322-2fd1-44f6-980b-223b1a51b9b1');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a676cc20-0b7a-44f6-b341-bf7879ea5ca1', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7ba2c9ab-342b-43b6-8f21-09ffc671d7d5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__vModel__', 'agent_user', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd5c89b19-5089-4a3e-9fbb-223acc093737', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'disabled', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '72d4886e-61b0-48f4-b794-c89cf22954b7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'flushbonading', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b1b9919e-0364-4f3c-920c-80ebbbc97f59', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '40', '1', '2c07f667-33da-43a2-ac77-10060ad46eb2', '14ea68b5-101e-4b55-8158-f88ef0311426');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2c07f667-33da-43a2-ac77-10060ad46eb2', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'style', NULL, '3', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3f8b3c24-b261-4265-8dbb-81929825d724', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'placeholder', '请输入代理人', '1', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '56879812-f3c5-4eb2-8c25-30533ff59ee7', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'first', '0', '5', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '22d87dec-073c-469a-9cc2-5507ce6368be', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '2', '6', 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', 'fceee959-742f-485e-88c8-a44125ec0577');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e1185dc6-88d3-47af-9d7d-bfcfc4dee23d', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'children', NULL, '4', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '71bf705c-a30f-4523-bb2c-8475fddf9b0e', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'name', 'subTable', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4f34cdaa-0033-4863-8738-dee6ba467009', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'tag', 'lx-form-sub-table', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2e5eebc5-6a3f-4ce5-9f93-92b953e67293', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'componentName', 'subTable101', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5f5573ae-12ca-48eb-9537-fc6099beea65', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'span', '24', '6', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '22b40d8b-d9a7-44ea-98aa-93cd94aa3f73', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'renderKey', '24935', '1', '62626007-83d5-4079-bd74-0d77e15f23f8', '46b000ab-826c-4465-ae63-4c909737fdd7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '62626007-83d5-4079-bd74-0d77e15f23f8', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', '__config__', NULL, '3', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a4705814-9b42-413d-849b-518cc0254e8b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'width', '360', '6', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e1e77951-2260-4664-8cb0-e2eb5d573a61', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'delete', '1', '5', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '531d7467-24fa-4f33-ad26-6e993d1cd94b', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '6', '6', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8bd7b035-6ead-4892-9b68-6990a82767b5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '6', '6', NULL, 'f9b460b0-1ebc-40a1-922d-b7b771fc0622');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'af2d15fb-137f-440b-84c1-9deaecd46e9f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'event_property', '1', '5', NULL, '0848b402-4990-49b7-b528-bfb9ff128087');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'fb43e242-c585-404a-8e71-36483603eb06', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'eventId', 'mounted', '1', '85593ccf-40a5-426d-9447-0a6730394e7f', 'a444f283-9df1-4e26-8f8c-6a28042b6338');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '299e6a53-40e0-4994-83a9-8abc44db44fe', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'eventName', 'mounted', '1', '85593ccf-40a5-426d-9447-0a6730394e7f', 'a444f283-9df1-4e26-8f8c-6a28042b6338');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e6e660c9-2657-484f-849f-2056952c42c8', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', '85593ccf-40a5-426d-9447-0a6730394e7f', 'a444f283-9df1-4e26-8f8c-6a28042b6338');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '24a2c8d2-4d00-4394-8bf1-9e48d26983b5', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '0', '6', '85593ccf-40a5-426d-9447-0a6730394e7f', 'a444f283-9df1-4e26-8f8c-6a28042b6338');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '85593ccf-40a5-426d-9447-0a6730394e7f', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'event_array', NULL, '4', NULL, '0848b402-4990-49b7-b528-bfb9ff128087');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b08afe13-a629-4b69-afdc-9854af5397a0', '2024-08-28 10:37:55', 'b46d1052-9921-40f6-9edf-273fde6c34b3', 'control_sequence', '7', '6', NULL, '0848b402-4990-49b7-b528-bfb9ff128087');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '9da8fcd6-e30d-4ded-89b3-7b76b3d96a38', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableForm', '1', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c3a44dfe-069c-4316-8a39-13ab7d93acf0', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24167', '6', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd56d2c1a-c224-41d1-ab73-b71f6f674834', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'tagIcon', 'park:grid-nine,color-#777,theme-outline', '1', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3609a51e-62ce-4c8a-9025-fb04854b00f2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6b4d582a-155d-494c-b717-f0334d214dab', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24170', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1ba09a89-2621-42a5-bfab-f7918c006d4c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'aceff4f8-40b2-48e9-bfb4-8713c367edea', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '代理原因', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c1cb39ac-8554-4543-8608-10e9f01cdb19', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '39.81', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1e0fce24-626f-45f3-a590-02190a1d48e5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7b35ad39-a945-46a5-af47-32eebcb74158', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24175', '1', 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '69ac6f68-dc0d-4e9a-abae-24470c3950de');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c68c1d38-e951-43f5-9a2f-b296628aa7cb', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '76e64a57-e5c1-4a49-8471-447a7adfbee2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'agent_cause', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '064cc8fd-59c2-45d1-8af8-cb227a3f37ff', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '68', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '886de741-0050-453b-92e5-b406aeb10c71', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'db7af222-234d-44f0-94bc-4b6e3e2de41c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'agent_cause', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '53664a8f-cb79-490f-9dc9-63693f3c6c46', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'd2ce6e84-066f-4fee-a0b5-bdfcd7977785');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c7d56876-e093-40c0-8bcf-2a2d1424d2c1', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3a81c705-fd11-437f-8104-60857ac1021e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24182', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '28689d5b-17d2-4759-a82b-09a4528a2385', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ec48d9d8-c2ad-497b-8f04-d3b1c8bd7d65', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '启用日期', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8c737556-87e3-4731-86f2-835aac3dc7be', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '7.09', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6d6b0f08-2f48-4082-910e-23abffbeae74', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ea647f32-e9cc-4cc6-8dd1-1f0c2bce3cec', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24187', '1', '34098edd-5025-4f04-b402-86c555daf870', 'cf9ff3ca-14e1-49d9-9946-725941311cf7');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '34098edd-5025-4f04-b402-86c555daf870', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '251f9cd5-2229-4a11-8497-369d8adf2580', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'start_time', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4c635630-9b9a-42d7-b5cc-e59675e45b43', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '68', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a7d90295-d039-4d34-af32-acb067564b76', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '1', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'be8c4a3b-9f72-4849-b1ac-70164eda571a', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'start_time', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ee970800-9e27-4f31-98ed-42f2eb95052b', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '1', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '342faa3c-6827-44b1-81d0-1bd7f44cc6d0');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'eb85a29f-326d-4952-bb6d-fbdbe444d350', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '56d135a4-dac2-4994-831e-4a6a31ace911', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24194', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'af99eb98-705a-42c7-b683-50754a329450', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0c272b98-a19e-41a0-a448-bb459bfbaf54', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '结束日期', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4ceca512-91e3-414c-a6de-4fc0f277957e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '9.66', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '917feecc-be21-4c2b-84d9-68cd14ff93ce', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '78cd0e1b-a4b7-4726-a669-a68413878907', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24199', '1', '37fb8031-580b-4762-94a0-397e7f9785af', '659b2904-2b90-4a5e-ac85-6052fb35f99a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '37fb8031-580b-4762-94a0-397e7f9785af', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '260e21a0-09b5-4dee-baf7-acd68d798651', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'end_time', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ea728ab0-c83f-47c9-a058-76e098b63248', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '68', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3b663c74-87bc-45fe-97c3-d70c83c49ada', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '2', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '03f59194-e2c8-4099-942d-7d217da92620', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'end_time', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '97b259cb-5647-430c-8dc1-be9ec5705972', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '2', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'e43780c2-21cc-4284-834b-8b9863783422');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '15cd73aa-f0ce-4397-9b4e-27b9c35f27a5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '30d642d1-5389-4b11-b16c-6876b764df95', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24206', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd5de1a4f-9c29-42df-9d79-589e1629524b', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'aa8c3187-0644-414d-8ec0-13b73376a42a', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '总代理人', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c6b9451e-a351-4616-8a10-0d5a31908eba', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '9.77', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8b6d99c7-623b-4cdf-834c-cb5557383595', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5a97f279-de96-4946-a801-24e6b882c318', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24211', '1', 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', 'd17d50d7-02bd-4015-99a9-654256ddf82a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd3cc8d08-7d2b-4eec-9d61-579a8bd8af8f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '7b2f86ad-037a-492d-90b1-48ad27e5a527', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'general_agent', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd72dbd53-2b20-4b5b-a2e3-ccc3ffaf38ed', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '68', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '509fe914-d534-4e7b-8284-0e6ed593d6c5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'advanceName', 'user_name_by_user_id', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '95a6d68d-80eb-4d9a-8b31-f5a7ed06eb55', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '3', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '262de5ba-5442-4fb6-8080-95dd75cd0bd3', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'general_agent', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a6124da1-dd4d-4f2f-95cf-3e9352375533', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '3', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '5d4a6702-65a4-433d-a0a5-32b498c37607');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'dfb10045-b966-4073-8ffb-088af0e9db45', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '99db6cdd-5eda-4654-963f-b7811c5ab26d', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24219', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5a545417-3183-4343-a9c1-e078c85ca78a', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '318ed17b-a494-41ae-8b34-67626285775f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '启用', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '56ca0d19-3c3b-43a4-b939-381e65c55d6d', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '4.67', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3cbde649-ba8b-4215-b392-614a914871c5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b4ab489f-c3a7-49a2-aaf1-4fabcdea1e3f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24224', '1', '86b1800f-71ea-41e4-9ed6-71866b371eea', 'f0fcdec9-dcfa-469b-8736-d2f35393055e');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '86b1800f-71ea-41e4-9ed6-71866b371eea', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b9db5136-4128-489c-9486-1931fecf76b4', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'is_used', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '880e0c2e-4b23-46cd-9e03-8ff7efcea407', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '34', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0029c9bc-2f0c-45ca-95e9-bc98347acf47', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'advanceName', 'is_used', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ef25beda-26aa-4bb7-bcab-334e46898bf2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '4', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '91c2e466-f080-4a75-97ac-af8a199beaf3', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'is_used', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '654872bc-5f46-44ea-94ab-69dc13de3ad5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '4', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', 'c5fc2968-7f1c-4a1f-be5f-6bc1c9786a9b');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '01e9cb74-573b-433a-9678-bce41ffb6820', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6300a409-9dfb-4f07-9dbd-0d1e0a390369', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24232', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '95384c9e-d151-4ed3-9b13-44c07a842371', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ccd44739-a88d-4e76-92f3-9d3fb0c5bc38', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '反馈', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '09f036ea-da77-4b61-97c4-606757db9c89', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '4.41', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '85e77f0b-92bd-48c6-95f2-297f7ef83b5f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '98b17370-6ddc-4302-806f-fad401da70d6', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24237', '1', 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '6950c36a-c733-4670-8f6a-a642ded62b64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ac85f113-7bf9-482b-af11-79d0f8afa5cb', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'aabe69d8-aaff-47c6-a737-46f8ecaf7f0a', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'message_feedback', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b5d4f310-07de-4eb2-8bfc-0264ea2377c7', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '34', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '906d5e4e-8579-4efe-a088-2e19aa17a634', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'advanceName', 'is_used', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '315b5746-8143-46c6-af0e-1cd467b168d1', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '5', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e6ce11a5-8b02-40c2-82be-dcaeda9951dd', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'message_feedback', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '40a56ed5-a175-410e-85f2-9eddee5b424c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '5', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '3888add6-970a-41a3-be8d-a516063c3375');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8c3b02fd-068c-4192-94d3-ae5ad0798cab', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a059f7ff-94a8-48e5-b94e-263e322ea6c7', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24245', '1', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '99539de1-4c8f-4623-ad78-189a12f1c597', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4adf0a76-a2b7-479f-a6bb-bc3ed196b7d5', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '创建者', '1', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'da5a9647-41a5-4150-a767-5166ca0a3ef2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '12', '6', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8f0cb8dd-8b31-408d-ae15-696a1390bdb7', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c0941383-ca53-49ac-9bb0-6efc3e06319f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24250', '1', 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '3439aab5-d2a1-40c2-89c3-804e7bb0e0fc');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a175710f-4d0a-4b40-b4a1-e41521b0030f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c5bef9c1-1c71-4b77-b969-c2f83e234b8e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'created_by', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '5124a1ea-e6cf-483c-a06b-8f1bc00d6fdf', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '51', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1cc2eb0d-a5a2-4353-97ec-875f4560d49e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'advanceName', 'user_name_by_user_id', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '968887cd-f499-4e8f-b3ff-8da2b80bbc88', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '6', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'e3ef9ae6-1cf7-445d-bef4-907320e90198', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'created_by', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '65caefb7-9b99-4372-9664-341c61d770da', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '6', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '6117733b-efa3-49a4-881e-b85e420b50a4');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '58d299dd-ae7c-4a67-a68b-7656652c1ed2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'layout', 'tableColumn', '1', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'c6a498a4-35a0-48d4-8c18-882c35b1870b', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'formId', '24258', '1', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ea7f5ac8-1526-40df-9f0a-ba6aee87a20c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'tableCoulmn', '1', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '0eab656c-a1ff-4b04-91a3-c141d7258592', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'label', '创建时间', '1', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'd251878d-0644-4ebe-a590-47384d4bca93', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'setWidth', '12', '6', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '8c5662e6-c32a-48f6-b953-e73a5ccdfd76', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'customField', '0', '5', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a973b30c-84ac-4928-b67f-0a69b7937075', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', 'created_utc_datetimeWed Sep 11 2024 17:39:16 GMT+0800 (中国标准时间)', '1', 'b3405687-6704-4995-8357-0804683c4244', 'fbe87321-45f4-47a0-9e79-72e01e0abc5f');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'b3405687-6704-4995-8357-0804683c4244', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'ca77fdda-5692-4b52-8ea2-d318b8fcc3e2', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__vModel__', 'created_utc_datetime', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '87d93e9a-c253-4a12-b552-3069bc100fe7', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'width', '68', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f03534db-5767-48da-9a5a-4d031bfedc5b', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '7', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '2d8d5439-a61c-4eb6-958a-79ad1b2db988', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'field_name', 'created_utc_datetime', '1', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'af5a9a30-ee0f-4041-afff-722767d81229', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '7', '6', '6402c7c0-2981-477c-91cc-3a242e76dc83', '7f3d5230-c197-49a4-ab7d-bacd900c5db3');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '6402c7c0-2981-477c-91cc-3a242e76dc83', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'children', NULL, '4', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3c9eba6e-811c-4506-b995-d8240a433862', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'name', 'table', '1', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a32692fe-152b-463e-a75e-f51492bb458c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'componentName', 'tableForm101', '1', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '10152dd5-f00f-4d3c-bc56-49ad13c8a7cd', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'first', '1', '5', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '3e9bebc5-ceef-456d-94c3-d3224c4e4d9e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'renderKey', '24273', '1', 'a471240b-8931-4b6a-96d4-cd1d51a45589', '24145033-492e-4c12-8ce3-b8ed4684d9d5');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'a471240b-8931-4b6a-96d4-cd1d51a45589', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', '__config__', NULL, '3', NULL, 'f269531a-0c27-48ba-b7ac-7733150d00c2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '1901c297-0b3a-42ae-ab7c-8fc3c62ae79e', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', NULL, 'f269531a-0c27-48ba-b7ac-7733150d00c2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f445de13-7391-4a43-9fbf-8d9667f4948d', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', NULL, 'f269531a-0c27-48ba-b7ac-7733150d00c2');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'f3cdf3b8-8d62-4f78-8832-b7040f200c0c', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'event_property', '1', '5', NULL, '43045760-daf6-4918-9dc9-674e06ab5c64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '777f40f5-5e89-4b5d-ad18-97079ff6db50', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'eventId', 'mounted', '1', '95807c21-bc4a-4b2d-9faa-34cd7dc1f9b0', 'e940421c-f73b-4590-ac5e-6d1a1627e76a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '386a3eb1-d27f-4fd5-8b64-713e04478d63', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'eventName', 'mounted', '1', '95807c21-bc4a-4b2d-9faa-34cd7dc1f9b0', 'e940421c-f73b-4590-ac5e-6d1a1627e76a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '69b000b9-2dac-473c-ad49-afea38f203c0', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', '95807c21-bc4a-4b2d-9faa-34cd7dc1f9b0', 'e940421c-f73b-4590-ac5e-6d1a1627e76a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '4c5c5cbe-7334-421e-babc-25333566964f', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '0', '6', '95807c21-bc4a-4b2d-9faa-34cd7dc1f9b0', 'e940421c-f73b-4590-ac5e-6d1a1627e76a');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( '95807c21-bc4a-4b2d-9faa-34cd7dc1f9b0', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'event_array', NULL, '4', NULL, '43045760-daf6-4918-9dc9-674e06ab5c64');
INSERT INTO `product_sys_face_control_property` (`uuid`, `last_update_time`, `master_uuid`, `property_name`, `property_value`, `property_type`, `parent_uuid`, `group_uuid`) VALUES ( 'dc1cedf3-f1f7-4c86-b952-4fec8560b9ca', '2024-09-11 17:39:22', '8259c409-42dc-4c7b-b66c-4f06658ffb03', 'control_sequence', '1', '6', NULL, '43045760-daf6-4918-9dc9-674e06ab5c64');


delete from product_sys_menus where uuid='50b100ff-d3fd-435a-8a37-4544e9fa3e61';

INSERT INTO `product_sys_menus` (`uuid`, `function_uuid`, `menu_name`, `menu_description`, `menu_color`, `tricode`, `tricode_parent`, `menu_icon`, `is_catalog`, `is_show`, `sequence`, `created_by`, `created_utc_datetime`, `updated_utc_datetime`, `updated_by`) VALUES ( '50b100ff-d3fd-435a-8a37-4544e9fa3e61', '7d56278e-6bd7-4e4e-a021-32b1f7cb0f4f', '审批代理设置', '审批代理设置', NULL, '039-003', '039', 'el-icon-s-tools', 0, 1, 170, 1, '2024-08-23 10:37:58', '2024-08-23 10:38:23', 1);


ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_id` bigint NOT NULL COMMENT '自增id' FIRST;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '唯一标识' AFTER `prompt_id`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '参照名称' AFTER `uuid`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '参照描述' AFTER `prompt_name`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `source_table` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '来源比较' AFTER `prompt_desc`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `view_fields` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '显示字段' AFTER `source_table`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `value_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '值字段' AFTER `view_fields`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_field` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '参照字段' AFTER `value_field`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `org_filter_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '机构过滤字段' AFTER `select_fields`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '类型' AFTER `display_type`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `user_filter_field` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '人员过滤字段' AFTER `prompt_type`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `code_field` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT 'code字段名称' AFTER `user_filter_field`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `parent_code_field` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '父级code字段名称' AFTER `code_field`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `client_type_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '客户' AFTER `parent_code_field`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `orderby` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '排序' AFTER `is_org_filter`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `delay_load` tinyint NULL DEFAULT NULL COMMENT '是否延迟加载：1不延迟，全部加载，2延迟，点击后加载' AFTER `created_by`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `relate_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '管理类型' AFTER `created_utc_datetime`;

ALTER TABLE `product_sys_prompt` MODIFY COLUMN `prompt_id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id';


INSERT INTO `product_sys_datamodel_table` (uuid,created_by,created_utc_datetime,updated_by,updated_utc_datetime,org_level_uuid,table_name,table_description,table_type,table_base_view,view_sql,table_primary_key,sequence,is_international,produce_msg,container_name,view_status) SELECT 'product_sys_prompt', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL, 'product_sys_prompt', '系统高级参照表', '1', '', NULL, 'uuid', '79', '0', NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_prompt');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'client_type_uuid', 'string', '客户端类型', '客户端类型：关联数据字典表', '80', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='client_type_uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'code_field', 'string', '下级字段名', '下级字段名', '80', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='code_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'created_by', 'int', '创建者', '创建者', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='created_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='created_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'delay_load', 'int', '是否延迟加载', '是否延迟加载：0不延迟，全部加载，1延迟，点击后加载', '2', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='delay_load');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'display_type', 'int', '展示类型 ', '展示类型 1:列表  2:树结构', '2', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='display_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'filter', 'text', '过滤条件', '过滤条件', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='filter');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'is_multiple', 'int', '是否多选表', '是否多选表', '4', '0', '0', NULL, '0', '0', NULL, NULL, NULL, '', '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='is_multiple');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'is_org_filter', 'int', '是否公司过滤', '是否公司数据过滤,默认公司字段   1是   0否', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='is_org_filter');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'orderby', 'string', '排序', '排序，直接写排序语句', '225', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='orderby');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'org_filter_field', 'string', '单位过滤字段', '单位数据过滤字段，多个逗号分隔使用数据权限', '225', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='org_filter_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'parent_code_field', 'string', '上级字段名', '上级字段名', '80', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='parent_code_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'prompt_desc', 'string', '参照描述', '参照描述', '225', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='prompt_desc');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'prompt_field', 'string', '弹出提示列', '弹出选择框时提示列', '225', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='prompt_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'prompt_id', 'pk', '主键', '主键', '11', '0', '0', '1', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='prompt_id');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'prompt_name', 'string', '参照名称', '参照名称', '100', '0', '1', '1', '0', '1', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='prompt_name');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'prompt_type', 'string', '分类', '分类', '225', '0', '0', '0', '0', '1', NULL, NULL, '《prompt_type》', NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='prompt_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'relate_filter', 'text', '多表关联条件', '多表关联条件：a.x=b.x,多表才有', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='relate_filter');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'relate_type', 'string', '关联类型', '关联类型', '50', '0', '0', NULL, '0', '0', NULL, NULL, NULL, '', '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='relate_type');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'select_fields', 'text', '固定别名字段', '不显示，每列加固定别名字段', '0', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='select_fields');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'source_table', 'table_name', '数据来源表', '数据来源表', '225', '0', '1', '0', '0', '1', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='source_table');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'updated_by', 'int', '更新者', '更新者', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='updated_by');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='updated_utc_datetime');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'user_filter_field', 'string', '人员过滤字段', '人员数据过滤字段，多个逗号分隔使用数据权限', '225', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='user_filter_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'uuid', 'string', '唯一标识', '唯一标识', '80', '0', '1', '1', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='uuid');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'value_field', 'string', '取值列', '取值列', '225', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='value_field');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_format, related_table, field_reference, field_relation_table, field_sequence, created_by, created_utc_datetime, updated_by, updated_utc_datetime
, is_more_value) SELECT uuid(), 'product_sys_prompt', 'view_fields', 'string', '显示列', '选择后，显示列', '225', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '0', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_prompt' and field_name='view_fields');
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'client_type_uuid', field_type = 'string', field_show_name = '客户端类型', field_description = '客户端类型：关联数据字典表', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'client_type_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'code_field', field_type = 'string', field_show_name = '下级字段名', field_description = '下级字段名', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'code_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'created_by', field_type = 'int', field_show_name = '创建者', field_description = '创建者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'created_utc_datetime', field_type = 'datetime', field_show_name = '创建时间', field_description = '创建时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'delay_load', field_type = 'int', field_show_name = '是否延迟加载', field_description = '是否延迟加载：0不延迟，全部加载，1延迟，点击后加载', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'delay_load';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'display_type', field_type = 'int', field_show_name = '展示类型 ', field_description = '展示类型 1:列表  2:树结构', field_length = 2, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'display_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'filter', field_type = 'text', field_show_name = '过滤条件', field_description = '过滤条件', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'filter';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'is_multiple', field_type = 'int', field_show_name = '是否多选表', field_description = '是否多选表', field_length = 4, field_unit = '0', is_required = 0, is_unique = NULL, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'is_multiple';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'is_org_filter', field_type = 'int', field_show_name = '是否公司过滤', field_description = '是否公司数据过滤,默认公司字段   1是   0否', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'is_org_filter';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'orderby', field_type = 'string', field_show_name = '排序', field_description = '排序，直接写排序语句', field_length = 225, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'orderby';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'org_filter_field', field_type = 'string', field_show_name = '单位过滤字段', field_description = '单位数据过滤字段，多个逗号分隔使用数据权限', field_length = 225, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'org_filter_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'parent_code_field', field_type = 'string', field_show_name = '上级字段名', field_description = '上级字段名', field_length = 80, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'parent_code_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'prompt_desc', field_type = 'string', field_show_name = '参照描述', field_description = '参照描述', field_length = 225, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'prompt_desc';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'prompt_field', field_type = 'string', field_show_name = '弹出提示列', field_description = '弹出选择框时提示列', field_length = 225, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'prompt_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'prompt_id', field_type = 'pk', field_show_name = '主键', field_description = '主键', field_length = 11, field_unit = '0', is_required = 0, is_unique = 1, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'prompt_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'prompt_name', field_type = 'string', field_show_name = '参照名称', field_description = '参照名称', field_length = 100, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'prompt_name';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'prompt_type', field_type = 'string', field_show_name = '分类', field_description = '分类', field_length = 225, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = '《prompt_type》', field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'prompt_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'relate_filter', field_type = 'text', field_show_name = '多表关联条件', field_description = '多表关联条件：a.x=b.x,多表才有', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'relate_filter';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'relate_type', field_type = 'string', field_show_name = '关联类型', field_description = '关联类型', field_length = 50, field_unit = '0', is_required = 0, is_unique = NULL, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = '', field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'relate_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'select_fields', field_type = 'text', field_show_name = '固定别名字段', field_description = '不显示，每列加固定别名字段', field_length = 0, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'select_fields';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'source_table', field_type = 'table_name', field_show_name = '数据来源表', field_description = '数据来源表', field_length = 225, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'source_table';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'updated_by', field_type = 'int', field_show_name = '更新者', field_description = '更新者', field_length = 11, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'updated_utc_datetime', field_type = 'datetime', field_show_name = '更新时间', field_description = '更新时间', field_length = 0, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'user_filter_field', field_type = 'string', field_show_name = '人员过滤字段', field_description = '人员数据过滤字段，多个逗号分隔使用数据权限', field_length = 225, field_unit = '0', is_required = 0, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'user_filter_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'uuid', field_type = 'string', field_show_name = '唯一标识', field_description = '唯一标识', field_length = 80, field_unit = '0', is_required = 1, is_unique = 1, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'value_field', field_type = 'string', field_show_name = '取值列', field_description = '取值列', field_length = 225, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'value_field';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_prompt', field_name = 'view_fields', field_type = 'string', field_show_name = '显示列', field_description = '选择后，显示列', field_length = 225, field_unit = '0', is_required = 1, is_unique = 0, is_international = 0, is_filter = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1',
updated_utc_datetime = now()
, is_more_value = NULL WHERE table_uuid = 'product_sys_prompt' AND field_name = 'view_fields';
DELETE FROM `product_sys_datamodel_field` where table_uuid='product_sys_prompt' and  DATE_FORMAT(updated_utc_datetime, '%Y-%m-%d') != DATE_FORMAT(CURDATE(), '%Y-%m-%d');
DELETE FROM `product_sys_datamodel_table_index` where table_uuid='product_sys_prompt';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('3db4c829-1bc9-4521-8418-266d97782ce0','product_sys_prompt','unique_prompt_name','prompt_name','1' );
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('2125bd85-9f3e-44f9-afc6-aeb2b04a911c','product_sys_prompt','unique_uuid','uuid','1' );


INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e813a-79f7-11ec-8e69-902b3470f24e', 'administrator_client', '系统管理员下的客户', 'product_sys_clients', 'client_name', 'uuid', 'client_short_code,uuid,client_name', '', 'uuid value_field,client_name view_fields,client_short_code f1,uuid f2,client_name f3', NULL, '', '1', '2', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2022-03-08 19:18:01', '1', '2020-01-01 08:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='administrator_client');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e878b-79f7-11ec-8e69-902b3470f24e', 'agent_approval_type', '代理审批类型', 'product_sys_flow_proxy_approval_type', 'proxy_name', 'uuid', 'proxy_name,proxy_description,business_data_table_name', '', 'uuid value_field,proxy_name view_fields,proxy_name f1,proxy_description f2,business_data_table_name f3', '', NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='agent_approval_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e89e3-79f7-11ec-8e69-902b3470f24e', 'boss', '上司参照', 'product_sys_staffs', 'show_name', 'uuid', 'show_name', 'org_level_uuid=~org_level_uuid~ and staff_status!=4 and tricode not like CONCAT((select tricode from product_sys_staffs where uuid=~staff_uuid~),"%")', 'uuid value_field,show_name view_fields,show_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='boss');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e8d95-79f7-11ec-8e69-902b3470f24e', 'business_type', '商业类型', 'product_sys_dict', 'dict_label', 'dict_value', 'dict_name', 'dict_name="Business_Type" and is_used=1', 'dict_value value_field,dict_label view_fields,dict_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='business_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e8fac-79f7-11ec-8e69-902b3470f24e', 'change-org', '上级公司变更(code,不包含当前公司及当前公司子公司code)', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_code not like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\') and org_level_type =0', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='change-org');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e91cf-79f7-11ec-8e69-902b3470f24e', 'change_type', '逻辑代码配置变更类型', 'product_sys_dict', 'dict_name', 'uuid', 'dict_name', '', 'uuid value_field,dict_name view_fields,dict_name f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='change_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e93cd-79f7-11ec-8e69-902b3470f24e', 'client-levels', '客户下的所有单位', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_code,org_level_name', 'client_uuid =\'{{CLIENT_UUID}}\'  and org_level_type=0 and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_code f3,org_level_name f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='client-levels');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e95b2-79f7-11ec-8e69-902b3470f24e', 'client_language', '客户语言下拉', 'product_common_language', 'language_name', 'uuid', 'language_code,language_name', 'is_used=1', 'uuid value_field,language_name view_fields,language_code f1,language_name f2', NULL, '', '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='client_language');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e9896-79f7-11ec-8e69-902b3470f24e', 'client_levels', '客户下的公司', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,uuid,org_level_name', 'client_uuid =~client_uuid~  and org_level_type=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,uuid f3,org_level_name f4', '', '', '1', '2', '', '', '', 'Web', NULL, 'sequence asc,org_level_id', '0', '1', NULL, '2021-03-29 07:57:57', '257', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='client_levels');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e9a9e-79f7-11ec-8e69-902b3470f24e', 'client_type', '客户端类型下拉', 'product_sys_dict', 'dict_value', 'dict_value', 'dict_name', 'dict_name="client_type" and is_used=1', 'dict_value value_field,dict_value view_fields,dict_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='client_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e9d4d-79f7-11ec-8e69-902b3470f24e', 'companyToClient', '根据公司获取客户', 'product_sys_clients', 'client_name', 'uuid', 'client_short_code,uuid,client_name', 'uuid = (select client_uuid from product_sys_org_levels where uuid=~org_level_uuid~)', 'uuid value_field,client_name view_fields,client_short_code f1,uuid f2,client_name f3', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='companyToClient');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043e9f4e-79f7-11ec-8e69-902b3470f24e', 'company_post', '公司下所有岗位', 'product_sys_job_posts a53,product_sys_org_levels a74', 'a53.job_post_name', 'a53.uuid', 'a74.org_level_all,a53.uuid,a74.uuid', 'a53.org_level_uuid=\'{{COMPANY_UUID}}\'', 'a53.uuid value_field,a53.job_post_name view_fields,a74.org_level_all f1,a53.uuid f2,a74.uuid f3', '', 'a53.dept_uuid=a74.uuid', '1', '1', '', '', '', 'Web', NULL, 'a53.sequence asc', '1', '1', NULL, '2021-04-13 07:52:37', '138', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='company_post');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ea143-79f7-11ec-8e69-902b3470f24e', 'complete_probation', '转正员工列表', 'product_sys_staffs a85,product_sys_clients a15,product_sys_org_levels a74,product_sys_job_posts a53,product_sys_job_post_grades a55,product_sys_org_levels a74_t', 'a85.show_name', 'a85.uuid', 'a15.client_name,a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a85.entry_datetime,a85.preferred_name,a85.show_name,a85.staff_avatar,a85.direct_leader_code,a85.role_uuids', '(a85.org_level_uuid=~org_level_uuid~ or ~org_level_uuid~=(SELECT uuid FROM product_sys_org_levels WHERE uuid=\'00000000-0000-0000-0000-000000000000\'))', 'a85.uuid value_field,a85.show_name view_fields,a15.client_name f1,a74.org_level_name f2,a74_t.org_level_name f3,a53.job_post_name f4,a85.entry_datetime f5,a85.preferred_name f6,a85.show_name f7,a85.staff_avatar f8,a85.direct_leader_code f9,a85.role_uuids f10', NULL, 'a85.client_uuid=a15.uuid,a85.org_level_uuid=a74.uuid,a85.job_post_uuid=a53.uuid,a85.job_post_grade_uuid=a55.uuid,a85.dept_uuid=a74_t.uuid', '1', '2', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='complete_probation');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ea34a-79f7-11ec-8e69-902b3470f24e', 'complete_probation-update', '转正员工修改', 'product_sys_staffs a85,product_sys_clients a15,product_sys_org_levels a74,product_sys_job_posts a53,product_sys_job_post_grades a55,product_sys_org_levels a74_t', 'a85.show_name', 'a85.uuid', 'a15.client_name,a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a55.job_grade_name,a85.entry_datetime,a85.preferred_name,a85.show_name,a85.staff_avatar,a85.direct_leader_code,a85.role_uuids', 'NOW()>(select probation_end_date from product_sys_staff_employment_info where staff_uuid=a85.uuid) and a85.org_level_uuid=~org_level_uuid~and a85.uuid =~staff_uuid~', 'a85.uuid value_field,a85.show_name view_fields,a15.client_name f1,a74.org_level_name f2,a74_t.org_level_name f3,a53.job_post_name f4,a55.job_grade_name f5,a85.entry_datetime f6,a85.preferred_name f7,a85.show_name f8,a85.staff_avatar f9,a85.direct_leader_code f10,a85.role_uuids f11', NULL, 'a85.client_uuid=a15.uuid,a85.org_level_uuid=a74.uuid,a85.job_post_uuid=a53.uuid,a85.job_post_grade_uuid=a55.uuid,a85.dept_uuid=a74_t.uuid', '1', '2', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='complete_probation-update');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eaadf-79f7-11ec-8e69-902b3470f24e', 'complete_probations', '转正员工新增', 'product_sys_staffs a85,product_sys_clients a15,product_sys_org_levels a74,product_sys_job_posts a53,product_sys_job_post_grades a55,product_sys_org_levels a74_t', 'a85.show_name', 'a85.uuid', 'a15.client_name,a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a55.job_grade_name,a85.entry_datetime,a85.preferred_name,a85.show_name,a85.staff_avatar,a85.direct_leader_code,a85.role_uuids', 'NOW()>(select probation_end_date from product_sys_staff_employment_info where staff_uuid=a85.uuid) and staff_status=2 and a85.org_level_uuid=~org_level_uuid~and a85.uuid not in (select staff_uuid from product_sys_staff_complete_probation where result_status=0)', 'a85.uuid value_field,a85.show_name view_fields,a15.client_name f1,a74.org_level_name f2,a74_t.org_level_name f3,a53.job_post_name f4,a55.job_grade_name f5,a85.entry_datetime f6,a85.preferred_name f7,a85.show_name f8,a85.staff_avatar f9,a85.direct_leader_code f10,a85.role_uuids f11', NULL, 'a85.client_uuid=a15.uuid,a85.org_level_uuid=a74.uuid,a85.job_post_uuid=a53.uuid,a85.job_post_grade_uuid=a55.uuid,a85.dept_uuid=a74_t.uuid', '1', '2', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='complete_probations');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ead8e-79f7-11ec-8e69-902b3470f24e', 'cost_center', '成本中心', 'product_sys_cost_center', 'cost_center_name', 'uuid', 'cost_center_name', 'org_level_uuid=~org_level_uuid~', 'uuid value_field,cost_center_name view_fields,cost_center_name f1', '', NULL, '1', '1', '', NULL, NULL, 'Web', NULL, 'id', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='cost_center');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eafcb-79f7-11ec-8e69-902b3470f24e', 'country_mobile_prefix', '国际电话号码区号', 'product_common_calling_code', 'calling_code', 'calling_code', 'calling_code', '', 'calling_code value_field,calling_code view_fields,calling_code f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='country_mobile_prefix');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eb1e5-79f7-11ec-8e69-902b3470f24e', 'dept-change', '部门变更(源)', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,uuid,org_level_name', 'uuid not in (select origin_dept_uuid from product_sys_org_levels_change where (result_status=0 OR result_status=1))  and org_level_type=1 and org_level_status=0 and org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\')', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,uuid f3,org_level_name f4', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dept-change');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eb3fc-79f7-11ec-8e69-902b3470f24e', 'dept-change-update-or-check', '部门变更修改或查看(原部门)', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,uuid,org_level_name', '(uuid not in (select origin_dept_uuid from product_sys_org_levels_change where (result_status=0 OR result_status=1)) or uuid=~dept_uuid~)  and org_level_type=1 and org_level_status=0 and org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\')', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,uuid f3,org_level_name f4', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dept-change-update-or-check');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eb64a-79f7-11ec-8e69-902b3470f24e', 'dept-leader', '指定部门领导人', 'product_sys_staffs', 'preferred_name', 'uuid', 'preferred_name', 'org_level_uuid=(select uuid from product_sys_org_levels where org_level_code=~org_level_code~) or dept_uuid=(select uuid from product_sys_org_levels where org_level_code=~org_level_code~)', 'uuid value_field,preferred_name view_fields,preferred_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dept-leader');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eb858-79f7-11ec-8e69-902b3470f24e', 'email_address_field', '邮件模板系统变量参照', 'product_sys_datamodel_field', 'field_name', 'field_name', 'field_name,field_description', 'table_uuid in (select table_uuid from product_sys_functions where uuid=~uuid~)', 'field_name value_field,field_name view_fields,field_name f1,field_description f2', '', NULL, '1', '123', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2024-08-16 14:49:23', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='email_address_field');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eba69-79f7-11ec-8e69-902b3470f24e', 'exchange_foreign', '汇率交换转换货币下拉参照', 'product_common_currency', 'name', 'uuid', 'name,currency_code,uuid', 'uuid in (select  foreign_currency_uuid from  product_common_foreign_exchange_rate where original_currency_uuid=~original~ )', 'uuid value_field,name view_fields,name f1,currency_code f2,uuid f3', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='exchange_foreign');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ebe71-79f7-11ec-8e69-902b3470f24e', 'exchange_original', '汇率交换原货币下拉参照', 'product_common_currency', 'name', 'uuid', 'name,uuid,currency_code', ' uuid in (select original_currency_uuid from product_common_foreign_exchange_rate  )', 'uuid value_field,name view_fields,name f1,uuid f2,currency_code f3', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='exchange_original');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ec072-79f7-11ec-8e69-902b3470f24e', 'function_button_version', '功能和功能按钮的版本号下拉', 'product_sys_version', 'version_code', 'uuid', 'version_code', '(version_code=(SELECT max(version_code) FROM product_sys_version WHERE system_platform = (		select table_uuid from product_sys_functions where data_type=2 and  tricode = ~tricode~)and is_used = \'1\') or uuid= ~version_uuid~ ) AND system_platform = (select table_uuid from product_sys_functions where data_type=2 and  tricode = ~tricode~)', 'uuid value_field,version_code view_fields,version_code f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-09-16 16:27:56', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_button_version');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ec283-79f7-11ec-8e69-902b3470f24e', 'function_client_type', '功能客户端类型下拉', 'product_sys_dict', 'dict_value', 'dict_value', 'dict_label', 'dict_name=\'client_type\' and is_used=1', 'dict_value value_field,dict_value view_fields,dict_label f1', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-10 10:14:35', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_client_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ec48b-79f7-11ec-8e69-902b3470f24e', 'function_module_parent', '菜单对应功能下拉', 'product_sys_functions', 'function_name', 'uuid', 'function_name,function_description,tricode', 'data_type=1', 'uuid value_field,function_name view_fields,function_name f1,function_description f2,tricode f3', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2021-09-30 15:46:55', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_module_parent');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ec7e5-79f7-11ec-8e69-902b3470f24e', 'function_parent', '功能上级模块下拉', 'product_sys_functions', 'function_name', 'uuid', 'function_name,function_description', 'data_type=2', 'uuid value_field,function_name view_fields,function_name f1,function_description f2', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-09-16 15:30:28', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_parent');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ec9f3-79f7-11ec-8e69-902b3470f24e', 'function_reference', '功能参照', 'product_sys_functions', 'function_name', 'uuid', 'function_shortcode,function_name', '(uuid =~uuid~ and data_type=1)', 'uuid value_field,function_name view_fields,function_shortcode f1,function_name f2', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_reference');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ecbea-79f7-11ec-8e69-902b3470f24e', 'function_reference_language', '功能参照(国际化导入专用)', 'product_sys_functions', 'function_name', 'uuid', 'function_shortcode,function_name', 'module_uuid=~language_master_module_uuid~', 'uuid value_field,function_name view_fields,function_shortcode f1,function_name f2', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_reference_language');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ecec2-79f7-11ec-8e69-902b3470f24e', 'group_name', '定时任务组名参照', 'product_sys_dict', 'dict_label', 'dict_value', 'dict_name', 'dict_name="Group_name" and is_used=1', 'dict_value value_field,dict_label view_fields,dict_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='group_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ed168-79f7-11ec-8e69-902b3470f24e', 'job_post', '指定岗位可以查看指定组织架构新增岗位下拉', 'product_sys_job_posts a53,product_sys_org_levels a74', 'a53.job_post_name', 'a53.uuid', 'a74.org_level_all,a53.job_post_name,a74.uuid', 'a53.org_level_uuid=~org_level_uuid~', 'a53.uuid value_field,a53.job_post_name view_fields,a74.org_level_all f1,a53.job_post_name f2,a74.uuid f3', NULL, 'a53.dept_uuid=a74.uuid', '1', '1', NULL, NULL, NULL, 'Web', NULL, 'a53.sequence asc', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='job_post');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ed376-79f7-11ec-8e69-902b3470f24e', 'language_client', '客户所属语言', 'product_common_language', 'language_name', 'uuid', 'language_code,language_name', 'language_code in (select client_language_code from product_sys_client_language where client_uuid=~client_uuid~)', 'uuid value_field,language_name view_fields,language_code f1,language_name f2', NULL, '', '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='language_client');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ed56a-79f7-11ec-8e69-902b3470f24e', 'level-dept-post', '根据部门uuid选择岗位uuid', 'product_sys_job_posts a53,product_sys_org_levels a74', 'a53.job_post_name', 'a53.uuid', 'a74.org_level_all,a53.job_post_name,a74.uuid', 'a53.dept_uuid=~dept_uuid~ and  is_used=1', 'a53.uuid value_field,a53.job_post_name view_fields,a74.org_level_all f1,a53.job_post_name f2,a74.uuid f3', NULL, 'a53.dept_uuid=a74.uuid', '1', '', NULL, NULL, NULL, 'Web', NULL, 'a53.sequence asc', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level-dept-post');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ed76c-79f7-11ec-8e69-902b3470f24e', 'level-or-dept', '上级公司或部门', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_status=0', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level-or-dept');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ed960-79f7-11ec-8e69-902b3470f24e', 'level-role', '所属公司uuid选择角色uuid', 'product_sys_role', 'role_name', 'uuid', 'role_name', 'org_level_uuid like CONCAT("%",\'{{COMPANY_UUID}}\',"%") and is_used=1 and uuid not like \'%-notchange%\'', 'uuid value_field,role_name view_fields,role_name f1', '', '', '1', '', '', '', '', 'Web', NULL, 'sequence ASC', '0', '1', NULL, '2021-04-12 01:59:33', '258', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level-role');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043edc2c-79f7-11ec-8e69-902b3470f24e', 'levels', '所有公司参照', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', '', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, NULL, '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='levels');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ede27-79f7-11ec-8e69-902b3470f24e', 'levels-staffs', '单位下对的人员1启用账号  2、非管理员账号 3、更具选择公司字段过滤', 'product_sys_staffs', 'preferred_name', 'uuid', 'tricode,christian_name,preferred_name', 'is_org_admin=0 and org_level_uuid in(~org_level_uuid~) or uuid=~staffs_uuid~', 'uuid value_field,preferred_name view_fields,tricode f1,christian_name f2,preferred_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='levels-staffs');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ee0d6-79f7-11ec-8e69-902b3470f24e', 'levelUuid_deptUuid', '根据公司uuid选择部门uuid', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=1 and org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=\'{{COMPANY_UUID}}\'),\'%\') and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', '', '', '1', '', '', '', '', 'Web', NULL, 'sequence asc', '0', '1', NULL, '2021-03-31 09:26:24', '258', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='levelUuid_deptUuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ee2ff-79f7-11ec-8e69-902b3470f24e', 'level_buttons', '根据功能选择按钮', 'product_sys_function_buttons', 'button_title', 'uuid', 'button_title,button_name,terminal_type', 'function_uuid=~function_uuid~', 'uuid value_field,button_title view_fields,button_title f1,button_name f2,terminal_type f3', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, 'terminal_type,button_name', '0', '1', NULL, '2024-08-16 14:53:59', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level_buttons');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ee501-79f7-11ec-8e69-902b3470f24e', 'level_dept', '根据公司code选择部门code', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name', '(org_level_code like concat(~org_level_code~,\'%\')and org_level_type=1) or org_level_code =~org_level_code~ and org_level_status=0', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level_dept');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ee718-79f7-11ec-8e69-902b3470f24e', 'level_functions', '根据公司选择功能', 'product_sys_functions', 'function_name', 'uuid', 'function_shortcode,function_name', '(uuid in( SELECT function_uuid FROM product_sys_function_permission WHERE role_uuid in(SELECT uuid FROM product_sys_role WHERE  org_level_uuid =\'{{COMPANY_UUID}}\')) and uuid not in (SELECT substring_index( substring_index(  ~not_uuid~, \',\', b.field_id ), \',\',- 1 ) AS uuid FROM product_sys_functions a JOIN product_sys_datamodel_field b ON b.field_id <= ( length(  ~not_uuid~ ) - length( REPLACE ( ~not_uuid~, \',\', \'\' ) ) + 2 ) ) ) or uuid in (~this_uuid~)', 'uuid value_field,function_name view_fields,function_shortcode f1,function_name f2', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level_functions');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ee970-79f7-11ec-8e69-902b3470f24e', 'manager-sub-company', '单位管理员管理的公司及子公司(组织机构变更专用)', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,uuid,org_level_name', 'org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\') and org_level_type=0 and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,uuid f3,org_level_name f4', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='manager-sub-company');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eeb61-79f7-11ec-8e69-902b3470f24e', 'managerToCompany', '当前管理员所管理的单位', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,client_uuid,org_level_name', 'uuid in (select org_level_uuid from product_sys_org_manager where user_id=~user_id~)', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,client_uuid f3,org_level_name f4', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='managerToCompany');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043eed75-79f7-11ec-8e69-902b3470f24e', 'menu_parent', '菜单上级名称下拉', 'product_sys_menus', 'menu_name', 'tricode', 'menu_name', ' (function_uuid is null or function_uuid =\'\') and uuid not in (select uuid from product_sys_menus where tricode_parent in (select tricode from product_sys_menus where uuid = ~uuid~ or tricode like concat ((select tricode from product_sys_menus where uuid = ~uuid~),"%")))and uuid <> ~uuid~', 'tricode value_field,menu_name view_fields,menu_name f1', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-08 06:29:22', '1', '2020-01-01 16:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='menu_parent');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ef06c-79f7-11ec-8e69-902b3470f24e', 'module_parent', '模块上级模块下拉', 'product_sys_module_v', 'function_name', 'tricode', 'function_name,function_description', 'uuid NOT IN ( 	SELECT 		uuid  	FROM 		product_sys_functions  	WHERE 		tricode_parent = ( 		SELECT 			tricode  		FROM 			product_sys_functions  		WHERE 		data_type=2 and  		uuid = ~uuid~)  	OR tricode LIKE concat (( SELECT tricode FROM product_sys_functions  WHERE data_type=2 and  uuid = ~uuid~), "%" ))  	AND table_uuid = ~product_uuid~ and data_type=2', 'tricode value_field,function_name view_fields,function_name f1,function_description f2', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, 'tricode', '0', '1', NULL, '2021-10-11 09:48:22', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='module_parent');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ef34d-79f7-11ec-8e69-902b3470f24e', 'module_reference', '国家化模块下拉', 'product_sys_functions', 'function_name', 'uuid', 'function_name,function_description', 'org_level_uuid=~uuid~ or ~uuid~=(SELECT uuid FROM product_sys_org_levels WHERE uuid=\'00000000-0000-0000-0000-000000000000\')', 'uuid value_field,function_name view_fields,function_name f1,function_description f2', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-09-16 15:29:34', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='module_reference');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ef548-79f7-11ec-8e69-902b3470f24e', 'module_version', '新增模块版本号下拉', 'product_sys_version', 'version_code', 'uuid', 'version_code', 'version_code=(SELECT max(version_code) FROM product_sys_version WHERE system_platform = ~product_uuid~ and is_used = \'1\') AND system_platform = ~product_uuid~', 'uuid value_field,version_code view_fields,version_code f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='module_version');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ef73a-79f7-11ec-8e69-902b3470f24e', 'lx_common_geo_city', '全球地区库_城市_根据省份', 'product_common_geo', 'name', 'id', 'name', ' level=3 and pid=~province~', 'id value_field,name view_fields,name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_common_geo_city');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ef9e9-79f7-11ec-8e69-902b3470f24e', 'lx_common_geo_country', '全球地区库_国家', 'product_common_geo', 'name', 'id', 'name', ' level=2', 'id value_field,name view_fields,name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_common_geo_country');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043efcab-79f7-11ec-8e69-902b3470f24e', 'lx_common_geo_province', '全球地区库_省份_根据国家', 'product_common_geo', 'name', 'id', 'name', ' level=3 and  pid=~country~', 'id value_field,name view_fields,name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_common_geo_province');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043efe9d-79f7-11ec-8e69-902b3470f24e', 'product_sys_clients', '客户', 'product_sys_clients', 'client_name', 'uuid', 'client_name', '', 'uuid value_field,client_name view_fields,client_name f1', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2022-05-18 15:05:51', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='product_sys_clients');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f0146-79f7-11ec-8e69-902b3470f24e', 'lx_sys_clients_new', '客户下拉—新', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', '', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_clients_new');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f03e6-79f7-11ec-8e69-902b3470f24e', 'lx_sys_cost_center', '成本中心参照', 'product_sys_cost_center', 'cost_center_name', 'uuid', 'cost_center_name', 'org_level_uuid=~org_level_uuid~', 'uuid value_field,cost_center_name view_fields,cost_center_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_cost_center');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f05d1-79f7-11ec-8e69-902b3470f24e', 'product_sys_job_post_grade', '岗位等级选择', 'product_sys_job_post_grades', 'job_grade_name', 'uuid', 'job_grade_class,group_name,job_grade_name,job_grade_shortcode', 'is_used=1 and org_level_uuid like CONCAT("%",\'{{COMPANY_UUID}}\',"%")', 'uuid value_field,job_grade_name view_fields,job_grade_class f1,group_name f2,job_grade_name f3,job_grade_shortcode f4', '', '', '1', '', '', '', '', 'Web', NULL, '', '0', '1', NULL, '2021-03-31 09:13:39', '258', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='product_sys_job_post_grade');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f07c6-79f7-11ec-8e69-902b3470f24e', 'product_sys_job_post_grades', '岗位等级选择', 'product_sys_job_post_grades', 'job_grade_name', 'uuid', 'job_grade_class,group_name,job_grade_name,job_grade_shortcode', 'is_used=1 and uuid in (select job_grade_uuid from product_sys_job_posts_grades_mapping where job_post_uuid=~job_post_uuid~)', 'uuid value_field,job_grade_name view_fields,job_grade_class f1,group_name f2,job_grade_name f3,job_grade_shortcode f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='product_sys_job_post_grades');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f0a69-79f7-11ec-8e69-902b3470f24e', 'lx_sys_level_company_relevance_dept', '组织机构公司关联部门', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_code,org_level_name', 'uuid =~company_uuid~ and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_code f3,org_level_name f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_level_company_relevance_dept');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f0c83-79f7-11ec-8e69-902b3470f24e', 'lx_sys_version', '系统版本', 'product_sys_version', 'version_name', 'uuid', 'version_name', NULL, 'uuid value_field,version_name view_fields,version_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_version');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f0f38-79f7-11ec-8e69-902b3470f24e', 'new-dept-boss', '部门合并新部门主管', 'product_sys_staffs', 'show_name', 'uuid', 'show_name,staff_avatar,job_post_uuid,job_post_grade_uuid', 'dept_uuid in(~dept_uuid1~,~dept_uuid2~)', 'uuid value_field,show_name view_fields,show_name f1,staff_avatar f2,job_post_uuid f3,job_post_grade_uuid f4', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='new-dept-boss');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1136-79f7-11ec-8e69-902b3470f24e', 'new-dept-change', '部门变更(新)', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,uuid,org_level_name', 'uuid not in (select uuid from product_sys_org_levels where org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~dept_uuid~),\'%\') )  and uuid not in (select origin_dept_uuid from product_sys_org_levels_change where (result_status=0 OR result_status=1))  and org_level_type=1 and org_level_status=0 and org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\')', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,uuid f3,org_level_name f4', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='new-dept-change');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1353-79f7-11ec-8e69-902b3470f24e', 'new_boss', '上司参照-新建', 'product_sys_staffs', 'show_name', 'tricode', 'show_name', 'org_level_uuid=~org_level_uuid~ and staff_status!=4', 'tricode value_field,show_name view_fields,show_name f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2024-09-06 10:37:37', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='new_boss');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1612-79f7-11ec-8e69-902b3470f24e', 'new_parent_org_level', '新增企业参照', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_code,org_level_name', 'client_uuid = ~client_uuid~ and org_level_type=0  or (created_by = ~user_id~ and org_level_type=0) ', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_code f3,org_level_name f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='new_parent_org_level');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f18da-79f7-11ec-8e69-902b3470f24e', 'new_parent_org_level_new2', '新增企业参照_新', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_code,org_level_name', 'org_level_type=0', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_code f3,org_level_name f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='new_parent_org_level_new2');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1b9f-79f7-11ec-8e69-902b3470f24e', 'open_util', '开放公司下拉', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name,org_level_code', 'org_level_type=0 and org_level_status=0', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3,org_level_code f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='open_util');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1d9a-79f7-11ec-8e69-902b3470f24e', 'org_levels_manager_filter_company', '当前管理员管理的单位（admin使用）', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and org_level_status=0 and  client_uuid =\'{{CLIENT_UUID}}\'', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_manager_filter_company');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f1f92-79f7-11ec-8e69-902b3470f24e', 'org_levels_manager_filter_company_code', '创建公司时获取上级编码', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,client_uuid', 'org_level_type=0  and org_level_status=0 and org_level_code like CONCAT(\'{{COMPANY_CODE}}\',\'%\' ) ', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,client_uuid f3', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2021-05-13 16:30:12', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_manager_filter_company_code');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f2177-79f7-11ec-8e69-902b3470f24e', 'org_levels_manager_filter_company_code_update', '修改企业时上级单位编码（不包含所修改企业以及子公司）', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and org_level_status=0 and org_level_code like CONCAT(~org_level_code~,\'%\' ) and  org_level_code not like CONCAT((SELECT org_level_code FROM product_sys_org_levels WHERE uuid=~uuid~),\'%\' ) or org_level_code=(SELECT org_level_code_parent FROM product_sys_org_levels WHERE uuid=~uuid~) ', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_manager_filter_company_code_update');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f236c-79f7-11ec-8e69-902b3470f24e', 'org_levels_manager_filter_company_company', '当前管理员管理的单位   单位管理员用户使用', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and org_level_status=0 and org_level_code like CONCAT(~org_level_code~,\'%\' ) ', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, '', '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_manager_filter_company_company');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f2631-79f7-11ec-8e69-902b3470f24e', 'org_levels_manager_filter_company_other', '当前管理员管理的单位（除admin以外用户使用）', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and org_level_status=0 and client_uuid=~client_uuid~ or (created_by=~user_id~ and org_level_type=0  and org_level_status=0)', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_manager_filter_company_other');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f280a-79f7-11ec-8e69-902b3470f24e', 'org_levels_sub', '单位以及单位子表', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and  org_level_code like (SELECT CONCAT(org_level_code,\'%\') FROM product_sys_org_levels WHERE uuid=\'{{COMPANY_UUID}}\')', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', '', '', '1', '', '', '', '', 'Web', NULL, 'sequence asc', '0', '1', NULL, '2021-03-31 06:43:04', '258', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_levels_sub');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f29f8-79f7-11ec-8e69-902b3470f24e', 'org_level_for_clients', '客户下属公司', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_name,org_level_all', 'org_level_type=0 and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_name f1,org_level_all f2', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_level_for_clients');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f2bed-79f7-11ec-8e69-902b3470f24e', 'org_level_relevance_client', '客户下的所有单位', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', ' client_uuid =~client_uuid~ and org_level_type=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='org_level_relevance_client');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f2ddf-79f7-11ec-8e69-902b3470f24e', 'parent_org_level', '当前管理员管理的单位', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_all,org_level_shortcode,org_level_name,org_level_code', 'org_level_type=0  and org_level_code NOT like Concat(\'%\',~org_level_code~,\'%\') and client_uuid=\'{{CLIENT_UUID}}\' or (created_by={{USER_ID}} AND org_level_code NOT like Concat(\'%\',~org_level_code~,\'%\') ) or (org_level_code=~org_level_code_parent~) ', 'org_level_code value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3,org_level_code f4', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2021-05-13 16:49:33', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='parent_org_level');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f30b7-79f7-11ec-8e69-902b3470f24e', 'post-grades', '根据岗位选择岗位等级', 'product_sys_job_post_grades', 'job_grade_name', 'uuid', 'job_grade_name', 'uuid in(select job_grade_uuid from product_sys_job_posts_grades_mapping where job_post_uuid=~job_post_uuid~)', 'uuid value_field,job_grade_name view_fields,job_grade_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='post-grades');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f32bb-79f7-11ec-8e69-902b3470f24e', 'product', '产品', 'product_sys_products', 'product_name', 'uuid', 'product_name', '', 'uuid value_field,product_name view_fields,product_name f1', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, 'tricode', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='product');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f34ac-79f7-11ec-8e69-902b3470f24e', 'products', '模块上级产品下拉', 'product_sys_products', 'product_name', 'uuid', 'product_name', '', 'uuid value_field,product_name view_fields,product_name f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='products');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f369e-79f7-11ec-8e69-902b3470f24e', 'recipients_staff', '收件人下拉', 'product_sys_staffs', 'preferred_name', 'uuid', 'preferred_name', 'org_level_uuid=~uuid~ and staff_status !=4', 'uuid value_field,preferred_name view_fields,preferred_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='recipients_staff');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f393e-79f7-11ec-8e69-902b3470f24e', 'relation_field', '视图和表关联的字段', 'product_sys_datamodel_field', 'field_name', 'field_name', 'field_name,field_description,field_type', 'table_uuid=(select uuid from product_sys_datamodel_table where table_name=~source_table~)', 'field_name value_field,field_name view_fields,field_name f1,field_description f2,field_type f3', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='relation_field');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f3bf0-79f7-11ec-8e69-902b3470f24e', 'serial_number', '流水号参照', 'product_sys_datamodel_table_fields_v', 'field_name', 'field_name', 'field_name,field_description,field_type', 'field_type=\'serialNumber\' and table_name=~source_table~ AND concat(table_name,field_name) NOT IN (SELECT concat(swift_config_table,swift_config_field) FROM product_sys_swift_config ) OR ( table_name=~source_table~ and field_name = ~value~)', 'field_name value_field,field_name view_fields,field_name f1,field_description f2,field_type f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-27 16:50:22', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='serial_number');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f3e01-79f7-11ec-8e69-902b3470f24e', 'show_name', '显示名字', 'product_sys_staffs', 'show_name', 'uuid', 'show_name', '', 'uuid value_field,show_name view_fields,show_name f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='show_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f3fec-79f7-11ec-8e69-902b3470f24e', 'StaffDimission', '员工离职', 'product_sys_staffs a85,product_sys_clients a15,product_sys_org_levels a74,product_sys_job_posts a53,product_sys_job_post_grades a55,product_sys_org_levels a74_t', 'a85.show_name', 'a85.uuid', 'a15.client_name,a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a55.job_grade_name,a85.entry_datetime,a85.preferred_name,a85.show_name,a85.staff_avatar,a85.direct_leader_code,a85.role_uuids', 'a85.staff_status=3 and a85.uuid not in (select apply_staff_uuid from product_sys_staff_termination where result_status=1) and a85.org_level_uuid=~org_level_uuid~', 'a85.uuid value_field,a85.show_name view_fields,a15.client_name f1,a74.org_level_name f2,a74_t.org_level_name f3,a53.job_post_name f4,a55.job_grade_name f5,a85.entry_datetime f6,a85.preferred_name f7,a85.show_name f8,a85.staff_avatar f9,a85.direct_leader_code f10,a85.role_uuids f11', NULL, 'a85.client_uuid = a15.uuid, a85.org_level_uuid = a74.uuid, a85.job_post_uuid = a53.uuid, a85.job_post_grade_uuid = a55.uuid, a85.dept_uuid = a74_t.uuid', '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='StaffDimission');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f41c5-79f7-11ec-8e69-902b3470f24e', 'StaffDimission-update', '员工离职-修改', 'product_sys_staffs a85,product_sys_clients a15,product_sys_org_levels a74,product_sys_job_posts a53,product_sys_job_post_grades a55,product_sys_org_levels a74_t,product_sys_staffs a85_t', 'a85.show_name', 'a85.uuid', 'a15.client_name,a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a55.job_grade_name,a85.entry_datetime,a85.preferred_name,a85.show_name,a85.staff_avatar,a85.direct_leader_code,a85.role_uuids,a85_t.preferred_name', 'a85.staff_status=5 and a85.uuid in (select apply_staff_uuid from product_sys_staff_termination where result_status is null) and a85.org_level_uuid=~org_level_uuid~', 'a85.uuid value_field,a85.show_name view_fields,a15.client_name f1,a74.org_level_name f2,a74_t.org_level_name f3,a53.job_post_name f4,a55.job_grade_name f5,a85.entry_datetime f6,a85.preferred_name f7,a85.show_name f8,a85.staff_avatar f9,a85.direct_leader_code f10,a85.role_uuids f11,a85_t.preferred_name f12', NULL, 'a85.client_uuid = a15.uuid, a85.org_level_uuid = a74.uuid, a85.job_post_uuid = a53.uuid, a85.job_post_grade_uuid = a55.uuid, a85.dept_uuid = a74_t.uuid,a85.direct_leader_code=a85_t.tricode', '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='StaffDimission-update');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f43b7-79f7-11ec-8e69-902b3470f24e', 'staffs', '人员参照，公司过滤权限', 'product_sys_staffs', 'preferred_name', 'uuid', 'tricode,christian_name,preferred_name', NULL, 'uuid value_field,preferred_name view_fields,tricode f1,christian_name f2,preferred_name f3', 'org_level_uuid', NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='staffs');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f4685-79f7-11ec-8e69-902b3470f24e', 'staff_probation_period', '试用期员工下拉参照', 'product_sys_staffs', 'preferred_name', 'uuid', 'preferred_name	', 'org_level_uuid=~org_level_uuid~ and staff_status=1', 'uuid value_field,preferred_name view_fields,preferred_name	 f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='staff_probation_period');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f490f-79f7-11ec-8e69-902b3470f24e', 'superior', '新增员工,员工信息专用', 'product_sys_staffs', 'show_name', 'tricode', 'dept_uuid,show_name', 'org_level_uuid=\'{{COMPANY_UUID}}\'', 'tricode  value_field,show_name view_fields,dept_uuid f1,show_name f2', '', '', '1', '1', '', '', '', 'Web', NULL, '', '0', '1', NULL, '2021-04-12 01:57:33', '258', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='superior');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f4b10-79f7-11ec-8e69-902b3470f24e', 'superiors', '上司(员工变动专用)', 'product_sys_staffs', 'show_name', 'tricode', 'dept_uuid,show_name', 'org_level_uuid=~org_level_uuid~', 'tricode value_field,show_name view_fields,dept_uuid f1,show_name f2', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='superiors');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f4d0b-79f7-11ec-8e69-902b3470f24e', 'sys_property_group', '员工属性分组', 'product_sys_staff_property_group', 'staff_property_group_name', 'uuid', 'staff_property_group_name', 'org_level_uuid=~org_level_uuid~', 'uuid value_field,staff_property_group_name view_fields,staff_property_group_name f1', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='sys_property_group');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f4eea-79f7-11ec-8e69-902b3470f24e', 'table_name', '视图和表下拉', 'product_sys_datamodel_table', 'table_name', 'table_name', 'table_name,table_description', '', 'table_name value_field,table_name view_fields,table_name f1,table_description f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, 'uuid asc', '0', '1', NULL, '2021-01-18 07:50:48', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='table_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f5181-79f7-11ec-8e69-902b3470f24e', 'this_level_dept', '当前公司部门', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=1 and org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=\'{{COMPANY_UUID}}\'),\'%\') and org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='this_level_dept');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f5369-79f7-11ec-8e69-902b3470f24e', 'this_level_staff', '当前公司下所有非停职员工', 'product_sys_staffs', 'show_name', 'uuid', 'show_name', 'org_level_uuid=\'{{COMPANY_UUID}}\' and staff_status!=4', 'uuid value_field,show_name view_fields,show_name f1', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='this_level_staff');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f5554-79f7-11ec-8e69-902b3470f24e', 'this_org_levels_sub', '当前账号单位以及单位子表', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_name', 'org_level_type=0  and  org_level_code like (SELECT CONCAT(org_level_code,\'%\') FROM product_sys_org_levels WHERE uuid=\'{{COMPANY_UUID}}\')', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_name f3', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='this_org_levels_sub');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f573d-79f7-11ec-8e69-902b3470f24e', 'unit', '单位和部门下拉', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_all,org_level_shortcode,org_level_code', 'org_level_status=0', 'uuid value_field,org_level_name view_fields,org_level_all f1,org_level_shortcode f2,org_level_code f3', NULL, NULL, '1', '1', NULL, NULL, NULL, 'Web', NULL, 'sequence asc', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='unit');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f59e3-79f7-11ec-8e69-902b3470f24e', 'userId_show_name', '通过user_id获取员工名称', 'product_sys_staffs', 'show_name', 'uuid', 'show_name', 'user_id=~user_id~', 'uuid value_field,show_name view_fields,show_name f1', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='userId_show_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f606f-79f7-11ec-8e69-902b3470f24e', 'version', '版本下拉', 'product_sys_version', 'version_code', 'uuid', 'version_code', '', 'uuid value_field,version_code view_fields,version_code f1', NULL, NULL, '1', '2', NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='version');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f6324-79f7-11ec-8e69-902b3470f24e', 'zone_time', '时区', 'product_common_time_zone', 'name', 'uuid', 'name,utc_time_zone', '', 'uuid value_field,name view_fields,name f1,utc_time_zone f2', '', NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='zone_time');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f6519-79f7-11ec-8e69-902b3470f24e', 'select_personnel', '每个公司下非退休离职员工', 'product_sys_staffs a85,product_sys_org_levels a74,product_sys_org_levels a74_t,product_sys_job_posts a53,product_sys_job_post_grades a55', 'a85.show_name', 'a85.uuid', 'a74.org_level_name,a74_t.org_level_name,a53.job_post_name,a55.job_grade_name', '(a85. staff_status in(1 ,2 ,3 ,5)  AND a85.org_level_uuid = ~org_level_uuid~) OR a85.staff_id in(~staff_id ~) ', 'a85.uuid value_field,a85.show_name view_fields,a74.org_level_name f1,a74_t.org_level_name f2,a53.job_post_name f3,a55.job_grade_name f4', NULL, 'a85.org_level_uuid = a74.uuid,a85.dept_uuid = a74_t.uuid,a85.job_post_uuid = a53.uuid, a85.job_post_grade_uuid = a55.uuid', NULL, '1', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2021-01-11 06:41:44', '1', '2021-01-06 07:05:15', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='select_personnel');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f6727-79f7-11ec-8e69-902b3470f24e', 'levels-staffs-not-valid', '单位下对的人员1启用账号  2 非管理员账号 3 更具选择公司字段过滤 4在岗', 'product_sys_staffs', 'preferred_name', 'uuid', 'tricode,christian_name,preferred_name', 'is_org_admin=0 and org_level_uuid in(~org_level_uuid~) and staff_status in (1,2,3,5) or uuid=~staffs_uuid~', 'uuid value_field,preferred_name view_fields,tricode f1,christian_name f2,preferred_name f3', NULL, '', '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-01-09 08:13:28', '1', '2020-01-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='levels-staffs-not-valid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f6a1e-79f7-11ec-8e69-902b3470f24e', 'data-import-dept', '数据导入部门特殊处理', 'product_sys_language_cont_values', 'field_value', 'data_uuid', 'data_uuid,field_value', 'table_name=\'product_sys_org_levels\' and field_name=\'org_level_all\' and data_uuid in (select uuid from product_sys_org_levels where org_level_code like CONCAT((select org_level_code from product_sys_org_levels where uuid=~org_level_uuid~),\'%\' ) and org_level_type=1 and org_level_status=0)', 'data_uuid value_field,field_value view_fields,data_uuid f1,field_value f2', NULL, '', NULL, '2', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-01-11 10:12:41', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='data-import-dept');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f6d18-79f7-11ec-8e69-902b3470f24e', 'prompt', '高级参照', 'product_sys_prompt', 'prompt_name', 'prompt_name', 'prompt_name,prompt_desc', NULL, 'prompt_name value_field,prompt_name view_fields,prompt_name f1,prompt_desc f2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', NULL, NULL, '2023-04-14 10:59:41', '1', NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='prompt');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f7050-79f7-11ec-8e69-902b3470f24e', 'cesa1', '', 'product_sys_clients a15,product_sys_org_levels a74_t', 'a15.client_name', 'a15.client_name', 'a15.id,a15.client_name', '', 'a15.client_name value_field,a15.client_name view_fields,a15.id f1,a15.client_name f2', '', 'a15.uuid=a74_t.client_uuid', NULL, '1', '', NULL, NULL, 'Web', NULL, '1', '1', '1', NULL, NULL, NULL, '2021-03-12 01:45:52', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='cesa1');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f7254-79f7-11ec-8e69-902b3470f24e', 'top_menus', '一级菜单', 'product_sys_menus', 'menu_name', 'tricode', 'menu_name', '(tricode_parent=\'\' or tricode_parent is null) and length(tricode)=3 ', 'tricode value_field,menu_name view_fields,menu_name f1', NULL, NULL, '1', '', NULL, NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-12-05 14:55:20', '1', '2020-01-01 00:00:00', NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='top_menus');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f79b1-79f7-11ec-8e69-902b3470f24e', 'district', '省市区', 'product_common_district', 'district_name', 'district_name', 'district_name', 'type <=~type~ and type!=0', 'district_name value_field,district_name view_fields,district_name f1', NULL, NULL, '2', NULL, NULL, 'uuid', 'pid', 'Web', NULL, NULL, '0', NULL, NULL, '2021-05-14 17:04:21', '1', NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='district');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f7c5a-79f7-11ec-8e69-902b3470f24e', 'Flow_info', '流程信息', 'product_sys_flow_model', 'title', 'type_code', 'title,module_uuid', 'org_level_uuid is null or org_level_uuid =\'\'', 'type_code value_field,title view_fields,title f1,module_uuid f2', NULL, NULL, '1', NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', NULL, NULL, '2021-06-28 10:47:13', '1', NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Flow_info');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f7ed4-79f7-11ec-8e69-902b3470f24e', 'flow_title', '', 'product_sys_flow_model', 'title', 'uuid', 'title,module_uuid,flow_model_describe', '', 'uuid value_field,title view_fields,title f1,module_uuid f2,flow_model_describe f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-03-29 07:24:52', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_title');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f80b9-79f7-11ec-8e69-902b3470f24e', 'user_name_by_user_id', '', 'product_sys_users', 'user_name', 'user_id', 'user_name,user_account,gender,user_primary_email', '', 'user_id value_field,user_name view_fields,user_name f1,user_account f2,gender f3,user_primary_email f4', '', '', NULL, '1', '', '', '', 'Web', NULL, '', '0', '1', NULL, '2021-04-01 04:03:53', '1', '2021-04-01 03:21:15', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='user_name_by_user_id');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8292-79f7-11ec-8e69-902b3470f24e', 'source_table_value_uuid', '所有表取值列table_uuid', 'product_sys_datamodel_table', 'table_name', 'uuid', 'table_name,table_description', '', 'uuid value_field,table_name view_fields,table_name f1,table_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-04-12 09:33:15', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='source_table_value_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8465-79f7-11ec-8e69-902b3470f24e', 'source_table_uuid_by_field', '根据表uuid查询字段', 'product_sys_datamodel_field', 'field_name', 'field_name', 'field_name,field_description,field_type,field_show_name', 'table_uuid=~source_table~', 'field_name value_field,field_name view_fields,field_name f1,field_description f2,field_type f3,field_show_name f4', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-04-13 14:38:50', '1', '2021-04-12 09:36:40', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='source_table_uuid_by_field');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8656-79f7-11ec-8e69-902b3470f24e', 'data_source_field', '数据源字段', 'product_sys_report_datasource_config_field', 'field_text', 'field_name', 'field_name,field_text', 'datasource_uuid=~datasource_uuid~', 'field_text view_fields,field_name value_field,field_name f1,field_text f2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Web', NULL, NULL, '0', '1', NULL, NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='data_source_field');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f88da-79f7-11ec-8e69-902b3470f24e', 'levelDirectoryCode', '', 'product_oa_directory', 'directory_name', 'tricode', 'directory_name,tricode', 'directory_type =1', 'tricode value_field,directory_name view_fields,directory_name f1,tricode f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-04-25 07:03:45', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='levelDirectoryCode');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8ad2-79f7-11ec-8e69-902b3470f24e', 'directoryCode', '根据公司uuid过滤文档目录', 'product_oa_directory', 'directory_name', 'tricode', 'tricode,directory_name', 'directory_type=1', 'tricode value_field,directory_name view_fields,tricode f1,directory_name f2', 'org_level_uuid', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-14 17:45:27', '1', '2021-04-27 06:42:34', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='directoryCode');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8ce6-79f7-11ec-8e69-902b3470f24e', 'conference_room', '', 'product_oa_conference_room_config', 'room_name', 'uuid', 'room_name,seats,address', '', 'uuid value_field,room_name view_fields,room_name f1,seats f2,address f3', '', '', NULL, '1', '', '', '', 'Web', NULL, '', '0', '1', NULL, '2021-05-06 11:34:53', '1', '2021-05-06 09:18:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='conference_room');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f8ebb-79f7-11ec-8e69-902b3470f24e', 'lx_sys_functions_uuid', '', 'product_sys_functions', 'function_name', 'uuid', 'function_name,uuid,tricode', 'data_type=1', 'uuid value_field,function_name view_fields,function_name f1,uuid f2,tricode f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-05-08 03:11:20', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_functions_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9094-79f7-11ec-8e69-902b3470f24e', 'sasasa', '', 'product_common_calling_code', 'calling_code_id', 'calling_code_id', 'remarks', '', 'calling_code_id value_field,calling_code_id view_fields,remarks f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-05-08 08:46:01', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='sasasa');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9267-79f7-11ec-8e69-902b3470f24e', 'car_number', '', 'product_oa_car_info', 'plate_number', 'uuid', 'plate_number', '', 'uuid value_field,plate_number view_fields,plate_number f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-10 03:16:27', '1', '2021-05-11 02:42:41', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='car_number');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9436-79f7-11ec-8e69-902b3470f24e', 'driver', '', 'product_oa_car_driver_info', 'name', 'uuid', 'name', '', 'uuid value_field,name view_fields,name f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-10 07:42:18', '1', '2021-05-10 10:50:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='driver');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9608-79f7-11ec-8e69-902b3470f24e', 'dept_parent_org_level', '', 'product_sys_org_levels', 'org_level_name', 'org_level_code', 'org_level_name,org_level_all,org_level_code,org_level_type', 'org_level_status=0 and org_level_code like concat(\'{{COMPANY_CODE}}\',\'%\') and uuid!=~uuid~', 'org_level_code value_field,org_level_name view_fields,org_level_name f1,org_level_all f2,org_level_code f3,org_level_type f4', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-10 15:24:18', '1', '2021-05-10 15:18:13', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dept_parent_org_level');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f994a-79f7-11ec-8e69-902b3470f24e', 'organizational_names', '', 'product_sys_organizational_structure_storage', 'organization_names', 'uuid', 'organization_names,organization_types,organization_uuids', '', 'uuid value_field,organization_names view_fields,organization_names f1,organization_types f2,organization_uuids f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-05-13 19:23:30', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='organizational_names');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9b35-79f7-11ec-8e69-902b3470f24e', 'directoryUserCode', '通过用户id获取创建的文档目录', 'product_oa_directory', 'directory_name', 'tricode', 'tricode,directory_name', 'directory_type=2', 'tricode value_field,directory_name view_fields,tricode f1,directory_name f2', '', '', NULL, '2', 'created_by', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-05-14 17:14:39', '1', '2021-05-14 15:54:52', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='directoryUserCode');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9d1b-79f7-11ec-8e69-902b3470f24e', 'report_type', '', 'product_sys_report_type_config', 'type_name', 'uuid', 'type_name,type_group', 'type_group=~type_group~', 'uuid value_field,type_name view_fields,type_name f1,type_group f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '2', NULL, '2022-01-17 17:22:01', '1', '2021-05-19 10:18:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='report_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043f9ef0-79f7-11ec-8e69-902b3470f24e', 'user_id_show_name', '', 'product_sys_staffs', 'show_name', 'user_id', 'user_id,show_name', '', 'user_id value_field,show_name view_fields,user_id f1,show_name f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-05-20 20:59:55', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='user_id_show_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa0c3-79f7-11ec-8e69-902b3470f24e', 'car_lead', '', 'product_oa_car_info a175,product_sys_staffs a85', 'a85.show_name', 'a85.uuid', 'a85.show_name', 'a175.uuid=~uuid~', 'a85.uuid value_field,a85.show_name view_fields,a85.show_name f1', '', 'a175.leaders = a85.user_id', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2021-07-07 15:31:19', '1', '2021-05-21 16:45:02', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='car_lead');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa295-79f7-11ec-8e69-902b3470f24e', 'arrange_car', '', 'product_oa_car_info', 'plate_number', 'uuid', 'plate_number', 'uuid not in ( select vehicle_info_uuid from product_oa_car_application where return_time>NOW() ) and vehicle_status=\'1\'', 'uuid value_field,plate_number view_fields,plate_number f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-07-14 17:34:55', '1', '2021-05-21 09:48:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='arrange_car');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa474-79f7-11ec-8e69-902b3470f24e', 'report_name', '报表', 'product_sys_report_config', 'report_name', 'uuid', 'report_name,type_uuid,org_level_uuid,function_uuid,is_valid', 'is_valid =1 and type_uuid in (select uuid from product_sys_report_type_config where type_group =~report_type~)', 'uuid value_field,report_name view_fields,report_name f1,type_uuid f2,org_level_uuid f3,function_uuid f4,is_valid f5', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, 'created_utc_datetime', '0', '1', NULL, '2021-05-24 18:49:07', '1', '2021-05-24 17:18:53', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='report_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa650-79f7-11ec-8e69-902b3470f24e', 'flow_node', '', 'product_sys_flow_node', 'title', 'uuid', 'title', '', 'uuid value_field,title view_fields,title f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-06-08 16:18:06', '1', '2021-06-04 14:39:27', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_node');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa81f-79f7-11ec-8e69-902b3470f24e', 'customer_name', '业主名称', 'product_project_customer', 'customer_name', 'uuid', 'customer_name,customer_superior_name,customer_manager,customer_manager_leader', '', 'uuid value_field,customer_name view_fields,customer_name f1,customer_superior_name f2,customer_manager f3,customer_manager_leader f4', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, '2021-06-22 17:27:45', '4', '2021-06-22 17:07:17', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='customer_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fa9f2-79f7-11ec-8e69-902b3470f24e', 'all_menus_trocde', '所有菜单保存值tricode', 'product_sys_menus', 'menu_name', 'tricode', 'menu_name,menu_description,function_uuid', '', 'tricode value_field,menu_name view_fields,menu_name f1,menu_description f2,function_uuid f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-06-23 10:31:54', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='all_menus_trocde');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fabce-79f7-11ec-8e69-902b3470f24e', 'customer_concat', '客户联系人', 'product_project_customer_sub', 'linkman', 'uuid', 'linkman,mobile,tel', 'customer_uuid=~customer_uuid~', 'uuid value_field,linkman view_fields,linkman f1,mobile f2,tel f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, '2021-06-28 15:40:49', '4', '2021-06-28 15:38:48', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='customer_concat');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fada0-79f7-11ec-8e69-902b3470f24e', 'parent_company_group', '单位用户组上级组', 'product_sys_company_user_group', 'group_name', 'tricode', 'group_name,group_desc,group_sorts,org_level_uuid', '( tricode NOT LIKE concat( ~tricode~, \'-%\' ) )  and tricode!=~tricode~', 'tricode value_field,group_name view_fields,group_name f1,group_desc f2,group_sorts f3,org_level_uuid f4', 'org_level_uuid', '', NULL, '2', '', NULL, NULL, 'Web', NULL, 'group_name', '0', '1', NULL, '2021-06-29 17:20:08', '3', '2021-06-29 16:48:03', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='parent_company_group');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043faf79-79f7-11ec-8e69-902b3470f24e', 'Project_Name', '', 'product_project_business', 'project_name', 'uuid', 'project_name,customer_name,owner_name,project_type', '', 'uuid value_field,project_name view_fields,project_name f1,customer_name f2,owner_name f3,project_type f4', NULL, '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2024-07-30 16:41:47', '1', '2021-06-30 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Project_Name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fb15e-79f7-11ec-8e69-902b3470f24e', 'Task_Item', '', 'product_sys_functions', 'function_name', 'uuid', 'function_name', 'uuid in (\'0f1dcd22-467a-4a5e-8007-23c6276e5888\',\'678f9e9b-70d5-4ab5-8cc1-44ad2a421d06\')', 'uuid value_field,function_name view_fields,function_name f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-07-07 16:28:32', '1', '2021-07-01 15:14:58', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Task_Item');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fb337-79f7-11ec-8e69-902b3470f24e', 'badge_base_name', '', 'product_oa_badge_base_v', 'badge_name', 'uuid', 'badge_level,badge_type,type_name,badge_name', '', 'uuid value_field,badge_name view_fields,badge_level f1,badge_type f2,type_name f3,badge_name f4', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-09 17:37:06', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='badge_base_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fb519-79f7-11ec-8e69-902b3470f24e', '6c_test_project_title', '', '6c_test_project', 'title', 'uuid', 'uuid,title', '', 'uuid value_field,title view_fields,uuid f1,title f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-12 09:19:49', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='6c_test_project_title');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fb6eb-79f7-11ec-8e69-902b3470f24e', 'table_name_prompt', '', 'product_sys_datamodel_table', 'table_name', 'table_name', 'table_name', 'table_type=1', 'table_name value_field,table_name view_fields,table_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-13 18:08:31', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='table_name_prompt');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fb8b5-79f7-11ec-8e69-902b3470f24e', 'lx_sys_prompt_name', '', 'product_sys_prompt_v', 'name', 'name', 'type,name', '', 'name value_field,name view_fields,type f1,name f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-14 10:33:27', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='lx_sys_prompt_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fba94-79f7-11ec-8e69-902b3470f24e', 'chartReference', '引用图表参照', 'product_sys_report_type_config', 'type_name', 'uuid', 'type_name,type_group', 'type_group = "Charts"', 'uuid value_field,type_name view_fields,type_name f1,type_group f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-07-14 17:11:14', '1', '2021-07-14 16:41:35', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='chartReference');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fbc63-79f7-11ec-8e69-902b3470f24e', 'table_field', '', 'product_sys_datamodel_field', 'field_name', 'field_name', 'field_name,field_show_name', 'table_uuid in(SELECT uuid FROM product_sys_datamodel_table WHERE table_name =~table_name~ )', 'field_name value_field,field_name view_fields,field_name f1,field_show_name f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-04-19 17:00:41', '1', '2021-07-14 18:15:26', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='table_field');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fbe2f-79f7-11ec-8e69-902b3470f24e', 'emailToUser', '', 'product_sys_users', 'user_name', 'user_primary_email', 'user_primary_email,user_name', '', 'user_primary_email value_field,user_name view_fields,user_primary_email f1,user_name f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, NULL, NULL, '2021-07-16 16:53:24', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='emailToUser');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc008-79f7-11ec-8e69-902b3470f24e', 'Contract_Name', '', 'product_project_contract_info_view', 'contract_name', 'uuid', 'contract_name', '', 'uuid value_field,contract_name view_fields,contract_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-02 15:45:36', '1', '2021-07-16 18:24:58', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Contract_Name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc1e4-79f7-11ec-8e69-902b3470f24e', 'badge_base_name_add', '', 'product_oa_badge_base_v', 'badge_name', 'uuid', 'badge_level,badge_type,type_name,badge_name', 'uuid NOT IN(SELECT badge_uuid FROM product_oa_badge_borrow_detail WHERE return_date IS NULL GROUP BY badge_uuid)', 'uuid value_field,badge_name view_fields,badge_level f1,badge_type f2,type_name f3,badge_name f4', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-09 17:37:06', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='badge_base_name_add');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc3b0-79f7-11ec-8e69-902b3470f24e', 'flow_mail', '', 'product_sys_mail_template', 'template_name', 'template_code', 'template_code', 'org_level_uuid=\'{{COMPANY_UUID}}\' OR org_level_uuid IS NULL OR org_level_uuid=\'\' AND uuid NOT IN (SELECT uuid FROM product_sys_mail_template WHERE template_code IN(SELECT template_code FROM product_sys_mail_template WHERE org_level_uuid=\'{{COMPANY_UUID}}\'))', 'template_code value_field,template_name view_fields,template_name f1,template_code f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, NULL, NULL, '2021-07-22 11:03:13', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_mail');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc57f-79f7-11ec-8e69-902b3470f24e', 'flow_sms', '', 'product_sys_message_template', 'template_name', 'template_code', 'template_code', 'org_level_uuid=\'{{COMPANY_UUID}}\' OR org_level_uuid IS NULL OR org_level_uuid=\'\' AND uuid NOT IN (SELECT uuid FROM product_sys_mail_template WHERE template_code IN(SELECT template_code FROM product_sys_mail_template WHERE org_level_uuid=\'{{COMPANY_UUID}}\'))', 'template_code value_field,template_name view_fields,template_name f1,template_code f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, NULL, NULL, '2021-07-22 11:03:13', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_sms');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc774-79f7-11ec-8e69-902b3470f24e', 'owner_name', '', 'product_project_customer', 'customer_name', 'uuid', 'customer_name', '', 'uuid value_field,customer_name view_fields,customer_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-27 08:54:33', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='owner_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fc959-79f7-11ec-8e69-902b3470f24e', 'tableFieldName', '', 'product_sys_datamodel_table_field_v', 'table_field_name', 'table_field_param', 'table_field_name,field_description,table_field_param', 'table_name=~table_name~', 'table_field_param value_field,table_field_name view_fields,table_field_name f1,field_description f2,table_field_param f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '4', NULL, '2021-07-28 15:53:11', '4', '2021-07-28 10:16:36', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='tableFieldName');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fcb42-79f7-11ec-8e69-902b3470f24e', 'Contract_Name_Change', '', 'product_project_contract_info_view', 'contract_name', 'uuid', 'contract_name', 'uuid not in (SELECT contract_name FROM product_project_contract_invoice WHERE flow_flag = 1 OR flow_flag = 2)', 'uuid value_field,contract_name view_fields,contract_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-07-30 15:41:04', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Contract_Name_Change');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fcd36-79f7-11ec-8e69-902b3470f24e', 'Contract_Returned_Money', '合同回款高级参照', 'product_project_contract_info', 'contract_name', 'uuid', 'contract_name', 'uuid in (SELECT contract_name FROM product_project_contract_invoice WHERE flow_flag = 2)', 'uuid value_field,contract_name view_fields,contract_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-07-30 16:00:36', '1', '2021-07-30 15:45:15', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Contract_Returned_Money');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fcf1f-79f7-11ec-8e69-902b3470f24e', 'Clause_Content', '', 'product_project_contract_info_sub', 'clause_content', 'uuid', 'clause_content', 'contract_info_uuid = ~contract_info_uuid~', 'uuid value_field,clause_content view_fields,clause_content f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-11-09 18:04:51', '1', '2021-08-02 11:52:03', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Clause_Content');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fd10a-79f7-11ec-8e69-902b3470f24e', 'contract_terms', '', 'product_project_contract_info_sub', 'clause_content', 'uuid', 'clause_content', 'contract_info_uuid in (select uuid from product_project_contract_info_view)', 'uuid value_field,clause_content view_fields,clause_content f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-02 15:52:02', '1', '2021-08-02 15:47:56', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='contract_terms');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fd2ef-79f7-11ec-8e69-902b3470f24e', 'ContractName', '', 'product_project_contract_info', 'contract_name', 'uuid', 'contract_name', '', 'uuid value_field,contract_name view_fields,contract_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-03 11:18:15', '1', '2021-08-03 11:04:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='ContractName');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fd4ce-79f7-11ec-8e69-902b3470f24e', 'directoryName', '文档目录参照', 'product_oa_directory', 'directory_name', 'uuid', 'directory_name', 'directory_type = 1', 'uuid value_field,directory_name view_fields,directory_name f1', 'org_level_uuid', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-09 07:10:59', '1', '2021-08-09 07:08:56', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='directoryName');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fd6ad-79f7-11ec-8e69-902b3470f24e', 'dataOriginFieldName', '', 'product_sys_database_tablename_field', 'field_name', 'field_name', 'field_name', 'database_config_uuid = ~database_config_uuid~  and table_name = ~table_name~', 'field_name value_field,field_name view_fields,field_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-18 17:13:46', '1', '2021-08-18 17:04:11', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dataOriginFieldName');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fd8a2-79f7-11ec-8e69-902b3470f24e', 'dataOriginTableName', '', 'product_sys_database_tablename_field_v', 'table_name', 'table_name', 'table_name', 'uuid = ~database_config_uuid~', 'table_name value_field,table_name view_fields,table_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-08-18 17:27:36', '1', '2021-08-18 17:20:05', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dataOriginTableName');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fe436-79f7-11ec-8e69-902b3470f24e', 'sync_table_name', '', 'product_sys_datamodel_table', 'table_name', 'table_name', 'table_name,table_description', 'table_type = 1', 'table_name value_field,table_name view_fields,table_name f1,table_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-09-02 15:05:26', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='sync_table_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fe66c-79f7-11ec-8e69-902b3470f24e', 'face_number', '表单', 'product_sys_face', 'face_name', 'face_number', 'face_name,face_desc,face_type', '(table_uuid=~table_uuid~ or  (table_uuid in ( 	select uuid from product_sys_datamodel_table where concat(\',\',table_base_view,\',\') like concat(\'%,\',~table_uuid~,\',%\') )))  and  face_type=~face_type~', 'face_number value_field,face_name view_fields,face_name f1,face_desc f2,face_type f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-05-16 16:23:36', '1', '2021-09-07 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='face_number');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fe867-79f7-11ec-8e69-902b3470f24e', 'staff_leader', '', 'product_sys_staffs', 'show_name', 'tricode', 'show_name', '', 'tricode value_field,show_name view_fields,show_name f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-09-07 18:33:27', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='staff_leader');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fea5e-79f7-11ec-8e69-902b3470f24e', 'field_uuid_by_table_uuid', '', 'product_sys_datamodel_field', 'field_name', 'uuid', 'field_name,field_show_name,field_description', 'table_uuid=~table_uuid~  and uuid not in (~uuids~)', 'uuid value_field,field_name view_fields,field_name f1,field_show_name f2,field_description f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-09-08 15:42:39', '1', '2021-09-08 14:52:56', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='field_uuid_by_table_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fec59-79f7-11ec-8e69-902b3470f24e', 'target_classification', '', 'product_oa_target_classification', 'classification_name', 'uuid', 'classification_name,parent_uuid', '', 'uuid value_field,classification_name view_fields,classification_name f1,parent_uuid f2', 'org_level_uuid', '', '2', '1', '', 'uuid', 'parent_uuid', 'Web', NULL, '', '0', '1', NULL, '2021-09-14 11:11:05', '1', '2021-09-14 11:00:39', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='target_classification');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fee3f-79f7-11ec-8e69-902b3470f24e', 'module_value_tricode', '', 'product_sys_functions', 'function_name', 'tricode', 'function_name,function_description', 'data_type = 2 ', 'tricode value_field,function_name view_fields,function_name f1,function_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-09-16 16:04:58', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='module_value_tricode');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff024-79f7-11ec-8e69-902b3470f24e', 'target_basic', '', 'product_oa_target_basic', 'target_name', 'uuid', 'target_name,target_desc,target_classification,source_table', '', 'uuid value_field,target_name view_fields,target_name f1,target_desc f2,target_classification f3,source_table f4', 'org_level_uuid', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-09-26 14:39:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='target_basic');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff203-79f7-11ec-8e69-902b3470f24e', 'reportTypeConfigPrompt', '图形报表参照', 'product_sys_report_type_config_view', 'img_uuid', 'uuid', 'uuid,type_name,img_uuid', '', 'uuid value_field,img_uuid view_fields,uuid f1,type_name f2,img_uuid f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-09-26 15:10:40', '1', '2021-09-26 15:01:35', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='reportTypeConfigPrompt');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff3e8-79f7-11ec-8e69-902b3470f24e', 'waring_target', '', 'product_oa_target_task', 'target_uuid', 'uuid', 'target_uuid', '', 'uuid value_field,target_uuid view_fields,target_uuid f1', 'org_level_uuid', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-10-11 14:28:59', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='waring_target');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff5cd-79f7-11ec-8e69-902b3470f24e', 'warn_info', '', 'product_sys_early_warning', 'config_name', 'uuid', 'config_name,source_table,warning_content_config', '', 'uuid value_field,config_name view_fields,config_name f1,source_table f2,warning_content_config f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-10-14 15:47:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_info');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff7a9-79f7-11ec-8e69-902b3470f24e', 'target_responsible', '指标责任主体', 'product_oa_target_responsible_range', 'name', 'uuid', 'name,remark', '', 'uuid value_field,name view_fields,name f1,remark f2', 'org_level_uuid', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-10-21 17:06:45', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='target_responsible');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ff985-79f7-11ec-8e69-902b3470f24e', 'target_task_name_by_sub_uuid', '指标任务名称_子表uuid', 'product_oa_target_task_v', 'target_task_name', 'uuid', 'uuid,target_task_name', '', 'uuid value_field,target_task_name view_fields,uuid f1,target_task_name f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-10-25 09:35:45', '1', '2021-10-25 09:31:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='target_task_name_by_sub_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ffb73-79f7-11ec-8e69-902b3470f24e', 'Invoice_Num', '', 'product_project_contract_invoice_info', 'invoice_num', 'uuid', 'invoice_num,invoice_amount', 'contract_terms=~invoice_num~', 'uuid value_field,invoice_num view_fields,invoice_num f1,invoice_amount f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-12-08 18:14:25', '1', '2021-11-15 18:15:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Invoice_Num');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043ffd62-79f7-11ec-8e69-902b3470f24e', 'target_task', '', 'product_oa_target_task', 'target_task_name', 'uuid', 'target_task_name', '', 'uuid value_field,target_task_name view_fields,target_task_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-11-16 10:30:31', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='target_task');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '043fff50-79f7-11ec-8e69-902b3470f24e', 'Post_Name', '', 'product_sys_job_posts', 'job_post_name', 'uuid', 'job_post_name', 'dept_uuid=~dept_uuid~ ', 'uuid value_field,job_post_name view_fields,job_post_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2021-11-19 16:07:01', '1', '2021-11-19 15:27:53', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='Post_Name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '04400135-79f7-11ec-8e69-902b3470f24e', '单位所有员工', '公司所有员工', 'product_sys_staffs', 'show_name', 'user_id', 'show_name,dept_uuid,org_level_uuid', '', 'user_id value_field,show_name view_fields,show_name f1,dept_uuid f2,org_level_uuid f3', 'org_level_uuid', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-11-30 12:00:35', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='单位所有员工');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '0440031e-79f7-11ec-8e69-902b3470f24e', '打印模板', '打印模板', 'product_sys_print_config', 'print_name', 'uuid', 'print_name', '', 'uuid value_field,print_name view_fields,print_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-11-30 18:18:08', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='打印模板');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '044004fd-79f7-11ec-8e69-902b3470f24e', '上级团队', '上级团队', 'product_sys_team_config', 'name', 'code', 'name', 'code not like concat(~code~,\'%\')', 'code value_field,name view_fields,name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2021-12-29 14:36:54', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='上级团队');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '044006df-79f7-11ec-8e69-902b3470f24e', 'product_sys_functions_uuid', '', 'product_sys_functions', 'function_name', 'uuid', 'function_name,uuid,tricode', 'data_type=1', 'uuid value_field,function_name view_fields,function_name f1,uuid f2,tricode f3', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2022-01-05 03:11:20', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='product_sys_functions_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '044008c1-79f7-11ec-8e69-902b3470f24e', '关联报表', '', 'product_sys_report_config', 'report_name', 'uuid', 'report_name', 'relate_flag=1', 'uuid value_field,report_name view_fields,report_name f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2022-01-11 21:36:40', '1', '2022-01-11 20:48:45', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='关联报表');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '04400aa9-79f7-11ec-8e69-902b3470f24e', '同步数据来源表', '同步数据来源表', 'product_sys_database_tablename_field', 'table_name', 'table_name', 'table_name', 'length(sync_manager_uuid )>0  and sync_manager_uuid =~sync_manager_uuid~', 'table_name value_field,table_name view_fields,table_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, 'table_name group by table_name', '0', '1', NULL, '2022-02-08 19:39:49', '1', '2022-02-08 19:29:10', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='同步数据来源表');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '04400f79-79f7-11ec-8e69-902b3470f24e', '数据同步来源表字段', '数据同步来源表字段', 'product_sys_database_tablename_field', 'field_name', 'field_name', 'table_name,field_name', 'length(sync_manager_uuid)>0 and table_name= ~table_name~  and sync_manager_uuid =~sync_manager_uuid~', 'field_name value_field,field_name view_fields,table_name f1,field_name f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2022-02-08 19:38:33', '1', '2022-02-08 19:30:20', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='数据同步来源表字段');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '04401180-79f7-11ec-8e69-902b3470f24e', 'report_列表报表数据源', '', 'product_sys_report_datasource_config', 'report_datasource_name', 'uuid', 'report_datasource_name', '', 'uuid value_field,report_datasource_name view_fields,report_datasource_name f1', '', '', NULL, '', '', NULL, NULL, 'Web', NULL, 'report_datasource_name', '0', '1', NULL, NULL, NULL, '2022-02-15 11:21:41', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='report_列表报表数据源');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'f7e22597-6d04-42d4-8fdf-5f135e79d052', 'process_data', '', 'product_sys_database_sync_processing_config', 'desc_content', 'uuid', 'basic_table,execute_count,relevance_table,table_alias,parent_uuid', '', 'uuid value_field,desc_content view_fields,basic_table f1,execute_count f2,relevance_table f3,table_alias f4,parent_uuid f5', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2022-01-23 15:28:51', '1', '2022-01-23 15:21:22', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='process_data');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '5b5b6116-c955-47a2-8db3-9c9d32d07a90', 'warn_预警名称', '', 'product_sys_early_warning', 'config_name', 'uuid', 'config_name,source_table', '', 'uuid value_field,config_name view_fields,config_name f1,source_table f2', '', '', NULL, '', '', NULL, NULL, '', NULL, '', '0', '1', NULL, NULL, NULL, '2022-03-08 09:56:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_预警名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '01c55922-2a37-42f8-8279-a2a06bb26dce', 'button_name', '按钮名称', 'product_sys_function_buttons', 'button_title', 'uuid', 'button_title', 'uuid=~uuid~', 'uuid value_field,button_title view_fields,button_title f1', '', '', NULL, '', '', NULL, NULL, '', NULL, '', '0', '1', NULL, NULL, NULL, '2022-03-28 15:58:49', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='button_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'b077df9b-830f-489b-b9b6-471a8da8d8a6', 'function_to_table', '', 'product_sys_datamodel_table', 'table_name', 'uuid', 'table_name,table_description', 'uuid=(SELECT table_uuid FROM product_sys_functions WHERE uuid=~function_uuid~)', 'uuid value_field,table_name view_fields,table_name f1,table_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2022-02-19 16:29:10', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='function_to_table');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'f1a7ece6-3fb0-4995-ac5e-064aad3ad39c', '子流程发起选择功能', '业务功能', 'product_sys_functions', 'function_name', 'uuid', 'function_name,function_description', 'data_type!=2 and function_type_uuid = 1  and uuid in (select function_uuid from product_sys_mvc_page where length(flow_uuid )>0)', 'uuid value_field,function_name view_fields,function_name f1,function_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web,App', NULL, '', '0', '1', NULL, '2022-04-19 15:07:09', '1', '2022-04-15 14:55:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='子流程发起选择功能');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e7b1c557-fab1-47e0-998d-c0b326980fdc', '子流程按钮', '子流程按钮', 'product_sys_function_buttons', 'button_title', 'uuid', 'button_title,button_name', 'uuid IN ( SELECT line_from FROM product_sys_link WHERE line_to IN ( SELECT line_from page_uuid FROM product_sys_link WHERE line_to IN ( SELECT uuid FROM product_sys_function_buttons WHERE button_category_uuid = \'audit\' and function_uuid = ~uuid~ ) AND to_type = 1 AND from_type = 2 AND line_from IN ( SELECT uuid FROM product_sys_mvc_page WHERE length(flow_uuid) > 0 and function_uuid = ~uuid~ ) ) AND to_type = 2 AND from_type = 1 )', 'uuid value_field,button_title view_fields,button_title f1,button_name f2', '', '', NULL, '2', '', NULL, NULL, 'App,Web', NULL, '', '0', '1', NULL, '2022-04-19 14:34:01', '1', '2022-04-15 15:06:31', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='子流程按钮');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'f2d7320f-4d60-4d2b-b1c9-ef2b69cd2084', '任务名称', '任务移交，自动填充任务名称', 'product_oa_task_distribution', 'task_name', 'uuid', 'task_name', '', 'uuid value_field,task_name view_fields,task_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2022-05-05 17:20:25', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='任务名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '5ee515ea-59d2-419c-8d92-4ae93dd75088', '组织架构名称', '', 'product_sys_organization_v', 'show_value', 'save_value', 'save_value,show_value', '', 'save_value value_field,show_value view_fields,save_value f1,show_value f2', '', '', NULL, '', '', NULL, NULL, '', NULL, '', '0', '1', NULL, NULL, NULL, '2022-05-06 15:14:55', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='组织架构名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e6854fbd-1c8d-441a-a67a-195e47ac0f3a', 'task_任务分配名称', '', 'product_oa_task_distribution', 'task_name', 'uuid', 'task_name,task_persons,task_org,task_open,owner', '', 'uuid value_field,task_name view_fields,task_name f1,task_persons f2,task_org f3,task_open f4,owner f5', '', '', NULL, '', '', NULL, NULL, '', NULL, '', '0', '1', NULL, NULL, NULL, '2022-05-06 15:16:39', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='task_任务分配名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '51947a1f-8b81-4be7-a114-ab1af2a1380d', '单位管理员管理的单位', '', 'product_sys_org_levels', 'org_level_all', 'uuid', 'org_level_name,org_level_all', 'uuid in ( 		select 	substring_index( substring_index( a.org_level_uuid, \',\', b.field_id ), \',\',- 1 ) AS uuid  		FROM 			product_sys_org_manager a 			JOIN product_sys_datamodel_field b ON b.field_id <= ( length( a.org_level_uuid ) - length( REPLACE ( a.org_level_uuid, \',\', \'\' ) ) + 2 )  	where a.user_id={{USER_ID}})', 'uuid value_field,org_level_all view_fields,org_level_name f1,org_level_all f2', '', '', NULL, '2', '', NULL, NULL, 'App,Web', NULL, 'org_level_code,sequence', '0', '1', NULL, '2022-05-12 16:54:29', '1', '2022-05-12 16:45:27', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='单位管理员管理的单位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '8e498750-93f2-4815-9d83-6ef4120ab87c', '指定单位的部门（包含子部门）', '', 'product_sys_org_levels', 'org_level_all', 'uuid', 'org_level_name,org_level_all', '		org_level_type = 1  			AND org_level_code LIKE concat(( SELECT org_level_code FROM product_sys_org_levels tt WHERE tt.uuid =~company_uuid~ ), \'-%\' ) 		and uuid not in (  SELECT 		a.uuid FROM 	`product_sys_org_levels` a join ( 	 			SELECT 				org_level_code 		FROM 			`product_sys_org_levels` a 			 		WHERE 			a.org_level_type = 0  			AND a.org_level_code LIKE concat(( SELECT org_level_code FROM product_sys_org_levels tt WHERE tt.uuid = ~company_uuid~ ), \'-%\' ) 	) b on a.org_level_type=1 AND a.org_level_code LIKE concat(b.org_level_code, \'%\' ) )', 'uuid value_field,org_level_all view_fields,org_level_name f1,org_level_all f2', '', '', NULL, '2', '', NULL, NULL, 'App,Web', NULL, 'org_level_code,sequence', '0', '1', NULL, '2024-09-26 13:48:59', '1', '2022-05-12 18:13:42', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='指定单位的部门（包含子部门）');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e9337922-2c7e-44b5-a8a2-aa2549ee39a3', '单位下的角色', '', 'product_sys_role', 'role_name', 'uuid', 'role_name,role_description', 'is_used = 1 and org_level_uuid = ~company_uuid~ and uuid not like \'%-notchange\'', 'uuid value_field,role_name view_fields,role_name f1,role_description f2', '', '', NULL, '1', '', NULL, NULL, 'App,Web', NULL, '', '0', '1', NULL, '2023-08-17 10:10:26', '1', '2022-05-12 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='单位下的角色');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'b95db7fb-10ad-404f-b123-cba7045812d8', 'CustomerUnit', '', 'product_project_contract_invoice', 'customer_name', 'uuid', 'customer_name', '~contract_invoice_uuid~', 'uuid value_field,customer_name view_fields,customer_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2024-07-25 16:06:00', '1', '2022-12-10 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='CustomerUnit');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '81e1b2b7-767a-4329-93a5-8e204cca42aa', '数据表', '过滤了视图只查询表', 'product_sys_datamodel_table', 'table_name', 'uuid', 'table_name,table_description', 'table_type=1', 'uuid value_field,table_name view_fields,table_name f1,table_description f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-04-13 14:13:54', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='数据表');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'a7cbc5b6-effc-41a1-a8c2-edc6d5922cfc', '所有的数据字典', '所有的数据字典', 'product_sys_dict_name_v', 'dict_name', 'dict_name', 'dict_name', '', 'dict_name value_field,dict_name view_fields,dict_name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, 'dict_name', '0', '1', NULL, '2023-04-14 10:10:52', '1', '2023-04-14 09:49:54', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='所有的数据字典');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'b72c80e0-e221-4576-b9b2-35d80f692203', '子表表名', '根据主表uuid查询子表名', 'product_sys_datamodel_table', 'table_name', 'table_name', 'table_name,table_description', 'uuid in (select table_uuid from product_sys_datamodel_field where field_relation_table=~parent_uuid~)', 'table_name value_field,table_name view_fields,table_name f1,table_description f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-04-18 11:48:04', '1', '2023-04-18 11:44:23', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='子表表名');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e3c9ef86-6f9d-4146-b10c-badb5f2f16d1', '员工所属单位', '', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_name', 'uuid IN (SELECT org_level_uuid FROM product_sys_staffs WHERE user_id=~user_id~)', 'uuid value_field,org_level_name view_fields,org_level_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-06-09 14:27:23', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='员工所属单位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '5f2f16d1-6f9d-4146-b10c-badbe3c9ef86', '员工所属部门', '', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_name', 'uuid IN (SELECT dept_uuid FROM product_sys_staffs WHERE user_id=~user_id~)', 'uuid value_field,org_level_name view_fields,org_level_name f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-06-09 14:27:23', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='员工所属部门');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '32b71563-5c44-45fe-a700-7f5cf7ee6827', '套红模板', '', 'product_sys_document_nest_red_config', 'title', 'uuid', 'title', '', 'uuid value_field,title view_fields,title f1', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-06-09 17:21:40', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='套红模板');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'd9d6f864-cfdf-434b-8fd2-f3dc19c8913a', '印章配置', '', 'product_oa_sign_seal', 'name', 'uuid', 'name,enable_password', 'enable_seal=1', 'uuid value_field,name view_fields,name f1,enable_password f2', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-06-09 17:23:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='印章配置');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '9543ccb2-ebbb-48af-bf1b-f8c4b0b1733e', '设备_供应商', '', 'product_device_supplier', 'name', 'id', 'name', '', 'id value_field,name view_fields,name f1', '', '', NULL, '', '', NULL, NULL, '', NULL, '', '0', '1', NULL, NULL, NULL, '2023-07-11 13:49:29', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备_供应商');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'c805ba03-fc28-43bd-b2a3-e0cfca214db8', '机构及人员', '树形展示人员', 'product_sys_organization_v', 'show_value', 'save_value', 'show_value', '', 'save_value value_field,show_value view_fields,show_value f1', '', '', '2', '2', '', 'org_level_code', 'org_level_code_parent', 'App,Web', NULL, 'org_level_code', '0', '1', NULL, '2023-10-01 15:38:27', '1', '2023-10-01 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='机构及人员');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '46d247c1-42a1-4d6c-afcd-ab9f62f59f11', '设备_资产编码', '', 'product_device_archives', 'device_name', 'asset_code', 'asset_code,device_name,device_type,device_kind', '', 'asset_code value_field,device_name view_fields,asset_code f1,device_name f2,device_type f3,device_kind f4', NULL, '', NULL, '1', NULL, NULL, NULL, 'Web,App', NULL, '', '0', '1', NULL, '2023-10-23 17:56:08', '1', '2023-10-23 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备_资产编码');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '77e65bb0-c33f-4d8b-b7f1-3e08b994ad2b', '巡检项目参照', '', 'product_device_patrol_config', 'name', 'uuid', 'name,is_used,remark', ' is_used = 1', 'uuid value_field,name view_fields,name f1,is_used f2,remark f3', '', '', NULL, '1', '', NULL, NULL, 'App,Web', NULL, '', '0', '1', NULL, '2023-10-24 18:06:29', '1', '2023-10-24 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='巡检项目参照');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'c882c63c-5222-4058-9763-87d9026e8761', '设备类型', '', 'product_sys_dict', 'dict_label', 'dict_value', 'dict_name,dict_label', 'dict_value = \'设备_类型\'', 'dict_value value_field,dict_label view_fields,dict_name f1,dict_label f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-11-20 17:04:33', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备类型');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '7c8c200a-89ef-4fa8-8eb5-f721ddeaf3c3', '设备名称', '', 'product_device_archives', 'device_name', 'uuid', 'asset_code,device_name', '', 'uuid value_field,device_name view_fields,asset_code f1,device_name f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-11-28 17:41:12', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '0008d268-1f36-4c97-9ee7-bedf4fc9c761', '设备任务类型', '', 'product_device_task_type', 'task_type', 'id', 'task_type', '', 'id value_field,task_type view_fields,task_type f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-11-17 13:59:14', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备任务类型');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '43239cb3-cb1e-48da-bbff-971e08273253', '公司部门树', '', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_name,org_level_all', '', 'uuid value_field,org_level_name view_fields,org_level_name f1,org_level_all f2', NULL, '', '2', '1', '', 'org_level_code', 'org_level_code_parent', 'App,Web', NULL, '', '0', '1', '2', '2023-12-01 09:56:25', '1', '2023-11-30 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='公司部门树');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '58477885-8502-49d4-9581-ccaade30d7aa', 'project_business_type', '', 'product_sys_dict', 'dict_label', 'dict_value', 'dict_label,dict_value', 'dict_name like \'business_type_%\'', 'dict_value value_field,dict_label view_fields,dict_label f1,dict_value f2', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '11552', '1', NULL, NULL, '2024-04-25 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='project_business_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '11642e54-423a-411b-9867-ca7447bef315', '发票号', '根据合同条款带出发票号', 'product_project_contract_invoice_info', 'invoice_num', 'invoice_num', 'contract_terms,invoice_num,invoice_amount', 'contract_terms=~contract_terms~', 'invoice_num value_field,invoice_num view_fields,contract_terms f1,invoice_num f2,invoice_amount f3', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-07-25 17:24:40', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='发票号');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '3470f24e-79f7-11ec-8e69-902b043ec283', 'contract_project', NULL, 'product_project_contract_info a220,product_project_business a5269', 'a5269.project_name', 'a5269.uuid', 'a5269.project_name,a220.contract_num,a220.customer_name', NULL, 'a5269.uuid value_field,a5269.project_name view_fields,a5269.project_name f1,a220.contract_num f2,a220.customer_name f3', NULL, 'a220.project_uuid=a5269.uuid', '1', '1', NULL, NULL, NULL, 'Web', NULL, '', '1', '1', '1', '2024-07-29 15:03:20', '1', '2024-07-29 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='contract_project');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '0ee7c258-d732-4f93-9441-34208243f5d0', 'project_task_sub', '', 'product_project_business_plan', 'project_task_sub', 'uuid', 'project_uuid,project_task,project_task_sub,project_head', 'project_uuid = ~project_uuid~', 'uuid value_field,project_task_sub view_fields,project_uuid f1,project_task f2,project_task_sub f3,project_head f4', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-07-30 16:27:13', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='project_task_sub');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '3698e364-11d6-4f54-babe-4cdac83885a7', 'flow_node_by_type_code', '', 'product_sys_flow_node', 'title', 'uuid', 'title,flow_node_describe', 'flow_uuid = (select uuid from product_sys_flow_model where type_code=~type_code~)', 'uuid value_field,title view_fields,title f1,flow_node_describe f2', '', '', '1', '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-08-23 10:45:46', '1', '2024-08-23 10:33:53', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_node_by_type_code');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '77d4fdd8-1464-4351-94f9-22b2b781da89', 'level_name', '', 'product_sys_org_levels', 'org_level_name', 'uuid', 'org_level_name', '', 'uuid value_field,org_level_name view_fields,org_level_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-08-26 17:40:16', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '21c1d5a5-64e5-11ef-894c-74563c4dd76a', 'flow_node_by_type_code_2', '', 'product_sys_flow_node', 'title', 'uuid', 'title,flow_node_describe', 'flow_uuid = (select uuid from product_sys_flow_model where type_code=~type_code~ and org_level_uuid=\'{{COMPANY_UUID}}\')', 'uuid value_field,title view_fields,title f1,flow_node_describe f2', '', '', '1', '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-08-28 10:42:14', '1', '2024-08-23 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='flow_node_by_type_code_2');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'b61c62c1-1bf4-4bcb-b3fe-abf90d4ab7e4', '全部岗位', '', 'product_sys_job_posts', 'job_post_name', 'uuid', 'job_post_name', '', 'uuid value_field,job_post_name view_fields,job_post_name f1', '', '', '1', '', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-09-06 13:54:11', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='全部岗位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '903229c3-837d-4790-84c4-12f59d6f146d', '项目信息', '', 'product_project_list', 'project_name', 'uuid', 'release_date,release_unit,project_name,project_address,project_plan_invest,fund_source,project_content_scale,project_duration,project_type,execute_method', '', 'uuid value_field,project_name view_fields,release_date f1,release_unit f2,project_name f3,project_address f4,project_plan_invest f5,fund_source f6,project_content_scale f7,project_duration f8,project_type f9,execute_method f10', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-09-20 16:39:39', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='项目信息');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'cef2616f-d12e-4a47-a6ce-2b6a065087f1', 'device_archives', '', 'product_device_archives', 'archives_name', 'uuid', 'archives_number,archives_name,device_category,device_model,drive_type,device_product_code,device_type,supplier,manufacture_company', '', 'uuid value_field,archives_name view_fields,archives_number f1,archives_name f2,device_category f3,device_model f4,drive_type f5,device_product_code f6,device_type f7,supplier f8,manufacture_company f9', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-11 15:51:54', '1', '2024-04-02 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_archives');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'bf8e77e9-bb71-4474-9974-c9aa025ed266', 'warn_basic_unit', '', 'product_device_warning_unit', 'unit_name', 'uuid', 'unit_name,is_used', 'uuid = group_uuid', 'uuid value_field,unit_name view_fields,unit_name f1,is_used f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-08-08 15:07:24', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_basic_unit');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '85528a57-69ca-4263-bcf9-70b52928192e', 'warn_fault_type', '', 'product_device_warning_fault', 'fault_name', 'tricode', 'fault_name', '', 'tricode value_field,fault_name view_fields,fault_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-08-12 16:27:32', '1', '2024-08-12 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_fault_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '95256b3f-9e00-4c18-be7f-2deef1cb64aa', 'warn_param_type', '', 'product_device_warning_param_type', 'param_type_name', 'uuid', 'param_type_name,is_used', '', 'uuid value_field,param_type_name view_fields,param_type_name f1,is_used f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-08-08 15:05:45', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_param_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'f8ea454a-6dd2-4acf-a103-521d88d33444', 'warn_relate_unit', '', 'product_device_warning_unit', 'unit_name', 'uuid', 'unit_name', 'group_uuid = ~basic_unit~ AND uuid != ~basic_unit~', 'uuid value_field,unit_name view_fields,unit_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-08-08 15:10:15', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_relate_unit');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '5f79f673-62c3-42b2-9ef3-0d61212aa43a', '人员资质', '', 'product_device_personnel_qualification a5266,product_sys_users a105', 'a105.user_name', 'a105.user_id', 'a105.user_name', '', 'a105.user_id value_field,a105.user_name view_fields,a105.user_name f1', '', 'a5266.personnel_name = a105.user_id', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2023-11-02 17:29:51', '1', '2023-10-24 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='人员资质');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '59b6d259-ef13-4175-af03-bac00b072e09', '保养内容(所有)', '', 'product_device_maintenance_item_detail', 'content', 'uuid', 'content,criterion,method,tool', '', 'uuid value_field,content view_fields,content f1,criterion f2,method f3,tool f4', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-02-23 10:14:59', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='保养内容(所有)');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '329eeacc-729c-4abe-97ee-c836cdaa0f0b', '保养项目', '', 'product_device_maintenance_item_config', 'name', 'uuid', 'name,remark', '', 'uuid value_field,name view_fields,name f1,remark f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2024-02-19 10:05:32', '1', '2023-10-25 15:02:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='保养项目');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'd9984e42-f0fc-46da-9da4-b48f0b8b79d4', '保养项目参照', '保养项目参照', 'product_device_maintenance_item_detail', 'content', 'uuid', 'content,criterion', ' is_used =1', 'uuid value_field,content view_fields,content f1,criterion f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-10-28 16:38:07', '1', '2023-10-28 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='保养项目参照');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '2e05ef0d-4d5a-4439-a4c6-98b70e18361b', '单位人员资质', '', 'product_device_personnel_qualification a5266,product_sys_users a105', 'a105.user_name', 'a105.user_id', 'a105.user_name', 'a5266.maintenance_unit = ~maintenance_unit~', 'a105.user_id value_field,a105.user_name view_fields,a105.user_name f1', '', 'a5266.personnel_name= a105.user_id', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '1', '1', NULL, '2023-11-02 17:42:47', '1', '2023-10-24 00:00:00', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='单位人员资质');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '44ac0088-6485-4f41-84d9-4d7603428b77', '备件单位', '', 'product_device_unit', 'unit_name', 'uuid', 'unit_name', 'uuid != ~cur_uuid~', 'uuid value_field,unit_name view_fields,unit_name f1', NULL, '', '1', '', '', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-03-21 16:30:00', '1', '2024-03-18 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件单位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '16e9a076-8173-4525-ad65-5e7a73edf4fd', '备件单位-查询', '', 'product_device_unit', 'unit_name', 'uuid', 'unit_name', '', 'uuid value_field,unit_name view_fields,unit_name f1', '', '', '1', '1', '', NULL, NULL, 'App,Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-03-19 11:28:08', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件单位-查询');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '4354586a-6f05-411c-84c9-2ac21783ec66', '备件库存台账', '', 'product_device_spare_part_stock', 'archives', 'uuid', 'archives,category,model', '', 'uuid value_field,archives view_fields,archives f1,category f2,model f3', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-07-04 22:48:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件库存台账');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '8274223e-ecec-4eba-aa49-baefe5cd9896', '备件档案', '', 'product_device_spare_part_archives', 'name', 'uuid', 'code,name,category,model,basic_unit', '', 'uuid value_field,name view_fields,code f1,name f2,category f3,model f4,basic_unit f5', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-03-19 17:40:22', '1', '2024-03-19 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件档案');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'a717c7d8-223d-4a67-90d2-b3487f394537', '备件档案单位', '', 'product_device_spare_part_archives_unit', 'unit_name', 'uuid', 'unit_name', '', 'uuid value_field,unit_name view_fields,unit_name f1', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-03-20 11:47:02', '1', '2024-03-19 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件档案单位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'a8458f52-4932-467d-b8aa-d993c27d8dd2', '备件采购订单', '', 'product_device_spare_part_purchase_order', 'code', 'uuid', 'code', '', 'uuid value_field,code view_fields,code f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-06-21 17:13:47', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='备件采购订单');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'b263fa28-084d-46dd-a576-ab6c41723fbe', '点检项目参照', '点检项目参照', 'product_device_inspection_item_config', 'name', 'uuid', 'name,remark,back_type,standard_value', 'is_used=1', 'uuid value_field,name view_fields,name f1,remark f2,back_type f3,standard_value f4', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2023-11-22 16:56:52', '1', '2023-11-21 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='点检项目参照');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '048387f2-0c43-45fb-af7d-696a4931e896', '设备名称信息', '', 'product_device_info', 'device_name', 'uuid', 'device_name,device_number', '', 'uuid value_field,device_name view_fields,device_name f1,device_number f2', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, '2024-11-14 16:30:31', '1', '2023-10-24 00:00:00', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备名称信息');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '3aa567ef-6ebd-4932-ab18-b417b6b88b32', '维保单位', '', 'product_device_maintenance_unit', 'name', 'uuid', 'name', '', 'uuid value_field,name view_fields,name f1', '', '', NULL, '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-10-24 09:23:18', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='维保单位');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '6eb59724-392c-48a2-948f-b1b2282597f9', '出差申请', '', 'product_oa_business_trip', 'title', 'uuid', 'applicant,title,business_trip_place,reasons_for_business', '', 'uuid value_field,title view_fields,applicant f1,title f2,business_trip_place f3,reasons_for_business f4', '', '', '1', '', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-10-08 11:45:34', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='出差申请');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '8d90d29f-63a0-4975-9abe-c3da8428b2c7', 'copyFace', '', 'product_sys_face', 'face_name', 'uuid', 'table_uuid,face_name,face_desc,face_type,face_number', 'face_type=~face_type~ or face_type=~face_type1~', 'uuid value_field,face_name view_fields,table_uuid f1,face_name f2,face_desc f3,face_type f4,face_number f5', '', '', '1', '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-10-14 18:53:19', '1', '2024-10-14 14:26:06', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='copyFace');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'bc45faea-5591-44cd-8d50-7f37673f93c2', 'dataSource', '', 'product_sys_data_sync_manager', 'sync_name', 'uuid', 'sync_name', '', 'uuid value_field,sync_name view_fields,sync_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-10-18 17:27:59', '1', '2024-10-18 13:51:06', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dataSource');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'cfad2393-df97-4587-99d2-4edbd8158f0a', 'dataSourceTable', '', 'product_sys_database_tablename_field', 'table_name', 'table_name', 'table_name', 'sync_manager_uuid = ~sync_manager_uuid~', 'table_name value_field,table_name view_fields,table_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-10-18 17:36:14', '1', '2024-10-18 13:56:46', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dataSourceTable');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '388f89ce-d748-42b0-b6bb-083d7840c73b', 'dataSourceTableField', '', 'product_sys_database_tablename_field', 'field_name', 'field_name', 'field_name', 'table_name = ~table_name~', 'field_name value_field,field_name view_fields,field_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-10-18 14:01:42', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='dataSourceTableField');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '235aa891-98be-4d5e-a306-3561681fa401', '功能节点参照', '更具表名获取功能节点', 'product_sys_flow_node a139,product_sys_flow_model a138', 'a139.title', 'a139.uuid', 'a139.title,a139.flow_node_describe,a138.title,a138.flow_model_describe', 'a138.table_uuid=~source_table~', 'a139.uuid value_field,a139.title view_fields,a139.title f1,a139.flow_node_describe f2,a138.title f3,a138.flow_model_describe f4', '', 'a139.flow_uuid=a138.uuid', '1', '1', '', NULL, NULL, 'Web', NULL, '', '1', '1', '1', '2024-10-18 14:36:21', '1', '2024-10-18 14:08:38', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='功能节点参照');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '0ed017f0-eb0d-4cfa-ba59-e092805ab7b9', 'level_user_id', '通过公司过滤的员工', 'product_sys_staffs', 'show_name', 'user_id', 'show_name', 'org_level_uuid in(~org_level_uuid~) and staff_status in (1,2,3,5)', 'user_id value_field,show_name view_fields,show_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-10-22 15:02:29', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='level_user_id');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'c51e4426-4045-4bf1-b171-561ec059cc34', 'warn_param_name', '', 'product_device_warning_param', 'param_name', 'uuid', 'param_name', 'param_type_uuid = ~param_type~', 'uuid value_field,param_name view_fields,param_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-10-23 14:51:06', '1', '2024-10-23 14:20:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='warn_param_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e059d3ac-5aea-438f-8f27-5ae5d63e032b', 'device_fault_type', '', 'product_device_fault_type', 'fault_type_name', 'tricode', 'fault_type_name', '', 'tricode value_field,fault_type_name view_fields,fault_type_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-10-31 14:09:40', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_fault_type');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '0933a4b0-66d7-4802-98a1-27d0d99a0f5c', 'device_fault_grade', '', 'product_device_fault_grade', 'grade_name', 'uuid', 'grade_name', '', 'uuid value_field,grade_name view_fields,grade_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-04 14:21:51', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_fault_grade');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '1770e1ae-852f-4b20-a34e-08ba23cd9311', 'device_fault_param', '', 'product_device_warning_param', 'param_name', 'uuid', 'param_name', '', 'uuid value_field,param_name view_fields,param_name f1', '', '', '1', '1', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-04 14:27:35', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_fault_param');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '25e0e692-f8d2-4ec0-80d3-fb8d06703599', 'device_warn_config', '', 'product_sys_early_warning', 'config_name', 'uuid', 'config_name', 'type = 1', 'uuid value_field,config_name view_fields,config_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-08 14:02:05', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_warn_config');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '6745231a-18e8-4933-ae9d-1a31b4e3edd7', '工厂名称', '', 'product_device_plant', 'name', 'uuid', 'name', 'type=1', 'uuid value_field,name view_fields,name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-11 14:59:21', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='工厂名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '8bfb6713-c1c0-467e-9c03-72c37a7b4362', '车间名称', '', 'product_device_plant', 'name', 'uuid', 'name,all_name', 'type=2  and parent_code=(select code from product_device_plant where uuid=~uuid~)', 'uuid value_field,name view_fields,name f1,all_name f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-11 15:16:05', '1', '2024-11-11 14:59:48', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='车间名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'f13f1b41-fafe-445e-9281-73a148febc33', '线别名称', '', 'product_device_plant', 'name', 'uuid', 'name,all_name', 'type=3 and parent_code=(select code from product_device_plant where uuid=~uuid~)', 'uuid value_field,name view_fields,name f1,all_name f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-11 15:16:00', '1', '2024-11-11 15:00:16', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='线别名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'a5928be9-e5b7-4c2d-bda6-061206399184', '段别名称', '', 'product_device_plant', 'name', 'uuid', 'name,all_name', 'type=4 and parent_code=(select code from product_device_plant where uuid=~uuid~)', 'uuid value_field,name view_fields,name f1,all_name f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-11 15:15:53', '1', '2024-11-11 15:07:15', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='段别名称');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '808680ae-750f-442f-b8c8-ebec4e80f95c', 'plant_code_name', '', 'product_device_plant', 'name', 'code', 'code,name', '', 'code value_field,name view_fields,code f1,name f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-11 16:20:50', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='plant_code_name');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'a632c9ba-9012-4984-98c2-7808bb603508', '设备使用授权', '', 'product_device_instrument_use_auth_v', 'device_name', 'uuid', 'device_name,device_number', '', 'uuid value_field,device_name view_fields,device_name f1,device_number f2', '', '', '1', '', 'auth_use_person', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-11-20 10:34:18', '1', '2024-11-15 10:58:07', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备使用授权');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'cb08a190-5724-4633-a46b-dca99dcd66df', '已预约设备', '', 'product_device_instrument_appointment_v', 'device_name', 'uuid', 'device_name,device_number', '', 'uuid value_field,device_name view_fields,device_name f1,device_number f2', '', '', '1', '', 'appointment_user', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-11-25 15:23:42', '1', '2024-11-20 09:37:45', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='已预约设备');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '496e22db-ec32-4274-94d6-fc8bd4d8aa36', '设备参照', '设备台账设备参照', 'product_device_info_v', 'archives_name', 'uuid', 'archives_name,device_model,asset_number,manufacturer,manager', '', 'uuid value_field,archives_name view_fields,archives_name f1,device_model f2,asset_number f3,manufacturer f4,manager f5', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-25 17:33:04', '1', '2024-11-20 11:06:04', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备参照');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '70df1119-f8cb-4911-b977-8ea10a3f0d5a', '设备编码', '', 'product_device_info_v', 'device_name', 'device_number', 'device_name,device_number,device_model', '', 'device_number value_field,device_name view_fields,device_name f1,device_number f2,device_model f3', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-21 14:50:27', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备编码');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '989cf065-161c-4f64-9669-30e60cabaeb2', '仪器-已领用未归还', '', 'product_device_instrument_receive_v', 'device_name', 'uuid', 'device_name,device_number', '', 'uuid value_field,device_name view_fields,device_name f1,device_number f2', '', '', '1', '', 'receive_user', NULL, NULL, '', NULL, '', '0', '1', '1', '2024-11-21 16:44:33', '1', '2024-11-21 16:43:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='仪器-已领用未归还');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'af34676d-dbc7-4fd1-9da7-e790bbb63a45', '设备-仪器', '', 'product_device_info_v', 'device_name', 'uuid', 'archives_name,device_name,device_number,device_model', 'device_category=13', 'uuid value_field,device_name view_fields,archives_name f1,device_name f2,device_number f3,device_model f4', '', '', '1', '', '', NULL, NULL, '', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-25 14:58:57', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='设备-仪器');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '40efc543-2de6-468c-93a1-f991328cd9d3', 'device_apply', '', 'product_device_calibration_apply_sub a5465,product_device_info_v a5453', 'a5453.device_name', 'a5465.uuid', 'a5453.device_name,a5453.device_code,a5453.device_number,a5453.manufacturer,a5453.manager,a5465.calibration_unit,a5465.calibration_date', '(a5465.state!=\'1\' or a5465.state is null) and a5465.calibration_apply_uuid in(SELECT uuid FROM product_device_calibration_apply where flow_flag =2)', 'a5465.uuid value_field,a5453.device_name view_fields,a5453.device_name f1,a5453.device_code f2,a5453.device_number f3,a5453.manufacturer f4,a5453.manager f5,a5465.calibration_unit f6,a5465.calibration_date f7', '', 'a5465.device_uuid=a5453.uuid', '1', '1', '', NULL, NULL, 'Web', NULL, '', '1', '1', '1', '2024-11-26 17:24:32', '1', '2024-11-25 15:14:59', 'left join' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_apply');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '5bc60b83-6fa2-4a78-b12b-47cc0fad3b36', '校准配置', '', 'product_device_calibration_config', 'calibration_standard', 'uuid', 'calibration_standard,according_to', '', 'uuid value_field,calibration_standard view_fields,calibration_standard f1,according_to f2', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-25 15:26:16', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='校准配置');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT '6045468e-4592-403b-8d6e-1bed42a28baa', 'device_repair_manufacturer', '', 'product_device_repair_manufacturer_repair_sub', 'manufacturer_name', 'uuid', 'manufacturer_name,manufacturer_telephone,manufacturer_user', 'main_uuid IN (SELECT uuid FROM product_device_repair_manufacturer_repair WHERE flow_flag =2 AND repair_record_uuid = ~repair_record_uuid~)', 'uuid value_field,manufacturer_name view_fields,manufacturer_name f1,manufacturer_telephone f2,manufacturer_user f3', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', '2024-11-28 10:13:23', '1', '2024-11-27 16:05:11', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_repair_manufacturer');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e5e8b624-12ea-43f1-b191-9426e5840a08', '流水号配置', '', 'product_sys_swift_config', 'swift_config_name', 'swift_config_name', 'swift_config_name,swift_config_prefix_first,swift_config_length', 'swift_config_table=~table_name~ and swift_config_field=~field_name~', 'swift_config_name value_field,swift_config_name view_fields,swift_config_name f1,swift_config_prefix_first f2,swift_config_length f3', '', '', NULL, '2', '', NULL, NULL, 'Web', NULL, '', '0', '1', NULL, NULL, NULL, '2023-06-16 17:38:17', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='流水号配置');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'e5665c47-16d6-4db5-8d54-b9444b11296b', 'device_fault_type_uuid', '', 'product_device_fault_type', 'fault_type_name', 'uuid', 'fault_type_name', '', 'uuid value_field,fault_type_name view_fields,fault_type_name f1', '', '', '1', '1', '', NULL, NULL, 'Web', NULL, '', '0', '1', '1', NULL, NULL, '2024-11-29 15:31:10', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='device_fault_type_uuid');
INSERT INTO `product_sys_prompt` (uuid,prompt_name,prompt_desc,source_table,view_fields,value_field,prompt_field,filter,select_fields,org_filter_field,relate_filter,display_type,prompt_type,user_filter_field,code_field,parent_code_field,client_type_uuid,is_org_filter,orderby,is_multiple,created_by,delay_load,updated_utc_datetime,updated_by,created_utc_datetime,relate_type) SELECT 'fd7e4b09-7b6f-495e-a922-ad53060488de', '故障类型', '', 'product_device_fault_type', 'fault_type_name', 'uuid', 'uuid,fault_type_name', '', 'uuid value_field,fault_type_name view_fields,uuid f1,fault_type_name f2', '', '', '1', '1', '', NULL, NULL, 'Web,App', NULL, '', '0', '1', '1', NULL, NULL, '2024-12-15 18:12:11', '' from DUAL where not EXISTS (select 1 from product_sys_prompt  where prompt_name='故障类型');




