aea35e3ef8abfd822cacb4efe8107f528d28bb58..af43393faa7c19f54cc48bf7a835900b1bc83bc0
2025-01-21 许鹏程
other:patch sql
af4339 对比 | 目录
2025-01-21 许鹏程
other:patch sql
528d3e 对比 | 目录
2025-01-21 许鹏程
other:patch sql
17fe87 对比 | 目录
2025-01-21 许鹏程
other:patch sql
15b411 对比 | 目录
2025-01-21 许鹏程
other:patch sql
7a4f77 对比 | 目录
2025-01-21 许鹏程
other:patch sql
3383b8 对比 | 目录
2025-01-21 许鹏程
other:patch sql
d51ecc 对比 | 目录
已重命名1个文件
已添加2个文件
已修改7个文件
已删除1个文件
324 ■■■■■ 文件已修改
product-server-data-sync/pom.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-data-sync/src/main/java/com/product/data/sync/service/FeDataDSService.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-data-sync/src/main/java/com/product/data/sync/service/SyFeDataService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-data-sync/src/main/java/com/product/data/sync/util/BusinessDataSync.java 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/patch/patch-20250102-001-deploy.sql 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/patch/patch-20250102-002-deploy.sql 87 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/patch/patch-20250102-002.sql 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/patch/patch-20250103-001-deploy.sql 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/pom.xml 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/src/main/java/com/product/Application.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-web/src/main/resources/logback-spring.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
product-server-data-sync/pom.xml
@@ -44,5 +44,9 @@
            <groupId>com.lx</groupId>
            <artifactId>product-server-quartz</artifactId>
        </dependency>
        <dependency>
            <groupId>com.lx</groupId>
            <artifactId>product-server-datasource</artifactId>
        </dependency>
    </dependencies>
</project>
product-server-data-sync/src/main/java/com/product/data/sync/service/FeDataDSService.java
@@ -532,6 +532,9 @@
        Map<String, FieldSetEntity> staffsMap = Maps.newHashMap();
        for (int i = 0; i < data.getRows(); i++) {
            if (i > 70) {
                System.out.println(1);
            }
            FieldSetEntity userFs = data.getFieldSetEntity(i);
            FieldSetEntity usersFs = new FieldSetEntity();
            //创建 user æ•°æ®
@@ -546,12 +549,12 @@
                //签名
                String su23 = userFs.getString("su23");
                if (!BaseUtil.strIsNull(su23)) {
                    usersFs.setValue("user_signature", this.signatureAndThumbnail(su23, clientUUID, "user_signature"));
                    fieldSetByFilter.setValue("user_signature", this.signatureAndThumbnail(su23, clientUUID, "user_signature"));
                }
                //头像
                String su28 = userFs.getString("su28");
                if (!BaseUtil.strIsNull(su28)) {
                    usersFs.setValue("thumbnail_img", this.signatureAndThumbnail(su28, clientUUID, "thumbnail_img"));
                    fieldSetByFilter.setValue("thumbnail_img", this.signatureAndThumbnail(su28, clientUUID, "thumbnail_img"));
                }
                baseDao.executeUpdate("update product_sys_staffs set staff_status=? where user_id=?", new Object[]{userFs.getString("su08"), fieldSetByFilter.getString("user_id")});
                baseDao.saveFieldSetEntity(fieldSetByFilter);
product-server-data-sync/src/main/java/com/product/data/sync/service/SyFeDataService.java
@@ -133,7 +133,7 @@
//        }
        //封装两边人员关联和部门关联
        packageDepartmentPersonnel();
        String tricode_fun = Global.getSystemConfig("data.synchronism.function", "").replaceAll(" ", "");
        String tricode_fun = fs.getString("function_code");
        if (StringUtils.isEmpty(tricode_fun)) {
            tricode_fun = fs.getString("function_code");
        }
@@ -266,7 +266,7 @@
//        this.packageButton();
//        ConnectionInterface conn = functionSynchrService.getConnection(fs);
        //通过线程循环添加功能信息
        ExecutorService exec = Executors.newCachedThreadPool();
        ExecutorService exec = Executors.newFixedThreadPool(1);
        List<Set<String>> clearAttachmentSets = new ArrayList<>();
        for (int i = 0; i < tricode_funs.length; i++) {
            //获取jdbc连接
product-server-data-sync/src/main/java/com/product/data/sync/util/BusinessDataSync.java
@@ -151,7 +151,7 @@
    private String attachmentValue = "";
    //已开发公共功能 å…¬å‘Šç®¡ç† é—®å·ç®¡ç†  è€ƒå‹¤ç®¡ç† ååŒåŠžå…¬ ä¼šè®®ç®¡ç†
//    private List<String> funTable = Lists.newArrayList("FE_APP5.PUB_NOTICE","FE_BASE5.RESEARCH_TOPIC","FE_APP5.APP_KQLRB","FE_BASE5.SYS_COLLABORATIVE","FE_APP5.BS_MEETING_FLOW");
    private List<String> funTable = Lists.newArrayList("FE_APP5.PUB_NOTICE", "FE_BASE5.RESEARCH_TOPIC", "FE_APP5.APP_KQLRB", "FE_BASE5.SYS_COLLABORATIVE", "FE_APP5.BS_MEETING_FLOW");
    private List<String> funTable = Lists.newArrayList("FE_APP5.PUB_NOTICE", "FE_BASE5.RESEARCH_TOPIC", "FE_APP5.APP_KQLRB", "FE_BASE5.SYS_COLLABORATIVE", "FE_APP5.BS_MEETING_FLOW", "FE_APP5.PLEASELEAVE");
    private Set<String> clearTable = new HashSet<>();
@@ -255,6 +255,7 @@
        }
    }
    Set<String> syncData=new HashSet<>();
    /**
     * åŒæ­¥è¡¨åŠè¡¨æ•°æ®
     *
@@ -327,7 +328,7 @@
        //如果是已开发功能定义 é€šè¿‡è‡ªå·±å®šä¹‰çš„æ•°æ®å…³è” åŒæ­¥æ•°æ®
        String[] sf28s = sf28.split("\\.");
        try {
            this.syncTable(sf28s, !isStr(sf28), null, conn);
//            this.syncTable(sf28s, !isStr(sf28), null, conn);
        } catch (Exception e) {
            e.getStackTrace();
            SpringMVCContextHolder.getSystemLogger().error(e);
@@ -3488,6 +3489,10 @@
        FieldSetEntity Orlfs;
        //表名
        String taName = sf28s[1];
        if(syncData.contains(taName)){
            return;
        }
        syncData.add(taName);
        //获取主表的表名
        if (sf28s.length == 3) {
            this.masterTableName = sf28s[2];
@@ -3588,13 +3593,13 @@
                }
                //同步附件
                if (syncAttachments) {
                    Map<String, List<String>> fileMaps = this.synchronizationAttachments(conn, accessoryData, dataFs, tableFs.getTableName(), null);
                    if (fileMaps.size() > 0) {
                        for (String fieldName : fileMaps.keySet()) {
                            List<String> value = fileMaps.get(fieldName);
                            tableFs.setValue(fieldName, StringUtils.join(value, ","));
                        }
                    }
//                    Map<String, List<String>> fileMaps = this.synchronizationAttachments(conn, accessoryData, dataFs, tableFs.getTableName(), null);
//                    if (fileMaps.size() > 0) {
//                        for (String fieldName : fileMaps.keySet()) {
//                            List<String> value = fileMaps.get(fieldName);
//                            tableFs.setValue(fieldName, StringUtils.join(value, ","));
//                        }
//                    }
                }
                String uuid = UUID.randomUUID().toString();
                try {
@@ -3731,6 +3736,9 @@
     */
    public Map<String, List<String>> synchronizationAttachments(Connection conn, DataTableEntity accessoryData, FieldSetEntity tableFs, String table, String myField) throws Exception {
        Map<String, List<String>> filesMap = Maps.newHashMap();
        if (true) {
            return filesMap;
        }
        for (int i = 0; i < accessoryData.getRows(); i++) {
            //类型
            String type = accessoryData.getString(i, "si02");
@@ -4224,9 +4232,15 @@
            this.syncLinks(wm00, conn, modelUuid);
        } else {
            DataTableEntity nodeMapping = baseDao.listTable("product_fe_flow_node_mapping", "flow_uuid=? ", new Object[]{existFlow.getUUID()});
            if("BGYPLYB".equals(wm04s[1])){
                DataTableEntity dtt = baseDao.listTable("product_fe_flow_node_mapping", "flow_uuid='2439e326-45e2-4396-b176-857712c31ded' ", new Object[]{});
                BaseUtil.dataTableMerge(nodeMapping, dtt);
            }
            nodesUUID = new JSONObject();
            for (int i = 0; i < nodeMapping.getRows(); i++) {
                nodesUUID.put(nodeMapping.getString(i, "wn53"), nodeMapping.getString(i, "node_uuid"));
                //同步流程节点人员权限配置
                this.syncNodeUser(nodeMapping.getString(i, "node_uuid"), conn, nodeMapping.getString(i, "wn00"));
            }
        }
@@ -4253,6 +4267,40 @@
        return typeCode;
    }
    private void syncNodeUser(String nodeUuid, Connection conn, String wn00) {
        if (StringUtils.isEmpty(wn00) || StringUtils.isEmpty(nodeUuid)) {
            return;
        }
        FieldSetEntity wfNode = BaseDaoServiceImpl.getFieldSet(conn, "fe_base5.wf_nodes", "wn00=?", new Object[]{wn00});
        if (FieldSetEntity.isEmpty(wfNode)) {
            return;
        }
        FieldSetEntity nodeFs = baseDao.getFieldSetEntity("product_sys_flow_node", nodeUuid, false);
        if (FieldSetEntity.isEmpty(nodeFs)) {
            return;
        }
        Map<String, String> map1 = syncNodeInstitutions(conn, wfNode);
        if (map1 != null && map1.size() > 0) {
            String userSet = map1.get("userSet");
            //人员id
            if (!BaseUtil.strIsNull(userSet)) {
                nodeFs.setValue("default_users", userSet);
            }
            String postSet = map1.get("postSet");
            //岗位uuid
            if (!BaseUtil.strIsNull(postSet)) {
                nodeFs.setValue("default_posts", postSet);
            }
            String deptSet = map1.get("deptList");
            //单位部门uuid
            if (!BaseUtil.strIsNull(deptSet)) {
                nodeFs.setValue("default_depts", deptSet);
            }
        }
        BaseUtil.createCreatorAndCreationTime(nodeFs);
        baseDao.saveFieldSetEntity(nodeFs);
    }
    /**
     * è¿ç§» flow处理器
     *
product-server-web/patch/patch-20250102-001-deploy.sql
product-server-web/patch/patch-20250102-002-deploy.sql
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,87 @@
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 ( '6e1cf9c9-a4b3-4af0-bbcd-f41401094f0f', '2fbcdeca-5266-493c-8af9-1f0c52e78cfc', 'autoLayout', '自动布局', NULL, 2, '', '', NULL, 0, '1', NULL, 1, NULL, NULL, 'custom', 'Web', NULL, '194px', '913px', 'autoLayout', '', '1', '172887454447636WoA1b839', NULL, 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 ( '2a60f5ee-cd59-4832-9e3a-d926e59fc1a5', '2fbcdeca-5266-493c-8af9-1f0c52e78cfc', 'copy', '参照其他表单', NULL, 2, '', '', NULL, 0, '1', NULL, 1, NULL, NULL, 'custom', 'Web', NULL, '129px', '912px', 'copyFace', '', '1', '172887454446069yV530192', NULL, 0, '', 'rgba(30, 144, 255, 1)', '', '', 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-10-14 10:55:45', 1, '9bf0c614-a31c-474e-ac20-8af8ae8aa01a', 2, '2fbcdeca-5266-493c-8af9-1f0c52e78cfc',  0, '2a60f5ee-cd59-4832-9e3a-d926e59fc1a5', 1, NULL, NULL, '820fd3b3-14ec-4b08-bb34-23cb0aa69407', 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-10-14 10:55:45', 1, '9bf0c614-a31c-474e-ac20-8af8ae8aa01a', 2, '2fbcdeca-5266-493c-8af9-1f0c52e78cfc',  0, '6e1cf9c9-a4b3-4af0-bbcd-f41401094f0f', 1, NULL, NULL, '9012029d-7d01-499b-b4c1-ff4e43f9db5a', 1);
INSERT INTO `product_sys_dict` ( `uuid`, `dict_name`, `dict_label`, `dict_value`, `is_used`, `client_type`, `org_level_uuid`, `sequence`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `client_uuid`, `dict_value_color`, `dict_value_img`, `dict_group`) VALUES ( '1d478f8e-85dc-4024-b325-c441ecb888d5', '组织机构控件选择类型', '公司', '1', 1, 'Web', '00000000-0000-0000-0000-000000000000', 1, 1, '2023-04-20 10:56:29', 1, '2023-04-20 10:56:55', NULL, NULL, NULL, NULL);
INSERT INTO `product_sys_dict` ( `uuid`, `dict_name`, `dict_label`, `dict_value`, `is_used`, `client_type`, `org_level_uuid`, `sequence`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `client_uuid`, `dict_value_color`, `dict_value_img`, `dict_group`) VALUES ( 'baa650b6-22d9-484d-9342-10d7dce428c2', '组织机构控件选择类型', '部门', '2', 1, 'Web', '00000000-0000-0000-0000-000000000000', 2, 1, '2023-04-20 10:56:29', 1, '2023-04-20 10:56:55', NULL, NULL, NULL, NULL);
INSERT INTO `product_sys_dict` ( `uuid`, `dict_name`, `dict_label`, `dict_value`, `is_used`, `client_type`, `org_level_uuid`, `sequence`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `client_uuid`, `dict_value_color`, `dict_value_img`, `dict_group`) VALUES ( 'cf1f4d7b-af04-45a7-9b49-06b5e42e88b7', '组织机构控件选择类型', '岗位', '3', 1, 'Web', '00000000-0000-0000-0000-000000000000', 3, 1, '2023-04-20 10:56:29', 1, '2023-04-20 10:56:55', NULL, NULL, NULL, NULL);
INSERT INTO `product_sys_dict` ( `uuid`, `dict_name`, `dict_label`, `dict_value`, `is_used`, `client_type`, `org_level_uuid`, `sequence`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `client_uuid`, `dict_value_color`, `dict_value_img`, `dict_group`) VALUES ( 'e692b2be-f96b-4952-866c-9ddb06e16a7e', '组织机构控件选择类型', '岗位层级下的人员', '4', 1, 'Web', '00000000-0000-0000-0000-000000000000', 4, 1, '2023-04-20 10:56:29', 1, '2023-04-20 10:56:55', NULL, NULL, NULL, NULL);
INSERT INTO `product_sys_dict` ( `uuid`, `dict_name`, `dict_label`, `dict_value`, `is_used`, `client_type`, `org_level_uuid`, `sequence`, `created_by`, `created_utc_datetime`, `updated_by`, `updated_utc_datetime`, `client_uuid`, `dict_value_color`, `dict_value_img`, `dict_group`) VALUES ( '193f0119-0855-4cf9-9769-ffa2f3d224d8', '组织机构控件选择类型', '部门层级下的人员', '5', 1, 'Web', '00000000-0000-0000-0000-000000000000', 5, 1, '2023-04-20 10:56:29', 1, '2023-04-20 10:56:55', NULL, NULL, NULL, NULL);
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 '0671f9dc-15a4-45cc-bf92-834be5774c75', '1', '2022-07-29 00:00:00', '1', '2022-07-29 00:00:00', NULL, 'product_sys_sent_v', '已发视图', '2', '', 'select *
from (
    select t.uuid,t.title,n.title node_title,send_time,finish_type status,0 type,sender,group_concat(expect_person) wait_deal_person
    from product_sys_flow_task t
    inner 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 1,2,3,4,5,6,7
    union all
    select uuid,title,null node_title,start_time,status,1 type,created_by,null
    from product_oa_cooperates
    where status is not null
) t', NULL, '1', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_sent_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 uuid(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'node_title', 'string', '环节标题', '环节标题', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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 uuid(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'send_time', 'datetime', '发送时间', '发送时间', '20', '0', '0', NULL, NULL, '1', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'sender', 'string', '发送人', '发送人', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'status', 'int', '状态', '状态', '20', '0', '0', NULL, NULL, '1', NULL, NULL, '《flow_send_status》', NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'title', 'string', '标题', '标题', '20', '0', '0', NULL, NULL, '1', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'type', 'int', '类型', '类型', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'uuid', 'string', '明细uuid', '明细uuid', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' 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(), '0671f9dc-15a4-45cc-bf92-834be5774c75', 'wait_deal_person', 'string', '待处理人员', '待处理人员', '200', '0', '0', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', '1', '2024-07-04 09:07:53', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' and field_name='wait_deal_person');
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'node_title', 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 = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'node_title';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'send_time', field_type = 'datetime', field_show_name = '发送时间', field_description = '发送时间', 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 = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'send_time';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'sender', 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 = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'sender';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'status', 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 = 1, field_format = NULL, related_table = NULL, field_reference = '《flow_send_status》', field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'status';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'title', 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 = 1, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'type', 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 = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'type';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', 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 = 0, field_format = NULL, related_table = NULL, field_reference = NULL, field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75', field_name = 'wait_deal_person', field_type = 'string', field_show_name = '待处理人员', field_description = '待处理人员', 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 = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 0, created_by = '1', created_utc_datetime = '2024-07-04 09:07:53', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '0671f9dc-15a4-45cc-bf92-834be5774c75' AND field_name = 'wait_deal_person';
DELETE FROM `product_sys_datamodel_field` where table_uuid='0671f9dc-15a4-45cc-bf92-834be5774c75' 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='0671f9dc-15a4-45cc-bf92-834be5774c75';
ALTER TABLE `product_sys_data_upload_model` ADD COLUMN `start_row_index` int NULL DEFAULT NULL COMMENT '表头行起始下标' AFTER `sheet_order`;
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 '9a55ffcb-eecd-4e4d-99f8-24c06014f506', '1', '2021-06-29 00:00:00', '1', '2021-06-29 00:00:00', NULL, 'product_sys_data_upload_model', '数据上传模板', '1', NULL, NULL, 'uuid', '210', NULL, NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_sys_data_upload_model');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'after_func', 'string', '保存后处理', '保存后处理方法', '200', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='after_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'before_func', 'string', '保存前处理', '保存前处理方法', '200', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='before_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'button_title', 'string', '按钮标题', '对应按钮标题', '200', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='button_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'created_by', 'userid', '创建者', '创建者', '11', '0', '1', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '1', NULL, NULL, '0', NULL, NULL, '', NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'function_uuid', 'string', '功能uuid', '对应功能uuid', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'id', 'pk', '主键', '主键', '11', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'org_level_uuid', 'orgUuid', '组织机构', '组织机构', '80', '0', '1', NULL, NULL, '0', NULL, NULL, 'levels', NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'sheet_order', 'int', 'sheet顺序', 'sheet顺序', '4', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='sheet_order');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'start_row_index', 'int', '表头行起始下标', '表头行起始下标', '2', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', '1', '2023-07-03 10:13:09', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='start_row_index');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'table_name', 'string', '对应表名', '对应表名', '100', '0', '1', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'template_info', 'file', '附件表uuid', '对应附件表uuid', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='template_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 uuid(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'title', 'string', '标题', '标题', '500', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'updated_by', 'int', '更新者', '更新者', '11', '0', '0', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'updated_utc_datetime', 'datetime', '更新时间', '更新时间', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'upload_sign', 'string', '导入唯一标识', '本次导入唯一标识', '80', '0', '1', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='upload_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 uuid(), '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 'uuid', 'string', '唯一标识', '唯一标识', '80', '0', '1', '1', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, NULL, '1', '2023-07-03 10:13:09', NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' and field_name='uuid');
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'after_func', 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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'after_func';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'before_func', 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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'before_func';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'button_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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'button_title';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'created_by', field_type = 'userid', field_show_name = '创建者', field_description = '创建者', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'function_uuid', field_type = 'string', field_show_name = '功能uuid', 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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'function_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'org_level_uuid', field_type = 'orgUuid', 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 = 'levels', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'sheet_order', field_type = 'int', field_show_name = 'sheet顺序', field_description = 'sheet顺序', 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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'sheet_order';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'start_row_index', 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 = '1', created_utc_datetime = '2023-07-03 10:13:09', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'start_row_index';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'table_name', field_type = 'string', field_show_name = '对应表名', field_description = '对应表名', field_length = 100, 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'table_name';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'template_info', field_type = 'file', field_show_name = '附件表uuid', 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 = 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'template_info';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'title', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'title';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'updated_by', 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 = '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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', field_name = 'upload_sign', field_type = 'string', field_show_name = '导入唯一标识', field_description = '本次导入唯一标识', field_length = 80, 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'upload_sign';
UPDATE product_sys_datamodel_field SET table_uuid = '9a55ffcb-eecd-4e4d-99f8-24c06014f506', 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 = '9a55ffcb-eecd-4e4d-99f8-24c06014f506' AND field_name = 'uuid';
DELETE FROM `product_sys_datamodel_field` where table_uuid='9a55ffcb-eecd-4e4d-99f8-24c06014f506' 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='9a55ffcb-eecd-4e4d-99f8-24c06014f506';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b659ecd0-7fad-11ec-a3ed-902b3470f24e','9a55ffcb-eecd-4e4d-99f8-24c06014f506','uuid','uuid','1' );
product-server-web/patch/patch-20250102-002.sql
ÎļþÒÑɾ³ý
product-server-web/patch/patch-20250103-001-deploy.sql
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,106 @@
ALTER TABLE `product_oa_ask_for_leave` DROP COLUMN `is_go_out`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `flow_flag` int NULL DEFAULT NULL COMMENT '流程送办默认字段,0-待发,1-在办,2-办结' FIRST;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `cause` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '请假原因' AFTER `flow_flag`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `created_by` int NOT NULL COMMENT '创建人' AFTER `cause`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `created_utc_datetime` datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `created_by`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `department_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '部门uuid' AFTER `created_utc_datetime`;
update product_oa_ask_for_leave set end_time= DATE_ADD(start_time,INTERVAL `day` DAY) WHERE end_time is null;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `end_time` datetime NOT NULL COMMENT '结束时间' AFTER `department_uuid`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `id` bigint NOT NULL COMMENT '自增主键' AFTER `end_time`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `org_level_uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公司uuid' AFTER `id`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `start_time` datetime NULL DEFAULT NULL COMMENT '开始时间' AFTER `org_level_uuid`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `leave_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '请假类型' AFTER `start_time`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `updated_by` int NULL DEFAULT NULL COMMENT '修改人' AFTER `leave_type`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `updated_utc_datetime` datetime NULL DEFAULT NULL COMMENT '修改时间' AFTER `updated_by`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `uuid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '唯一主键' AFTER `updated_utc_datetime`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `fill_in_time` datetime NULL DEFAULT NULL COMMENT '申请时间' AFTER `uuid`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `day` int NULL DEFAULT NULL COMMENT '请假时长' AFTER `fill_in_time`;
ALTER TABLE `product_oa_ask_for_leave` ADD COLUMN `user_id` int NULL DEFAULT NULL COMMENT '申请人' AFTER `day`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `day_week` int NULL DEFAULT NULL COMMENT '共计天数(含周末)' AFTER `user_id`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `accessory_uuid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '附件' AFTER `day_week`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `work_year` int NULL DEFAULT NULL COMMENT '工作年限' AFTER `accessory_uuid`;
update product_oa_ask_for_leave set join_work_time=concat(join_work_time,'-01') WHERE length(join_work_time)=7;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `join_work_time` datetime NULL DEFAULT NULL COMMENT '参加工作时间' AFTER `work_year`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `work_assignment_person` int NULL DEFAULT NULL COMMENT '本人工作交办人' AFTER `join_work_time`;
ALTER TABLE `product_oa_ask_for_leave` MODIFY COLUMN `id` bigint 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_ask_for_leave', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', NULL, 'product_oa_ask_for_leave', '请假表申请', '1', '', NULL, 'uuid', '103', '0', NULL, NULL, NULL from DUAL where not EXISTS (select 1 from product_sys_datamodel_table  where table_name='product_oa_ask_for_leave');
UPDATE `product_sys_datamodel_table` SET  uuid = 'product_sys_ask_for_leave', created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = '2020-01-01 00:00:00', org_level_uuid = NULL, table_name = 'product_oa_ask_for_leave', table_description = '请假表申请', table_type = '1', table_base_view = '', view_sql = NULL, table_primary_key = 'uuid', sequence = '103', is_international = '0', produce_msg = NULL, view_status = NULL  WHERE table_name = 'product_oa_ask_for_leave';
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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_ask_for_leave', 'accessory_uuid', 'file', '附件', '附件', '100', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '20', '1', '2024-10-15 17:06:26', '1', '2024-10-15 17:07:45', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='accessory_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_ask_for_leave', 'cause', 'string', '请假原因', '请假原因', '2000', '0', '0', '0', '0', '0', NULL, NULL, 'Leave_Type
', NULL, '2', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='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(), 'product_sys_ask_for_leave', 'created_by', 'int', '创建人', '创建人', '11', '0', '1', '0', '0', '0', NULL, NULL, 'user_name_by_user_id', NULL, '3', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_ask_for_leave', 'created_utc_datetime', 'datetime', '创建时间', '创建时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '4', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_ask_for_leave', 'day', 'int', '请假时长', '请假时长', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '15', '1', '2024-08-06 00:00:00', '1', '2024-08-06 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='day');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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_ask_for_leave', 'day_week', 'int', '共计天数(含周末)', '共计天数(含周末)', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '19', '1', '2024-10-15 16:04:23', '1', '2024-10-15 17:04:45', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='day_week');
INSERT INTO product_sys_datamodel_field (uuid,table_uuid, field_name, field_type, field_show_name, field_description, field_length, field_unit, is_required, is_unique, is_international, is_filter, field_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_ask_for_leave', 'department_uuid', 'string', '部门uuid', '部门uuid', '80', '0', '1', '0', '0', '0', NULL, NULL, 'this_level_dept', NULL, '5', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='department_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_ask_for_leave', 'end_time', 'datetime', '结束时间', '结束时间', '0', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '6', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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(), 'product_sys_ask_for_leave', 'fill_in_time', 'datetime', '申请时间', '申请时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '14', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='fill_in_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_sys_ask_for_leave', 'flow_flag', 'flowsign', '流程状态', '流程送办默认字段,0-待发,1-在办,2-办结', '2', '0', '0', '0', NULL, '0', NULL, NULL, '《flow_send_status》', NULL, '1', NULL, NULL, '1', '2024-08-06 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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 uuid(), 'product_sys_ask_for_leave', 'id', 'pk', '自增主键', '自增主键', '11', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '7', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_sys_ask_for_leave', 'join_work_time', 'datetime', '参加工作时间', '参加工作时间', '0', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '22', '1', '2024-10-15 17:10:20', '1', '2024-10-15 17:11:56', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='join_work_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_sys_ask_for_leave', 'leave_type', 'string', '请假类型', '请假类型', '30', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '10', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='leave_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_ask_for_leave', 'manager_opinion', 'string', 'manager_opinion', 'manager_opinion', '300', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, '2024-10-18 15:29:48', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='manager_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_sys_ask_for_leave', 'org_level_uuid', 'string', '公司uuid', '公司uuid', '80', '0', '1', '0', '0', '0', NULL, NULL, 'levels', NULL, '8', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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(), 'product_sys_ask_for_leave', 'personnel_opinion', 'string', 'personnel_opinion', 'personnel_opinion', '300', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, '2024-10-18 15:29:48', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='personnel_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_sys_ask_for_leave', 'staff_uuid', 'string', 'staff_uuid', 'staff_uuid', '80', '0', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, '0', NULL, '2024-10-18 15:29:48', NULL, NULL, NULL FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='staff_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_ask_for_leave', 'start_time', 'datetime', '开始时间', '开始时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '9', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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(), 'product_sys_ask_for_leave', 'updated_by', 'int', '修改人', '修改人', '11', '0', '0', '0', '0', '0', NULL, NULL, 'user_name_by_user_id', NULL, '11', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_ask_for_leave', 'updated_utc_datetime', 'datetime', '修改时间', '修改时间', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL, NULL, '12', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_ask_for_leave', 'user_id', 'int', '申请人', '申请人', '20', '0', '0', NULL, NULL, '0', NULL, NULL, 'user_name_by_user_id', NULL, '18', '1', '2024-08-06 00:00:00', '1', '2024-08-06 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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 uuid(), 'product_sys_ask_for_leave', 'uuid', 'string', '唯一主键', '唯一主键', '80', '0', '1', '0', '0', '0', NULL, NULL, NULL, NULL, '13', '1', '2020-01-01 00:00:00', '1', '2020-01-01 00:00:00', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' 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_ask_for_leave', 'work_assignment_person', 'int', '本人工作交办人', '本人工作交办人', '20', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '23', '1', '2024-10-15 17:11:56', '1', '2024-10-15 17:16:08', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='work_assignment_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 uuid(), 'product_sys_ask_for_leave', 'work_year', 'int', '工作年限', '工作年限', '11', '0', '0', NULL, NULL, '0', NULL, NULL, NULL, NULL, '21', '1', '2024-10-15 17:10:20', '1', '2024-10-15 17:11:56', '0' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM product_sys_datamodel_field WHERE table_uuid = 'product_sys_ask_for_leave' and field_name='work_year');
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'accessory_uuid', field_type = 'file', field_show_name = '附件', field_description = '附件', field_length = 100, 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 = 20, created_by = '1', created_utc_datetime = '2024-10-15 17:06:26', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'accessory_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'cause', 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 = NULL, related_table = NULL, field_reference = 'Leave_Type
', 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 = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'cause';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'created_by', 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 = 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 = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'created_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', 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 = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'created_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'day', 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 = 15, created_by = '1', created_utc_datetime = '2024-08-06 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'day';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'day_week', 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 = 19, created_by = '1', created_utc_datetime = '2024-10-15 16:04:23', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'day_week';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'department_uuid', field_type = 'string', field_show_name = '部门uuid', 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 = 'this_level_dept', 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 = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'department_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'end_time', field_type = 'datetime', 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 = 6, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'end_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'fill_in_time', 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 = 14, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'fill_in_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'flow_flag', field_type = 'flowsign', 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 = '《flow_send_status》', 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 = 'product_sys_ask_for_leave' AND field_name = 'flow_flag';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = '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 = 7, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'join_work_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 = 22, created_by = '1', created_utc_datetime = '2024-10-15 17:10:20', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'join_work_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'leave_type', field_type = 'string', field_show_name = '请假类型', field_description = '请假类型', field_length = 30, 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 = 10, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'leave_type';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'manager_opinion', field_type = 'string', field_show_name = 'manager_opinion', field_description = 'manager_opinion', field_length = 300, 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:48', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'manager_opinion';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'org_level_uuid', field_type = 'string', field_show_name = '公司uuid', 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 = 'levels', 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 = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'org_level_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'personnel_opinion', field_type = 'string', field_show_name = 'personnel_opinion', field_description = 'personnel_opinion', field_length = 300, 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:48', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'personnel_opinion';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'staff_uuid', field_type = 'string', field_show_name = 'staff_uuid', field_description = 'staff_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 = NULL, field_relation_table = NULL, field_sequence = 0, created_by = NULL, created_utc_datetime = '2024-10-18 15:29:48', updated_by = NULL, updated_utc_datetime = now(), is_more_value = NULL WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'staff_uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'start_time', 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 = 9, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'start_time';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', 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 = 'user_name_by_user_id', 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 = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'updated_by';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', 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 = 12, created_by = '1', created_utc_datetime = '2020-01-01 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'updated_utc_datetime';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'user_id', 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 = 'user_name_by_user_id', field_relation_table = NULL, field_sequence = 18, created_by = '1', created_utc_datetime = '2024-08-06 00:00:00', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'user_id';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = '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 = 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 = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'uuid';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'work_assignment_person', 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 = 23, created_by = '1', created_utc_datetime = '2024-10-15 17:11:56', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'work_assignment_person';
UPDATE product_sys_datamodel_field SET table_uuid = 'product_sys_ask_for_leave', field_name = 'work_year', 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 = 21, created_by = '1', created_utc_datetime = '2024-10-15 17:10:20', updated_by = '1', updated_utc_datetime = now(), is_more_value = 0 WHERE table_uuid = 'product_sys_ask_for_leave' AND field_name = 'work_year';
DELETE FROM `product_sys_datamodel_field` where table_uuid='product_sys_ask_for_leave' 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_ask_for_leave';
INSERT INTO `product_sys_datamodel_table_index` (`uuid`, `table_uuid`, `index_name`, `index_fields`, `index_type`) values ('b6594f71-7fad-11ec-a3ed-902b3470f24e','product_sys_ask_for_leave','uuid','uuid','1' );
product-server-web/pom.xml
@@ -219,6 +219,10 @@
                    <excludes>
                        <exclude>*.properties</exclude>
                        <exclude>*.xml</exclude>
<!--                        æŽ’除resource下的apk、static、templates æ–‡ä»¶å¤¹-->
                        <exclude>apk/**</exclude>
                        <exclude>static/**</exclude>
                        <exclude>templates/**</exclude>
                    </excludes>
                    <archive>
                        <manifest>
@@ -277,6 +281,9 @@
                                        <include>*.yml</include>
                                        <include>*.xml</include>
                                        <include>*.txt</include>
                                        <include>apk/**</include>
                                        <include>static/**</include>
                                        <include>templates/**</include>
                                    </includes>
                                </resource>
                            </resources>
@@ -342,17 +349,32 @@
                        <phase>package</phase>
                        <configuration>
                            <tasks>
                                <copy todir="D:/product/workspace/product-server-install/resources/product-server/lib">
                                <!--                                <copy todir="${project.baseUri}/package/lib">-->
                                <!--                                    <fileset dir="${project.build.directory}/lib">-->
                                <!--                                        <include name="*.jar"/>-->
                                <!--                                    </fileset>-->
                                <!--                                </copy>-->
                                <!--                                å¤åˆ¶ target下的lib目录到 é¡¹ç›®æ ¹è·¯å¾„/package/lib-->
                                <!--                                æ¸…空目标文件夹下的所有文件-->
                                <delete dir="${project.basedir}/package"/>
                                <copy todir="${project.basedir}/package/lib">
                                    <fileset dir="${project.build.directory}/lib">
                                        <include name="*.jar"/>
                                    </fileset>
                                </copy>
                                <copy todir="D:/product/workspace/product-server-install/resources/product-server/resources">
                                <copy todir="${project.basedir}/package/resources">
                                    <fileset dir="${project.build.directory}/resources">
                                        <include name="application-prod.properties"/>
                                        <include name="cache-prod.properties"/>
                                        <include name="*.txt"/>
                                        <include name="*.xml"/>
                                        <!--                                        <include>apk/**</include>-->
                                        <!--                                        <include>static/**</include>-->
                                        <!--                                        <include>templates/**</include>-->
                                        <include name="apk/**"/>
                                        <include name="static/**"/>
                                        <include name="templates/**"/>
                                    </fileset>
                                </copy>
                                <!--                                <copy todir="D:/product/workspace/product-server-install/resources/product-server/webapp/web">-->
@@ -361,7 +383,7 @@
                                <!--                                    </fileset>-->
                                <!--                                </copy>-->
                                <copy file="${project.build.directory}/product-server-web-2.0.0-release.jar"
                                      tofile="D:/product/workspace/product-server-install/resources/product-server/product-server-web-2.0.0-release.jar"
                                      tofile="${project.basedir}/package/product-server-web-2.0.0-release.jar"
                                      overwrite="true"/>
                            </tasks>
product-server-web/src/main/java/com/product/Application.java
@@ -25,7 +25,7 @@
 * åˆå§‹é›†ç¾¤å®¢æˆ·ç«¯è¿žæŽ¥æ± 
 * æ‰«æå¤šä¸ªè·¯å¾„
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product","com.home","org.spring.service.core"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product","com.home","org.spring.service.core","cn.pomit"})
public class Application extends SpringBootServletInitializer {
    @Override
@@ -48,14 +48,14 @@
            SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch();
            SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath);
            SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home"));
            if (cacheFlat && codeFlat  && connFlat) {
            if (cacheFlat && codeFlat && connFlat) {
                SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! ");
            } else {
                SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!");
            }
        } catch (Exception e) {
            e.printStackTrace();
            SpringMVCContextHolder.getSystemLogger().error("System startup failed:"+e.getMessage());
            SpringMVCContextHolder.getSystemLogger().error("System startup failed:" + e.getMessage());
            SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!");
        }
    }
product-server-web/src/main/resources/logback-spring.xml
@@ -81,12 +81,12 @@
    <logger name="java.sql.Statement" level="INFO"/>
    <logger name="java.sql.PreparedStatement" level="INFO"/>
    <logger name="org.springframework" level="INFO"/>
    <!-- ç”Ÿäº§çŽ¯å¢ƒ -->
    <springProfile name="prod">
        <root level="info">
            <appender-ref ref="consoleAppender"/>
            <appender-ref ref="consoleAppender"/>
            <appender-ref ref="errorAppender"/>
            <appender-ref ref="infoAppender"/>
        </root>
@@ -110,5 +110,5 @@
            <appender-ref ref="debugAppender"/>
        </root>
    </springProfile>
    <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
    <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
</configuration>