-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnlsql.json
More file actions
87 lines (87 loc) · 5.73 KB
/
nlsql.json
File metadata and controls
87 lines (87 loc) · 5.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[
{
"id": 1,
"description": "石家庄2025年2月份在处理案件数量",
"sql": "select b.reporting_unit, count(*) sl from (select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%' union select a.* from t_case_management a where a.close_date is null and a.state in('办理中','仲裁中','审理中:一审','审理中:二审','审理中:再审','审理中:重审','审理中:重审二审') and substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%' union select a.* from t_case_management a where a.state not in('办理中','仲裁中','审理中:一审','审理中:二审','审理中:再审','审理中:重审','审理中:重审二审') and substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and substring(a.close_date,1,4) ='2025' and substring(a.close_date,6,2) = '02' and a.reporting_unit like '%石家庄%') b group by b.reporting_unit"
},
{
"id": 2,
"description": "石家庄2025年2月份新发案件数量",
"sql": "select b.reporting_unit, count(*) sl from (select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%') b group by b.reporting_unit"
},
{
"id": 3,
"description": "石家庄2025年2月份新发案件明细",
"sql": "select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%'"
},
{
"id": 4,
"description": "石家庄2025年2月份新发案件涉案金额",
"sql": "select b.reporting_unit, sum(b.sa_money) money from (select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%') b group by b.reporting_unit"
},
{
"id": 5,
"description": "石家庄2025年2月份新发案件裁判金额",
"sql": "select b.reporting_unit, sum(b.adjudication_money) money from (select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%') b group by b.reporting_unit"
},
{
"id": 6,
"description": "石家庄2025年2月份新发案件执行金额",
"sql": "select b.reporting_unit, sum(b.execution_amount) money from (select a.* from t_case_management a where substring(a.crime_date,1,4) ='2025' and substring(a.crime_date,6,2) = '02' and a.reporting_unit like '%石家庄%') b group by b.reporting_unit"
},
{
"id": 7,
"description": "石家庄2024年1月份专项授权明细",
"sql": "select * from t_affairs where department like '%石家庄%' and empower_way = '专项授权' and year ='2024' and substring(take_effect_date,6,2) = '01'"
},
{
"id": 8,
"description": "石家庄2024年1月份专项授权数量",
"sql": "select b.department, count(*) from (select a.* from t_affairs a where a.department like '%石家庄%' and a.empower_way = '专项授权' and a.year ='2024' and substring(a.take_effect_date,6,2) = '01') b group by b.department"
},
{
"id": 9,
"description": "石家庄2024年1月份授权数量",
"sql": "select b.department, count(*) from (select a.* from t_affairs a where a.department like '%石家庄%' and a.year ='2024' and substring(a.take_effect_date,6,2) = '01') b group by b.department"
},
{
"id": 10,
"description": "石家庄2023年3月份风险提示书数量",
"sql": "select b.product_unit, count(*) from (select a.* from t_risk_reminder a where a.product_unit like '%石家庄%' and substring(a.product_date,1,4) ='2023' and substring(a.product_date,6,2) = '03') b group by b.product_unit"
},
{
"id": 11,
"description": "石家庄2023年3月份风险提示书明细",
"sql": "select a.* from t_risk_reminder a where a.product_unit like '%石家庄%' and substring(a.product_date,1,4) ='2023' and substring(a.product_date,6,2) = '03'"
},
{
"id": 12,
"description": "元氏2024年违规事件数量",
"sql": "select b.fsdw, count(*) from (select a.* from t_compliance a where a.fsdw like '%元氏%' and substring(a.cfsj,1,4) ='2024') b group by b.fsdw"
},
{
"id": 13,
"description": "元氏2024年违规事件明细",
"sql": "select a.* from t_compliance a where a.fsdw like '%元氏%' and substring(a.cfsj,1,4) ='2024'"
},
{
"id": 14,
"description": "石家庄2025年2月份重大决策法律意见书数量",
"sql": "select b.department, count(*) from (select a.* from t_decision_making a where a.department like '%石家庄%' and substring(a.issuer_date,1,4) ='2025' and substring(a.issuer_date,6,2) = '02') b group by b.department"
},
{
"id": 15,
"description": "石家庄2025年2月份重大决策法律意见书明细",
"sql": "select a.* from t_decision_making a where a.department like '%石家庄%' and substring(a.issuer_date,1,4) ='2025' and substring(a.issuer_date,6,2) = '02'"
},
{
"id": 16,
"description": "石家庄2025年2月份重大决策无保留法律意见书明细",
"sql": "select a.* from t_decision_making a where a.department like '%石家庄%' and substring(a.issuer_date,1,4) ='2025' and substring(a.issuer_date,6,2) = '02' and a.law_type = '无保留法律意见'"
},
{
"id": 17,
"description": "石家庄2025年2月份重大决策无保留法律意见书数量",
"sql": "select b.department, count(*) from (select a.* from t_decision_making a where a.department like '%石家庄%' and substring(a.issuer_date,1,4) ='2025' and substring(a.issuer_date,6,2) = '02' and a.law_type = '无保留法律意见') b group by b.department"
}
]