forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
754 lines
34 KiB
754 lines
34 KiB
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// 说明
|
|
var Info = strings.Join([]string{
|
|
"1. 启动、终止并设置 应用和数据库 服务",
|
|
"2. 清除 浏览器和应用 缓存",
|
|
"3. 设置 应用和数据库 内存大小",
|
|
"4. 实现 数据库索引 重新构建",
|
|
"5. 实现 数据备份 压缩备份库文件与备份照片",
|
|
"6. 【待完善】数据还原", // "实现 数据还原 执行还原库文件与还原照片",
|
|
"7. 实现 特殊字符串处理,由于 ”&#“ 导致无法导入问题的解决",
|
|
"8. 实现 按照机构树前序遍历方式 导出表册",
|
|
fmt.Sprintf("版本:%s", Version)}, "\n")
|
|
|
|
// 【废弃】基础库部分脚本(除 a01 和 b01)
|
|
var TableName = []string{
|
|
"a02", "a05", "a06", "a08", "a14", "a15", "a17", "a36", "a30", "a33", "a57", "a65", "a99z1",
|
|
}
|
|
|
|
// 【废弃】统计部分脚本
|
|
var TableNameTj = []string{
|
|
"tj_un", "tb_set_unit", "tb_rpt_cv_cfg",
|
|
"J2001", "J2002", "J2003", "J2004", "J2005", "J2006", "J2007", "J2008", "J2101", "J2102", "J2103", "J2104",
|
|
"J2105", "J2106", "J2107", "J2108", "M_M01", "M_M02", "M_M03", "M_M04", "M_M05", "M_M06", "M_M07", "M_M09",
|
|
"M_N01", "M_N02", "M_N03", "M_N04", "M_N05", "M_P01", "M_P02", "M_P03", "M_Q01", "M_Q02", "M_Q03", "M_Q04",
|
|
"M_Q05", "M_Q06", "M_Q07", "M_Q08", "M_Q09", "M_Q10", "M_Q11", "M_Q12", "M_Q13",
|
|
"inner_check_result", "outer_check_result", "statistics_state", "middleverify_error_list", "tj_tbsm_item_list", "tb_zyhz",
|
|
}
|
|
|
|
// 索引脚本
|
|
var DbIndex = []tabIdx{
|
|
{tabName: "a01", idxName: "A01_IDX_001", idxColumn: "A0000,A0163,STATUS"},
|
|
{tabName: "a01", idxName: "A01_IDX_002", idxColumn: "A0107"},
|
|
{tabName: "a01", idxName: "A01_IDX_003", idxColumn: "A0134"},
|
|
{tabName: "a01", idxName: "A01_IDX_004", idxColumn: "A0184"},
|
|
{tabName: "a01", idxName: "A01_IDX_005", idxColumn: "A0192F"},
|
|
{tabName: "a01", idxName: "A01_IDX_006", idxColumn: "A0221"},
|
|
{tabName: "a01", idxName: "A01_IDX_007", idxColumn: "STATUS"},
|
|
{tabName: "a01", idxName: "A01_IDX_008", idxColumn: "TORDER"},
|
|
{tabName: "a02", idxName: "A02_IDX_001", idxColumn: "A0000,A0255"},
|
|
{tabName: "a02", idxName: "A02_IDX_002", idxColumn: "A0000,A0201B"},
|
|
{tabName: "a02", idxName: "A02_IDX_003", idxColumn: "A0000"},
|
|
{tabName: "a02", idxName: "A02_IDX_004", idxColumn: "A0000,A0201B,A0281"},
|
|
{tabName: "a02", idxName: "A02_IDX_005", idxColumn: "A0000,A0279"},
|
|
{tabName: "a05", idxName: "A05_IDX_001", idxColumn: "A0524"},
|
|
{tabName: "a05", idxName: "A05_IDX_002", idxColumn: "A0531"},
|
|
{tabName: "a05", idxName: "A05_IDX_003", idxColumn: "A0000,A0531"},
|
|
{tabName: "a05", idxName: "A05_IDX_004", idxColumn: "A0000,A0524"},
|
|
{tabName: "a06", idxName: "A06_IDX_001", idxColumn: "A0000,A0601"},
|
|
{tabName: "a06", idxName: "A06_IDX_002", idxColumn: "A0000,A0604"},
|
|
{tabName: "a06", idxName: "A06_IDX_003", idxColumn: "A0000,A0699"},
|
|
{tabName: "a08", idxName: "A08_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "a08", idxName: "A08_IDX_002", idxColumn: "A0000,A0801B"},
|
|
{tabName: "a08", idxName: "A08_IDX_003", idxColumn: "A0000,A0831"},
|
|
{tabName: "a08", idxName: "A08_IDX_004", idxColumn: "A0000,A0834"},
|
|
{tabName: "a08", idxName: "A08_IDX_005", idxColumn: "A0000,A0835"},
|
|
{tabName: "a08", idxName: "A08_IDX_006", idxColumn: "A0000,A0901B"},
|
|
{tabName: "a14", idxName: "A14_IDX_001", idxColumn: "A0000,A1404b"},
|
|
{tabName: "a14", idxName: "A14_IDX_002", idxColumn: "A0000,A1407"},
|
|
{tabName: "a14", idxName: "A14_IDX_003", idxColumn: "A0000,A1414"},
|
|
{tabName: "a15", idxName: "A15_IDX_001", idxColumn: "A0000,A1517"},
|
|
{tabName: "a15", idxName: "A15_IDX_002", idxColumn: "A0000,A1521"},
|
|
{tabName: "a30", idxName: "A30_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "a30", idxName: "A30_IDX_002", idxColumn: "A0000,A3001"},
|
|
{tabName: "a30", idxName: "A30_IDX_003", idxColumn: "A0000,A3004"},
|
|
{tabName: "a33", idxName: "A33_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "a33", idxName: "A33_IDX_002", idxColumn: "A0000,A3361"},
|
|
{tabName: "a33", idxName: "A33_IDX_003", idxColumn: "A0000,A3362"},
|
|
{tabName: "a33", idxName: "A33_IDX_004", idxColumn: "A0000,A3371"},
|
|
{tabName: "a33", idxName: "A33_IDX_005", idxColumn: "A0000,A3372"},
|
|
{tabName: "a36", idxName: "A36_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "a36", idxName: "A36_IDX_002", idxColumn: "A0000,A3604A"},
|
|
{tabName: "a36", idxName: "A36_IDX_003", idxColumn: "A0000,A3627"},
|
|
{tabName: "a36", idxName: "A36_IDX_004", idxColumn: "A0000,A3607"},
|
|
{tabName: "a65", idxName: "A65_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "A99Z1", idxName: "A99Z1_IDX_001", idxColumn: "A0000"},
|
|
{tabName: "A99Z1", idxName: "A99Z1_IDX_002", idxColumn: "A0000,A99Z101"},
|
|
{tabName: "A99Z1", idxName: "A99Z1_IDX_003", idxColumn: "A0000,A99Z103"},
|
|
{tabName: "A99Z1", idxName: "A99Z1_IDX_004", idxColumn: "A0000,A99Z191"},
|
|
{tabName: "b01", idxName: "B01_IDX_001", idxColumn: "B0121"},
|
|
{tabName: "b01", idxName: "B01_IDX_002", idxColumn: "B0131"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_001", idxColumn: "M0105"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_002", idxColumn: "M0101"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_003", idxColumn: "M0103"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_004", idxColumn: "M0104"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_005", idxColumn: "M0109"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_006", idxColumn: "M0110"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_007", idxColumn: "M0111"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_008", idxColumn: "UNID"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_009", idxColumn: "RPT"},
|
|
{tabName: "M_M01", idxName: "M_M01_IDX_010", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_002", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_003", idxColumn: "M0203"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_004", idxColumn: "RPT"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_005", idxColumn: "UNID"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_006", idxColumn: "M0201"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_007", idxColumn: "M0202"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_008", idxColumn: "M0204"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_009", idxColumn: "M0205"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_010", idxColumn: "M0206"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_011", idxColumn: "M0208"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_012", idxColumn: "M0212"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_013", idxColumn: "M0213"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_014", idxColumn: "M0216"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_015", idxColumn: "M0233_1"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_016", idxColumn: "M0234"},
|
|
{tabName: "M_M02", idxName: "M_M02_IDX_017", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_001", idxColumn: "M0309"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_M03", idxName: "M_M03_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_001", idxColumn: "M0403"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_M04", idxName: "M_M04_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_001", idxColumn: "M0503"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_004", idxColumn: "M0501"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_005", idxColumn: "M0502"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_006", idxColumn: "M0503"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_007", idxColumn: "M0504"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_008", idxColumn: "M0505"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_009", idxColumn: "M0506"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_010", idxColumn: "M0507"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_011", idxColumn: "M0508"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_012", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_013", idxColumn: "RPT"},
|
|
{tabName: "M_M05", idxName: "M_M05_IDX_014", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_001", idxColumn: "M0602"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_M06", idxName: "M_M06_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_001", idxColumn: "M0702"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_M07", idxName: "M_M07_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_001", idxColumn: "M0903"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_M09", idxName: "M_M09_IDX_007", idxColumn: "ORDERBY"},
|
|
{tabName: "M_N01", idxName: "M_N01_IDX_001", idxColumn: "UNID"},
|
|
{tabName: "M_N01", idxName: "M_N01_IDX_002", idxColumn: "RPT"},
|
|
{tabName: "M_N01", idxName: "M_N01_IDX_003", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_001", idxColumn: "N0202"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_N02", idxName: "M_N02_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_001", idxColumn: "N0302"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_N03", idxName: "M_N03_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_001", idxColumn: "N0402"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_N04", idxName: "M_N04_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_001", idxColumn: "N0502"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_002", idxColumn: "OUUID"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_N05", idxName: "M_N05_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_P01", idxName: "M_P01_IDX_001", idxColumn: "UNID"},
|
|
{tabName: "M_P01", idxName: "M_P01_IDX_002", idxColumn: "RPT"},
|
|
{tabName: "M_P01", idxName: "M_P01_IDX_003", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_002", idxColumn: "P0204"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_P02", idxName: "M_P02_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_002", idxColumn: "P0304"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_P03", idxName: "M_P03_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q01", idxName: "M_Q01_IDX_001", idxColumn: "UNID"},
|
|
{tabName: "M_Q01", idxName: "M_Q01_IDX_002", idxColumn: "RPT"},
|
|
{tabName: "M_Q01", idxName: "M_Q01_IDX_003", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_002", idxColumn: "Q0203"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q02", idxName: "M_Q02_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_002", idxColumn: "Q0303"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q03", idxName: "M_Q03_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_002", idxColumn: "Q0403"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q04", idxName: "M_Q04_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_002", idxColumn: "Q0503"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q05", idxName: "M_Q05_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_002", idxColumn: "Q0603"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q06", idxName: "M_Q06_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_002", idxColumn: "Q0703"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q07", idxName: "M_Q07_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_002", idxColumn: "Q0803"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q08", idxName: "M_Q08_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_002", idxColumn: "Q0903"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q09", idxName: "M_Q09_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_002", idxColumn: "Q1003"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q10", idxName: "M_Q10_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_002", idxColumn: "Q1103"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_Q11", idxName: "M_Q11_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_002", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_003", idxColumn: "Q1203"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_004", idxColumn: "RPT"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_005", idxColumn: "UNID"},
|
|
{tabName: "M_Q12", idxName: "M_Q12_IDX_006", idxColumn: "ORDERBY"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_002", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_003", idxColumn: "Q1303"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_004", idxColumn: "RPT"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_005", idxColumn: "UNID"},
|
|
{tabName: "M_Q13", idxName: "M_Q13_IDX_006", idxColumn: "ORDERBY"},
|
|
{tabName: "M_RPT_NODE", idxName: "M_RPT_NODE_IDX_001", idxColumn: "RPCODE,RPTABLEID"},
|
|
{tabName: "M_S01", idxName: "M_S01_IDX_004", idxColumn: "S0103"},
|
|
{tabName: "M_S01", idxName: "M_S01_IDX_001", idxColumn: "UNID"},
|
|
{tabName: "M_S01", idxName: "M_S01_IDX_003", idxColumn: "S0102"},
|
|
{tabName: "M_S01", idxName: "M_S01_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S01", idxName: "M_S01_IDX_002", idxColumn: "S0101"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_002", idxColumn: "S0202"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_006", idxColumn: "S0201"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_007", idxColumn: "S0205"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_008", idxColumn: "S0204"},
|
|
{tabName: "M_S02", idxName: "M_S02_IDX_009", idxColumn: "S0206"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_002", idxColumn: "S0303"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_007", idxColumn: "S0301"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_008", idxColumn: "S0305"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_009", idxColumn: "S0304"},
|
|
{tabName: "M_S03", idxName: "M_S03_IDX_010", idxColumn: "S0306"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_002", idxColumn: "S0403"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_007", idxColumn: "S0401"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_008", idxColumn: "S0405"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_009", idxColumn: "S0404"},
|
|
{tabName: "M_S04", idxName: "M_S04_IDX_010", idxColumn: "S0406"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_002", idxColumn: "S0503"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_007", idxColumn: "S0501"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_008", idxColumn: "S0505"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_009", idxColumn: "S0504"},
|
|
{tabName: "M_S05", idxName: "M_S05_IDX_010", idxColumn: "S0506"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_002", idxColumn: "S0603"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_007", idxColumn: "S0601"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_008", idxColumn: "S0605"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_009", idxColumn: "S0604"},
|
|
{tabName: "M_S06", idxName: "M_S06_IDX_010", idxColumn: "S0606"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_001", idxColumn: "OUUID"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_002", idxColumn: "S0703"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_003", idxColumn: "UNID"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_004", idxColumn: "ORDERBY"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_005", idxColumn: "RPT"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_006", idxColumn: "RPT,UNID"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_007", idxColumn: "S0701"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_008", idxColumn: "S0705"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_009", idxColumn: "S0704"},
|
|
{tabName: "M_S07", idxName: "M_S07_IDX_010", idxColumn: "S0706"},
|
|
{tabName: "TJ_UN", idxName: "TJ_UN_IDX_001", idxColumn: "RPTYEAR"},
|
|
{tabName: "TJ_UN", idxName: "TJ_UN_IDX_002", idxColumn: "SID"},
|
|
{tabName: "TJ_UN", idxName: "TJ_UN_IDX_003", idxColumn: "SID,ID"},
|
|
{tabName: "TJ_UN", idxName: "TJ_UN_IDX_004", idxColumn: "UORDER"},
|
|
{tabName: "J0801", idxName: "J0801_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0802", idxName: "J0802_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0803", idxName: "J0803_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0804", idxName: "J0804_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0805", idxName: "J0805_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0806", idxName: "J0806_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0901", idxName: "J0901_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0902", idxName: "J0902_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0903", idxName: "J0903_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0904", idxName: "J0904_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0905", idxName: "J0905_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J0906", idxName: "J0906_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1001", idxName: "J1001_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1002", idxName: "J1002_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1003", idxName: "J1003_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1004", idxName: "J1004_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1005", idxName: "J1005_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1006", idxName: "J1006_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1101", idxName: "J1101_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1102", idxName: "J1102_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1103", idxName: "J1103_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1104", idxName: "J1104_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1105", idxName: "J1105_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1106", idxName: "J1106_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1201", idxName: "J1201_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1202", idxName: "J1202_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1203", idxName: "J1203_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1204", idxName: "J1204_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1205", idxName: "J1205_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1206", idxName: "J1206_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1301", idxName: "J1301_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1302", idxName: "J1302_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1303", idxName: "J1303_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1304", idxName: "J1304_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1305", idxName: "J1305_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1306", idxName: "J1306_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1401", idxName: "J1401_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1402", idxName: "J1402_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1403", idxName: "J1403_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1404", idxName: "J1404_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1405", idxName: "J1405_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1406", idxName: "J1406_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1501", idxName: "J1501_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1502", idxName: "J1502_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1503", idxName: "J1503_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1504", idxName: "J1504_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1505", idxName: "J1505_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1506", idxName: "J1506_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1507", idxName: "J1507_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1601", idxName: "J1601_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1602", idxName: "J1602_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1603", idxName: "J1603_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1604", idxName: "J1604_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1605", idxName: "J1605_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1606", idxName: "J1606_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1607", idxName: "J1607_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1701", idxName: "J1701_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1702", idxName: "J1702_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1703", idxName: "J1703_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1704", idxName: "J1704_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1705", idxName: "J1705_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1706", idxName: "J1706_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1707", idxName: "J1707_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1801", idxName: "J1801_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1802", idxName: "J1802_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1803", idxName: "J1803_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1804", idxName: "J1804_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1805", idxName: "J1805_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1806", idxName: "J1806_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1807", idxName: "J1807_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1901", idxName: "J1901_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1901", idxName: "J1901_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1902", idxName: "J1902_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1902", idxName: "J1902_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1903", idxName: "J1903_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1903", idxName: "J1903_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1904", idxName: "J1904_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1904", idxName: "J1904_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1905", idxName: "J1905_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1905", idxName: "J1905_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1906", idxName: "J1906_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1906", idxName: "J1906_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1907", idxName: "J1907_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1907", idxName: "J1907_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J1908", idxName: "J1908_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J1908", idxName: "J1908_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2001", idxName: "J2001_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2001", idxName: "J2001_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2002", idxName: "J2002_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2002", idxName: "J2002_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2003", idxName: "J2003_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2003", idxName: "J2003_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2004", idxName: "J2004_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2004", idxName: "J2004_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2005", idxName: "J2005_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2005", idxName: "J2005_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2006", idxName: "J2006_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2006", idxName: "J2006_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2007", idxName: "J2007_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2007", idxName: "J2007_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2008", idxName: "J2008_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2008", idxName: "J2008_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2101", idxName: "J2101_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2101", idxName: "J2101_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2102", idxName: "J2102_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2102", idxName: "J2102_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2103", idxName: "J2103_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2103", idxName: "J2103_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2104", idxName: "J2104_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2104", idxName: "J2104_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2105", idxName: "J2105_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2105", idxName: "J2105_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2106", idxName: "J2106_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2106", idxName: "J2106_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2107", idxName: "J2107_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2107", idxName: "J2107_IDX_002", idxColumn: "TABLEID"},
|
|
{tabName: "J2108", idxName: "J2108_IDX_001", idxColumn: "UNITID"},
|
|
{tabName: "J2108", idxName: "J2108_IDX_002", idxColumn: "TABLEID"},
|
|
}
|
|
|
|
// 清除特殊字符串问题
|
|
type Tab struct {
|
|
name string
|
|
Cols []string
|
|
}
|
|
type Tabs struct {
|
|
Tab []Tab
|
|
}
|
|
|
|
// 批量处理主细表或描述拼接
|
|
type Sqls struct {
|
|
name string
|
|
Sql []string
|
|
}
|
|
type Funcs struct {
|
|
Sql []Sqls
|
|
}
|
|
|
|
func init() {
|
|
// 清除字段可能存储特殊字符串处理
|
|
tabs = Tabs{
|
|
Tab: []Tab{
|
|
{
|
|
name: "A01",
|
|
Cols: []string{
|
|
"A0101",
|
|
"A0102",
|
|
"A0104",
|
|
"A0107",
|
|
"A0111A",
|
|
"A0114A",
|
|
"A0115A",
|
|
"A0117",
|
|
"A0128",
|
|
"A0134",
|
|
"A0140",
|
|
"A0141",
|
|
"A0144",
|
|
"A3921",
|
|
"A3927",
|
|
"A0160",
|
|
"A0163",
|
|
"A0165",
|
|
"A0184",
|
|
"A0187A",
|
|
"A0192",
|
|
"A0192A",
|
|
"A0221",
|
|
"A0288",
|
|
"A0192E",
|
|
"A0192C",
|
|
"A0196",
|
|
"A0197",
|
|
"A0195",
|
|
"A1701",
|
|
"A14Z101",
|
|
"A15Z101",
|
|
"A0120",
|
|
"A0121",
|
|
"A0122",
|
|
"A2949",
|
|
"A0180",
|
|
"QRZXL",
|
|
"QRZXLXX",
|
|
"QRZXW",
|
|
"QRZXWXX",
|
|
"ZZXL",
|
|
"ZZXLXX",
|
|
"ZZXW",
|
|
"ZZXWXX",
|
|
"ZGXL",
|
|
"ZGXLXX",
|
|
"ZGXW",
|
|
"ZGXWXX",
|
|
"TCSJSHOW",
|
|
"TCFSSHOW",
|
|
},
|
|
},
|
|
{
|
|
name: "A02",
|
|
Cols: []string{
|
|
"A0201A",
|
|
"A0201B",
|
|
"A0201D",
|
|
"A0201E",
|
|
"A0215A",
|
|
"A0219",
|
|
"A0223",
|
|
"A0225",
|
|
"A0243",
|
|
"A0245",
|
|
"A0247",
|
|
"A0251B",
|
|
"A0255",
|
|
"A0265",
|
|
"A0267",
|
|
"A0272",
|
|
"A0281",
|
|
},
|
|
},
|
|
{
|
|
name: "A05",
|
|
Cols: []string{
|
|
"A0531",
|
|
"A0501B",
|
|
"A0504",
|
|
"A0511",
|
|
"A0517",
|
|
"A0524",
|
|
"A0526",
|
|
"A0528B",
|
|
"A0530",
|
|
"A0532",
|
|
},
|
|
},
|
|
{
|
|
name: "A06",
|
|
Cols: []string{
|
|
"A0601",
|
|
"A0602",
|
|
"A0604",
|
|
"A0607",
|
|
"A0611",
|
|
"A0699",
|
|
},
|
|
},
|
|
{
|
|
name: "A08",
|
|
Cols: []string{
|
|
"A0801A",
|
|
"A0801B",
|
|
"A0901A",
|
|
"A0901B",
|
|
"A0804",
|
|
"A0807",
|
|
"A0904",
|
|
"A0814",
|
|
"A0824",
|
|
"A0827",
|
|
"A0837",
|
|
"A0811",
|
|
"A0831",
|
|
"A0832",
|
|
"A0834",
|
|
"A0835",
|
|
"A0838",
|
|
"A0839",
|
|
"A0899",
|
|
},
|
|
},
|
|
{
|
|
name: "A14",
|
|
Cols: []string{
|
|
"A1404A",
|
|
"A1404B",
|
|
"A1407",
|
|
"A1411A",
|
|
"A1414",
|
|
"A1415",
|
|
"A1416",
|
|
"A1424",
|
|
"A1428",
|
|
},
|
|
},
|
|
{
|
|
name: "A15",
|
|
Cols: []string{
|
|
"A1517",
|
|
"A1521",
|
|
},
|
|
},
|
|
{
|
|
name: "A30",
|
|
Cols: []string{
|
|
"A3001",
|
|
"A3004",
|
|
"A3007A",
|
|
"A3038",
|
|
},
|
|
},
|
|
{
|
|
name: "A33",
|
|
Cols: []string{
|
|
"A3310",
|
|
"A3321",
|
|
"A3321C",
|
|
"A3321D",
|
|
"A3322",
|
|
"A3323",
|
|
"A3331",
|
|
"A3332",
|
|
"A3333",
|
|
"A3350",
|
|
"A3360",
|
|
"A3361",
|
|
"A3362",
|
|
"A3371",
|
|
"A3372",
|
|
"A3381",
|
|
"A3382",
|
|
"A3385",
|
|
"A3321A",
|
|
"A3321B",
|
|
"A3321E",
|
|
"A3321F",
|
|
"A3333A",
|
|
"A3333B",
|
|
},
|
|
},
|
|
{
|
|
name: "A36",
|
|
Cols: []string{
|
|
"A3601",
|
|
"A3604A",
|
|
"A3607",
|
|
"A3627",
|
|
"A3611",
|
|
"SORTID",
|
|
},
|
|
},
|
|
{
|
|
name: "A57",
|
|
Cols: []string{
|
|
"A5714",
|
|
},
|
|
},
|
|
{
|
|
name: "A99Z1",
|
|
Cols: []string{
|
|
"A99Z101",
|
|
"A99Z102",
|
|
"A99Z103",
|
|
"A99Z104",
|
|
"A99Z191",
|
|
"A99Z195",
|
|
},
|
|
},
|
|
{
|
|
name: "B01",
|
|
Cols: []string{
|
|
"B0101",
|
|
"B0104",
|
|
"B0114",
|
|
"B0117",
|
|
"B0124",
|
|
"B0127",
|
|
"B0131",
|
|
"B0194",
|
|
"B0227",
|
|
"B0232",
|
|
"B0233",
|
|
"B0236",
|
|
"B0234",
|
|
"B0150",
|
|
"B0183",
|
|
"B0185",
|
|
"B0164",
|
|
"B0167",
|
|
"B0268",
|
|
"B0269",
|
|
"B0238",
|
|
"B0239",
|
|
"B0180",
|
|
"SORTID",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
// 批量处理功能脚本
|
|
funcs = Funcs{
|
|
Sql: []Sqls{
|
|
/*{
|
|
name: "职务层次及职级主细同步",
|
|
Sql: []string{
|
|
"update a01 set a0221='',a0288='' where not exists(select 1 from a05 where a01.a0000=a05.a0000 and a0524='1' and A0531='0')",
|
|
"update a01 set a0192e='',a0192c='' where not exists(select 1 from a05 where a01.a0000=a05.a0000 and a0524='1' and A0531='1')",
|
|
"update a01,a05 set a0221=A0501B,a0288=A0504 where a01.a0000=a05.a0000 and a0524='1' and A0531='0'",
|
|
"update a01,a05 set a0192e=A0501B,a0192c=A0504 where a01.a0000=a05.a0000 and a0524='1' and A0531='1'",
|
|
},
|
|
},
|
|
{
|
|
name: "拼接政治面貌信息",
|
|
Sql: []string{
|
|
"update a01 set a0140=concat(substr(a0144,1,4),'.',substr(a0144,5,2)) where a0141 in('01','02') and (a0144 is not null or a0144 <> '')",
|
|
"update a01 set a0140=concat('(',(select code_name from code_value where code_type='GB4762' and code_value=a0141),')') where a0141 in(select code_value from code_value where code_type='GB4762' and code_value not in ('01','02'))",
|
|
},
|
|
},*/
|
|
},
|
|
}
|
|
}
|
|
|