问答示例增加,人员权限控制
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
train_document='''
|
||||
语法为达梦数据库语法;
|
||||
查询地址,籍贯,公司,单位时,尽量使用like查询;
|
||||
查询人员信息时,由于数据表字段过多。只需要展示人员关键信息字段,id,工号,姓名,单位以及用户问题中需要查询的字段;
|
||||
表字段信息以及字段枚举信息在values下,注意相关字段枚举值的转换;
|
||||
查询单位时,通过orgs表查询,且需要基于parentID查询单位下的子单位;
|
||||
查询内部单位时,则可以直接查询人员信息表,通过like模糊查询;
|
||||
|
||||
'''
|
||||
|
||||
person_database_ddl = """
|
||||
|
||||
{
|
||||
@@ -116,14 +126,14 @@ person_database_ddl = """
|
||||
{
|
||||
"name": "internal_dept",
|
||||
"type": "VARCHAR(108)",
|
||||
"comment": "内部部门",
|
||||
"comment": "内部部门ID",
|
||||
"role": "dimension",
|
||||
"tags": ["组织信息", "内部架构"]
|
||||
},
|
||||
{
|
||||
"name": "input_dept",
|
||||
"type": "VARCHAR(108)",
|
||||
"comment": "录入部门",
|
||||
"comment": "录入部门ID",
|
||||
"role": "dimension",
|
||||
"tags": ["操作部门", "组织信息"]
|
||||
},
|
||||
@@ -137,7 +147,7 @@ person_database_ddl = """
|
||||
{
|
||||
"name": "internal_unit",
|
||||
"type": "VARCHAR(108)",
|
||||
"comment": "内部单位",
|
||||
"comment": "内部单位ID",
|
||||
"role": "dimension",
|
||||
"tags": ["组织信息", "内部架构"]
|
||||
},
|
||||
@@ -163,7 +173,7 @@ person_database_ddl = """
|
||||
"role": "dimension",
|
||||
"tags": ["主键", "ID标识"]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"name": "dr",
|
||||
"type": "INT",
|
||||
@@ -189,7 +199,7 @@ person_database_ddl = """
|
||||
"role": "dimension",
|
||||
"tags": ["租户信息", "系统隔离"]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"name": "create_time",
|
||||
"type": "DATETIME(39)",
|
||||
@@ -204,8 +214,8 @@ person_database_ddl = """
|
||||
"role": "dimension",
|
||||
"tags": ["时间信息", "系统记录"]
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
"name": "to_dept",
|
||||
"type": "VARCHAR(600)",
|
||||
@@ -445,40 +455,31 @@ person_database_ddl = """
|
||||
{
|
||||
"from": "input_dept",
|
||||
"to_table": "IUAP_APDOC_BASEDOC.org_orgs",
|
||||
"to_field": "id",
|
||||
"to_field": ["id","parentid"],
|
||||
"type": "foreign_key",
|
||||
"comment": "关联部门表"
|
||||
},
|
||||
{
|
||||
"from": "internal_dept",
|
||||
"to_table": "IUAP_APDOC_BASEDOC.org_orgs",
|
||||
"to_field": "id",
|
||||
"to_field": ["id","parentid"],
|
||||
"type": "foreign_key",
|
||||
"comment": "关联部门表"
|
||||
},
|
||||
{
|
||||
"from": "internal_unit",
|
||||
"to_table": "IUAP_APDOC_BASEDOC.org_orgs",
|
||||
"to_field": "id",
|
||||
"to_field": ["id","parentid"],
|
||||
"type": "foreign_key",
|
||||
"comment": "关联部门表"
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
"tags": ["人员管理", "人力资源", "审批流程", "基本信息", "工作信息"],
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
train_document='''
|
||||
语法为达梦数据库语法;
|
||||
查询地址,籍贯,公司,单位时,尽量使用like查询;
|
||||
查询人员信息时,由于数据表字段过多。只需要展示人员关键信息字段,id,工号,姓名,单位以及用户问题中需要查询的字段;
|
||||
表字段信息以及字段枚举信息在values下,注意相关字段枚举值的转换;
|
||||
查询单位时,通过orgs表查询,且需要基于parentID查询单位下的子单位;
|
||||
查询内部单位时,则可以直接查询人员信息表,通过like模糊查询;
|
||||
'''
|
||||
|
||||
person_attendance_rule_ddl='''
|
||||
{
|
||||
"db_name":"YJOA_APPSERVICE_DB",
|
||||
@@ -549,7 +550,7 @@ person_attendance_rule_ddl='''
|
||||
}
|
||||
'''
|
||||
|
||||
user_status_ddl='''
|
||||
person_status_ddl='''
|
||||
{
|
||||
"db_name":"YJOA_APPSERVICE_DB",
|
||||
"table_name": "t_yj_person_status",
|
||||
@@ -633,7 +634,7 @@ user_status_ddl='''
|
||||
}
|
||||
'''
|
||||
|
||||
user_attendance_ddl = '''
|
||||
person_attendance_ddl = '''
|
||||
{
|
||||
"db_name": "YJOA_APPSERVICE_DB",
|
||||
"table_name": "t_yj_person_attendance",
|
||||
@@ -919,7 +920,6 @@ person_ac_area = '''
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
org_orgs_ddl = '''
|
||||
{
|
||||
"db_name":"IUAP_APDOC_BASEDOC",
|
||||
|
||||
Reference in New Issue
Block a user